Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 339
spt025 Avatar asked Jul 09 '15 11:07

spt025


People also ask

What is Maven resources plugin?

The Resources Plugin handles the copying of project resources to the output directory. There are two different kinds of resources: main resources and test resources.

How do I add resources to Maven?

To include a resource, we only need to add an <includes> element. And to exclude a resource, we only need to add an <excludes> element. For example, if we want to include all text and RTF files under our src/my-resources directory and in all its subdirectories, we can do the following: <project>


1 Answers

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

like image 173
Kalyan Chavali Avatar answered Oct 08 '22 16:10

Kalyan Chavali