Let me answer that with another question. How often does a project include
a core component/module with a bunch of other components that depend on it?
I would guess quite often.
So why cant I have a directory structure that looks like:

webserver
├── feature-a
├── feature-b
├── skin-1
└── skin-2

Instead I have to come up with an aggregation project to ties them all
together

aggregation-webserver
├── actual-webserver
├── feature-a
├── feature-b
├── skin-1
└── skin-2

This aggregation project is just extra glue that must be built, deployed,
downloaded.

What about the declaration of the webserver dependency. In the first case
it could be an implicit effect of having <parent> type jar, but in the
second I have to write it out in the aggregation-webserver.

I just don't see the point. Why have 6 projects when 5 will do?

I do see the point of aggregation poms if it was 5 unrelated components,
but there is an obvious hierarchy here.
I also see the potential pitfall of plugin configuration meant only for the
webserver being inherited by its children. But if I make customizations
inappropriate for the children then I'll abstract them into an aggregation
pom when the need arises. Most plugin configuration I have applies to all
my modules.

Kind regards,
Delany


On Fri, 4 Nov 2022 at 16:08, Thai Le <lnthai2...@gmail.com> wrote:

> I'm curious about the usecase of this.
>
> Thai Le
>
> On Fri, Nov 4, 2022, 09:30 Delany <delany.middle...@gmail.com> wrote:
>
> > Hi. Why can I only have pom aggregator projects and not jar aggregator
> > projects?
> > Is this still the case in Maven 4?
> >
> > Thanks,
> > Delany
> >
>

Reply via email to