[ 
https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774907#comment-17774907
 ] 

ASF GitHub Bot commented on MNG-7772:
-------------------------------------

juulhobert opened a new pull request, #1280:
URL: https://github.com/apache/maven/pull/1280

   Jira issue: [MNG-7772](https://issues.apache.org/jira/browse/MNG-7772)
   
   Enables to register extensions through the ${user.home}/.m2 directory. An 
extension can be placed in an ext directory in the .m2 directory or by adding a 
extensions.xml file in the .m2 directory
   
    - [x] I hereby declare this contribution to be licenced under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)




> Allow to register maven core extension in .m2 directory instead of MAVEN_HOME 
> ------------------------------------------------------------------------------
>
>                 Key: MNG-7772
>                 URL: https://issues.apache.org/jira/browse/MNG-7772
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Roy Teeuwen
>            Priority: Major
>             Fix For: 4.0.x-candidate
>
>
> Currently the way to register a maven core extension is described here: 
> [https://maven.apache.org/guides/mini/guide-using-extensions.html]
> Namely the following ways are supported:
>  * Registered via extension jar in {{${maven.home}/lib/ext}}
>  * Registered via CLI argument {{mvn -Dmaven.ext.class.path=extension.jar}}
>  * Registered via [{{.mvn/extensions.xml}} 
> file|https://maven.apache.org/configure.html#mvn-extensions-xml-file]
> The downside of this is that the ${maven.home} directory is not something 
> that you should touch, seeing as with every update of maven (through for 
> example homebrew), it will replace the directory with the new version, making 
> it required to manually re-register the core extension by dragging the jar in 
> /lib/ext.
> My proposal is to also make it possible to register the extension through the 
> ${user.home}/.m2 directory. This could for example be by also allowing the 
> extensions.xml in the .m2 directory or by creating an ext directory in the 
> .m2 directory.



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

Reply via email to