This should be a nice feature to have, this way a configuration of a
complex object could still be done using properties like:

-Dmaven.toolchain.toolchains.jdk.version="11"

Sisu should definitely add support to this.

Thinking out loud, it would be really nice if Maven supports something
like MicroProfile
Config <https://github.com/eclipse/microprofile-config/> (eg.
smallrye-config <https://github.com/smallrye/smallrye-config/>), which
would also allow more types of configuration like environment variables:
MAVEN_TOOLCHAIN_TOOLCHAINS_JDK_VERSION=17

Regards,

On Wed, Nov 29, 2023 at 8:48 AM Hervé Boutemy <herve.bout...@free.fr> wrote:

> thank you Konrad
> I feared that
> IIUC, I'll have to add a parameter for CLI use that will parse a specific
> format: I'll try and share, so we can evaluate options
>
> Regards,
>
> Hervé
>
> Le vendredi 17 novembre 2023, 10:55:55 CET Konrad Windszus a écrit :
> > Hi,
> > Only the value classes listed in
> >
> https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping
> > _Value_Objects support conversion from string. There is nothing built in
> for
> > complex classes containing multiple values of different types.
> >
> > Konrad
> >
> > > On 17. Nov 2023, at 08:51, Hervé Boutemy <herve.bout...@free.fr>
> wrote:
> > >
> > > my use case: I want sometimes to execute maven-toolchain-plugin or
> animal-
> > > sniffer-maven-plugin on CLI without updating pom.xml
> > >
> > > the only issue I'm facing is how to write the -D properties to
> populate a
> > > few fields from Objects required in plugin configuration:
> > >
> > > - signature groupId/artifactId/version for Animal Sniffer equivalent to
> > > pom.xml's configuration
> > >
> https://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/usage.
> > > html
> > >
> > > - even simpler for toolchain: just one toolchains.jdk.version value
> like
> > > https://maven.apache.org/plugins/maven-toolchains-plugin/toolchains/
> > > jdk.html#sample-plugin-configuration
> > >
> > > Is there some Sisu magic for that, or do we need to add a specific
> extra-
> > > handling of this use case at goal level?
> > >
> > > Regards,
> > >
> > > Hervé
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: dev-h...@maven.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

Reply via email to