apache / apache/maven-war-plugin
[MWAR-220] dependencyManagement && overlay + transitive dependency = multiple versions of same dependency in WEB-INF/lib
- Dominant language
- Java
- Stars
- 50
- Forks
- 97
- Avg merge
- 16h 49m
- Merged PRs (30d)
- 3
Description
**[jieryn](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jieryn)** opened **[MWAR-220](https://issues.apache.org/jira/browse/MWAR-220?redirect=false)** and commented
With dependencyManagement section defined I get multiple versions of spring libraries in target/cas-*/WEB-INF/lib after mvn package. If I remove the dependencyManagement section then only one version of the spring libraries are found.
There seems to be a problem with m-war-p and overlays and dependencyManagement not using the maven GAV resolver in a proper way.. I attached a simple pom which exhibits the problem, just run mvn package to verify.
---
**Attachments:**
- [pom.xml](https://issues.apache.org/jira/secure/attachment/12720634/pom.xml) (_5.99 kB_)
3 votes, 6 watchers
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the attached pom.xml and run mvn package to reproduce the duplicate Spring libraries in target/cas-*/WEB-INF/lib. Trace dependencyManagement and overlay handling in the Maven WAR Plugin, then verify that the packaged WEB-INF/lib contains only the expected dependency version.
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
- Mostly clear
- Newbie friendliness
- 35/100