简体   繁体   中英

How do you keep Hudson from giving Maven the -B option for builds?

When Hudson goes to build my project, it executes Maven as follows:

Executing Maven:  -B -f /path/to/root/pom.xml clean install

This works fine on most projects. (The -B is for "batch" or "non-interactive mode", BTW).

But for this one project that uses AndroMDA (which I can't recommend for future projects, it's really a pain-in-the-butt; slows down the build by 1000% with code generation for things that could be trivially done with inheritance and annotation-based config).

For some reason unbeknown to me, when Maven is given the -B flag the generated classes are no put on the classpath causing compilation errors for references to the generated classes. I've tested building manually with -B and without it and the result is that it builds fine without -B (outside of Hudson) and it doesn't build with -B (again, outside of Hudson).

Using Hudson version 1.369 and an external Maven 2.2.1 install.

Any advice greatly appreciated!!!

PS Hudson is AWESOME!!!!

最简单的版本是拥有一个自由风格的项目,并自己调用maven。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM