mavenreportsurefire

How to get the icons for the resulted maven-surefire-report-plugin


I'm using maven-surefire-report-plugin in order to generate the unit tests report. This is working fine however the report contains links to images which are not presented. How can I make maven copy the icons required for the report? Should I use skin? I tried it without success. Here is the maven-surefire-report-plugin definition:

 <reporting>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>2.16</version>
            <configuration>
                <showSuccess>true</showSuccess>
            </configuration>
        </plugin>

    </plugins>
</reporting>

I tried to add skin plugin but it didn't affect the report:

 <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-site-plugin</artifactId>
       <dependencies>
           <dependency>
               <groupId>org.apache.maven.skins</groupId>
               <artifactId>maven-application-skin</artifactId>
               <version>1.0</version>
           </dependency>
       </dependencies>
 </plugin>

What is missing to present the report with the images?


Solution

  • The question is probably too old, but I had the same problem and I found this answer. The command mvn site -DgenerateReports=false generates only css and images for surefire-report.html and works fine.