错误:
Could not get the value for parameter encoding for plugin execution default-resources
Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:3.0.2
无法获取xxxxx(org.apache.maven.plugins:maven-resources-plugin:3.0.2)插件
解决办法:
第一步:获取
获取成功:
如果出现如下错误,请更换maven仓库
1.maven更目录(安装maven的目录:eg:D:\DevInstall\apache-maven-3.5.0 )--> 打开conf-->编辑settings.xml 更换仓库
中央仓库:
<mirror>
<id>repo1</id>
<mirrorOf>*</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
阿里仓库:
<mirror><id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
第二步:更新maven项目
**********************************************************************************************************************************
问题产生原因:
导入项目时:切忌直接更新项目 maven--> update project