ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: error with example hello-ivy encountered
Date Wed, 22 Oct 2008 19:32:43 GMT
This is a known problem and has been fixed in current SVN and in the upcoming RC2 version.
You can workaround it by manually specifying the retrieve pattern to something like "${ivy.lib.dir}/[artifact]-[revision](-[classifier]).[ext]"

Maarten




----- Original Message ----
From: metopia <rakesh.dhaval@osumc.edu>
To: ivy-user@ant.apache.org
Sent: Wednesday, October 22, 2008 9:26:24 PM
Subject: error with example hello-ivy encountered


When I download, install the ivy jar file and run the example hello-ivy the
first time, it runs fine.  building it again throws an error. Both messages
are pasted below. Can someone please take a look and let me know what is
going wrong here? 

######################################################
rdeehub:hello-ivy userdirectory$ ant 
Buildfile: build.xml

resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default
instance will be used
no settings file found, using default...
:: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ ::
:: loading settings :: url =
jar:file:/usr/share/apache-ant-1.6.5/lib/ivy-2.0.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies ::
org.apache#hello-ivy;working@rdeehub
[ivy:retrieve]     confs: [default]
[ivy:retrieve]     found commons-lang#commons-lang;2.0 in public
[ivy:retrieve]     found commons-cli#commons-cli;1.0 in public
[ivy:retrieve]     found commons-logging#commons-logging;1.0 in public
[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) (2258ms)
[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
(1271ms)
[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) (3330ms)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0-javadoc.jar
...
[ivy:retrieve] .............................................................
(92kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve]     [SUCCESSFUL ]
commons-cli#commons-cli;1.0!commons-cli.jar(javadoc) (1185ms)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
...
[ivy:retrieve] ................. (29kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve]     [SUCCESSFUL ] commons-cli#commons-cli;1.0!commons-cli.jar
(1813ms)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0-sources.jar
...
[ivy:retrieve] ..................................... (48kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve]     [SUCCESSFUL ]
commons-cli#commons-cli;1.0!commons-cli.jar(source) (1025ms)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0/commons-logging-1.0.jar
...
[ivy:retrieve] ................. (21kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve]     [SUCCESSFUL ]
commons-logging#commons-logging;1.0!commons-logging.jar (738ms)
[ivy:retrieve] :: resolution report :: resolve 3131ms :: artifacts dl
11649ms
[ivy:retrieve]     :: evicted modules:
[ivy:retrieve]     commons-lang#commons-lang;1.0 by
[commons-lang#commons-lang;2.0] in [default]
    ---------------------------------------------------------------------
    |                  |            modules            ||   artifacts   |
    |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
    ---------------------------------------------------------------------
    |      default     |   4   |   3   |   3   |   1   ||   7   |   7   |
    ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.apache#hello-ivy
[ivy:retrieve]     confs: [default]
[ivy:retrieve]     conflict on
/Users/userdirectory/projects/apache-ivy-2.0.0-rc1/src/example/hello-ivy/lib/commons-lang-2.0.jar
in [default]: 2.0 won
[ivy:retrieve]     conflict on
/Users/userdirectory/projects/apache-ivy-2.0.0-rc1/src/example/hello-ivy/lib/commons-cli-1.0.jar
in [default]: 1.0 won
[ivy:retrieve]     3 artifacts copied, 0 already retrieved (216kB/19ms)

run:
    [mkdir] Created dir:
/Users/userdirectory/projects/apache-ivy-2.0.0-rc1/src/example/hello-ivy/build
    [javac] Compiling 1 source file to
/Users/userdirectory/projects/apache-ivy-2.0.0-rc1/src/example/hello-ivy/build
     [java] standard message : hello ivy !
     [java] capitalized by org.apache.commons.lang.WordUtils : Hello Ivy !

BUILD SUCCESSFUL
Total time: 16 seconds

######################################################

rdeehub:hello-ivy userdirectory$ ant
Buildfile: build.xml

resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default
instance will be used
no settings file found, using default...
:: Ivy 2.0.0-rc1 - 20080916082609 :: http://ant.apache.org/ivy/ ::
:: loading settings :: url =
jar:file:/usr/share/apache-ant-1.6.5/lib/ivy-2.0.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies ::
org.apache#hello-ivy;working@rdeehub
[ivy:retrieve]     confs: [default]
[ivy:retrieve]     found commons-lang#commons-lang;2.0 in public
[ivy:retrieve]     found commons-cli#commons-cli;1.0 in public
[ivy:retrieve]     found commons-logging#commons-logging;1.0 in public
[ivy:retrieve] :: resolution report :: resolve 198ms :: artifacts dl 16ms
[ivy:retrieve]     :: evicted modules:
[ivy:retrieve]     commons-lang#commons-lang;1.0 by
[commons-lang#commons-lang;2.0] in [default]
    ---------------------------------------------------------------------
    |                  |            modules            ||   artifacts   |
    |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
    ---------------------------------------------------------------------
    |      default     |   4   |   0   |   0   |   1   ||   7   |   0   |
    ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.apache#hello-ivy
[ivy:retrieve]     confs: [default]
[ivy:retrieve]     conflict on
/Users/userdirectory/projects/apache-ivy-2.0.0-rc1/src/example/hello-ivy/lib/commons-lang-2.0.jar
in [default]: 2.0 won
[ivy:retrieve]     conflict on
/Users/userdirectory/projects/apache-ivy-2.0.0-rc1/src/example/hello-ivy/lib/commons-cli-1.0.jar
in [default]: 1.0 won
[ivy:retrieve]     1 artifacts copied, 2 already retrieved (92kB/15ms)

run:
     [java] java.lang.NoClassDefFoundError:
org/apache/commons/cli/CommandLineParser
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
     [java] Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/cli/CommandLineParser
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:119)
     [java]     ... 15 more
     [java] --- Nested Exception ---
     [java] java.lang.NoClassDefFoundError:
org/apache/commons/cli/CommandLineParser
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:119)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD SUCCESSFUL
Total time: 1 second
######################################################
-- 
View this message in context: http://www.nabble.com/error-with-example-hello-ivy-encountered-tp20118040p20118040.html
Sent from the ivy-user mailing list archive at Nabble.com.


      

Mime
View raw message