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

Maven 2 / Maven 3 differences on analyze with cycle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Here's the dependency tree I'm using:

      [INFO] ------------------------------------------------------------------------
      [INFO] Building PA 0.0.2-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ PA ---
      [INFO] myTest:PA:jar:0.0.2-SNAPSHOT
      [INFO] \- PC:PC:jar:0.0.1-SNAPSHOT:compile
      [INFO]    \- myTest:PA:jar:0.0.1-SNAPSHOT:compile
      

      As you can see, there's a cycle : PA > PC > PA

      Using maven 2.2.1:

      mvn dependency:analyze
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Unnamed - myTest:PA:jar:0.0.2-SNAPSHOT
      [INFO]    task-segment: [dependency:analyze]
      [INFO] ------------------------------------------------------------------------
      ...
      [INFO] No dependency problems found
      

      Using maven 3.3.3:

      mvn dependency:analyze
      [INFO] ------------------------------------------------------------------------
      [INFO] Building PA 0.0.2-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      ...
      [INFO] --- maven-dependency-plugin:2.8:analyze (default-cli) @ PA ---
      [WARNING] Used undeclared dependencies found:
      [WARNING]    myTest:PA:jar:0.0.1-SNAPSHOT:compile
      

      The analyze in maven 3 wants me to add PA as a dependency to PA, to itself. Is it possible to have the same behavior as maven 2 using maven 3?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jpfroud Jean-Pierre Froud
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: