mvn clean compile install -Ponline报错Error: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolve
mvn clean compile install -Ponline报错,错误信息如下:
Error: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolve..
解决办法:
1 删除本地仓库下下载失败的文件,例如 /root/.m2/repository/... 重新编译。
2 换个镜像下载,修改/usr/local/maven/apache-maven-3.5.4/conf/setting.xml文件
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>