maven-enforcer icon indicating copy to clipboard operation
maven-enforcer copied to clipboard

[MENFORCER-406] Enforcer plugin does not fail for duplicate dependency coming via transitive dependency

Open jira-importer opened this issue 3 years ago • 2 comments

Kaustav Das opened MENFORCER-406 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

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>no-duplicate-declared-dependencies</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <banDuplicatePomDependencyVersions/> </rules> </configuration> </execution> </executions> </plugin>

 


Affects: 3.0.0

jira-importer avatar Nov 23 '21 09:11 jira-importer