maven:/root/.m2/repository にローカル リポジトリを作成できませんでした

今日、dockerの下でcenosを使用しています.mavenが付属しており、次のエラーが発生します

[ERROR] Could not create local repository at /root/.m2/repository -> [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/LocalRepositoryNotAccessibleException

 

理由

このファイルに関連する許可操作はありません。

解決:

次のように、ファイルの場所を変更し、maven インストール ディレクトリを入力し、ディレクトリを入力して conf/settings.xml を変更します。

 

知らせ:

Maven のインストール パスを表示するには、次のコマンドを使用できます。

mvn -version

 

おすすめ

転載: blog.csdn.net/u013938578/article/details/130081637