Skip to content

Consumer POM should keep only transitive dependencies, fixes #11162#11163

Merged
gnodet merged 3 commits intoapache:masterfrom
gnodet:gh-11162-consumer-pom-filter-scopes
Sep 30, 2025
Merged

Consumer POM should keep only transitive dependencies, fixes #11162#11163
gnodet merged 3 commits intoapache:masterfrom
gnodet:gh-11162-consumer-pom-filter-scopes

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Sep 22, 2025

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

…1162

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
@gnodet gnodet requested review from cstamas and hboutemy September 25, 2025 12:02
@gnodet gnodet added bug Something isn't working backport-to-4.0.x labels Sep 29, 2025
@gnodet gnodet merged commit 129dc52 into apache:master Sep 30, 2025
1 check passed
@github-actions github-actions bot added this to the 4.1.0 milestone Sep 30, 2025
gnodet added a commit to gnodet/maven that referenced this pull request Oct 9, 2025
…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
Copy link
Contributor Author

gnodet commented Oct 9, 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 Oct 9, 2025
…11163) (#11235)

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)
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.

2 participants