You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2010/04/07 15:00:23 UTC
[jira] Commented: (MASSEMBLY-424) poor performance of dependencySet
in assembly descriptor (compared to using maven-dependency-plugin +
fileSet)
[ http://jira.codehaus.org/browse/MASSEMBLY-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217000#action_217000 ]
Arnaud Heritier commented on MASSEMBLY-424:
-------------------------------------------
New set of tests always based on http://svn.exoplatform.org/projects/jcr-benchmark/trunk/ with mvn clean install -o
Env :
Apache Maven 3.0-alpha-7 (r921173; 2010-03-09 23:31:07+0100)
Java version: 1.6.0_17
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.3" arch: "x86_64" Family: "mac"
Each test is done twice and the best value is taken.
with assembly plugin 2.1 : 11.022s
with assembly plugin 2.2-beta-1 : 11.670s
with assembly plugin 2.2-beta-2 : 19.772s
with assembly plugin 2.2-beta-3 : 30.480s
with assembly plugin 2.2-beta-4 : 30.049s
with assembly plugin 2.2-beta-5 : 30.927s
with assembly plugin 2.2-beta-6-SNAPSHOT : 31.460s
with assembly plugin 2.2-beta-6-SNAPSHOT with p-u 2.0.2 : 23.964s
It's better but not perfect.
I tried to upgrade p-u to 2.0.3, p-io to 1.0-alpha-5, maven-common-artifact-filters to 1.2 ... but it didn't changed the result.
> poor performance of dependencySet in assembly descriptor (compared to using maven-dependency-plugin + fileSet)
> --------------------------------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-424
> URL: http://jira.codehaus.org/browse/MASSEMBLY-424
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-4
> Environment: maven 2.1.0, java 6u13, os x 10.5.6, macbook pro 5400rpm disk
> Reporter: Cameron Fieber
> Priority: Critical
>
> 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>
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira