maven 无法加载模块:Favorites无法加载模块:Favorites

kmbjn2e3  于 2024-01-06  发布在  Maven
关注(0)|答案(2)|浏览(111)

有人可以帮助我.我试图启动项目https://github.com/allure-examples/allure-testng-example .我执行命令mvn清洁,mvn测试后,比“mvn网站”,并得到错误:

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)
....

字符串

cx6n0qe3

cx6n0qe31#

解决了
多亏了https://github.com/allure-framework/allure-core/issues/577,IntelliJ IDEA中的问题是默认使用捆绑的maven。
为了正确工作,您应该使用最新的maven版本。

相关问题