[
https://jira.codehaus.org/browse/SUREFIRE-982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Gudian reassigned SUREFIRE-982:
---------------------------------------
Assignee: Andreas Gudian
> systemPropertyVariables does not work, but the deprecated systemProperties
> works correctly
> ------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-982
> URL: https://jira.codehaus.org/browse/SUREFIRE-982
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.14
> Environment: windows 7, java 7
> Reporter: Ed Ost
> Assignee: Andreas Gudian
>
> I use the attached snippet below. I believe the syntax is correct. When I
> use the systemPropertyVariables syntax the properties are not set. When I
> use the older and now deprecated approach they are set correctly. The exaxt
> same POM and code. The only difference is which snippet I uncomment.
> <!-- this "preferred" method does not work -->
> <!-- plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <systemPropertyVariables>
> <container>${container}</container>
> <propertiesPath>${propertiesPath}</propertiesPath>
>
> <app-properties.runtime.url>${app-properties.runtime.url}</app-properties.runtime.url>
>
> <container-properties.runtime.url>${container-properties.runtime.url}</container-properties.runtime.url>
> <myPropertyVar>${myPropertyVar}</myPropertyVar>
> </systemPropertyVariables>
> </configuration>
> </plugin -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <systemProperties>
> <property>
> <name>container</name>
> <value>${container}</value>
> </property>
> <property>
> <name>propertiesPath</name>
> <value>${propertiesPath}</value>
> </property>
> <property>
> <name>app-properties.runtime.url</name>
> <value>${app-properties.runtime.url}</value>
> </property>
> <property>
> <name>container-properties.runtime.url</name>
> <value>${container-properties.runtime.url}</value>
> </property>
> <property>
> <name>container-properties.runtime.url</name>
> <value>${container-properties.runtime.url}</value>
> </property>
> </systemProperties>
> </configuration>
> </plugin>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira