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

poor performance of dependencySet in assembly descriptor (compared to using maven-dependency-plugin + fileSet)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2-beta-4
    • 2.2
    • None
    • None
    • maven 2.1.0, java 6u13, os x 10.5.6, macbook pro 5400rpm disk

    Description

      The performance of the dependencySet element in the assembly descriptor is significantly worse than achieving the equivalent result by doing an execution of dependency:copy-dependencies and including the target/dependencies folder as a fileSet in the assembly descriptor

      replacing:
      <assembly>
      ...
      <dependencySets>
      <dependencySet>
      <outputDirectory>lib</outputDirectory>
      </dependencySet>
      </dependencySets>
      ...
      </assembly>

      with:
      <assembly>
      ...
      <fileSet>
      <directory>${project.build.directory}/dependency</directory>
      <outputDirectory>lib</outputDirectory>
      </fileSet>
      ...
      </assembly>

      and (in pom.xml):
      ...
      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-dependency-plugin</artifactId>
      <executions>
      <execution>
      <phase>package</phase>
      <goals>
      <goal>copy-dependencies</goal>
      </goals>
      <configuration>
      <includeScope>runtime</includeScope>
      </configuration>
      </execution>
      </executions>
      </plugin>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-assembly-plugin</artifactId>
      ...

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            cfieber Cameron Fieber
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: