You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by PeterNilsson <pe...@gmail.com> on 2009/01/21 11:27:10 UTC
Big slowdown on Linux when upgrading assembly plugin from
2.2-beta-1 to 2.2-beta-3
Our build on Linux (redhat) has more than doubled in time since we upgraded
the assembly plugin from 2.2-beta-1 to 2.2-beta-3.
I did some testing with a tiny project for different versions of the
assembly plugin:
2.2-beta-1: 9 seconds
2.2-beta-2: 17 seconds
2.2-beta-3: 30 seconds
The project is really small, it contains only 1 source file. The assembly
plugin declaration in the pom is:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-3</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/descriptor.xml</descriptor>
</descriptors>
<outputDirectory>${project.build.directory}/dist</outputDirectory>
<workDirectory>${project.build.directory}/assembly/work</workDirectory>
<attach>true</attach>
<archive>
<manifestEntries>
<Implementation-Version>${parent.version}</Implementation-Version>
<Implementation-Revision>${buildNumber}</Implementation-Revision>
<Build-Timestamp>${timestamp}</Build-Timestamp>
<Copyright>${copyright}</Copyright>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>assemble</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
The descriptor.xml includes a few local files and then about 20 jars from
dependencies, most of them are included through the transitive mechanism.
<assembly>
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main/bin</directory>
<outputDirectory>bin</outputDirectory>
<includes>
<include>*</include>
</includes>
<fileMode>774</fileMode>
</fileSet>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory>resources</outputDirectory>
<includes>
<include>*</include>
</includes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
Any idea what causes the slowdown? How can we avoid id?
We are running Java 1.6 and Maven 2.0.9. We use an Artifactory proxy but it
should not be a factor as I run the tests repeatedly so everything should be
in the local repo.
Regards,
Peter
--
View this message in context: http://www.nabble.com/Big-slowdown-on-Linux-when-upgrading-assembly-plugin-from-2.2-beta-1-to-2.2-beta-3-tp21580492p21580492.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Big slowdown on Linux when upgrading assembly plugin from
2.2-beta-1 to 2.2-beta-3
Posted by "fredrik.arvidsson" <fr...@arvidssons.org>.
Hi
On behalf of Peter Nilsson which works in the same project as me a JIRA case
was entered in Codehaus JIRA.
JIRA case id: MASSEMBLY-392.
Regards
Fredrik
brettporter wrote:
>
> Would you mind posting this, along with some characteristics of your
> build so we can see where the slowdown is?
>
> On 20/02/2009, at 12:04 AM, PeterNilsson wrote:
>
>>
>> No, it has neither been resolved nor reported. Our current
>> workaround is not
>> to use the assembly plugin in as many places to keep down total
>> build times.
>>
>> /Peter
>>
>>
>> brettporter wrote:
>>>
>>> Did you report or resolve this problem eventually?
>>>
>>> On 21/01/2009, at 9:27 PM, PeterNilsson wrote:
>>>
>>>>
>>> ...
>>>>
>>>
>>> --
>>> Brett Porter
>>> brett@apache.org
>>> http://blogs.exist.com/bporter/
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Big-slowdown-on-Linux-when-upgrading-assembly-plugin-from-2.2-beta-1-to-2.2-beta-3-tp21580492p22099914.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> --
> Brett Porter
> brett@apache.org
> http://blogs.exist.com/bporter/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Big-slowdown-on-Linux-when-upgrading-assembly-plugin-from-2.2-beta-1-to-2.2-beta-3-tp21580492p22179102.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Big slowdown on Linux when upgrading assembly plugin from 2.2-beta-1 to 2.2-beta-3
Posted by Brett Porter <br...@apache.org>.
Would you mind posting this, along with some characteristics of your
build so we can see where the slowdown is?
On 20/02/2009, at 12:04 AM, PeterNilsson wrote:
>
> No, it has neither been resolved nor reported. Our current
> workaround is not
> to use the assembly plugin in as many places to keep down total
> build times.
>
> /Peter
>
>
> brettporter wrote:
>>
>> Did you report or resolve this problem eventually?
>>
>> On 21/01/2009, at 9:27 PM, PeterNilsson wrote:
>>
>>>
>> ...
>>>
>>
>> --
>> Brett Porter
>> brett@apache.org
>> http://blogs.exist.com/bporter/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Big-slowdown-on-Linux-when-upgrading-assembly-plugin-from-2.2-beta-1-to-2.2-beta-3-tp21580492p22099914.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Big slowdown on Linux when upgrading assembly plugin from
2.2-beta-1 to 2.2-beta-3
Posted by PeterNilsson <pe...@gmail.com>.
No, it has neither been resolved nor reported. Our current workaround is not
to use the assembly plugin in as many places to keep down total build times.
/Peter
brettporter wrote:
>
> Did you report or resolve this problem eventually?
>
> On 21/01/2009, at 9:27 PM, PeterNilsson wrote:
>
>>
> ...
>>
>
> --
> Brett Porter
> brett@apache.org
> http://blogs.exist.com/bporter/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Big-slowdown-on-Linux-when-upgrading-assembly-plugin-from-2.2-beta-1-to-2.2-beta-3-tp21580492p22099914.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Big slowdown on Linux when upgrading assembly plugin from 2.2-beta-1 to 2.2-beta-3
Posted by Brett Porter <br...@apache.org>.
Did you report or resolve this problem eventually?
On 21/01/2009, at 9:27 PM, PeterNilsson wrote:
>
> Our build on Linux (redhat) has more than doubled in time since we
> upgraded
> the assembly plugin from 2.2-beta-1 to 2.2-beta-3.
>
> I did some testing with a tiny project for different versions of the
> assembly plugin:
> 2.2-beta-1: 9 seconds
> 2.2-beta-2: 17 seconds
> 2.2-beta-3: 30 seconds
>
> The project is really small, it contains only 1 source file. The
> assembly
> plugin declaration in the pom is:
>
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-3</version>
> <configuration>
> <descriptors>
> <descriptor>src/main/assembly/descriptor.xml</descriptor>
> </descriptors>
>
> <outputDirectory>${project.build.directory}/dist</outputDirectory>
>
> <workDirectory>${project.build.directory}/assembly/work</
> workDirectory>
> <attach>true</attach>
> <archive>
> <manifestEntries>
>
> <Implementation-Version>${parent.version}</Implementation-Version>
>
> <Implementation-Revision>${buildNumber}</Implementation-Revision>
> <Build-Timestamp>${timestamp}</Build-Timestamp>
> <Copyright>${copyright}</Copyright>
> </manifestEntries>
> </archive>
> </configuration>
> <executions>
> <execution>
> <id>assemble</id>
> <goals>
> <goal>single</goal>
> </goals>
> <phase>package</phase>
> </execution>
> </executions>
> </plugin>
>
> The descriptor.xml includes a few local files and then about 20 jars
> from
> dependencies, most of them are included through the transitive
> mechanism.
>
> <assembly>
> <id>bin</id>
> <formats>
> <format>zip</format>
> </formats>
> <fileSets>
> <fileSet>
> <directory>src/main/bin</directory>
> <outputDirectory>bin</outputDirectory>
> <includes>
> <include>*</include>
> </includes>
> <fileMode>774</fileMode>
> </fileSet>
> <fileSet>
> <directory>src/main/resources</directory>
> <outputDirectory>resources</outputDirectory>
> <includes>
> <include>*</include>
> </includes>
> </fileSet>
> <fileSet>
> <directory>target</directory>
> <outputDirectory>lib</outputDirectory>
> <includes>
> <include>*.jar</include>
> </includes>
> </fileSet>
> </fileSets>
> <dependencySets>
> <dependencySet>
> <useProjectArtifact>false</useProjectArtifact>
> <outputDirectory>lib</outputDirectory>
> </dependencySet>
> </dependencySets>
> </assembly>
>
>
> Any idea what causes the slowdown? How can we avoid id?
>
> We are running Java 1.6 and Maven 2.0.9. We use an Artifactory proxy
> but it
> should not be a factor as I run the tests repeatedly so everything
> should be
> in the local repo.
>
> Regards,
>
> Peter
> --
> View this message in context: http://www.nabble.com/Big-slowdown-on-Linux-when-upgrading-assembly-plugin-from-2.2-beta-1-to-2.2-beta-3-tp21580492p21580492.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org