Could not calculate build plan:Plugin
org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

'Building' has encountered a problem. Errors occurred during the build.

环境变量:方便后续学习□ M2_HOME maven目录下的bin目录
□ MAVEN_HOME maven的目录
□ 在系统的path中配置 %MAVEN_HOME%\bin



阿里云镜像配置文件位置:maven根目录/conf/settings.xml 找到镜像元素mirrors
镜像:mirrors:
阿里云镜像加速下载 <!-- 添加之前,先把原来的镜像全注释掉 --> <!-- 配置方式1 --> <mirror> <id>nexus-aliyun</id> <mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> <!-- 配置方式2 --> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>本地仓库位置 <localRepository>E:\environment\mavenEvironment\apache-maven-3.8.2\maven-repo</localRepository>本文来自博客园,作者:一乐乐,转载请注明原文链接:https://www.cnblogs.com/shan333/p/16045580.html