You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/23 11:04:00 UTC

[jira] [Updated] (MNG-5199) Return back org.apache.maven.user-settings and org.apache.maven.global-settings properties

     [ https://issues.apache.org/jira/browse/MNG-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold updated MNG-5199:
---------------------------------------
    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:

{code}
mvn -s setting.xml test 
{code}

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:

{code}
mvn -Dorg.apache.maven.user-settings=settings.xml test
{code}

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.


  was:
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:

{code}
mvn -s setting.xml test 
{code}

Surefire has no way how 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:

{code}
mvn -Dorg.apache.maven.user-settings=settings.xml test
{code}

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.



> Return back org.apache.maven.user-settings and org.apache.maven.global-settings properties
> ------------------------------------------------------------------------------------------
>
>                 Key: MNG-5199
>                 URL: https://issues.apache.org/jira/browse/MNG-5199
>             Project: Maven
>          Issue Type: New Feature
>          Components: Settings
>    Affects Versions: 3.0.3
>            Reporter: Karel Piwko
>            Priority: Major
>
> 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:
> {code}
> mvn -s setting.xml test 
> {code}
> 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:
> {code}
> mvn -Dorg.apache.maven.user-settings=settings.xml test
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)