在 Jenkins/Hudson 中使用 Ivy 插件和 Artifactory 插件
我正在尝试使用 Ivy 插件 (http://wiki.jenkins-ci. org/display/JENKINS/Ivy+Plugin)和 Artifactory 插件 ( http://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin)。
我遇到以下异常:
java.lang.NoClassDefFoundError: org/apache/ivy/core/IvyContext
at org.jfrog.build.extractor.listener.ArtifactoryBuildListener.buildStarted(ArtifactoryBuildListener.java:48)
at org.apache.tools.ant.Project.fireBuildStarted(Project.java:2077)
at org.apache.tools.ant.Main.runBuild(Main.java:746)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: org.apache.ivy.core.IvyContext
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 6 more
根据此错误报告,https://issues.jfrog。 org/jira/browse/HAP-65,
该插件有意依赖于外部ivy配置设置
但是,我无处可找到如何进行此外部配置。任何帮助将不胜感激。
I am trying to use the Ivy plugin (http://wiki.jenkins-ci.org/display/JENKINS/Ivy+Plugin) and the Artifactory plugin (http://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin).
I am gettign the following exception:
java.lang.NoClassDefFoundError: org/apache/ivy/core/IvyContext
at org.jfrog.build.extractor.listener.ArtifactoryBuildListener.buildStarted(ArtifactoryBuildListener.java:48)
at org.apache.tools.ant.Project.fireBuildStarted(Project.java:2077)
at org.apache.tools.ant.Main.runBuild(Main.java:746)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: org.apache.ivy.core.IvyContext
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 6 more
According to this bug report, https://issues.jfrog.org/jira/browse/HAP-65,
The plugin intentionally relies on an external ivy configuration setup
But, nowhere can I find out how to do this external configuration. Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将 ivy jar (ivy-2.2.0.jar) 复制到 Artifactory 插件的 lib 目录 (.jenkins/plugins/artifactory/WEB-INF/lib) 解决了这个问题。但我确信有更好的方法!
I solved the problem by copying the ivy jar (ivy-2.2.0.jar) into the lib dir for the Artifactory plugin (.jenkins/plugins/artifactory/WEB-INF/lib). But I am sure there is a better way!