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‘. A 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>