Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-176

excludes not considered in analyze?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.6
    • Component/s: analyze
    • Labels:
      None

      Description

      in dependencyManagement of parent pom I have:

                  <dependency>
                      <groupId>org.apache.xmlbeans</groupId>
                      <artifactId>xmlbeans</artifactId>
                      <version>2.3.0</version>
                      <exclusions>
                          <exclusion>
                              <groupId>stax</groupId>
                              <artifactId>stax-api</artifactId>
                          </exclusion>
                      </exclusions>
                  </dependency>

      In a child project...

              <dependency>
                  <groupId>org.apache.xmlbeans</groupId>
                  <artifactId>xmlbeans</artifactId>
              </dependency>
      
              <dependency>
                  <groupId>org.apache.geronimo.specs</groupId>
                  <artifactId>geronimo-stax-api_1.0_spec</artifactId>
              </dependency>

      dependency:analyze reports

      [WARNING] Unused declared dependencies found:
      [WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile

      but removing the geronimo stax api makes the build fail.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Herve Boutemy
                Reporter:
                djencks David Jencks
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: