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

来源:互联网 发布:蓝牙音频发射器 知乎 编辑:程序博客网 时间:2024/05/22 02:15
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project TestWidget: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3'. required class is missing: org/apache/maven/surefire/booter/SurefireExecutionException
解决办法:
在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>
0 0
原创粉丝点击