Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-474

Assembly is duplicating dependecies in the output

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.5, 2.5.1
    • Component/s: moduleSet
    • Labels:
      None

      Description

      When I have an assembly descriptor that contains 2 modules that both have the same dependencies, those dependencies are duplicated instead of skipped/overwritten in the target zip file. This is very similiar to MASSEMBLY-285, but is a problem on the dependencies and not the modules themselves. This is only a problem when

          <moduleSet>
            <includes>
              <include>aaa:aaaa</include>
              <include>aaa:bbbb</include>
            </includes>
            <binaries>
              <includeDependencies>true</includeDependencies>
              <unpack>false</unpack>
              <outputDirectory>lib</outputDirectory>
            </binaries>
          </moduleSet>
      

        Activity

        Hide
        ron123 Ronald Sigmund added a comment -

        unzip file and run mvn

        tested with maven 3.0.3

        with plugin version 2.2.1 the build will failed.

        I would expect that the build is SUCCESS.

        See enforcer messages in buildlog.

        Show
        ron123 Ronald Sigmund added a comment - unzip file and run mvn tested with maven 3.0.3 with plugin version 2.2.1 the build will failed. I would expect that the build is SUCCESS. See enforcer messages in buildlog.
        Hide
        krosenvold Kristian Rosenvold added a comment -

        Testcase added for 2.5.1

        Show
        krosenvold Kristian Rosenvold added a comment - Testcase added for 2.5.1
        Hide
        ron123 Ronald Sigmund added a comment -

        Thank you, works with Version 2.5 as expected.

        Show
        ron123 Ronald Sigmund added a comment - Thank you, works with Version 2.5 as expected.

          People

          • Assignee:
            krosenvold Kristian Rosenvold
            Reporter:
            xandrewrampulla@gmail.com Andrew Rampulla
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development