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

DependencyConvergence doesn't acknowledge exclusion wildcards (MNG-2315)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.4
    • None
    • Standard Rules
    • None

    Description

      An exclusion that takes advantage of the enhancement in MNG-2315 (Maven 3.2.1+) is not acknowledged in the dependency convergence check and still results in failing this rule:

                              <exclusion>
                                  <groupId>*</groupId>
                                  <artifactId>*</artifactId>
                              </exclusion>
      

      Adding a specific exclusion instead, or in addition to this allows the failure to be resolved.

                      <dependency>
                          <groupId>org.hornetq</groupId>
                          <artifactId>hornetq-commons</artifactId>
                          <version>${hornetq-version}</version>
                          <scope>test</scope>
                          <exclusions>
                              <exclusion>
                                  <groupId>*</groupId>
                                  <artifactId>*</artifactId>
                              </exclusion>
                              <exclusion>
                                  <groupId>org.jboss.logging</groupId>
                                  <artifactId>jboss-logging</artifactId>
                              </exclusion>
                          </exclusions>
                      </dependency>
      

      The second exclusion is redundant to Maven, but is necessary for this plugin.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              louisburton Louis Burton
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: