apache / apache/maven-enforcer
[MENFORCER-406] Enforcer plugin does not fail for duplicate dependency coming via transitive dependency
- Dominant language
- Java
- Stars
- 161
- Forks
- 180
- Avg merge
- 1d 20m
- Merged PRs (30d)
- 8
Description
**[Kaustav Das](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER280654)** opened **[MENFORCER-406](https://issues.apache.org/jira/browse/MENFORCER-406?redirect=false)** and commented
Enforcer plugin not able to detect this duplicate dependency coming via transitive dependency and project gets build successfully. Is there any way to define any rule to enable the same?
Defined Plugin in pom
```java
org.apache.maven.plugins maven-enforcer-plugin 3.0.0 no-duplicate-declared-dependencies enforce
```
---
**Affects:** 3.0.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported dependency graph with the Maven Enforcer Plugin 3.0.0 and the shown banDuplicatePomDependencyVersions rule in a pom file. Check whether the duplicate dependency arrives through a transitive dependency and whether the build fails; done means the expected behavior is reproduced and the rule's handling of that case is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100