将Jenkins升级到1.505后,Maven插件失败 [英] Maven plugin failed after upgrading Jenkins to 1.505

查看:151
本文介绍了将Jenkins升级到1.505后,Maven插件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将我的Jenkins服务器升级到1.505,但是意外地使用Maven插件进行构建无法正常工作,并且在Jenkins日志中引发了异常

I have upgraded my Jenkins server to 1.505 but unexpectedly building with Maven plugin is not working and it throws an exception in the Jenkins logs

Error injecting constructor, java.lang.NoClassDefFoundError: hudson/ivy/AntIvyBuildWrapper

,经过一个小时的搜索,我发现Maven插件家伙升级了他们的代码库,并且由于可选"依赖项而失败,因此我添加了可选插件",但在Jenkins日志中,它无声无息地失败了

and after an hour googling this issue I found that Maven plugin guys upgrade their code base and it failed on an "optional" dependency, so I added the "optional plugin" but still it fails silently without any exception in the Jenkins logs.

控制台日志上显示的错误是ERROR: Couldn't find Maven executable.

the error appears on the console log is ERROR: Couldn't find Maven executable.

任何提示吗?!

推荐答案

新的maven插件为我拥有的Jobs添加了一个新选项(在构建"部分->调用Maven 3下,有一个名为Maven version的新字段).

The new maven plugin adds a new option to the Jobs I have (under the build section -> Invoke Maven 3 there is a new field called Maven version).

因此,我们需要做的是打开每个作业配置页面,然后单击保存"按钮以保存默认值,这样就可以解决问题.

So what we need to do is open each job configuration page and hit the save button in order to save the default value and it will solve the problem.

这篇关于将Jenkins升级到1.505后,Maven插件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆