Antonio Petrelli wrote:
2007/4/17, JavierL <[EMAIL PROTECTED]>:
Just one more thing.

In my source code I've Hiberntae mappuings .xml files but I could not found
them inside generated jar. I can't see in docs how to force to add those
files to jar...

Is this possible ?

It depends, resources (like xml files) must be put in a resources
directory, the default is:
<project_root>/src/main/resources
I did not try it, but I think that if you put non-java files in
"src/main/java", the files are ignored when packaging.

True. One can put the mappings in the src/main/resources or tell maven to pick them up from their directory e.g. if your mappings are in src/main/hbm:

<build>
 ...
 <resources>
  <resource>
   <directory>src/main/hbm</directory>
   <filtering>true</filtering>
  </resource>
 </resources>


hth,


Manos

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

Reply via email to