Maven打包Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2
程序员文章站
2024-02-23 09:52:10
...
转载:https://blog.csdn.net/qq_16513911/article/details/90138290
出现的错误:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project springboot-03-web: There are test failures.
Please refer to D:\Users\lenovo\SpringBoot\springboot-03-web\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
解决办法:
①在pom.xml最下面添加配置就好了,
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!--添加配置跳过测试-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
推荐阅读
-
Maven打包Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2
-
Maven - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default
-
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on pr
-
maven package 打包报错 Failed to execute goal
-
Failed to execute goal org.apache.maven.plugins
-
Linux部署Java-Web,mvn package出现COMPILATION ERROR :Failed to execute goal org.apache.maven.plugins:mave
-
针对maven install 报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 解决方案
-
maven package 打包报错 Failed to execute goal的解决
-
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
-
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-reso