gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 21:00:49 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com