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 1533
抹茶落季
抹茶落季 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:24

    I also had the same problem. I used next way:

    1.Added settings.xml file (~/.m2/settings.xml) with next content

    
       
          true
          http
          qq-proxya
          8080
          user
          passw
          www.google.com|*.example.com
        
      
    

    3. Using cmd go to folder with my project and wrote mvn clean and after that mvn install !

    1. After that updated project in the Eclipse(Alt + F5) or right click on project -> Maven -> Update project

    P.S. after that, when I add new dependency to my project I have to compile project using cmd(mvn compile). Because if I do it using eclipse plugin, I get error connecting with proxy connection.

提交回复
热议问题