Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2258

Wrongly complains about system property overwritten by user property when using placeholder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.0
    • None
    • Maven Surefire Plugin
    • None

    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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            famod Falko Modler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: