Failed to generate Allure reports using the allure-maven plugin

I cannot generate Allure test html reports using the allure-maven plugin. I use the same version of the testNG adapter and the allure maven plugin (1.4.0.RC8). But I can generate allure html reports using the Allure CLI. My pom.xml excluding dependencies,

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.14</version>
        <configuration>
            <testFailureIgnore>false</testFailureIgnore>
            <argLine>
       -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar 

            </argLine>
        </configuration>
        <dependencies>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjweaver</artifactId>
                <version>1.8.1</version>
            </dependency>

        </dependencies>

</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
    <plugin>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-maven-plugin</artifactId>
        <version>1.4.0.RC8</version>
       <configuration>
            <outputDirectory>${basedir}/target/allure-reports/</outputDirectory>
            <allureResultsDirectory>${basedir}/target/allure-results</allureResultsDirectory>
        </configuration>
    </plugin>
</plugins>
</reporting>
+4
source share
2 answers

Add the allure.version property to your pom.xml

See https://github.com/allure-framework/allure-core/wiki/Allure-Maven-Plugin

+2
source

POM, , .

https://github.com/sarkershantonu/Automation-Getting-Started/blob/master/AllureJunit/pom.xml

, .. = > mvn clean test

= > mvn-

, CI, , allure , , Jetter- (. POM)

jettey: mvn jetty: run

0

All Articles