[ http://jira.codehaus.org/browse/MAVEN-1818?page=comments#action_80084 ] Lukas Theussl commented on MAVEN-1818: --------------------------------------
Yes I did run the exactly same command, and no, I have no idea. :( However, you said that you tweaked some of the maven scripts, that should not be necessary (the only jar that needs to be on the java.classpath is forehead). You might also consider the possibility of a currupted jar, try clearing your cache, re-installing maven, etc. > ClassNotFoundException: org.apache.maven.artifact.deployer.DeployBean > --------------------------------------------------------------------- > > Key: MAVEN-1818 > URL: http://jira.codehaus.org/browse/MAVEN-1818 > Project: Maven 1.x > Issue Type: Task > Components: jelly/ant integration > Affects Versions: 1.0.2 > Environment: maven --info > [INFO] App - __ __ > [INFO] App - | \/ |__ _Apache__ ___ > [INFO] App - | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > [INFO] App - |_| |_\__,_|\_/\___|_||_| v. 1.0.2 > [INFO] App - > #---- BEGIN: Which report > Which.version=Which.java:($Revision: 1.2 $) WhichJar.java:($Revision: 1.2 $) > java.version=1.5.0_06 > file.encoding=UTF-8 > java.ext.dirs=/usr/lib/j2sdk1.5-sun/jre/lib/ext > java.class.path=/media/hde1/home/robert/opt/java-frameworks/maven-1.0.2/lib:/media/hde1/home/robert/opt/java-frameworks/maven-1.0.2/plugins/maven-artifact-plugin-1.4.1.jar:/media/hde1/home/robert/opt/java-frameworks/maven-1.0.2/lib/forehead-1.0-beta-5.jar > os.name=Linux > java.vendor=Sun Microsystems Inc. > sun.boot.class.path=/usr/lib/j2sdk1.5-sun/lib/endorsed/resolver.jar:/usr/lib/j2sdk1.5-sun/lib/endorsed/serializer.jar:/usr/lib/j2sdk1.5-sun/lib/endorsed/xalan.jar:/usr/lib/j2sdk1.5-sun/lib/endorsed/xercesImpl.jar:/usr/lib/j2sdk1.5-sun/lib/endorsed/xml-apis.jar:/media/hde1/home/robert/opt/java-frameworks/maven-1.0.2/lib/endorsed/xerces-2.4.0.jar:/media/hde1/home/robert/opt/java-frameworks/maven-1.0.2/lib/endorsed/xml-apis-1.0.b2.jar:/usr/lib/j2sdk1.5-sun/jre/lib/rt.jar:/usr/lib/j2sdk1.5-sun/jre/lib/i18n.jar:/usr/lib/j2sdk1.5-sun/jre/lib/sunrsasign.jar:/usr/lib/j2sdk1.5-sun/jre/lib/jsse.jar:/usr/lib/j2sdk1.5-sun/jre/lib/jce.jar:/usr/lib/j2sdk1.5-sun/jre/lib/charsets.jar:/usr/lib/j2sdk1.5-sun/jre/classes > java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition > #---- END: Which report > [INFO] App - > [INFO] App - Installed plugins: > [INFO] App - maven-abbot-plugin-1.1 > [INFO] App - maven-announcement-plugin-1.3 > [INFO] App - maven-ant-plugin-1.8.1 > [INFO] App - maven-antlr-plugin-1.2.1 > [INFO] App - maven-appserver-plugin-2.0 > [INFO] App - maven-artifact-plugin-1.4.1 > ... > [INFO] App - Exception reading build.properties: /root/build.properties (No > such file or directory) > [INFO] App - Home Build properties: {} > Reporter: Robert Gorn > > By running the command: > # maven plugin:download -DartifactId=maven-torque-plugin -DgroupId=torque > -Dversion=3.2 > I'm getting the error: > [ERROR] BeanTag - Could not load class: > org.apache.maven.artifact.deployer.DeployBean exception: > java.lang.ClassNotFoundException: > org.apache.maven.artifact.deployer.DeployBean > <java.lang.ClassNotFoundException: > org.apache.maven.artifact.deployer.DeployBean>java.lang.ClassNotFoundException: > org.apache.maven.artifact.deployer.DeployBean > 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:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at > org.apache.commons.jelly.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:124) > at org.apache.commons.jelly.tags.define.BeanTag.doTag(BeanTag.java:92) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) > at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) > at > org.apache.commons.jelly.tags.define.TaglibTag.doTag(TaglibTag.java:64) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) > at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) > at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) > at > org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1143) > at > org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:770) > at > org.apache.maven.plugin.PluginManager.prepAttainGoal(PluginManager.java:725) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:656) > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) > at org.apache.maven.cli.App.doMain(App.java:488) > at org.apache.maven.cli.App.main(App.java:1239) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at com.werken.forehead.Forehead.run(Forehead.java:551) > at com.werken.forehead.Forehead.main(Forehead.java:581) > The DeployBean is in maven-artifact-plugin-1.4.1.jar, which resides in > $MAVEN_HOME/plugins. > I've verified that $CLASSPATH includes both $MAVEN_HOME/bin and /plugins. > Also, from the environment information being attached (java.class.path), you > can see I've edited the maven script to include > maven-artifact-plugin-1.4.1.jar in the runtime classpath that starts Maven. > While I'm pretty sure that the DeployBean class *should* be found that way, > I'm not filing this as a bug, since I'm not extremely familiar with Java > classloader. > Thanks very much > Robert -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
