Skip to content

[maven-4.0.x] Consumer POM should keep only transitive dependencies, fixes #11162 (#11163) - #11235

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-11163
Oct 9, 2025
Merged

gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-11163

Conversation

@gnodet

@gnodet gnodet commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from master to maven-4.0.x:

Questions ?

Please refer to the Backport tool documentation

…1162 (apache#11163)

Behavior:
- Keep only dependencies with transitive scopes (DependencyScope.isTransitive); null/empty treated as COMPILE
- Use MAIN_RUNTIME for dependency collection
- Drop all non-transitive scopes from consumer POM

(cherry picked from commit 129dc52)
@gnodet gnodet added bug Something isn't working backport labels Oct 9, 2025
@gnodet
gnodet merged commit fc73465 into apache:maven-4.0.x Oct 9, 2025
19 checks passed
@github-actions github-actions Bot added this to the 4.0.0 milestone Oct 9, 2025
@gnodet
gnodet deleted the backport/maven-4.0.x/pr-11163 branch October 26, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant