[错误]插件org.apache.maven.plugins:maven-resources-plugin:2.6或其中一个依赖项无法解决:无法读取org. apache.mavene.maven.plugins .maven.plugins: maven-resourcs-plugin . jar:无法传输工件源
:http://apache.maven.maven.maven.asp.plugins:
解决办法
1.打开maven配置文件(maven安装目录下的conf目录下的
settings.xml文件),把里面的mirrors节点替换成下面
<!-- 阿里云仓库 -->
<mirrors>
<!-- 阿里云仓库 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<!-- 中央仓库1 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
<!-- 中央仓库2 -->
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
</mirrors>
2.删除本地的历史,然后将
C:\Users\Administrator.m2\repository\org\apache\maven\plugins
所有文件目录下的文件夹全部删除