Hi all,

How can I get maven to automatically copy (or move) my persistence.xml file 
from my persistence module's meta-inf directory to the web app's meta-inf 
directory?

I have a persistence module that contains, among other things, entity classes 
and the persistence.xml file. I've stored the persistence.xml file in 
"src/main/resources/meta-inf". When I build the app from the parent directory 
(directory that contains the parent pom), the persistence.xml file is NOT added 
to the META-INF directory of the web app. 

Also, since the persistence.xml file  currently resides in the same jar as the 
entity classes, I do not need to specify them; if I move the persistence.xml 
file to the meta-inf directory I'd have to list the entities. Is there a way 
around this? Thanks.

-Dan



      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to