You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/10/30 16:12:24 UTC

[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1296293199

   Here is the full exception stack log:
   ```
   Caused by: java.io.UncheckedIOException: Failed to open file channel for '[..]\.m2\repository\.locks\commons-codec~commons-codec~1.15.resolverlock'
   	at org.eclipse.aether.named.providers.FileLockNamedLockFactory.lambda$createLock$0(FileLockNamedLockFactory.java:78)
   	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
   	at org.eclipse.aether.named.providers.FileLockNamedLockFactory.createLock(FileLockNamedLockFactory.java:65)
   	at org.eclipse.aether.named.support.NamedLockFactorySupport.lambda$getLock$0(NamedLockFactorySupport.java:53)
   	at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1908)
   	at org.eclipse.aether.named.support.NamedLockFactorySupport.getLock(NamedLockFactorySupport.java:49)
   	at org.eclipse.aether.named.support.NamedLockFactorySupport.getLock(NamedLockFactorySupport.java:34)
   	at org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapter$AdaptedLockSyncContext.acquire(NamedLockFactoryAdapter.java:141)
   	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:233)
   	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:357)
   	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:207)
   	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:243)
   	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:147)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:401)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:347)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
   	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
   	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
   	... 6 common frames omitted
   Caused by: java.nio.file.AccessDeniedException: [..]\.m2\repository\.locks\commons-codec~commons-codec~1.15.resolverlock
   	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
   	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
   	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
   	at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:120)
   	at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
   	at java.base/java.nio.channels.FileChannel.open(FileChannel.java:345)
   	at org.eclipse.aether.named.providers.FileLockNamedLockFactory.lambda$createLock$0(FileLockNamedLockFactory.java:70)
   	... 25 common frames omitted
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org