On Thu, Jun 10, 2010 at 20:51, Jan Sinschek <[email protected]> wrote: > Hi, > > when I try to build axis2 from the current trunk, (mvn install) I eventually > get >>java.lang.NoClassDefFoundError: org/codehaus/plexus/util/DirectoryScanner > > So, after looking into the matter unsuccesfully, I scraped part of my m2 > repository and found myself in the same situation. Also, corrupted > ressources are still being downloaded from java.net, which has already been > "fixed" by someone making a statement in jira issue about how to distract > maven from using that site; however my problem with plexus comes up > regardless.
For the Axis2 trunk, no particular set up is required for java.net. This is only required when building previous release tags. > I am not sure what's the best thing to do about this: where should I get > plexus? And which module is really missing? > The following shows the last of my downloads before the failure; I do no > really see how all the outputs relate; I would normally try to find another > alternative repository for plexus- some downloads already, use the fourth > fallback to get the jars they _do_ obtain- but as I cannot find the current > repository's location, "ws.zones.apache.org", I cannoti mage what to change > in the pom to get the alternative download location Clear your local maven repository, check that your settings.xml file doesn't contain any esoteric settings, check that you don't have an HTTP proxy that blocks stuff, and then restart the build. If that doesn't help, please report the Maven version you are using. >> Downloading: >> http://dist.wso2.org/maven2/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom >> 1K downloaded (plexus-containers-1.0-alpha-16.pom) >> Downloading: >> http://ws.zones.apache.org/repository2/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar >> [INFO] Unable to find resource >> 'org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9' in repository ws-zones >> (http://ws.zones.apache.org/repository2) >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar >> >> Downloading: >> http://ws.zones.apache.org/repository2/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar >> >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar >> >> [INFO] [jar:jar {execution: default-jar}] >> [FATAL ERROR] org.apache.maven.plugin.jar.JarMojo#execute() caused a >> linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check >> the realms: >> [FATAL ERROR] Plugin realm = >> app0.child-container[org.apache.maven.plugins:maven-jar-plugin:2.2] >> urls[0] = >> file:/home/jan/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.2/maven-jar-plugin-2.2.jar >> urls[1] = >> file:/home/jan/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.9/plexus-utils-1.4.9.jar >> urls[2] = >> file:/home/jan/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar >> urls[3] = >> file:/home/jan/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar >> urls[4] = >> file:/home/jan/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar >> urls[5] = >> file:/home/jan/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar >> [FATAL ERROR] Container realm = plexus.core >> urls[0] = file:/usr/share/maven2/lib/maven-debian-uber.jar >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] FATAL ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] org/codehaus/plexus/util/DirectoryScanner >> org.codehaus.plexus.util.DirectoryScanner >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Trace >> java.lang.NoClassDefFoundError: org/codehaus/plexus/util/DirectoryScanner >> at >> org.codehaus.plexus.archiver.AbstractArchiver.addFileSet(AbstractArchiver.java:160) >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
