FYI,

i've opened a jira issue for this:

http://jira.codehaus.org/browse/SUREFIRE-311



On 3/22/07, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
Hello everyone.

consider this fairly basic configuration :

<plugins>
  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
       <configuration>
                <systemProperties>
                        <property>
                           <name>fractal.provider</name>
                           <value>org.objectweb.fractal.julia.Julia</value>
                        </property>
                        <property>
                                <name>julia.loader.gen.dir</name>
                               <value>target/test-classes/generated</value>
                        </property>
                        <property>
                            <name>julia.config</name>
                            <value>julia.cfg</value>
                      </property>
                </systemProperties>
        </configuration>
  </plugin>
</plugins>

this works as expected (properties are correctly set).

Given that i need to run tests with multiple configurations, i tried
adding <executions><execution>... elements to the plugin:

<plugins>
  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
       <executions>
       <execution>
       <configuration>
                <systemProperties>
                        <property>
                           <name>fractal.provider</name>
                           <value>org.objectweb.fractal.julia.Julia</value>
                        </property>
                        <property>
                                <name>julia.loader.gen.dir</name>
                               <value>target/test-classes/generated</value>
                        </property>
                        <property>
                            <name>julia.config</name>
                            <value>julia.cfg</value>
                      </property>
                </systemProperties>
        </configuration>
       </execution>
       </excution>
  </plugin>
</plugins>

and guess what.. ? with the second configuration properties are not
set up. I verified this with mvn -X test and those system properties
are not set (tests fail claiming those properties).

is this a known bug ?

thanks,
valerio
--
http://jroller.com/page/vschiavoni



--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

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

Reply via email to