Maven Multi-Module builds not honoring failsafe-maven-plugin?

Posted by Mike Cornell on Stack Overflow See other posts from Stack Overflow or by Mike Cornell
Published on 2009-09-02T15:10:40Z Indexed on 2010/03/29 0:23 UTC
Read the original article Hit count: 679

Filed under:
|
|

I recently discovered that Hudson was not the problem. In actuality it was Maven itself as the multi-module build was causing the build failure, not Hudson. I just hadn't noticed where the issue actually existed.

Leaving the original question here.


I'm using the failsafe-maven-plugin to run some integration tests. The difference between failsafe and surefire is that failsafe allows failures and does not fail the build.

On my nightly builds there are occasions that a service the integration tests use might be down. In normal builds, the failsafe plugin would let the build continue since the integration tests are allowed to fail. However, Hudson does not seem to respect this and stops the build and produces rain.

I tried to turn the failsafe tests off on nightly builds using -DskipITs. This appears to fail since I'm in a multi module build.

Any ideas on how to get Maven to respect that these tests can fail even though they're part of a specific module?

The project structure is as follows:

-parent
\-jar
\-jar (where integration tests run)
\-war
\-ear

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about failsafe