[
https://issues.apache.org/jira/browse/IVY-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16793821#comment-16793821
]
Eric Milles edited comment on IVY-1586 at 3/15/19 5:52 PM:
-----------------------------------------------------------
Same issue for
com.ibm.watson.developer_cloud:natural-language-understanding:6.0.0. The POM
references the core library twice:
{code:xml}
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>core</artifactId>
<version>6.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>core</artifactId>
<version>6.0.0</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
{code}
And Ivy is translating to this single dependency element. The artifact element
has blank conf instead of having two artifact elements, one in master or
compile conf with no classifier and one in test conf with classifier tests.
{code:xml}
<dependency org="com.ibm.watson.developer_cloud" name="core"
rev="6.0.0" force="true"
conf="compile->compile(*),master(*);runtime->runtime(*);test->runtime(*),master(*)">
<artifact name="core" type="jar" ext="jar" conf=""
m:classifier="tests"/>
</dependency>
{code}
So the core dependency is only retrieved using the "tests" classifier.
was (Author: emilles):
Same issue for
com.ibm.watson.developer_cloud:natural-language-understanding:6.0.0. The POM
references the core library twice:
{code:xml}
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>core</artifactId>
<version>6.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>core</artifactId>
<version>6.0.0</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
{code}
And Ivy is translating to this single dependency element:
{code:xml}
<dependency org="com.ibm.watson.developer_cloud" name="core"
rev="6.0.0" force="true"
conf="compile->compile(*),master(*);runtime->runtime(*);test->runtime(*),master(*)">
<artifact name="core" type="jar" ext="jar" conf=""
m:classifier="tests"/>
</dependency>
{code}
So the core dependency is only retrieved using the "tests" classifier.
> Retrieves test-library instead of binary-library
> ------------------------------------------------
>
> Key: IVY-1586
> URL: https://issues.apache.org/jira/browse/IVY-1586
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.5.0-rc1
> Environment: Eclipse Photon 4.8.0 64bit
> Ant 1.10.3.v20180417-1627
> Apache IvyDE 2.2.0.final-201311091524-RELEASE
> Apache Ivy 2.5.0.cr1_20180412005306
> Reporter: Arni Schulze
> Priority: Blocker
> Attachments: Ant_1st_output.txt, Ant_2nd_output.txt, build.xml,
> ivy.xml
>
>
> If I delete the local Ivy cache and run my Ant script to retrieve
> "ch.quos.logback logback-classic 1.2.3" I get the correct library and its
> dependencies (see Ant_1st_output).
> But if I run the Ant script again (now having a local Ivy cache) it retrieves
> the test-library and the test-library of the dependencies instead of the
> correct ones (see Ant_2nd_output).
> I added minimalistic ivy.xml and Ant script. Because of the different
> behavior of the first and every other run, I think this is a bug in Ivy.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)