How to solve maven 2.6 resource plugin dependency?

spt025 picture spt025 · Jul 9, 2015 · Viewed 222.8k times · Source

ERROR:

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

Solutions Tried:

Updated project: not able to download from REPO of maven.

Tried putting perticular jar in that folder of .m2 repo.

Can provide references if you want.

Answer

Kalyan Chavali picture Kalyan Chavali · Jul 9, 2015

Seems your settings.xml file is missing your .m2 (local maven repo) folder.

When using eclipse navigate to Window -> Preferences -> Maven -> User Settings -> Browse to your settings.xml and click apply.

Then do maven Update Project.

enter image description here