You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Claes Nordmark (JIRA)" <ji...@apache.org> on 2018/11/14 11:48:00 UTC
[jira] [Comment Edited] (MSOURCES-119) Archiving to jar is very
slow
[ https://issues.apache.org/jira/browse/MSOURCES-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16686408#comment-16686408 ]
Claes Nordmark edited comment on MSOURCES-119 at 11/14/18 11:47 AM:
--------------------------------------------------------------------
I've checked and java version seems to be irrelevant at least. Tried with both java 8 and java 11.
Different maven versions have been tested as well, 3.2.1 and 3.5.4.
I've raised another ticket on plexus archiver, which could be something to take as input:
[https://github.com/codehaus-plexus/plexus-archiver/issues/105]
maven is run like this: "mvn package -Dmaven.skip.test=true"
was (Author: nordmcla):
I've checked and java version seems to be irrelevant at least. Tried with both java 8 and java 11.
Different maven versions have been tested as well, 3.2.1 and 3.5.4.
I've raised another ticket on plexus archiver, which could be something to take as input:
[https://github.com/codehaus-plexus/plexus-archiver/issues/105]
> Archiving to jar is very slow
> -----------------------------
>
> Key: MSOURCES-119
> URL: https://issues.apache.org/jira/browse/MSOURCES-119
> Project: Maven Source Plugin
> Issue Type: Bug
> Affects Versions: 3.0.0
> Environment: RedHat 7
> Reporter: Claes Nordmark
> Priority: Major
>
> Doing a stackdump while "maven-source-plugin:3.0.0:jar-no-fork (attach-sources)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.
> This was not visible in java 8 and source plugin version 2.4.
> Our previous build time has been increased from 5min to 3h 30min.
> Tested version Java 11 and 3.0.0 of maven-source-plugin
> maven config:
> {code:java}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-source-plugin</artifactId>
> <version>3.0.0</version>
> <executions>
> <execution>
> <id>attach-sources</id>
> <goals>
> <goal>jar-no-fork</goal>
> </goals>
> </execution>
> </executions>
> </plugin>{code}
> {{java.lang.Thread.State: RUNNABLE}}
> {{ at sun.nio.fs.UnixNativeDispatcher.getgrgid(java.base@11/Native Method)}}
> {{ at sun.nio.fs.UnixUserPrincipals.fromGid(java.base@11/UnixUserPrincipals.java:129)}}
> {{ at sun.nio.fs.UnixFileAttributes.group(java.base@11/UnixFileAttributes.java:208)}}
> {{ - locked <0x00000006b0773fd8> (a sun.nio.fs.UnixFileAttributes)}}
> {{ at sun.nio.fs.UnixFileAttributeViews$Posix.addRequestedPosixAttributes(java.base@11/UnixFileAttributeViews.java:214)}}
> {{ at sun.nio.fs.UnixFileAttributeViews$Unix.readAttributes(java.base@11/UnixFileAttributeViews.java:362)}}
> {{ at sun.nio.fs.AbstractFileSystemProvider.readAttributes(java.base@11/AbstractFileSystemProvider.java:94)}}
> {{ at java.nio.file.Files.readAttributes(java.base@11/Files.java:1996)}}
> {{ at org.codehaus.plexus.components.io.attributes.Java7FileAttributes.<init>(Java7FileAttributes.java:65)}}
> {{ at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResourcesJava7(PlexusIoFileResourceCollection.java:192)}}
> {{ at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:287)}}
> {{ at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:504)}}
> {{ at org.apache.maven.plugins.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:287)}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)