[
https://jira.codehaus.org/browse/MJAR-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=272150#comment-272150
]
Kristian Rosenvold commented on MJAR-140:
-----------------------------------------
Yes, but it's not a simple answer.
The update to PlexusIoResourceCollection was done to achieve file attribute
correctness. So the incorrect behaviour was fast but the correct behaviour is
slower.
But all is not entirely lost. I have published pleus-archiver 2.0, plexus-io
2.0 and plexus-utils 3.0. If you add all of these to your plugin dependencies
you will get an improvement in performance. To get back to the "original" speed
you will actually have to use java 1.7. plexus-io 2.0 supports native file
attributes through the java 1.7 api's. So with java 1.7 you should see little
or no difference in performance from 2.2. For java 1.5/1.6, plexus-io 2.0 now
forks the two "ls" forks in parallel, which should help some on the observed
slowdown.
The slowdown affects all posix compliant systems.
> Performance degredation
> ------------------------
>
> Key: MJAR-140
> URL: https://jira.codehaus.org/browse/MJAR-140
> Project: Maven 2.x JAR Plugin
> Issue Type: Bug
> Affects Versions: 2.3, 2.3.1
> Reporter: Eran Harel
>
> I migrated maven to version 3.0.1 in order to utilize the parallel build
> experimental feature.
> As a result I get the following warning:
> {code}
> [WARNING] *****************************************************************
> [WARNING] * Your build is requesting parallel execution, but project *
> [WARNING] * contains the following plugin(s) that are not marked as *
> [WARNING] * @threadSafe to support parallel building. *
> [WARNING] * While this /may/ work fine, please look for plugin updates *
> [WARNING] * and/or request plugins be made thread-safe. *
> [WARNING] * If reporting an issue, report it against the plugin in *
> [WARNING] * question, not against maven-core *
> [WARNING] *****************************************************************
> [WARNING] The following plugins are not marked @threadSafe in DataBuilder:
> [WARNING] org.apache.maven.plugins:maven-eclipse-plugin:2.8
> [WARNING] org.apache.maven.plugins:maven-jar-plugin:2.2
> [WARNING] *****************************************************************
> {code}
> I upgraded the maven-jar-plugin to the latest version (2.3.1), and the
> message is gone, but now the builds take much longer: minutes added!!!
> The build takes about x 1.5 longer now.
> I also compared the maven 3 parallel build time with the new jar-plugin VS a
> serial build with the old 2.2 plugin version I had. The results are that
> same, while when using the parallel build with the 2.2 plugin I see a
> significant ~30% performance boost.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira