我的 pom.xml 中没有 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]
它是从哪里来的?
最佳答案
super pom对于一个项目,包括 surefire 插件。如果你运行 mvn help:effective-pom
它会显示你在项目中调用 maven 时有效使用的 pom,包括你从父 pom 文件继承的所有内容,你会看到它包含 surefire 插件。
关于java - 我的 pom 中没有 surefire 插件 - 它如何显示 surefire 输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17438464/