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

Sebastian Nagel commented on IVY-1586:
--------------------------------------

I've updated the Nutch build files to use the ivy jar from the nightly builds 
(see [test-IVY-1586 
branch|https://github.com/sebastian-nagel/nutch/tree/test-IVY-1586]) and the 
build fails with an error indicating that there are also changes to the 
retrieve pattern necessary:
{noformat}
> git clone https://github.com/sebastian-nagel/nutch.git nutch_source
...
> cd nutch_source
> git checkout test-IVY-1586
...

> rm -rf ~/.ivy2/

> ant compile-core-test
...
ivy-download-unchecked:
      [get] Getting: 
https://builds.apache.org/view/A/view/Ant/job/Ivy/lastSuccessfulBuild/artifact/build/artifact/org.apache.ivy_2.5.0.cr2_20190908122243.jar
      [get] To: ./ivy/ivy-2.5.0.cr2_20190908122243.jar
...
resolve-default:
[ivy:resolve] :: Apache Ivy 2.5.0-rc2-local-20190908122243 - 20190908122243 :: 
https://ant.apache.org/ivy/ ::
...
[ivy:resolve] downloading 
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-common/2.9.2/hadoop-common-2.9.2.jar
 ...
[ivy:resolve] 
..........................................................................................................................................................................................................................................................
 (3818kB)
[ivy:resolve] .. (0kB)
[ivy:resolve]   [SUCCESSFUL ] 
org.apache.hadoop#hadoop-common;2.9.2!hadoop-common.jar (458ms)
...

resolve-test:
[ivy:resolve] downloading 
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-common/2.9.2/hadoop-common-2.9.2-tests.jar
 ...
[ivy:resolve] 
............................................................................................................................................................................
 (2559kB)
...

BUILD FAILED
./build.xml:552: impossible to ivy retrieve: java.lang.RuntimeException: 
problem during retrieve of org.apache.nutch#nutch: java.lang.RuntimeException: 
Multiple artifacts of the module org.apache.hadoop#hadoop-common;2.9.2 are 
retrieved to the same file! Update the retrieve pattern  to fix this error.
{noformat}

> 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
>         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
(v8.3.2#803003)

Reply via email to