[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776837#comment-17776837 ] ASF GitHub Bot commented on MNG-7772: - gnodet merged PR #1280: URL: https://github.com/apache/maven/pull/1280 > 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.0-alpha-8 > > > 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)
[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776293#comment-17776293 ] ASF GitHub Bot commented on MNG-7772: - juulhobert closed pull request #1287: [MNG-7772] Allow to register maven core extension in .m2 directory in… URL: https://github.com/apache/maven/pull/1287 > 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)
[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776292#comment-17776292 ] ASF GitHub Bot commented on MNG-7772: - juulhobert opened a new pull request, #1287: URL: https://github.com/apache/maven/pull/1287 …stead of MAVEN_HOME Following this checklist to help us incorporate your contribution quickly and easily: - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/MNG) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes. - [ ] Each commit in the pull request should have a meaningful subject line and body. - [ ] Format the pull request title like `[MNG-XXX] SUMMARY`, where you replace `MNG-XXX` and `SUMMARY` with the appropriate JIRA issue. - [ ] Also format the first line of the commit message like `[MNG-XXX] SUMMARY`. Best practice is to use the JIRA issue title in both the pull request title and in the first line of the commit message. - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically. - [ ] You have run the [Core IT][core-its] successfully. If your pull request is about ~20 lines of code you don't need to sign an [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure please ask on the developers list. To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) you have to acknowledge this by using the following check-box. - [ ] 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) - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). [core-its]: https://maven.apache.org/core-its/core-it-suite/ > 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)
[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774959#comment-17774959 ] ASF GitHub Bot commented on MNG-7772: - juulhobert commented on PR #1280: URL: https://github.com/apache/maven/pull/1280#issuecomment-1761716204 Another [PR](https://github.com/apache/maven-integration-testing/pull/311/files) has been created with an integration test > 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)
[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ 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)
[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769736#comment-17769736 ] Tamas Cservenak commented on MNG-7772: -- The reason why this was not considered is how easily makes it possible to shoot yourself in your foot. You have to be _very well aware_ what extension you (at user level?) use, how it alters your local build(s) you execute in your altered "maven home", otherwise builds may end up broken, or just non-transportable ("works for me") or just behave differently (think reproducible builds, etc). If Maven could "know" what an extension does, and forbid any extension that modifies build, and let only "harmless" (for example alternate resolver transport, etc) extensions, then I'd be 100% with this. But today, am not opposing, but just want to express my worries about this. > 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)
[jira] [Commented] (MNG-7772) Allow to register maven core extension in .m2 directory instead of MAVEN_HOME
[ https://issues.apache.org/jira/browse/MNG-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739740#comment-17739740 ] Guillaume Nodet commented on MNG-7772: -- Sounds like a good idea to me. I'll happily review such a PR. > 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 > > 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)