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 1531
抹茶落季
抹茶落季 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:19

    I had same issue while creating new spring project in eclipse using Maven.
    
    The main reason for this issue is that the proxy settings was not there.
    
    I used the following approach to reslove it:
    1) create settings.xml with  the below content
        
          
          
          
          
          
          
          
          
            
                true
                http
                Your proxy
                Your port
            
          
          
          
        
    2) Save the settings.xml file under local C:\Users\<>\.m2
    3) Then Right click project pom.XML in eclipse and select "Update Project". It always give precedence to settings.XML
    

提交回复
热议问题