You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jo...@faa.gov on 2007/06/08 21:15:38 UTC

Question with Modules

Hi,

   I am new to maven. I am trying to separate my project into at least 2 
modules core and web. core will have all the classes and hibernate 
mapping. web module will have all the web mvc classes, web has a 
dependency on core. I get everything to work except I dont know how to get 
the web module to read the hbm.xml files that's in the core's jar file. 

Thanks.
-John

Re: Question with Modules

Posted by Eric Redmond <er...@gmail.com>.
Are your hbm files in the jar?

Note that they must be under src/main/resources - they cannot be under
src/main/java with the java code.

Eric

On 6/8/07, John.T-CTR.Poon@faa.gov <Jo...@faa.gov> wrote:
>
> Hi,
>
>    I am new to maven. I am trying to separate my project into at least 2
> modules core and web. core will have all the classes and hibernate
> mapping. web module will have all the web mvc classes, web has a
> dependency on core. I get everything to work except I dont know how to get
> the web module to read the hbm.xml files that's in the core's jar file.
>
> Thanks.
> -John




-- 
Eric Redmond
http://www.sonatype.com