[ https://issues.apache.org/jira/browse/IVY-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Hanin resolved IVY-887. ------------------------------ Resolution: Fixed Fix Version/s: 2.0-RC1 I've fixed the problem, thanks for reporting! > HelloWorld chainedresolvers tutorial broken on trunk > ---------------------------------------------------- > > Key: IVY-887 > URL: https://issues.apache.org/jira/browse/IVY-887 > Project: Ivy > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Don Ferguson > Assignee: Xavier Hanin > Fix For: 2.0-RC1 > > > One of the resolvers downloads the wrong jar file (such as the source, or the > javadoc) which is deposited in the lib directory. The javac then fails. > For example: > Run ant src/example/chained-resolvers/chainedresolvers-project/build.xml > > doc/tutorial/log/chained-resolvers.txt > Buildfile: src/example/chained-resolvers/chainedresolvers-project/build.xml > resolve: > [ivy:retrieve] :: Ivy 2.0.0-rc1-local-20080829125259 - 20080829125259 :: > http://ant.apache.org/ivy/ :: > :: loading settings :: file = > /apps/src/ivy/trunk/src/example/chained-resolvers/settings/ivysettings.xml > [ivy:retrieve] :: resolving dependencies :: > org.apache#chained-resolvers;[EMAIL PROTECTED] > [ivy:retrieve] confs: [default] > [ivy:retrieve] found commons-lang#commons-lang;2.0 in ibiblio > [ivy:retrieve] found org.apache#test;1.0 in libraries > [ivy:retrieve] downloading > http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-sources.jar > ... > [ivy:retrieve] > ................................................................................................................................................................ > [ivy:retrieve] ............... (245kB) > [ivy:retrieve] .. (0kB) > [ivy:retrieve] [SUCCESSFUL ] > commons-lang#commons-lang;2.0!commons-lang.jar(source) (2250ms) > [ivy:retrieve] downloading > http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0-javadoc.jar > ... > [ivy:retrieve] > .................................................................................................................................................................. > [ivy:retrieve] > .......................................................................................................................................................................... > (467kB) > [ivy:retrieve] .. (0kB) > [ivy:retrieve] [SUCCESSFUL ] > commons-lang#commons-lang;2.0!commons-lang.jar(javadoc) (3598ms) > [ivy:retrieve] downloading > http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0.jar > ... > [ivy:retrieve] > ....................................................................................................................... > (165kB) > [ivy:retrieve] .. (0kB) > [ivy:retrieve] [SUCCESSFUL ] commons-lang#commons-lang;2.0!commons-lang.jar > (1698ms) > [ivy:retrieve] downloading > /apps/src/ivy/trunk/src/example/chained-resolvers/settings/repository/test-1.0.jar > ... > [ivy:retrieve] .. (1kB) > [ivy:retrieve] [SUCCESSFUL ] org.apache#test;1.0!test.jar (2ms) > [ivy:retrieve] :: resolution report :: resolve 1719ms :: artifacts dl 7555ms > --------------------------------------------------------------------- > | | modules || artifacts | > | conf | number| search|dwnlded|evicted|| number|dwnlded| > --------------------------------------------------------------------- > | default | 2 | 2 | 1 | 0 || 4 | 4 | > --------------------------------------------------------------------- > [ivy:retrieve] :: retrieving :: org.apache#chained-resolvers > [ivy:retrieve] confs: [default] > [ivy:retrieve] conflict on > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/lib/commons-lang-2.0.jar > in [default]: 2.0 won > [ivy:retrieve] 2 artifacts copied, 0 already retrieved (246kB/12ms) > run: > [mkdir] Created dir: > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build > [javac] Compiling 1 source file to > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build > [javac] > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:20: > package org.apache.commons.lang does not exist > [javac] import org.apache.commons.lang.WordUtils; > [javac] ^ > [javac] > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:29: > cannot find symbol > [javac] symbol : class WordUtils > [javac] location: class example.Hello > [javac] System.out.println("capitalized by " + > WordUtils.class.getName() > [javac] ^ > [javac] > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java:30: > cannot find symbol > [javac] symbol : variable WordUtils > [javac] location: class example.Hello > [javac] + " : " + WordUtils.capitalizeFully(message)); > [javac] ^ > [javac] 3 errors > BUILD FAILED > /apps/src/ivy/trunk/src/example/chained-resolvers/chainedresolvers-project/build.xml:58: > Compile failed; see the compiler error output for details. > Total time: 10 seconds > $ jar -tvf lib/commons-lang-2.0.jar | head > 0 Tue Nov 11 15:28:28 PST 2003 org/ > 0 Tue Nov 11 15:28:28 PST 2003 org/apache/ > 0 Tue Nov 11 15:28:28 PST 2003 org/apache/commons/ > 0 Tue Nov 11 15:28:28 PST 2003 org/apache/commons/lang/ > 88399 Fri Aug 22 13:25:34 PDT 2003 org/apache/commons/lang/ArrayUtils.java > 11209 Fri Aug 22 12:57:04 PDT 2003 org/apache/commons/lang/BitField.java > 26256 Fri Aug 22 13:25:34 PDT 2003 org/apache/commons/lang/BooleanUtils.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.