码迷,mamicode.com
首页 > Web开发 > 详细

hudson 使用节点打包出现ClassNotFoundException: org.jvnet.hudson.maven3.agent.Maven3Main 错误

时间:2016-07-15 19:13:49      阅读:622      评论:0      收藏:0      [点我收藏+]

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!