[ 
https://issues.apache.org/jira/browse/MNG-7891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767806#comment-17767806
 ] 

ASF GitHub Bot commented on MNG-7891:
-------------------------------------

laeubi commented on PR #1252:
URL: https://github.com/apache/maven/pull/1252#issuecomment-1730760498

   > With a remark: personally am really tired to use DOM/Xpp3Dom as "config"
   
   It is `PlexusConfiguration` here ;-)
   
   > we need something smarter
   
   Don't know what smart you have in mind, but of course one could think about 
mapping this to an object annotated similar to what mojo uses (just the 
configuration part), but last time I tried something similar it was 
surprisingly hard (e.g. when it comes to interpolation/default values).
   
   At laest this is much better than having no configuration at al or invent 
something that is completely extension specific (like custom properties files).




> 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
>            Priority: Major
>
> 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