Maven plugin failed after upgrading Jenkins to 1.505

半城伤御伤魂 提交于 2019-12-24 16:26:13

问题


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

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.

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

any hints ?!


回答1:


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.



来源:https://stackoverflow.com/questions/15415717/maven-plugin-failed-after-upgrading-jenkins-to-1-505

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!