ubuntu20.04安装maven,安装依赖时报错的解决办法

maven安装依赖报错

No plugin found for prefix 'help' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/opt/apache-maven-3.8.6/repository), repo1 Maven (https://repo1.maven.org/maven2)] -> [Help 1]

已配置镜像源,并在maven安装目录下新建了仓库文件夹,试了新增pom.xml,修改settings.xml中的jdk和各种镜像源,均会出现上述报错。

最后修改本地仓库文件夹权限为777,即:sudo chmod -R 777 repository,再去执行:mvn help:system,不再报错。

maven安装依赖成功

你可能感兴趣的:(ubuntu20.04安装maven,安装依赖时报错的解决办法)