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

dependency:tree -Dincludes is erroneous with Maven 3 (3.0.4 or 3.1-SNAPSHOT)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Done
    • 2.6
    • None
    • tree
    • None
    • Java 6

    Description

      I have a complex project with many deps, many depsMgt import ...
      https://github.com/exoplatform/platform-tomcat-standalone
      I discovered the issue on rev fb36980
      I was trying to blacklist all servlet/jsp dependencies coming projects dependencies (searching them with dependency:tree -Dverbose -Dincludes=*:servlet:*).
      The plugin reported that there was no such dep in my graph after all my exclusions and cleanup in low level projects.
      But it was false because the assembly plugin continued to find such deps and copied them in my distribution.
      Downgrading to Maven 2.2.1 allowed me to find some of these dependencies that I didn't found with 3.1 (see commit https://github.com/exoplatform/platform-tomcat-standalone/commit/67eb23a8b6e033cecbd1d1726ff75afebdd0fdfd)

      Note : this bug is probably something low level because the enforcer plugin has it too. It didn't discover/reported the dependency I wanted to blacklist

      Attachments

        1. dependency-tree-mvn-3.1-SNAPSHOT.txt
          49 kB
          Arnaud Heritier
        2. dependency-tree-mvn-2.2.1.txt
          41 kB
          Arnaud Heritier

        Activity

          People

            Unassigned Unassigned
            aheritier Arnaud Heritier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: