Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6172

Precedence of command-line system property options has changed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 3.5.0-alpha-1, 3.5.0
    • Command Line
    • None

    Description

      The current state of master (what will eventually become 3.5.0) has reversed the precedence of command-line system property options compared to previous releases of Maven.

      For example, running this command with a basic project:

      mvn -Dmaven.repo.local=/tmp/aaa -Dmaven.repo.local=/tmp/zzz validate
      

      using current master will cause /tmp/aaa to be created (first-one-wins), whereas for all previous releases of Maven /tmp/zzz would have been created (last-one-wins)

      This has the potential to break CI builds which relied on the previous last-one-wins behaviour.

      This was introduced by the fix for MNG-6078 https://github.com/apache/maven/commit/ca4303031357a7decaee8de770b71fb2c2fedd28 - by reversing the whole array the precedence between options on the same command line has been reversed, not just the relationship between .mvn/maven.config options and command line options.

      Attachments

        Activity

          People

            stephenc Stephen Connolly
            mcculls Stuart McCulloch
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: