Skip to content

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Sep 15, 2025

When a profile from the current pom defines subprojects somehow, the discovery mechanism should not kick in.

  • Treat explicit empty as disabling discovery.
  • Base decision solely on explicit subprojects/modules in the main model; ignore profiles.

Fixes #11114

- Treat explicit empty <subprojects/> as disabling discovery.
- Base decision solely on explicit subprojects/modules in the main model; ignore profiles.
- Inline the check using location tracking and remove profile scanning.
@gnodet gnodet force-pushed the fix-subproject-discovery branch from a78a11a to dbc3e8a Compare September 16, 2025 07:51
@gnodet gnodet added bug Something isn't working backport-to-4.0.x labels Sep 16, 2025
@gnodet gnodet merged commit b2690b7 into apache:master Sep 17, 2025
46 of 57 checks passed
@github-actions github-actions bot added this to the 4.1.0 milestone Sep 17, 2025
gnodet added a commit to gnodet/maven that referenced this pull request Sep 17, 2025
)

- Treat explicit empty <subprojects/> as disabling discovery.
- Base decision solely on explicit subprojects/modules in the main model; ignore profiles.
- Inline the check using location tracking and remove profile scanning.

(cherry picked from commit b2690b7)
@gnodet
Copy link
Contributor Author

gnodet commented Sep 17, 2025

💚 All backports created successfully

Status Branch Result
maven-4.0.x

Questions ?

Please refer to the Backport tool documentation

gnodet added a commit that referenced this pull request Sep 17, 2025
…11132)

- Treat explicit empty <subprojects/> as disabling discovery.
- Base decision solely on explicit subprojects/modules in the main model; ignore profiles.
- Inline the check using location tracking and remove profile scanning.

(cherry picked from commit b2690b7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-4.0.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maven 4 loads modules in project, even if they are not included into root pom

2 participants