MVN compile There is no problem. The following error is reported during MVN package:
Solution:
There are two ways to package and skip tests
First, the command line:
MVN clean package – dmaven. Test. Skip = true
Second, write POM file:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin>
Similar Posts:
- [Solved] Spring Start Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project gulimall-coupon: There are test failures. Please refer to D:\m1\0613\mall-coup
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- [Solved] SpringBoot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-res
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central
- Solve the error in Maven project packaging: error injecting constructor
- [Solved] Dynamic Web Module 3.0 requires Java 1.6 or newer
- How to Solve IDEA maven Error:Perhaps you are running on a JRE rather than a JDK
- Maven Error: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M1 [How to Solve]
- Maven no main manifest attribute when generate jar for project