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

Guillaume Nodet updated MNG-7914:
---------------------------------
    Description: 
Looking at MNG-7772, this should not require any code change, but it's all 
about configuration.

I propose to load / interpolate the following files:
 * {{$\{maven.home}/conf/maven.properties}}
 * {{$\{maven.user.conf}/maven.properties}}
 * {{$\{maven.project.conf}/maven.properties}}

Those files would be used to load additional user properties for Maven.  

{code}
maven.installation.conf = ${maven.home}/conf
maven.user.conf         = ${user.home}/.m2
maven.project.conf      = ${session.rootDirectory}/.mvn

${includes} = ?"${maven.user.conf}/maven.properties", \
              ?"${maven.project.conf}/maven.properties"
{code}

Being loaded early when Maven is loaded, those files could reference 
directories to load settings, toolchains and extensions.

In various places, the maven code could be simplified and offer more 
configuration points at the same time.

  was:
Looking at MNG-7772, this should not require any code change, but it's all 
about configuration.

I propose to load / interpolate the following files:
 * {{$\{maven.home}/conf/maven.properties}}
 * {{?$\{maven.user.conf}/maven.properties}}
 * {{?$\{maven.project.conf}/maven.properties}}

Those files would be used to load additional user properties and system 
properties for Maven.  

{code}
${includes} = ?"${maven.user.conf}/maven.properties", \
              ?"${maven.project.conf}/maven.properties"
{code}

Being loaded early when Maven is loaded, those files could reference 
directories to load settings, toolchains and extensions.

In various places, the maven code could be simplified and offer more 
configuration points at the same time.


> Add a new maven.properties file
> -------------------------------
>
>                 Key: MNG-7914
>                 URL: https://issues.apache.org/jira/browse/MNG-7914
>             Project: Maven
>          Issue Type: New Feature
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 4.0.0-beta-4, 4.0.0
>
>
> Looking at MNG-7772, this should not require any code change, but it's all 
> about configuration.
> I propose to load / interpolate the following files:
>  * {{$\{maven.home}/conf/maven.properties}}
>  * {{$\{maven.user.conf}/maven.properties}}
>  * {{$\{maven.project.conf}/maven.properties}}
> Those files would be used to load additional user properties for Maven.  
> {code}
> maven.installation.conf = ${maven.home}/conf
> maven.user.conf         = ${user.home}/.m2
> maven.project.conf      = ${session.rootDirectory}/.mvn
> ${includes} = ?"${maven.user.conf}/maven.properties", \
>               ?"${maven.project.conf}/maven.properties"
> {code}
> Being loaded early when Maven is loaded, those files could reference 
> directories to load settings, toolchains and extensions.
> In various places, the maven code could be simplified and offer more 
> configuration points at the same time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to