标签:
java.lang.NoClassDefFoundError: org/jvnet/hudson/maven3/agent/Maven3Main Caused by: java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.agent.Maven3Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: org.jvnet.hudson.maven3.agent.Maven3Main. Program will exit. ERROR: Failed to launch Maven. Exit code = 1
错误如上,把节点断开重连可以暂时解决这个问题,如需完全解决需要保证master机器和slave机器上的jdk版本一致。
详见 http://stackoverflow.com/questions/11556404/jenkins-build-error-java-lang-classnotfoundexception-hudson-remoting-launcher
hudson 使用节点打包出现ClassNotFoundException: org.jvnet.hudson.maven3.agent.Maven3Main 错误
标签:
原文地址:http://www.cnblogs.com/demonrain/p/5674156.html