maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Svensson <to...@natusoft.se>
Subject Re: maven-jar-plugin refuses to include META-INF/persistence.xml !
Date Sun, 22 Jul 2012 06:39:13 GMT
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 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 archetype:generate" (and pick maven-archetype-quickstart
> which is 205 for me). Specify whatever values when prompted.
> Then "mkdir src/main/resources/META-INF".
> Copy your persistence.xml file there.
> Run "mvn package" from the project directory.
> Then "cd target" and "jar -tvf blah-1.0-SNAPSHOT.jar | grep
> persistence" and see if it is in the jar.
> 
> If so, there *must* be some additional configuration which you are
> applying which is causing this to fail.
> 
> "mvn help:effective-pom" might be helpful in tracking this down more.
> I would remove as much configuration from your pom as possible while
> keeping the basic functionality you require.
> 
>> I can add that I'm also using the Apache Felix maven-bundle-plugin. I don't know
>> if it can affect this behavior.
> 
> No clue. If your test above works, I'd try to build things without
> this plugin and see if the problem goes away. If that works, I'd ask
> the Apache Felix team about it. Perhaps they are doing something funky
> which causes this file to not be included in your artifacts.
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message