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

Version for artifacts in dependencies section are resolved wrong

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2-beta-3
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows, Java6, maven-2.2.1

      Description

      Dependencies to artifacts are resolved wrongly when using maven-assembly-plugin > 2.2-beta-2 (this still exists in Version 2.2-beta-5):

      a) Goal mvn assembly:assembly
      b) Descriptor
      <assembly>
      <id>service-wrapper</id>
      <formats>
      <format>zip</format>
      </formats>
      <baseDirectory>${project.name}</baseDirectory>
      <includeBaseDirectory>true</includeBaseDirectory>
      <dependencySets>
      <dependencySet>
      <unpack>false</unpack>
      <scope>compile</scope>
      <outputDirectory>lib</outputDirectory>
      </dependencySet>
      </dependencySets>
      ...
      </assembly>

      e.g.
      We have version test-1.0.jar in parent pom.
      We overwrite this version with test-1.1.jar in current pom

      1) 2.2-beta-3 >= maven-assembly-plugin <= 2.2-beta-5
      test-1.0.jar is packaged in zip-File

      2) maven-assembly-plugin < 2.2-beta-2
      test-1.1.jar is packaged in zip-File

      => Artifact test in this case should always be resolved to test-1.1.jar

        Attachments

          Activity

            People

            • Assignee:
              jdcasey John Dennis Casey
              Reporter:
              panny2406 Christoph Panwinkler
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: