Passing the Maven Debug Flag from Hudson

喜夏-厌秋 提交于 2019-12-05 03:08:17

That's what it says in the help text.

Specifies the goals to execute, such as "clean install" or "deploy". This field can also accept any other command line options to Maven, such as "-e" or "-Dmaven.test.skip=true".

I would have put it there as well.

The maven help gives me the following two options:

 -X,--debug                    Produce execution debug output
 -e,--errors                   Produce execution error messages

May be you can try the --debug or the -e swtich

In Jenkins, and I assume this is true for Hudson as well, command line arguments can be passed to Maven in the "goals" setting. I was able to pass the -X parameter by adding it to the beginning of the "goals".

-X package install

Jenkins apparently blindly appends this setting to the end of the mvn command-line.

I have exactly the same problem with Hudson 1.398 (Maven 2.0.10, jdk 1.6.0_07): the build fails during the parsing of the pom files. It works locally and when launched manually from the Hudson workspace.

That build needs an environment variable to be set (for the path of a module), but the environment variable doesn't seem to be propagated from Hudson to Maven. So, like you, I have also tried to get more details from Maven with the -X option, but it also doesn't seem to be propagated.

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