You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/04/24 07:11:00 UTC

[jira] [Updated] (MNG-7772) Allow to register maven core extension in .m2 folder instead of MAVEN_HOME

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

Michael Osipov updated MNG-7772:
--------------------------------
    Description: 
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.

  was:
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 folder. This could for example be by also allowing the extensions.xml in the .m2 folder or by creating an ext folder in the .m2 folder.


> Allow to register maven core extension in .m2 folder 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
>
> 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)