Have you seen this page?
https://wiki.openmrs.org/display/docs/Requiring+another+module+in+your+module

Ben

On Mon, Jan 9, 2012 at 9:33 PM, Mark Goodrich <[email protected]> wrote:

> Hello all—****
>
> ** **
>
> I’m having a little trouble referencing one mavenized module within
> another mavenized module and am looking for some feedback on what the
> preferred way to do this is via maven.****
>
> ** **
>
> I was able to deploy the address hierarchy module to the Openmrs maven
> repo via mvn deploy, and confirmed that the addresshierarchy poms and jars
> have been successfully added to the repo.  Now I have a second module that
> uses a service provided by the Address Hierarchy module. I’ve tried linking
> address hierarchy as a pom dependency in the main pom and the api pom of
> the second module using both the following methods, but in all cases  I get
> compile errors when building the second module because the relevant Address
> Hierarchy classes can’t be found:****
>
> ** **
>
> <dependency>****
>
>   <groupId>org.openmrs.module</groupId>****
>
>                 <artifactId>*addresshierarchy*</artifactId>****
>
>                 <version>2.2.0</version>****
>
>                 <type>pom</type>****
>
>                <scope>provided</scope>****
>
> </dependency>****
>
> ** **
>
> <dependency>****
>
>   <groupId>org.openmrs.module</groupId>****
>
>                 <artifactId>*addresshierarchy-api*</artifactId>****
>
>                 <version>2.2.0</version>****
>
>                 <type>pom</type>****
>
>                 <scope>provided</scope>****
>
> </dependency>****
>
> ** **
>
> The only way I can get it to build correctly is to reference the
> addresshierarchy-api jar directly:****
>
> ** **
>
> <dependency>****
>
>   <groupId>org.openmrs.module</groupId>****
>
>                 <artifactId>*addresshierarchy-api*</artifactId>****
>
>                 <version>2.2.0</version>****
>
>                 <type>jar<type>****
>
>                 <scope>provided</scope>****
>
> </dependency>****
>
> ** **
>
> Is this what we want?  Or is there some way to include via pom that I am
> missing?****
>
> ** **
>
> Thanks,****
>
> Mark****
>
> ** **
>
> ** **
>
> ** **
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to