You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matt Benson <mb...@apache.org> on 2021/09/01 00:58:11 UTC

Re: Maven enforcer plugin regarding child module's groupId

At that rate, they can also disable the execution of said enforcer rule.

Matt

On Tue, Aug 31, 2021, 10:31 AM David Hoffer <dh...@gmail.com> wrote:

> They can delete/change/not do that.   I'd like to put the rule in a parent
> POM that enforces in a way that can't easily be removed.
>
> -Dave
>
> On Tue, Aug 31, 2021 at 8:41 AM Delany <de...@gmail.com> wrote:
>
> > Instead of policing deviations with a rule, why not make this possible at
> > the outset?
> >
> > <groupId>${project.parent.groupId}.${project.parent.artifactId}</groupId>
> >
> > Delany
> >
> >
> > On Tue, 31 Aug 2021 at 16:29, David Hoffer <dh...@gmail.com> wrote:
> >
> > > I'd love to see that added to the included rules in the enforcer
> plugin.
> > >
> > > -Dave
> > >
> > > On Tue, Aug 31, 2021 at 6:53 AM Matt Benson <mb...@apache.org>
> wrote:
> > >
> > > > On Tue, Aug 31, 2021, 3:28 AM Delany <de...@gmail.com>
> > wrote:
> > > >
> > > > > Good question. There seems no way to do this dynamically in Maven
> 3.x
> > > > > Delany
> > > > >
> > > > > On Mon, 30 Aug 2021 at 20:45, David Hoffer <dh...@gmail.com>
> > wrote:
> > > > >
> > > > > > How to enforce that child modules append to the parent groupId
> per
> > > the
> > > > > > Maven
> > > > > > Guide to Naming Conventions
> > > > > > <
> http://maven.apache.org/guides/mini/guide-naming-conventions.html
> > >
> > > ?
> > > > > >
> > > > >
> > > >
> > > > It would seem that writing a custom enforcer rule to do this would be
> > > > trivial.
> > > >
> > > > Matt
> > > >
> > > >
> > > > > -Dave
> > > > > >
> > > > >
> > > >
> > >
> >
>