有人可以帮助我吗?我尝试启动项目https://github.com/allure-examples/allure-testng-example。我执行命令mvn clean,mvn test和after" mvn site"并得到错误:
Please refer to D:\temp\allure-testng-example\target\surefire-reports for the individual test results.
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) @ allure-testng-example ---
[INFO] configuring report plugin ru.yandex.qatools.allure:allure-maven-plugin:2.2
сен 07, 2016 5:05:11 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: ru.yandex.qatools.allure.report.AllureReportMojo
com.google.inject.ProvisionException: Guice provision errors:
1) No implementation for org.eclipse.aether.RepositorySystem was bound.
while locating ru.yandex.qatools.allure.report.AllureReportMojo
1 error
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:974)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
....
答案 0 :(得分:0)
使用Allure Commandline生成并打开报告
答案 1 :(得分:0)
解决。
感谢https://github.com/allure-framework/allure-core/issues/577这个问题在IntelliJ IDEA中,它使用捆绑的maven作为默认值。
为了正确的工作,你应该使用最新的maven版本。