Hello,
i'm trying to use the surefire-report plugin to generate html files based 
on the result of the execution of my JUnit tests. 
I had the following declarations in my pom.xml file:
 
                        <reporting>
                <plugins>
                <!--  Reports section configuration -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId
>
                                <artifactId>maven-surefire-report-plugin</
artifactId>
                                <configuration/>
                        </plugin>
                        </plugins>
                        </reporting>


Everything's working fine except that each time the surefire-report plugin 
is invoked by maven, it sounds like it just forces the execution of the 
test phase.
So, when i try to build my project using the command: mvn install site, i 
have all the phases related to the install goal executed and then the 
following output:
-----------------
Preparing surefire-report:report
[resources:resources]
...
[compiler:compile]
...
[resources:testResources]
...
[compiler:testCompile]
....
[surefire:test]
...
[surefire-report:report]
...
-------------------
compilation and test execution are invoked twice and this is a dramatic 
overhead on the building time of my project.
Is there anything that can be done to have the surefire-report plugin just 
doing its job (wich is get the xml from target/surefire-report/ and 
generate html in target/site according to the documentation) and not 
forcing compilation and tests execution ?

Regards,
Pascal

Reply via email to