无法在.m2 / repository中创建本地存储库

时间:2014-08-14 07:15:27

标签: java maven repository

我遇到maven插件执行问题。当我以用户TOM(所有者)执行它时,一切正常并且运行良好。但是,当我作为其他用户执行时 - 来自其他组,然后崩溃。

.m2 / repository的所有者 - > OK:

[DEBUG] Reading global settings from /path/to/mvn/conf/settings.xml
[DEBUG] Reading user settings from /path/to/usrsettings/mvnsettings.xml
[DEBUG] Using local repository at /home/TOM/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/TOM/.m2/repository

来自其他群组的其他用户 - >不行:

[DEBUG] Reading global settings from /path/to/mvn/conf/settings.xml
[DEBUG] Reading user settings from /path/to/usrsettings/mvnsettings.xml
[DEBUG] Using local repository at /home/TOM/.m2/repository
[ERROR] Could not create local repository at /home/TOM/.m2/repository -> [Help 1]
org.apache.maven.repository.LocalRepositoryNotAccessibleException: Could not create local repository at /home/TOM/.m2/repository

我更改了/home/TOM/.m2/repository和子目录和文件mvsettings.xml的权限,但没有更改。在mvnsettings.xml中我设置了:

<localRepository>/home/TOM/.m2/repository</localRepository>

有什么想法吗?其他用户可以使用不是他的.m2 / repository吗?

谢谢!

0 个答案:

没有答案