maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Svensson <>
Subject Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved
Date Sat, 11 Aug 2012 16:56:43 GMT
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:


This due to the following configuration:


That is, I can use either or of "bundle" or "jar" for packaging. However when i use:


I don't get the META-INF/persistence.xml file in the jar.

But when I change to:


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.


22 jul 2012 kl. 18:27 skrev Wayne Fay <>:

>> 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:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message