Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-406

Enforcer plugin does not fail for duplicate dependency coming via transitive dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • waiting-for-feedback
    • Plugin
    • None
    • apache maven 3.3.9

    Description

       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>
      
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kaustavdas1989 Kaustav Das
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: