我的pom中没有surefire插件条目。但是当我使用以下命令运行时,我得到surefure插件错误:
mvn test -Dtest=TEstClass错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-
test) on project my-projection: No tests were executed! (Set -DfailIfNoTests=false to ignore
this error.) -> [Help 1]它是从哪里来的?
发布于 2013-07-03 09:54:33
项目的super pom包含surefire插件。如果你运行mvn help:effective-pom,当你在项目中调用maven时,它会显示你实际使用的pom,包括你从父pom文件继承的所有东西,你会看到它包含surefire插件。
https://stackoverflow.com/questions/17438464
复制相似问题