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 1499
抹茶落季
抹茶落季 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:40

    I have had this issue, and removing the .m2/repository/ has not solved it in my case. Seems that eclipse is unable to download the maven-plugin or dependency needed. Therefore you need to install it yourself.

    I have finally solved it downloading both jar and pom files from the Maven Repository and installing it using the command (better than copying to the folder directly): mvn install:install-file -Dfile= -DpomFile= (In my case: mvn install:install-file -Dfile=maven-war-plugin-2.2.pom -DpomFile=maven-war-plugin-2.2.pom)

提交回复
热议问题