2016-06-29 19 views
0

Ich versuche zu erstellen Bericht mit Allure laden, aber es funktioniert nicht korrekt:fehlgeschlagen für ru.yandex.qatools.allure erhalten berichten: Reiz-Maven-Plugin: Kann die mojo ‚Aggregat‘

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project converter-testing: failed to get report for ru.yandex.qatools.allure:allure-maven-plugin: Unable to load the mojo 'aggregate' (or one of its required components) from the plugin 'ru.yandex.qatools.allure:allure-maven-plugin:2.5': com.google.inject.ProvisionException: Guice provision errors: 
[ERROR] 
[ERROR] 1) No implementation for org.eclipse.aether.RepositorySystem was bound. 
[ERROR] while locating ru.yandex.qatools.allure.report.AlureAggregateMojo 
[ERROR] at ClassRealm[plugin>ru.yandex.qatools.allure:allure-maven-plugin:2.5, parent: ClassRealm[plugin>org.apache.maven.plugins:maven-site-plugin:3.0, parent: [email protected]]] 
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=ru.yandex.qatools.allure:allure-maven-plugin:2.5:aggregate) 
[ERROR] 
[ERROR] 1 error 
[ERROR] role: org.apache.maven.plugin.Mojo 
[ERROR] roleHint: ru.yandex.qatools.allure:allure-maven-plugin:2.5:aggregate 

Verwenden Sie allure.version - 2.5, aspectj.version - 1.7.4, mit junit, org.seleniumhq.selenium. Mein pom.xml:

<dependencies> 
...  
    <dependency> 
     <groupId>ru.yandex.qatools.allure</groupId> 
     <artifactId>allure-junit-adaptor</artifactId> 
     <version>1.5.0.RC2</version> 
    </dependency> 
</dependencies> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-surefire-plugin</artifactId> 
      <version>2.14</version> 
      <configuration> 
       <argLine> 
        -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar 
       </argLine> 
       <properties> 
        <property> 
         <name>listener</name> 
         <value>ru.yandex.qatools.allure.junit.AllureRunListener</value> 
        </property> 
       </properties> 
      </configuration> 
      <dependencies> 
       <dependency> 
        <groupId>org.aspectj</groupId> 
        <artifactId>aspectjweaver</artifactId> 
        <version>${aspectj.version}</version> 
       </dependency> 
      </dependencies> 
     </plugin> 
    </plugins> 
</build> 

<reporting> 
    <excludeDefaults>true</excludeDefaults> 
    <plugins> 
     <plugin> 
      <groupId>ru.yandex.qatools.allure</groupId> 
      <artifactId>allure-maven-plugin</artifactId> 
      <version>${allure.version}</version> 
      <configuration> 
       <resultsDirectory>${project.build.directory}/converter-testing-results</resultsDirectory> 
       <reportDirectory>${project.build.directory}/converter-testing-report</reportDirectory> 
       <properties> 
        <allure.issues.tracker.pattern>https://issues.corp.twilio.com/browse/%s</allure.issues.tracker.pattern> 
       </properties> 
      </configuration> 
     </plugin> 
    </plugins> 
</reporting> 

Ich habe versucht, ältere Versionen von Abhängigkeiten/Plugins zu verwenden. Hat nicht funktioniert. Was ist los? Bitte helfen Sie

Antwort

0

1.5 ist nicht stabile Version, bitte 1.4.23 für stabile Version oder 1.4.24 für neueste. Versuchen Sie auf jeden Fall, den Allure commandline tool zu verwenden, um einen Bericht zu erstellen.