Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
3.0.0
-
None
-
RedHat 7
Description
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:
<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>
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)
Attachments
Issue Links
- is related to
-
MJAR-259 Archiving to jar is very slow
- Closed