[BUILD-1075] Surefire - deprecated usage of "systemProperties" configuration property Created: 17/May/23 Updated: 23/May/23 Resolved: 23/May/23 |
|
| Status: | Closed |
| Project: | Build |
| Component/s: | Poms |
| Affects Version/s: | None |
| Fix Version/s: | POMs 54 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Bertrand Renuart | Assignee: | Bertrand Renuart |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Work Started: |
| Description |
|
The <systemProperties> configuration property is deprecated and replaced by <systemPropertyVariables> instead. Surefire plugin is currently complaining with the following warning during the build: [WARNING] Parameter 'systemProperties' is deprecated: Use systemPropertyVariables instead.
Also, using the systemPropertyVariables form allows project to easily add new values or override those inherited from the parent pom. For example, one could easily write the following to override the java.awt.headless property and add an extra one without loosing the defaults inherited from the parent pom:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<!-- Override what is inherited from parent -->
<java.awt.headless>false</java.awt.headless>
<!-- Additional property -->
<foo>bar</foo>
</systemPropertyVariables>
</configuration>
</plugin>
More information: https://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html |