You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2021/09/01 05:46:26 UTC

Re: Maven Extension Configuration

Sounds reasonable, probably like mojo, with properties override so maybe
@Param support too or so.

Le mar. 31 août 2021 à 23:21, Falko Modler <f....@gmx.net> a écrit :

> Hi Robert,
>
> this is basically https://issues.apache.org/jira/browse/MNG-5897, no?
>
> I left a few thouhts there a while ago.
>
> Cheers,
>
> Falko
>
> Am 31.08.2021 um 22:50 schrieb Robert Scholte:
> > Hi,
> >
> > I see quite some Maven extensions that rely on configuration.
> > There's no convention for this, so they all pick their own format and
> > location.
> > Looking at the build-cache it seems there's again configuration required.
> >
> > I think with Maven 4 we should make it possible to add a
> > configuration-block to an extension, similar to plugins.
> > The difficult part is how to make Components (@Named/@Inject) get
> > access to this configuration.
> > I don't think we can pass if with some method of an API.
> > For that reason probably the Configuration itself should be a
> > Component too and Maven (with Sisu) is responsible for mapping and
> > injecting it.
> > Important benefit is that we'll have type-safe configuration.
> >
> > I hope others like this idea as well.
> > Is it worth investigating or do we already see blockers?
> >
> > In case of enough positive responses I'll prepare a wiki page for the
> > details.
> >
> > thanks,
> > Robert
> >
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>