Maven "check" profile states successful build when there are test-failures

Description

On some environments, test-failures don't cause the mvn -Pcheck clean install to fail, the build just continues:

Running org.activiti.standalone.testing.ActivitiRuleJunit4Test
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.18 sec <<< FAILURE!
Running org.activiti.standalone.testing.ActivitiTestCaseTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE!

Results :

Tests in error:
ruleUsageExample(org.activiti.standalone.testing.ActivitiRuleJunit4Test)
testSimpleProcess(org.activiti.standalone.testing.ActivitiTestCaseTest)

Tests run: 491, Failures: 0, Errors: 2, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: /activiti/workspace/activiti/modules/activiti-engine/target/activiti-engine-5.2-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [bundle:cleanVersions {execution: default}]
....

[INFO] [install:install {execution: default-install}]
[INFO] Installing /activiti/workspace/activiti/modules/activiti-cxf/target/activiti-cxf-5.2-SNAPSHOT.jar to /Users/fheremans/.m2/repository/org/activiti/activiti-cxf/5.2-SNAPSHOT/activiti-cxf-5.2-SNAPSHOT.jar
[INFO] Installing /activiti/workspace/activiti/modules/activiti-cxf/target/activiti-cxf-5.2-SNAPSHOT-sources.jar to /Users/fheremans/.m2/repository/org/activiti/activiti-cxf/5.2-SNAPSHOT/activiti-cxf-5.2-SNAPSHOT-sources.jar
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Activiti .............................................. SUCCESS [1.269s]
[INFO] Activiti - Engine ..................................... SUCCESS [1:19.129s]
[INFO] Activiti - Spring ..................................... SUCCESS [14.352s]
[INFO] Activiti - Cycle ...................................... SUCCESS [12.797s]
[INFO] Activiti - Rest ....................................... SUCCESS [5.328s]
[INFO] Activiti - Cxf ........................................ SUCCESS [2.328s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 56 seconds
[INFO] Finished at: Tue Jan 25 10:10:15 CET 2011
[INFO] Final Memory: 85M/554M
[INFO] ------------------------------------------------------------------------

Environment

Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac"

Assignee

Joram Barrez

Reporter

Frederik Heremans

Labels

None

Fix versions

Priority

Critical
Configure