1

I am using eclipse mars-2. I want to create a new maven spring boot project in windows. But I'm getting error like

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 
  or one of its dependencies could not be resolved: Failed to read artifact 
  descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
  Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies 
  could not be resolved: Failed to read artifact 
  descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2

Can anyone help me resolve this?

SkyWalker
  • 28,384
  • 14
  • 74
  • 132
Anitha S
  • 23
  • 2
  • 7

2 Answers2

0

You can also do the following steps. Sometimes it helps

  1. Remove/Delete your .m2/repository/ folder
  2. Then run the following command mvn clean install
  3. Then run mvn build

Resource Link: 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

Community
  • 1
  • 1
SkyWalker
  • 28,384
  • 14
  • 74
  • 132
0

When you install the UDE like ECLIPSE or STS there generates a .m2 folder with settings.xml in it.

After you install the mavan in your system you gonna get a settings.xml in it.

You just let the IDE know that it has to use the meven settings.xml which you can do it by deleting the .m2 file in your users folder, clean and install.

Now you're good to go and enjoy writing your code!!!!

Peyman Mohamadpour
  • 17,954
  • 24
  • 89
  • 100