【Maven】maven项目 mvn clean install 或 build,报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

 

maven项目执行编译或构建命令 ,mvn clean install  或  mvn build

报错: 

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

 

报错如下:

【Maven】maven项目 mvn clean install 或 build,报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test_第1张图片

 

 

 

解决方法:

添加:

       <plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-surefire-pluginartifactId>
                <version>2.12.4version>
                <configuration>
                    <skipTests>trueskipTests>
                configuration>
            plugin>

 

在maven的pom.xml中

【Maven】maven项目 mvn clean install 或 build,报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test_第2张图片

 

 

你可能感兴趣的:(【Maven】maven项目 mvn clean install 或 build,报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test)