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

报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project demo01: There are test failures.

解决思路,新手在编译运行项目的时候经常会遇到这类型的报错,这是因为在编译过程中它吧测试test也一并执行编译了一次,这里我们是不需要我们调试的方法去进行编译的,在IDEA中如下操作,当test有中划线时我们在重新clean—>install就阔以解决了

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test_第1张图片

你可能感兴趣的:(java,maven,apache,intellij-idea)