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

Support configuration in extensions.xml / <extension> elements

    XMLWordPrintableJSON

Details

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

    Description

      Currently one can not configure extensions as only mojos are configurable.

      It would be great to have a basic configuration support for both in extension.xml as well as in pom>extension elements.

      The Idea would be for extensions.xml to only have very limited support:

      1. Only the extension itself can be configured, no inheritance or similar complex stuff
      2. Only basic interpolation: e.g. user-properties and env-variable

      for pom>extension elements one might want to allow everything that is allowed for build>plugins

      To aquire such configuration I would like it to be injectable into a component like this:

      @Inject
      @Named("extension:my.group.id:my.extension.id")
      private PlexusConfiguration config;
      

      for the second case this should be call-sensitive in respect to the current active session project.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            laeubi Christoph Läubrich
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: