Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi

错误:

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)插件

解决办法:

第一步:获取

Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi_第1张图片

获取成功:

Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi_第2张图片


如果出现如下错误,请更换maven仓库

Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi_第3张图片

1.maven更目录(安装maven的目录:eg:D:\DevInstall\apache-maven-3.5.0 )--> 打开conf-->编辑settings.xml 更换仓库

中央仓库:

   
            repo1
            *
            Human Readable Name for this Mirror.
            http://repo1.maven.org/maven2/
     

阿里仓库:


        nexus-aliyun
        *
        Nexus aliyun
        http://maven.aliyun.com/nexus/content/groups/public/
   

Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi_第4张图片

第二步:更新maven项目

Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi_第5张图片

Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi_第6张图片



**********************************************************************************************************************************

问题产生原因:

导入项目时:切忌直接更新项目 maven--> update project



你可能感兴趣的:(maven)