1. Error message when maven is packaged
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project XXXX: There are test failures.
Please refer to D:\Others\XXXX\target\surefire-reports for the individual test results.
2. Solution
Add ignore test failure configuration in pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>