Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/384.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 我的pom中没有surefire插件-它如何显示surefire输出?_Java_Maven_Testing_Plugins_Testng - Fatal编程技术网

Java 我的pom中没有surefire插件-它如何显示surefire输出?

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

我的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]

它来自何方?

项目的应用程序包括surefire插件。如果您运行
mvn help:effective pom
,它将向您显示您在项目中调用maven时实际使用的pom,包括您从父pom文件继承的所有内容,并且您将看到它包括surefire插件。

哦,伙计。这个超级POM没有提到任何surefire插件。刚刚打开了maven 3.6.3的超级POM-它不包含maven surefire插件。但是插件存在于我的有效pom中。