Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7772

Allow to register maven core extension in .m2 directory instead of MAVEN_HOME

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-8, 4.0.0
    • None
    • None

    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

      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.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            royteeuwen Roy Teeuwen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: