Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.2-beta-4
-
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>
...