org.apache.maven.plugins
maven-surefire-plugin
true
org.jvnet.maven-antrun-extended-plugin
maven-antrun-extended-plugin
test-reports
test
run
org.apache.ant
ant-junit
1.8.4
org.apache.ant
ant-trax
1.8.0
Don't bind the AntRun plugin to the test phase, move the configuration outside the execution and call mvn antrun:run on the command line to generate the reports when wanted.
Or use the testFailureIgnore option of the test mojo and set it to true in the surefire plugin
Use maven command arguments
$mvn test -Dmaven.test.failure.ignore=true
No comments:
Post a Comment