首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我的pom中没有surefire插件-它如何显示surefire输出?

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

Stack Overflow用户
提问于 2013-07-03 09:46:24
回答 1查看 276关注 0票数 0

我的pom中没有surefire插件条目。但是当我使用以下命令运行时,我得到surefure插件错误:

代码语言:javascript
复制
 mvn test -Dtest=TEstClass

错误:

代码语言:javascript
复制
 [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]

它是从哪里来的?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-03 09:54:33

项目的super pom包含surefire插件。如果你运行mvn help:effective-pom,当你在项目中调用maven时,它会显示你实际使用的pom,包括你从父pom文件继承的所有东西,你会看到它包含surefire插件。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17438464

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档