Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:xxxx(default-test) on project xxxx: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Unable to load the mojo 'xxxx' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.12.4'.
A
解决办法:
在pom.xml文件中,追加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
解决办法:
在pom.xml文件中,追加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
本文介绍了一个关于Maven Surefire插件的问题及其解决方案。问题表现为无法加载插件中的Mojo,导致测试失败。解决方法是在pom.xml文件中配置Surefire插件并设置跳过测试。
4541

被折叠的 条评论
为什么被折叠?



