Search code examples
javaeclipserestmavenm2eclipse

How to solve maven 2.6 resource plugin dependency?


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.


Solution

  • 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