Hi,

Try bringing the configuration tag out from the executions tag. Then, delete the executions tag... You'll have something that looks like the ff:

<plugin>
     <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.0</version>
               <configuration>
                       <systemProperties>
                               <property>
<name>net.sourceforge.cobertura.datafile</name>
<value>C:\cobertura.ser</value>
                                  </property>
                        </systemProperties>
                      </configuration>

</plugin>

hth,
Nik
Patrick O'shea wrote:

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>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to