Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.4.0
-
None
-
None
-
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /home/famod/.sdkman/candidates/maven/3.9.9
Java version: 21.0.4, vendor: BellSoft, runtime: /home/fmo/.sdkman/candidates/java/21.0.4-librca
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-119-generic", arch: "amd64", family: "unix"Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home: /home/famod/.sdkman/candidates/maven/3.9.9 Java version: 21.0.4, vendor: BellSoft, runtime: /home/fmo/.sdkman/candidates/java/21.0.4-librca Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-119-generic", arch: "amd64", family: "unix"
Description
After SUREFIRE-1385 the plugin is complaining with:
[WARNING] System property [sha1] overwritten by user properties from Maven session
when using:
<systemProperties> <!-- pass on all "dynamic" version segments for Maven bootstrapping in @QuarkusTest --> <sha1>${sha1}</sha1> </systemProperties>
This warning looks wrong to me in this case because I'm explicitly using a placeholder, not a static value.
For context, I'm setting as project version ("CI friendly"):
<version>${revision}.${changelist}${sha1}
and in project properties:
<sha1></sha1> <!-- can be used locally as a discriminator to keep multiple clones separated, e.g. via .envrc (direnv): export MAVEN_ARGS="-Dsha1=-dev1" -->
And in direnv .envrc I have:
export MAVEN_ARGS="-Dsha1=-dev1"
(or dev2, dev3 etc., depending on the clone)