Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved

前端 未结 21 1530
抹茶落季
抹茶落季 2020-12-08 08:15

I got the following error message when I tried to create a Maven project in eclipse. Many have posted about proxies in settings.xml file and also flush the .m2 folder forcin

21条回答
  •  再見小時候
    2020-12-08 08:21

    I have summarised what I did for my issue.

    1) Delete .m2 folder. 2) Change the apache-maven-3.5.4\conf\settings.xml as follow

    
    
      optional
      true
      http
      proxyserver.company.com --> Please change it according to your proxy
      8080 -->Please change it accordingly
      local.net|some.host.com
    
    

    3) Try again in cmd. It will work.

    4) For eclipse, delete the existing maven project and go to

    window ->prefernces -> maven -> user settings -> browse -> configure this path apache-maven-3.5.4\conf\settings.xml
    

    5) Delete .m2 folder.

    6) Restart the eclipse and try creating new maven project.

    These steps worked for me.

提交回复
热议问题