How to troubleshoot the Spring boot project maven build error

Source: Internet
Author: User

Question 1,

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:Test (default-test) on project Motherbuyboot:there is test failures.

[ERROR] Refer to D:\web\motherbuy\target\surefire-reports for the individual test results. [ERROR] Refer to dump files (if any exist) [Date]-jvmrun[n].dump, [Date].dumpstream and [Date]-jvmrun[n].dumpstream.

F method: The JUnit version of the Pom,xml file is incorrect, or for other reasons, I will use JUnit dependency comment out, compile pass;

Question 2,

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project Motherbuyboot:compilation Failure

[ERROR] No compiler is provided in this environment. Perhaps is running on a JRE rather than a JDK?

Method: This association to the compile compiler environment problem, is not configured well; Look at the map to solve, don't forget to update maven

How to troubleshoot the Spring boot project maven build error

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.