[
https://issues.apache.org/jira/browse/SUREFIRE-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15544673#comment-15544673
]
Michal Domagala commented on SUREFIRE-1288:
-------------------------------------------
Let say my integration test use surefire and needs 10 system variables. My
parent pom keeps default configuration. Let say I have 2 different environments
which needs modify 5 out of 10 variables.
If my parent pom keeps default configuration in {{systemProperties}}, I can
define correct properties per environment in file and pass to execution as
{{systemPropertiesFile}}
But If I have default configuration in {{systemPropertyVariables}}, I cannot
override them with file. I have to pass each modified variable in command line
If I have third environment which needs to modify 3 out of 10 variables, I need
to prepare different execution command
Summary:
Using {{systemProperties}} I can share common execution command ({{mvn test
-Dmy.file=abc.properties}}) and modify configuration file per environment
Using {{systemPropertyVariables}} I need different execution command per
environment
> systemProperties should not be deprecated
> ------------------------------------------
>
> Key: SUREFIRE-1288
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1288
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.19.1
> Reporter: Michal Domagala
>
> Current property precedence is: (higher number=more important)
> 1. systemProperties
> 2. systemPropertiesFile
> 3. systemPropertyVariables
> systemPropertyVariables is not replacement for systemProperties because
> meaning is different.
> For me systemProperties are more useful, because I can define default values
> in pom.xml and optionally override them in runtime by configuration file.
> systemPropertyVariables are not useful because can be overriden only by
> command line arguments. Commandline is not friendly if several properties
> must be modified
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)