[
https://issues.apache.org/jira/browse/IVY-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16952944#comment-16952944
]
Sebastian Nagel commented on IVY-1586:
--------------------------------------
Ok, understood. Thanks!
Although the Nutch build.xml specifies as retrieve pattern
{noformat}
<ivy:retrieve pattern="${build.lib.dir}/[artifact]-[revision].[ext]"
symlink="false" log="quiet"/>
{noformat}
the ant build succeeds. I guess that's because we also include "classifier" in
the maven2.pattern:
{noformat}
<property name="maven2.pattern"
value="[organisation]/[module]/[revision]/[module]-[revision](-[classifier])"/>
{noformat}
No javadocs, sources, etc. are downloaded to the ivy cache.
Is the conclusion correct that the following retrieve pattern is also safe?
{noformat}
lib/[artifact]-[revision](-[classifier]).[ext]}}
{noformat}
A final comment: the [ivy retrieve
docs|https://ant.apache.org/ivy/history/latest-milestone/use/retrieve.html]
mention mostly patterns without "type" or "classifier". Might need a clear hint
as many libs are shipped with javadocs and sources.
> 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
> Assignee: Jaikiran Pai
> Priority: Blocker
> Fix For: master
>
> Attachments: Ant_1st_output.txt, Ant_2nd_output.txt, build.xml,
> ivy-1586-test.zip, 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
(v8.3.4#803005)