apache / apache/maven

[MNG-6741] Modules aggregation from parent does not work

Open
#8,289 3 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[ Thomas Lehmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=thomas_lehmann)** opened **[MNG-6741](https://issues.apache.org/jira/browse/MNG-6741?redirect=false)** and commented

Hi Maven Team,

for testing purpose I have a simple setup:
* three modules in parallel
* one for the "build" with a relative path to the "parent"
* one for the "parent" with the modules section having "../math" as one module
(for now without any profile)
* one for the "math" with a relative path to the "parent"
* I'm running in the root **Maven 3.6.1** with **mvn -f build clean**

My expectation:
* I would like to see "math" in the reactor build order and summary (which is not the case)

 

Of course using "\ ... \" just in the build/pom.xml works fine.

My intention was to split up modules definitions of a real project into different profiles in the parent pom being surprised that no module were suddently recognized when trying to build.

That link does describes my intention so I assumed it just work fine: https://www.smartics.eu/confluence/display/BLOG/2013/07/22/Using+Aggregate+and+Parent+POMs

I can say that it also doesn't work with 3.3.9.

Maybe I missed a certain instruction being required ... then I'm sorry and asking you ... please let me know.

Kind Regards,
Thomas

---

**Attachments:**
- [demo-maven-modules.zip](https://issues.apache.org/jira/secure/attachment/12978061/demo-maven-modules.zip) (_1.53 kB_)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.