On 7/30/2023 4:00 PM, Delany wrote:
What happens if you add this to the pluginManagement/plugin section?

<inherited>false</inherited>

Delany


Delany, I think you are referring to the `<inherited>` tag for build plugins documented here: https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_.3Cinherited.3E_Tag_In_Build_Plugins

Thanks for pointing out this option. It's good to know this exists.

But wouldn't that prevent the entire configuration from being inherited? Look at the [source code of the POM](https://github.com/globalmentor/globalmentor-root/blob/main/pom.xml) I linked to. It has this configuration:

```
<configuration>
  <serverId>ossrh</serverId>
  <nexusUrl>https://${nexus.host}/</nexusUrl>
  <autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
```

If I don't inherit the configuration, then I have to duplicate that boilerplate int he child POMs. I _want_ to inherit the configuration. I just don't want it to be enabled by default. That is two very different things.

Garret


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to