I finally found the source of this problem! Or close to it at least. I have managed to get my META-INF/persistence.xml included in the jar, but I'm unsure what is to blame :-).
I'm also using the Apache Felix bundle-plugin which allows for: <packaging>bundle</packaging> This due to the following configuration: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.5</version> <extensions>true</extensions> ... <configuration> <supportedProjectTypes> <supportedProjectType>jar</supportedProjectType> <supportedProjectType>bundle</supportedProjectType> </supportedProjectTypes> ... </configuration> </plugin> That is, I can use either or of "bundle" or "jar" for packaging. However when i use: <packaging>bundle</packaging> I don't get the META-INF/persistence.xml file in the jar. But when I change to: <packaging>jar</packaging> It is included! So my guess is that the maven-jar-plugin is affected by the packaging. The Felix bundle-plugin still works OK with packaging "jar" so I'll stick with that for now on. /Tommy 22 jul 2012 kl. 18:27 skrev Wayne Fay <wayne...@gmail.com>: >> I was hoping for a "Well, thats easy, just do ..." :-). But you are of >> course right >> Wayne, I need to isolate what is causing this. Thanks. > > If META-INF/persistence.xml was not even showing up in target, then we > might be able to provide a simple "recipe" to solve it. But that is > not the case here. Come back and let us know when you solve it. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >