The Maven install command was executed on a MAVEN project today, and the error message is as follows:
[INFO]------------------------------------------------------------------------[INFO] BUILD Failure[info]------------------------------------------------------------------------[INFO] Total time:3.167S[info] finished at:2018- to-27t23: One: -+ ,:xx[INFO]------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven -surefire-plugin:2.12. 4: Test (default-test) on Project e3-manager- service:there is test failures. [ERROR] [ERROR] Refer to E:\develop\eclipse-workspache\exclusiveworkspache\e3-manager\e3-manager-service\target\surefire-reports forThe individual test results. [ERROR]--[Help1][error] [ERROR] to see the full stack trace of the errors, re-run Maven with The-eSwitch. [ERROR] Re-run MavenusingThe-xSwitchTo enable full debug logging. [ERROR] [ERROR] For more information on the errors and possible solutions, please read the following articles:[error] [ Help1] http://cwiki.apache.org/confluence/display/maven/mojofailureexception
There are two ways to solve these problems:
1 Skip test when installing MAVEN project
Clean install-dskiptests
This will enable the installation to be successful:
2 Writing a pom.xml file to a skipped test
<plugin> <groupId>Org.apache.maven.plugins</groupId> <Artifactid>Maven-surefire-plugin</Artifactid> <version>2.4.2</version> <Configuration> <skiptests>True</skiptests> </Configuration> </plugin>
Maven install times wrong Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)