Unable to define dependency over rest module

0 views
Skip to first unread message

Rakshit Wadhwa

unread,
May 30, 2014, 3:34:37 AM5/30/14
to d...@openmrs.org
Hi

I am trying to add dependency of rest module to my new module.
I am getting the following error when I run mvn clean install over my module.

The following artifacts could not be resolved: org.openmrs.module:webservices.rest-omod-api:jar:2.0, org.openmrs.module:webservices.rest-omod-common-api:jar:2.0: Failure to find org.openmrs.module:webservices.rest-omod-api:jar:2.0 in http://mavenrepo.openmrs.org/nexus/content/repositories/public

I manually downloaded the jar and added to my maven repository but the same error continued to persist.

I have the following pom.xml files:
omod : http://pastebin.com/ZhDnT8dk
api: http://pastebin.com/MM6GdbBk

Also, from the source code: https://github.com/openmrs/openmrs-module-webservices.rest  which branch shall I use? Also I tried a couple of them, but OMOD Services 1.10 continued to fail.

Please help out with adding rest module to my module.

Thanks and regards
Rakshit

Harsha Kumara

unread,
May 30, 2014, 3:54:02 AM5/30/14
to d...@openmrs.org
Hi Rakshit,

Seems like you specify the dependency artifact id and group id. Did you refer to [1].Please have a look at it. And also in your parent pom specify the openmrs repositories as in [2]. 

Thanks,
Harsha


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.



--
Harsha Kumara
Software Engineer
WSO2 Inc.
Sri Lanka.

Wyclif Luyima

unread,
May 30, 2014, 10:56:22 AM5/30/14
to Developers
Hi Rakshit,

Since you are including the omod for rest module, i guess it is fair for one to assume you are using the code in the omod sub project of your module. With that said, have you included the dependency in your pom file under the omod sub project too?

Wyclif
--
Wyclif Luyima
Regenstrief Institute Inc.

Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose.

If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited.

Wyclif Luyima

unread,
May 30, 2014, 11:05:27 AM5/30/14
to Developers
After taking a closer look, it appears like you are specifying incorrect artifact ids for the dependencies in the pom file, they should be:

webservices.rest-omod
webservices.rest-omod-common



Note that they don't contain 'api'

Wyclif

Reply all
Reply to author
Forward
0 new messages