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

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project testPro: There are test failures.

[ERROR]

[ERROR] Please refer to E:\maven\testPro\target\surefire-reports for the individual test results.


解决方法:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <!--忽略测试异常 -->
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>
        </plugin>
    </plugins>
</build>

猜你喜欢

转载自jynine.iteye.com/blog/2098651