[ 
https://jira.codehaus.org/browse/SUREFIRE-982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Gudian closed SUREFIRE-982.
-----------------------------------

    Resolution: Cannot Reproduce

Two weeks passed, no further feedback received. Closing it for now.

Ed, please reopen the issue with a sample project that reproduces the error (if 
you still feel like there is an error).
                
> 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.
> {code:xml}
> <!-- 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>
> {code}

--
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

Reply via email to