Dan, I don't understand the requirement here. Why would you need the persistence.xml file in the WEBAPP/meta-inf folder? Why not to have the webapp which includes the persistence module as a dependency, thus the persistence module will be placed under webapp/lib and the classes will be available in the classpath?
On Thu, 2010-05-13 at 07:32 -0700, Dan King wrote: > 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org