You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2018/06/08 18:51:00 UTC

[jira] [Commented] (IVYDE-387) Dependency jars removed from classpath after settings reloaded

    [ https://issues.apache.org/jira/browse/IVYDE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16506444#comment-16506444 ] 

Shawn Heisey commented on IVYDE-387:
------------------------------------

I have seen this exact problem, although it was slf4j-simple, not slf4j-jdk14.

I *think* I have determined that it is a problem with the slf4j artifacts in the maven repository.

With this config, slf4j-api disappears:

{noformat}
		<dependency org="org.slf4j" name="slf4j-simple" rev="1.7+"/>
		<dependency org="org.slf4j" name="slf4j-api" rev="1.7+"/>
{noformat}

It also happens with this config (solrj has a transitive dependency on slf4j-api):

{noformat}
		<dependency org="org.apache.solr" name="solr-solrj" rev="6.6+"/>
		<dependency org="org.slf4j" name="slf4j-simple" rev="1.7+"/>
{noformat}

But if I use this config, I get both jars.  They're different versions, obviously.  But I think it illustrates that the info in the maven repository for the 1.7.25 version is broken.

{noformat}
		<dependency org="org.slf4j" name="slf4j-simple" rev="1.7.24"/>
		<dependency org="org.slf4j" name="slf4j-api" rev="1.7+"/>
{noformat}


> Dependency jars removed from classpath after settings reloaded
> --------------------------------------------------------------
>
>                 Key: IVYDE-387
>                 URL: https://issues.apache.org/jira/browse/IVYDE-387
>             Project: IvyDE
>          Issue Type: Bug
>          Components: classpath container
>    Affects Versions: 2.2.0.final
>         Environment: Eclipse Oxygen 3A
> org.apache.ant_1.10.1.v20170504-0840
> org.apache.ivy.eclipse.ant_2.5.0.cr1_20180412005306
> org.apache.ivyde.eclipse_2.2.0.final-201311091524-RELEASE
> jdk1.8.0_172
>            Reporter: Mikhail Gistev
>            Priority: Major
>         Attachments: cache_org.slf4j.after.zip, cache_org.slf4j.before.zip, ivy.xml, log_after.txt, log_before.txt
>
>
> I creare the new project with Ivy deps. I create an ivy.xml (the only dependency is slf4j-jdk14) file and see that everyting is fine. In the classpath there are 2 jars - slf4j-jdk14 and slf4j-api (the former depends on the later). Then I select "Reload settings" from the menu and slf4j-api disappears. The same happens if I add another dependency.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)