# Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved

**URL:** <https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635>\
**Category:** Development\
**Created:** [March 26, 2020, 8:18am UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635 "2020-03-26T08:18:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![insookwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/insookwa/32/11433_2.png) [@insookwa](https://talk.openmrs.org/u/insookwa)\
**Post date:** [March 26, 2020, 8:18am UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/1 "2020-03-26T08:18:27Z")

</div>

![erroe](https://talk.openmrs.org/uploads/default/original/2X/c/c95f9b5ca6c110d09b9aab574fee98a2d234d1d4.png)

Hello everyone

when i open openmrs-web and other maven projects in eclipse i get this 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

Does anyone know how to go about it .thanks@mozzy

---

<div class="post-metadata">

**Author:** ![joachimjunior](https://talk.openmrs.org/user_avatar/talk.openmrs.org/joachimjunior/32/14667_2.png) [@joachimjunior](https://talk.openmrs.org/u/joachimjunior)\
**Post date:** [March 26, 2020, 10:19am UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/2 "2020-03-26T10:19:38Z")

</div>

Well @insookwa i think this a version problem. Check the version of the package you want to install and check if maven has it’s equivalent.

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [March 26, 2020, 1:01pm UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/3 "2020-03-26T13:01:17Z")

</div>

Given that the `maven-resources-plugin` is a core component, this sounds like the likely cause is either a corrupted or missing file. First, if you’re behind a proxy, you’ll need to [configure Maven to work with your proxy](https://maven.apache.org/guides/mini/guide-proxies.html). Second, there are two possible approaches to resolving the issue: the easy way, which requires a good internet connection, and the slightly more complex way that can probably be done with any internet connection.

**The Easy Way**

Delete the `%USERPROFILE%\.m2` directory (I think this is usually where it is but I’m not 100% certain on Windows). Reopen Eclipse and try to build the project.

**Slightly more complex way**

1. Go to `%USERPROFILE%\.m2\org\apache\maven\plugins\maven-resources-plugin\2.6`
2. Delete all the files there
3. Go [here](https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/) and download the following files:
  - maven-resources-plugin-2.6.jar
  - maven-resources-plugin-2.6.jar.sha1
  - maven-resources-plugin-2.6.pom
  - maven-resources-plugin-2.6.pom.sha1

4. Move all those files into `%USERPROFILE%\.m2\org\apache\maven\plugins\maven-resources-plugin\2.6`
5. Reopen Eclipse

---

<div class="post-metadata">

**Author:** ![insookwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/insookwa/32/11433_2.png) [@insookwa](https://talk.openmrs.org/u/insookwa)\
**Post date:** [March 26, 2020, 5:58pm UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/4 "2020-03-26T17:58:39Z")

</div>

Thank you so much @ibacher though ive stumbled on a few new challenges

1. on downloading the maven-resources-plugin-2.6.jar.sha1, i got this:[dd093ff6a4b680eae7ae83b5ab04310249fc6590](https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar.sha1). its the same withmaven-resources-plugin-2.6.pom.sha1. i am new to maven and would request to know how am i supposed to add it to the repositories .

2. after deleting the former files and adding the new downloaded files “maven-resources-plugin-2.6.jar”. ive re opened eclipse and tried to build another maven project and i recived these errors ;

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-war-plugin:jar:2.2 from [Central Repository:](https://repo.maven.apache.org/maven2) was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-war-plugin:jar:2.2 from/to central ([Central Repository:](https://repo.maven.apache.org/maven2)): [repo.maven.apache.org](http://repo.maven.apache.org) Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-war-plugin:jar:2.2 from [Central Repository:](https://repo.maven.apache.org/maven2) was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-war-plugin:jar:2.2 from/to central ([Central Repository:](https://repo.maven.apache.org/maven2)): [repo.maven.apache.org](http://repo.maven.apache.org)

 ![maven error](https://talk.openmrs.org/uploads/default/original/2X/f/f4f59aede4cb0926120a7eddcae5dd1127e9161c.png)

---

<div class="post-metadata">

**Author:** ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)\
**Post date:** [March 26, 2020, 6:01pm UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/5 "2020-03-26T18:01:51Z")

</div>

Thanks @ibacher for digging deep into this. I like that 😀

However what i can say , Ecllipse maven plugin is always trouble some. First try to follow the steps @ibacher has outlined ,

another option , would be ,  
If you have maven installed on your machine , Just ensure you can build your project successfully without any errors in your command line and if that happens , then you may ignore eclipse maven plugin errors.

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [March 26, 2020, 6:14pm UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/6 "2020-03-26T18:14:20Z")

</div>

> [@mozzy](#):
>
> Ecllipse maven plugin

I always forget that the Eclipse Maven Plugin tries to do it’s own thing… as if Maven wasn’t complex enough already!

> [@insookwa](#):
>
> Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved

At this point you might want to consider clearing out the `.m2` directory completely. Or as @mozzy suggested, build from the command line and see if that works.

---

<div class="post-metadata">

**Author:** ![insookwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/insookwa/32/11433_2.png) [@insookwa](https://talk.openmrs.org/u/insookwa)\
**Post date:** [March 26, 2020, 6:40pm UTC](https://talk.openmrs.org/t/plugin-org-apache-maven-plugins2-6-or-one-of-its-dependencies-could-not-be-resolved/27635/7 "2020-03-26T18:40:04Z")

</div>

OK let me try that thanks @ibacher @mozzy @joachimjunior
