Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on

Posted 胡金水

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on相关的知识,希望对你有一定的参考价值。

报错信息:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project demo: There are test failures.

Please refer to D:\\project\\demo\\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.

解决方案:

在maven文件, -> 中添加

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.22.2</version>
	<configuration>
		<skipTests>true</skipTests>
	</configuration>
</plugin>

以上是关于Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on的主要内容,如果未能解决你的问题,请参考以下文章

运行maven项目时出现一下问题:“ Failed to execute goal org.apache.maven.plugins“

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile

maven报错---Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-c

Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0