在 Jenkins/Hudson 中使用 Ivy 插件和 Artifactory 插件

发布于 2024-10-27 00:38:25 字数 1462 浏览 2 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一枫情书 2024-11-03 00:38:25

我通过将 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文