Hi,

I've added config for the surefire plugin below,  to add a system property 
needed for testing.
If i run the tests (mvn test) all the tests are run twice, 
The first time it doesn't pass the system property and the second time it 
does.
How can I stop it running all the tests the first time ?

thanks in advance,
Patrick 

<plugin>
      <groupId>org.apache.maven.plugins</groupId> 
          <artifactId>maven-surefire-plugin</artifactId> 
          <version>2.0</version> 
                 <executions>
                <execution>
                <id>test-classes</id>
                              <phase>test</phase>
                <configuration> 
                        <systemProperties>
                                <property>
 <name>net.sourceforge.cobertura.datafile</name>
                                        <value>C:\cobertura.ser</value>    
 
                                   </property>
                         </systemProperties> 
                       </configuration>
                        <goals>
                                <goal>test</goal>
                        </goals>
                        </execution> 
        </executions>
</plugin> 


Reply via email to