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

Return back org.apache.maven.user-settings and org.apache.maven.global-settings properties

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.3
    • Fix Version/s: None
    • Component/s: Settings
    • Labels:
      None

      Description

      According to discussion at http://maven.40175.n5.nabble.com/Maven-3-support-for-org-apache-maven-user-settings-td3261146.html, I'm sure there is a valid use case for the property:

      Imagine following:

      mvn -s setting.xml test 
      

      Surefire has no way to pass the path of the settings.xml in the spawned process. If the test in spawned process want to for example access remote repository defined in settings.xml, user has to specify settings.xml path in the test itself.

      However, for the following:

      mvn -Dorg.apache.maven.user-settings=settings.xml test
      

      This system property can be passed to surefire configuration and propagated to the Surefire spawned process later on.

      Having a system property removes duplication of the environment settings.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kapy Karel Piwko
            • Votes:
              12 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: