Christoph Läubrich created MNG-7891:
---------------------------------------

             Summary: support configuration in extensions.xml / <extension> 
elements
                 Key: MNG-7891
                 URL: https://issues.apache.org/jira/browse/MNG-7891
             Project: Maven
          Issue Type: New Feature
            Reporter: Christoph Läubrich


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:
# Only the extension itself can be configured, no inheritance or similar 
complex stuff
# 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:


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

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




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

Reply via email to