Maven install times wrong Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)

Source: Internet
Author: User
Tags stack trace

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.