Java 我的pom中没有surefire插件-它如何显示surefire输出?
我的pom中没有surefire插件条目。但当我使用命令运行时,我得到了surefure插件错误:Java 我的pom中没有surefire插件-它如何显示surefire输出?,java,maven,testing,plugins,testng,Java,Maven,Testing,Plugins,Testng,我的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 -Dfail
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]
它来自何方?项目的应用程序包括surefire插件。如果您运行
mvn help:effective pom
,它将向您显示您在项目中调用maven时实际使用的pom,包括您从父pom文件继承的所有内容,并且您将看到它包括surefire插件。哦,伙计。这个超级POM没有提到任何surefire插件。刚刚打开了maven 3.6.3的超级POM-它不包含maven surefire插件。但是插件存在于我的有效pom中。