自動マウントされていないファイルシステムでは、 "mvn clean"が動作します( "mvn package"も同様です)。自動マウントのファイルシステムでは、「クリーンMVN」は、以下の方法で失敗:自動マウントされたディレクトリでmvnが失敗する
$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building glutmax-sentiment-analysis 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to read tracking file /nethome/guest/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom.lastUpdated
java.io.IOException: Input/output error
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90)
[...]
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[WARNING] Failed to write tracking file /nethome/guest/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom.lastUpdated
java.io.IOException: Input/output error
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90)
[...]
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:13 min
[INFO] Finished at: 2017-07-12T11:34:55-07:00
[INFO] Final Memory: 23M/1445M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Input/output error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T12:39:06-07:00)
Maven home: /usr/local/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/local/jdk1.8.0_121/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-514.el7.x86_64", arch: "amd64", family: "unix"
は明らかに、私は、構成情報のいくつかの種類が欠けますが、答えを探してる私が発見したすべては、私は削除する必要があるということでした〜 /.m2/*、chmod 777〜/ .m2、そして私のJAVA_HOMEが正しいことを確認しました。推奨事項のどれも働かなかった。私は何が欠けていますか?
興味深いことに、Gradleは、自動マウントされたファイルシステムでも動作していないようです。
ユーザは、ディレクトリ、ファイル、権限の変更などを作成できます。「mount」出力には、ユーザに「rw」権限があることが表示されます。10.10.10.10:/ms/ms.share/services/ps/guest on/nttome /ゲストタイプnfs(** rw **、relatime、vers = 3、rsize = 131072、wsize = 131072、namlen = 255、hard、proto = tcp、timeo = 600、retrans = 2、sec = sys、mountaddr = 10.20.30.70、mountvers = 3、mountport = 2049、mountproto = tcp、local_lock = none、addr = 10.20.30.70) – user2569618
"ユーザーはディレクトリを作成できます" - どのユーザーですか?あなたはMavenジョブを実行しているのと同じユーザーですか? –
私はそう信じています。私はログインしてmkdir〜/ .m2を実行できますが、〜/ .m2を削除して "mvn package"を実行すると、mavenは "/ nethome/ /.m2/repository"にローカルリポジトリを作成できませんでした。私はマウントオプションに "hard、nolock、noac"を追加しましたが、それでも喜びはありません。 –
user2569618