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のおかげで 、バンドルされた Maven をデフォルトとして使用する IntelliJ IDEA に問題がありました。

正しく機能させるには、最新の Maven バージョンを使用する必要があります。

于 2016-09-08T10:28:39.423 に答える