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

unpacking/copying of attached artifacts from reactor projects doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha-1
    • 2.0-alpha-3
    • None
    • None

    Description

      I have a parent project, which has two modules - "one" and "two".

      "one" uses assembly:single to attach an assembly to its build.
      "two" depends upon that assembly, and uses "dependency:unpack-dependencies" to unpack it.

      This works fine if the projects are built separately - and the assembly is installed in the local repository. However, when using the reactor to build both projects at once, the dependency plugin still looks in the local repository for the assembly, rather than using the artifact which was just built. This either fails, or produces the wrong version of the assembly.

      I suspect this may be a bug with the reactor mechanism - but I don't really understand how all that works...

      The attachment demonstrates the problem.

      Attachments

        1. dependency-issue.zip
          2 kB
          Richard van der Hoff
        2. diff.txt
          4 kB
          Kohsuke Kawaguchi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              richvdh Richard van der Hoff
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: