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

Sibling Dependency Not Included in copy-dependencies output during multi-project build

    XMLWordPrintableJSON

Details

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

    Description

      Using the following structure

      dependency-test

      • module1
      • module2

      I have the dependency-maven-plugin:copy-dependencies goal attached
      the package phase of the module2 module.

      "module2" has a dependency on "module1". When I run "mvn package" from the
      "module2" folder, it correctly includes the "module1" jar in the
      target/dependency folder.

      When I run "mvn package" from the "dependency-test" folder, the "module1" jar is
      not included in the impl/target/dependency folder.

      A simple example of the problem is attached.

      Attachments

        1. dependency-test.zip
          2 kB
          Stephen Charles Duncan, Jr.

        Issue Links

          Activity

            People

              kenneyw kenneyw
              jrduncans Stephen Charles Duncan, Jr.
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: