[
https://issues.apache.org/jira/browse/SLING-7318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16296745#comment-16296745
]
Oliver Lietz commented on SLING-7318:
-------------------------------------
Well, that test should be improved ([~rombert]):
{noformat}
// Provide the system with some artifacts that are known to be in the
local .m2 repo
// These are explicitly included in the test section of the pom.xml
{noformat}
{{org.apache.sling/org.apache.sling.commons.osgi/2.3.0}} is currently *not* in
my local Maven repo as I wiped out everything to exclude issues with local
artifacts.
> PreparePackageMojoTest.testSubsystemBaseGeneration fails intermittently
> -----------------------------------------------------------------------
>
> Key: SLING-7318
> URL: https://issues.apache.org/jira/browse/SLING-7318
> Project: Sling
> Issue Type: Bug
> Components: Maven Plugins and Archetypes
> Affects Versions: Slingstart Maven Plugin 1.7.10
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Minor
>
> In case the test execution fails the Maven output looks like this
> {code}
> org.apache.sling.maven.slingstart.PreparePackageMojoTest
> testSubsystemBaseGeneration(org.apache.sling.maven.slingstart.PreparePackageMojoTest)
> Time elapsed: 0.013 sec <<< ERROR!
> org.apache.maven.plugin.MojoExecutionException: Problem creating subsystem
> .esa file
> /tmp/PreparePackageMojoTest3862315247356430887/slingstart-tmp/test1.subsystem-base
> at
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
> at
> sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
> at java.nio.file.Files.newByteChannel(Files.java:361)
> at java.nio.file.Files.newByteChannel(Files.java:407)
> at
> java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
> at java.nio.file.Files.newInputStream(Files.java:152)
> at java.nio.file.Files.copy(Files.java:3068)
> at
> org.apache.sling.maven.slingstart.PreparePackageMojo.createSubsystemBaseFile(PreparePackageMojo.java:382)
> at
> org.apache.sling.maven.slingstart.PreparePackageMojo.buildSubsystemBase(PreparePackageMojo.java:255)
> at
> org.apache.sling.maven.slingstart.PreparePackageMojo.buildContentsMap(PreparePackageMojo.java:235)
> at
> org.apache.sling.maven.slingstart.PreparePackageMojo.prepareGlobal(PreparePackageMojo.java:141)
> at
> org.apache.sling.maven.slingstart.PreparePackageMojo.execute(PreparePackageMojo.java:131)
> at
> org.apache.sling.maven.slingstart.PreparePackageMojoTest.testSubsystemBaseGeneration(PreparePackageMojoTest.java:176)
> {code}
> This happens from time to time also on the ASF Jenkins (e.g. in
> https://builds.apache.org/view/S-Z/view/Sling/job/sling-slingstart-maven-plugin-1.8/12/org.apache.sling$slingstart-maven-plugin/console).
> This was also reported via
> https://www.mail-archive.com/[email protected]/msg73131.html.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)