You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dylan Hutchison (JIRA)" <ji...@apache.org> on 2015/12/10 17:59:10 UTC

[jira] [Commented] (MNG-5838) Maven on No-File-Lock Systems

    [ https://issues.apache.org/jira/browse/MNG-5838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15051233#comment-15051233 ] 

Dylan Hutchison commented on MNG-5838:
--------------------------------------

Yes, it is a low level error-- the [java.nio.channels.FileChannel.lock|https://docs.oracle.com/javase/7/docs/api/java/nio/channels/FileChannel.html#lock(long,%20long,%20boolean)] method is not implemented on file systems that do not support file locking, like Lustre.  Is there some way to make Maven not use file locking?  

You can see the lock method being called [here|http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.aether/aether-ant-tasks/1.0.0.v20140518/org/eclipse/aether/internal/impl/TrackingFileManager.java#203].

What I don't know is why this build works (albeit with warnings) on Maven 3.2.3 but fails on 3.3.3.

> Maven on No-File-Lock Systems
> -----------------------------
>
>                 Key: MNG-5838
>                 URL: https://issues.apache.org/jira/browse/MNG-5838
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.3
>            Reporter: Dylan Hutchison
>
> I work on a Lustre file system that does not support file locking.  Maven emits tons of warnings when it cannot lock a file due to IOExceptions.  In my case this is not a problem because I only run one maven process at a time and the .m2 directory inside my home directory is not shared, so there is no need to lock files.
> Maven built correctly despite the warnings when using Maven 3.2.3. Then, when I upgraded to Maven 3.3.3, Maven failed on most goals, even clean.  I'd like to at least compile my code with mvn on this system with no file locking, even if it can't run project tests.
> I uploaded log files for running with 3.2.3 and 3.3.3 here:
> <https://gist.github.com/a0099ea87e5ac663b2ac>
> Scroll down halfway for the second file.
> Is there an option to disable file locking?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)