0

有人可以帮助我。我尝试启动项目https://github.com/allure-examples/allure-testng-example。我执行了命令 mvn clean, mvn test 并在“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)
....
4

2 回答 2

0

使用Allure 命令行生成和打开报告

于 2016-09-08T09:03:54.590 回答
0

解决了。

感谢https://github.com/allure-framework/allure-core/issues/577 ,问题在 IntelliJ IDEA 中,默认使用捆绑的 maven。

为了正确工作,您应该使用最新的 Maven 版本。

于 2016-09-08T10:28:39.423 回答