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/13 13:44:00 UTC
[jira] [Created] (MSOURCES-119) Archiving to jar is very slow
Claes Nordmark created MSOURCES-119:
---------------------------------------
Summary: 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
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)