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

unpack-dependencies unpacks the wrong dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 1.0
    • None
    • None
    • None
    • WinXP Pro SP2
      Mustang b82
      NetBeans 5.5

    Description

      A parent POM has 3 modules - core, example.

      dependency-maven-plugin with unpack-dependencies is declared with outputDirectory set to ${project.build.outputDirectory}.

      (antrun [echo]s are introduced to inspect the project variables here for debugging purpose.)

      The 1st module (core) builds with the correct dependencies (jdom) unpacked:

      [INFO]Executing tasks
      [echo] Runtime Dependencies:
      [echo] [Dependency

      {groupId=jdom, artifactId=jdom, version=1.0, type=jar}]
      [echo] Compile Dependencies:
      [echo] [Dependency {groupId=jdom, artifactId=jdom, version=1.0, type=jar}

      ]
      [INFO]Executed tasks
      [dependency:unpack-dependencies

      {execution: unpack-dependencies}

      ]
      [INFO]Expanding: F:\maven2-plugins\jdom\jdom\1.0\jdom-1.0.jar into F:\projects\NapkinLAF\napkin\core\target\classes

      The 2nd module (example) builds with the wrong dependencies (junit, jdom) instead of the correct ones (core, jdom) unpacked:

      [INFO]Executing tasks
      [echo] Runtime Dependencies:
      [echo] [Dependency

      {groupId=net.sourceforge.napkinlaf, artifactId=napkinlaf, version=1.1-SNAPSHOT, type=jar}, Dependency {groupId=jdom, artifactId=jdom, version=1.0, type=jar}]
      [echo] Compile Dependencies:
      [echo] [Dependency {groupId=net.sourceforge.napkinlaf, artifactId=napkinlaf, version=1.1-SNAPSHOT, type=jar}

      , Dependency

      {groupId=jdom, artifactId=jdom, version=1.0, type=jar}

      ]
      [INFO]Executed tasks
      [dependency:unpack-dependencies

      {execution: unpack-dependencies}

      ]
      [INFO]Expanding: F:\maven2-plugins\junit\junit\3.8.1\junit-3.8.1.jar into F:\projects\NapkinLAF\napkin\example\target\classes
      [INFO]Expanding: F:\maven2-plugins\jdom\jdom\1.0\jdom-1.0.jar into F:\projects\NapkinLAF\napkin\example\target\classes

      Attachments

        Issue Links

          Activity

            People

              brianf Brian E Fox
              alexlamsl Alex Lam S.L.
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: