I am using clover and I want to generate both clover and surefire reports. 
 When I execute mvn site with the following in my pom I see that all unit 
tests are executed twice.   Is there a way to prevent this from happening? 
   Am I using the plugins as intended?

Further, when I execute mvn surefire-report:report (which I thought was 
supposed to basically parse XML and create HTML reports) it causes all 
unit tests to reexecute.    Clover already is executing all the unit tests 
- I basically want the surefire-report-maven-plugin to harvest the XML in 
the clover directory.

  <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clover-plugin</artifactId>
        <configuration>
          <licenseFile>c:\dev\clover.license</licenseFile>
        </configuration>
      </plugin> 
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>surefire-report-maven-plugin</artifactId> 
        <configuration>
 
<reportsDirectory>${project.build.directory}/clover/surefire-reports</reportsDirectory>
        </configuration> 
      </plugin>
    </plugins>

Thanks,
Brian Yoffe

This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates

Reply via email to