Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0
-
None
-
apache maven 3.3.9
Description
I have a multi module project and have accidentally defined dependency of one artifact in multiple child maven module each having different version. Enforcer plugin not able to detect this duplicate dependency and project gets build successfully
Plugin definition 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>