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





Reply via email to