[英]Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test testng meaven
please help for the following error:请帮助解决以下错误:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
Remove the quotation marks from your property definitions:从您的属性定义中删除引号:
mvn clean install -Dtest=com.qa.dontknow.test -Denv=qa
See surefire:test <test>
:见surefire:test
<test>
:
[...] so you can just type -Dtest=MyTest to run a single test called "foo/MyTest.java".
[...] 因此您只需键入 -Dtest=MyTest 即可运行名为“foo/MyTest.java”的单个测试。 [...]
[...]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.