Perhaps you're getting confused because you conflate 2 issues:

One is about a way to prevent general configuration like <licenses> from
being inherited. Currently the only way to do this is through profiles -
which you reject off-hand.
Allowing a project model to be composited with MNG-5102 is another possible
solution.

The other is about preventing plugin configuration from being inherited.
But again there are 2 sides: general plugin configuration and execution
configuration.
You use inherited tag to prevent the first.
The second, to disable executions by default, just configure the phase to
none. Do this if the plugin/goal lacks a <skip> parameter. And if you want
the execution to fire on the parent, set the phase to none in
pluginManagement and a valid phase in plugin, but add inherited=false.

Profiles are not perfect but they do the job, and you can literally use
them for everything, including modules (although your IDE might be unhappy
about it).
You want convenience, but not too convenient! But you can't have your cake
and eat it.
For super-secret configuration, rely on configuring the build environment
via settings.xml.

Delany

On Mon, 31 Jul 2023 at 03:05, Garret Wilson <gar...@globalmentor.com> wrote:

> On 7/30/2023 9:18 PM, Nick Stolwijk wrote:
> > I took a quick look at the Maven-Nexus-plugin and there is an option to
> > disable it (skipNexusStagingDeployMojo), so I would start there.
>
> I in fact did start there. I don't know if you happened to read this
> part of my question which started this thread:
>
>  > … let's instead find an easy way to turn it off. I don't see in the
> documentation (see link above) that there's even
>  > a "skip" property. Is there? I see that the Maven Deploy Plugin has
> such a feature.
>  > I also see that there is a `skipNexusStagingDeployMojo`, but that
> appears to be neither a configuration property
>  > nor a user property, but only a "plugin flag" which is "passed in
> from the CLI" using `-D`.
>  > Is there a "skip" configuration property for the Nexus Staging Maven
> Plugin ?
>
> So I guess I'm back to where I started.
>
> Garret
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to