apache / apache/maven-shade-plugin

Dependency reduced POM adds dependency inherited from parent

Open
#739 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
188
Forks
103
Avg merge
16h 39m
Merged PRs (30d)
4

Description

### Affected version

3.6.0

### Bug description

Seemingly harmless, it just overrides dep from parent (with same), but this triggers something unwanted in Maven 4? And makes POM transformation fail.

Sidenote: does running shade on a POM parent (so not only packaging=pom, that use case I understand), but on POM that has submodules... does it make sense?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the dependency-reduced POM behavior described for Maven Shade Plugin 3.6.0, including the Maven 4 case and a POM parent with submodules. Inspect the dependency-reduced POM transformation; done means the inherited dependency is not unnecessarily added and the transformation succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.