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

Configurations of different <dependencySet>s influence each other

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.2, 2.3
    • 2.5.1
    • dependencySet
    • None
    • Mqven 3.0.4, JDK 1.7

    Description

      When configuring two <dependencySet> elements, the configurations in the second influence the first one.

      Reproduction:

      The following configuration utilizes to sets to copy different elements of the dependency hierarchy of a module into two distinct subfolders:

      <dependencySet>
      	<outputDirectory>software</outputDirectory>
      	<useProjectArtifact>false</useProjectArtifact>
      	<excludes>
      		<exclude>org.codehaus.groovy:*</exclude>
      	</excludes>
      	<useTransitiveDependencies>false</useTransitiveDependencies>
      </dependencySet>
      <dependencySet>
      	<outputDirectory>libs</outputDirectory>
      	<useProjectArtifact>false</useProjectArtifact>
      	<includes>
      		<include>org.codehaus.groovy:groovy-all</include>
      	</includes>
      </dependencySet>
      

      However, the first <dependencySet> unexpectedly contains most of the transitive dependencies. The issue can only be resolved by adding <useTransitiveDependencies>false</useTransitiveDependencies> to the second <dependencySet>, too. The issue remains reproducible when changing <scope> <outputMapping> etc. I suppose the isolation of the set configuration is broken. I could reproduce the issue with both 2.3 and 2.2.2.

      Attachments

        1. assembly.xml
          0.9 kB
          Chris Seieroe
        2. pom.xml
          1 kB
          Chris Seieroe

        Activity

          People

            krosenvold Kristian Rosenvold
            olaf.otto Olaf Otto
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: