对Pom文件进行配置(亲自尝试,已成功解决)
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <!--这个版本根据自己--> <configuration> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build>