You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/12/22 22:27:00 UTC
[jira] [Commented] (MENFORCER-406) Enforcer plugin does not fail for duplicate dependency coming via transitive dependency
[ https://issues.apache.org/jira/browse/MENFORCER-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17651426#comment-17651426 ]
Slawomir Jaranowski commented on MENFORCER-406:
-----------------------------------------------
Please provide a simple project for reproduce.
> Enforcer plugin does not fail for duplicate dependency coming via transitive dependency
> ---------------------------------------------------------------------------------------
>
> Key: MENFORCER-406
> URL: https://issues.apache.org/jira/browse/MENFORCER-406
> Project: Maven Enforcer Plugin
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 3.0.0
> Environment: apache maven 3.3.9
> Reporter: Kaustav Das
> Priority: Major
>
> 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
> {code:java}
> <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>
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)