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 1480
抹茶落季
抹茶落季 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:39

    Jotting down some steps which help:

    Writing answer from eclipse perspective as base logic will remain the same whether done by Intellij or command line

    1. Rt click your project -> Maven -> Update project -> Select Force update -> Click OK
    2. Under properties tag , add :
    >  1.8 
    > 1.8
    
    1. In some instance , you will start seeing error as we tried force update , saying , failure to transfer X dependency from Y path , resolutions will not be reattempted , bla bla bla **In such case quickly fix it by cd to .m2/repository folder and run following command :

    for /r %i in (*.lastUpdated) do del %i**

提交回复
热议问题