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

Clean up notion between user properties and system properties

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0, 4.0.0-alpha-3, 4.0.0
    • None
    • None

    Description

      For a very long time we have documented that the user can set system properties via mvn -Dfoo=bar, but actually those are user properties which are promoted to system properties and it some cases system properties cannot be modified after the JVM has been started. To properly set system properties there are basically two ways:

      • use MAVEN_OPTS environment variable
      • use .mvn/jvm.config file

      A third option in the future we could introduce, like other Java tools, a -J-Dfoo=bar option with the restriction of the the paragraph above.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: