Closed glassfishrobot closed 14 years ago
Reported by wilfred
wilfred said: It seems I can reproduce part of the problem by removing ant 1.6.5 from my local Maven repository:
[WARNING] CHECKSUM FAILED - Checksum failed on download: local = 'ceaa837e844faeae5abb2e8d195b0a5b1c896eb8'; remote = '<!DOCTYPE' - RETRYING Downloading: https://maven- repository.dev.java.net/nonav/repository/ant/poms/ant-1.6.5.pom 343b downloaded [WARNING] CHECKSUM FAILED - Checksum failed on download: local = 'ceaa837e844faeae5abb2e8d195b0a5b1c896eb8'; remote = '<!DOCTYPE' - IGNORING [WARNING] POM for 'ant:ant:pom:1.6.5:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project ant:ant at /Users/wilfred/.m2/repository/ant/ant/1.6.5/ant-1.6.5.pom Downloading: http://download.java.net/maven/1/ant/jars/ant-1.6.5.jar Downloading: http://download.java.net/maven/2/ant/ant/1.6.5/ant-1.6.5.jar Downloading: http://snapshots.maven.codehaus.org/maven2/ant/ant/1.6.5/ant-1.6.5.jar Downloading: https://maven- repository.dev.java.net/nonav/repository/ant/jars/ant-1.6.5.jar 343b downloaded [WARNING] CHECKSUM FAILED - Checksum failed on download: local = '9adcecb3ffee633e8563ff70b7e4aba5878a0bd9'; remote = '<!DOCTYPE' - RETRYING Downloading: https://maven- repository.dev.java.net/nonav/repository/ant/jars/ant-1.6.5.jar 343b downloaded [WARNING] CHECKSUM FAILED - Checksum failed on download: local = '9adcecb3ffee633e8563ff70b7e4aba5878a0bd9'; remote = '<!DOCTYPE' - IGNORING [INFO] [jaxb:generate
{execution: default}
[INFO] Trace java.lang.NoClassDefFoundError: org/apache/tools/ant/Task at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:703) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j ava:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 255) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:2 14) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:703) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j ava:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 255) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:2 14) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402) at com.sun.tools.xjc.maven2.XJCMojo.execute(XJCMojo.java:197) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMana ger.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecyc leExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(D efaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycl eExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailu res(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExe cutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Task at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j ava:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:2 14) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402) ... 47 more
wilfred said: It seems there is a Maven repository that returns an awkward result:
This is what the Ant pom and jar files contain:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
The document has moved here.
wilfred said: It's just impossible to understand what's going on. I stripped all repository settings, deleted ant 1.6.5 again, and still it's trying to download it from the dev.java.net Maven repository.
It turns out that it's building it correctly when running mvn dependency:tree clean install. Don't ask why.
wilfred said: It seems that the provided scope on the ant dependency in wadl-ant caused the other dependency on ant to be downloaded from the dev.java.net repository. Don't ask why. Dropping the provided scope and explicitly pinpointing ant 1.6.5 in all cases resolved it.
Was assigned to wadl-issues
This issue was imported from java.net JIRA WADL-29
Marked as fixed on Monday, February 22nd 2010, 2:37:45 pm
Andrew Glowik:
I'm having a problem building the trunk... Any ideas?
mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000) Java version: 1.6.0_16 Java home: /usr/java/jdk1.6.0_16/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.18-128.el5" arch: "i386" Family: "unix"
svn checkout https://wadl.dev.java.net/svn/wadl/trunk --username guest cd wadl mvn install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] WADL [INFO] WADL Core [INFO] WADL Maven Plugin [INFO] WADL Ant Task [INFO] WADL Commandline [INFO] WADL Tools Distribution [INFO] WADL XSLT [INFO] --------------------------------------------------------
[INFO] Building WADL [INFO] task-segment: [install] [INFO] --------------------------------------------------------
[INFO] [site:attach-descriptor
{execution: default-attach-descriptor}
] [INFO] [install:install
{execution: default-install}
] [INFO] Installing /home/aglowik/wadl2java/trunk/wadl/pom.xml to /home/aglowik/.m2/repository/org/jvnet/ws/wadl/wadl/1.1-SNAPSHOT/wadl- 1.1-SNAPSHOT.pom [INFO] --------------------------------------------------------
[INFO] Building WADL Core [INFO] task-segment: [install] [INFO] --------------------------------------------------------
[WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.4:runtime' is invalid.
Its dependencies (if any) will NOT be available to the current build. [WARNING] POM for 'org.apache.maven:maven-project:pom:2.0.4:runtime' is invalid.
Its dependencies (if any) will NOT be available to the current build. [WARNING] POM for 'ant:ant:pom:1.6.5:runtime' is invalid.
Its dependencies (if any) will NOT be available to the current build. [INFO] [jaxb:generate
{execution: default}
] [FATAL ERROR] com.sun.tools.xjc.maven2.XJCMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child- container[com.sun.tools.xjc.maven2:maven-jaxb-plugin:1.1] urls[0] = file:/home/aglowik/.m2/repository/com/sun/tools/xjc/maven2/maven-jaxb- plugin/1.1/maven-jaxb-plugin-1.1.jar urls[1] = file:/home/aglowik/.m2/repository/javax/xml/bind/jaxb- api/2.0/jaxb-api-2.0.jar urls[2] = file:/home/aglowik/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api- 1.0.jar urls[3] = file:/home/aglowik/.m2/repository/javax/activation/activation/1.1/activation- 1.1.jar urls[4] = file:/home/aglowik/.m2/repository/com/sun/xml/bind/jaxb- impl/2.0.2/jaxb-impl-2.0.2.jar urls[5] = file:/home/aglowik/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[6] = file:/home/aglowik/.m2/repository/com/sun/xml/bind/jaxb- xjc/2.0.2/jaxb-xjc-2.0.2.jar urls[7] = file:/home/aglowik/.m2/repository/org/codehaus/plexus/plexus- utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/opt/maven/lib/commons-net-1.4.1.jar urls[1] = file:/opt/maven/lib/maven-2.2.1-uber.jar [INFO] --------------------------------------------------------
[ERROR] FATAL ERROR [INFO] --------------------------------------------------------
[INFO] org/apache/tools/ant/Task org.apache.tools.ant.Task [INFO] --------------------------------------------------------
[INFO] Trace java.lang.NoClassDefFoundError: org/apache/tools/ant/Task at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j ava:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 255) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:2 14) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j ava:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 255) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:2 14) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at com.sun.tools.xjc.maven2.XJCMojo.execute(XJCMojo.java:197) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMana ger.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecyc leExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(D efaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycl eExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailu res(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExe cutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Task at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j ava:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java: 274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:2 14) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 48 more [INFO] --------------------------------------------------------
[INFO] Total time: 6 seconds [INFO] Finished at: Mon Jan 18 00:16:07 GMT 2010 [INFO] Final Memory: 16M/28M [INFO] --------------------------------------------------------
Environment
Operating System: All Platform: All
Affected Versions
[current]