# Maven dependency error in PHR module

**URL:** <https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689>\
**Category:** Development\
**Tags:** module, phr, bahmni, developers-forum\
**Created:** [May 26, 2020, 10:24am UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689 "2020-05-26T10:24:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhananjayvalte](https://talk.openmrs.org/letter_avatar/dhananjayvalte/32/5_5575768a8748004e209b776fc1b2916d.png) [@dhananjayvalte](https://talk.openmrs.org/u/dhananjayvalte)\
**Post date:** [May 26, 2020, 10:24am UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689/1 "2020-05-26T10:24:36Z")

</div>

I was trying to explore the openmrs personhr(PHR) module.

I have cloned the repo from this link: [GitHub - openmrs/openmrs-module-personalhr: Personal Health Record module for OpenMRS](https://github.com/openmrs/openmrs-module-personalhr)

Switch to 0.0.3 branch.

Then I opened the repo in eclipse and then eclipse started downloading the required dependency. But get an error in “messaging-api-0.9.0-beta.jar" dependency.

Error: `The container 'Maven Dependencies' references non existing library '/home/dhananjay/.m2/repository/org/openmrs/module/messaging-api/0.9.0-beta/messaging-api-0.9.0-beta.jar'`

 ![PHR-omod-error](https://talk.openmrs.org/uploads/default/original/2X/a/a086935d0e2c053742c5c398b302a44877fa8211.png)

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [May 26, 2020, 11:12am UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689/2 "2020-05-26T11:12:37Z")

</div>

You may have had a network issue when maven was downloading the required repositories that is why you didn’t have the right jars. adding a -U to a maven clean install will get them for you. So if the above solutions aren’t working try this:

```
Right click on your project -> Choose Run as -> Maven build...
In the Goals field type "clean install -U" and select Run
After that completes right click on your project again and choose Maven -> Update Project and click ok.
```

---

<div class="post-metadata">

**Author:** ![dhananjayvalte](https://talk.openmrs.org/letter_avatar/dhananjayvalte/32/5_5575768a8748004e209b776fc1b2916d.png) [@dhananjayvalte](https://talk.openmrs.org/u/dhananjayvalte)\
**Post date:** [May 26, 2020, 11:30am UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689/3 "2020-05-26T11:30:43Z")

</div>

@jwnasambu,

I don’t have network issue. And I have already tried the mentioned solution.

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [May 26, 2020, 11:41am UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689/4 "2020-05-26T11:41:50Z")

</div>

If your internet is okay and still getting the error, then do Project-\>Clean and then be sure you have selected your project directory and then do the follow Project-\>Build.

---

<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:** [May 26, 2020, 1:07pm UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689/5 "2020-05-26T13:07:18Z")

</div>

@dhananjayvalte You probably need to build [this module](https://github.com/openmrs/openmrs-module-messaging) yourself. It may no longer live in the Maven repository.

---

<div class="post-metadata">

**Author:** ![dhananjayvalte](https://talk.openmrs.org/letter_avatar/dhananjayvalte/32/5_5575768a8748004e209b776fc1b2916d.png) [@dhananjayvalte](https://talk.openmrs.org/u/dhananjayvalte)\
**Post date:** [May 27, 2020, 4:11am UTC](https://talk.openmrs.org/t/maven-dependency-error-in-phr-module/28689/6 "2020-05-27T04:11:20Z")

</div>

@ibacherThanks for your inputs. I will do that.
