[Java lista] IVY

Szomor Attila aszomor at computertechnika.hu
2010. Ápr. 11., V, 13:40:53 CEST


Sziasztok,
 
Most töltöttem le az IVY-t és a hozzáadott mintapéldával kiszerettem
volna próbálni, hogy működik-e, de csak egy hibát kapok mindig
  [taskdef] Could not load definitions from resource
org/apache/ivy/ant/antlib.xml. It could not be found.
 
Környezet: jdk1.6.0_18, apache-ant-1.8.0, apache-maven-2.2.1,
apache-ivy-2.1.0.
 
Tudna valaki segíteni ?
 
Köszi, Attila.
 
example\build-a-ivy-repository\ANT -v
STDOUT:
-------------
Apache Ant version 1.8.0 compiled on February 1 2010
Trying the default build file: build.xml
Buildfile: G:\Program Files\Apache Software
Foundation\apache-ivy-2.1.0\src\example\build-a-ivy-repository\build.xml
Detected Java version: 1.6 in: G:\JAVA\JDK16~1.0_1\jre
Detected OS: Windows XP
parsing buildfile G:\Program Files\Apache Software
Foundation\apache-ivy-2.1.0\src\example\build-a-ivy-repository\build.xml
with URI =
file:/G:/Program%20Files/Apache%20Software%20Foundation/apache-ivy-2.1.0/src/example/build-a-ivy-repository/build.xml
Project base dir set to: G:\Program Files\Apache Software
Foundation\apache-ivy-2.1.0\src\example\build-a-ivy-repository
parsing buildfile
jar:file:/G:/Program%20Files/Apache%20Software%20Foundation/apache-ant-1.8.0/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI =
jar:file:/G:/Program%20Files/Apache%20Software%20Foundation/apache-ant-1.8.0/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file
Build sequence for target(s) `maven2' is [load-ivy, init-ivy, maven2]
Complete build sequence is [load-ivy, init-ivy, maven2, clean-repo,
maven2-deps, clean-cache, maven2-namespace-deps, maven2-namespace, ]
 
load-ivy:
  [taskdef] Could not load definitions from resource
org/apache/ivy/ant/antlib.xml. It could not be found.
 
init-ivy:
[antlib:org.apache.ivy.ant] Could not load definitions from resource
org/apache/ivy/ant/antlib.xml. It could not be found.

ERR_OUT:
---------------
BUILD FAILED
G:\Program Files\Apache Software
Foundation\apache-ivy-2.1.0\src\example\build-a-ivy-repository\build.xml:56:
Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
No types or tasks have been defined in this namespace yet
 
This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -G:\PROGRA~1\APACHE~1\apache-ant-1.8.0\lib
        -G:\Documents and Settings\aszomor\.ant\lib
        -a directory added on the command line with the -lib argument
 
 at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:487)
 at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:419)
 at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
 at org.apache.tools.ant.Task.perform(Task.java:347)
 at org.apache.tools.ant.Target.execute(Target.java:390)
 at org.apache.tools.ant.Target.performTasks(Target.java:411)
 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1329)
 at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
 at org.apache.tools.ant.Main.runBuild(Main.java:801)
 at org.apache.tools.ant.Main.startAnt(Main.java:218)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
 
Total time: 1 second



További információk a(z) Javalist levelezőlistáról