.
From: tommybsvens...@me.com
Subject: Re: maven-jar-plugin refuses to include META-INF/persistence.xml !
- Problem solved
Date: Sat, 11 Aug 2012 18:56:43 +0200
To: users@maven.apache.org
I finally found the source of this problem! Or close to it at least. I have
managed to get my META-INF
pas n'importe quel effet légalement obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.
From: tommybsvens...@me.com
Subject: Re: maven-jar-plugin refuses to include META-INF
If you use the packagingbundle/packaging style in your pom, then its bnd
that does the actual jar creation, and NOT the traditional jar plugin.
We hit this same issue awhile ago when including compiled coffee-script into
our jars, just putting them directly in target/classes doesn't just work.
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:
packagingbundle/packaging
This due to the
refuses to include META-INF/persistence.xml ! -
Problem solved
Date: Sat, 11 Aug 2012 18:56:43 +0200
To: users@maven.apache.org
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
I'm also using the Apache Felix bundle-plugin which allows for:
packagingbundle/packaging
This is not a packaging delivered by Apache Maven. Thus you can
blame whoever is making this packaging available to you.
That is, I can use either or of bundle or jar for packaging. However when
On 12 Aug 2012, at 03:54, Wayne Fay wayne...@gmail.com wrote:
I'm also using the Apache Felix bundle-plugin which allows for:
packagingbundle/packaging
This is not a packaging delivered by Apache Maven. Thus you can
blame whoever is making this packaging available to you.
That
Most likely the bundle packaging does not include META-INF for some
reason. I would talk to the Apache Felix people about this issue so
they can resolve it in their code.
This is working as designed, as covered in the FAQ:
Thanks Stuart. This is a good thing to keep in mind for when future
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.
/Tommy
22 jul 2012 kl. 05:30 skrev Wayne Fay:
Maven just refuses to include META-INF/persistence.xml in the jar no matter
what I do! It resides in
Which packaging do have? Can you post your POM?
Am 21.07.2012 22:51 schrieb Tommy Svensson tommybsvens...@me.com:
Hello maven fans,
I've become slightly balder today. I've been tearing my hair over why JPA
keeps insisting it cannot find my persistence unit. Everything in my
persistence.xml
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.
Hello maven fans,
I've become slightly balder today. I've been tearing my hair over why JPA keeps
insisting it cannot find my persistence unit. Everything in my persistence.xml
file is correct I've checked it over an over.
I've just discovered that the problem is not in the JPA provider
Maven just refuses to include META-INF/persistence.xml in the jar no matter
what I do! It resides in src/main/resources/META-INF. After building it is
also
in target/classes/META-INF along with MANIFEST.MF, but it is missing in the
jar file.
Try a very simple test...
Run mvn
13 matches
Mail list logo