【问题标题】:Failed to get report for ru.yandex.qatools.allure:allure-maven-plugin: Unable to load the mojo 'report'无法获取 ru.yandex.qatools.allure:allure-maven-plugin 的报告:无法加载 mojo“报告”
【发布时间】:2016-09-07 14:12:59
【问题描述】:

谁能帮帮我。我尝试启动项目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)
....

【问题讨论】:

    标签: maven testng allure yandex


    【解决方案1】:

    使用Allure Commandline 生成并打开报告

    【讨论】:

      【解决方案2】:

      解决了。

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

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

      【讨论】:

        猜你喜欢
        • 2021-03-24
        • 1970-01-01
        • 2011-10-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-08-20
        • 1970-01-01
        相关资源
        最近更新 更多