Hello Lakshman

I think I answered this before in the following post:
http://www.mail-archive.com/users@maven.apache.org/msg49367.html

Regards

Johann Reyes

-----Original Message-----
From: Lakshman Srilakshmanan
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 3:48 AM
To: Maven Users List
Subject: hibernate hbm.xml file not found

Hi All,


When I try to generate-sources for hibernate java files from xxx.hbm.xml
from within maven using <goal>hbm2java</goal> nothing is created.

But, if I get (by hook or by crook) the xxx.hbm.xml file into target/classes
then I am able to generate the java files. 
I believe this is because hibernate tool looks in "hibernate classpath"
for the xxx.hbm.xml files.

How do I include src/main/resources into the "hibernate classpath" or do I
have to create an ant task to copy the xxx.hbm.xml file into target/classes
in the generate-sources phase before executing hbm2java. 

Is there an alternate way or is this a bug ??

Could someone please point me in the right direction.

Thanks
Lakshman


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to