[
https://issues.apache.org/jira/browse/MSOURCES-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959481#comment-17959481
]
Matthias Bünger commented on MSOURCES-119:
------------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-source-plugin#183|https://github.com/apache/maven-source-plugin/issues/183].
> Archiving to jar is very slow
> -----------------------------
>
> Key: MSOURCES-119
> URL: https://issues.apache.org/jira/browse/MSOURCES-119
> Project: Maven Source Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 3.0.0
> Environment: RedHat 7
> Reporter: Claes Nordmark
> Assignee: Karl Heinz Marbaise
> Priority: Major
> Fix For: 3.1.0
>
>
> 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:xml}
> <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}
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)