Re: [test resources] persistence.xml

2013-11-03 Thread Romain Manni-Bucau
Hi Both are in the classpath for different ejbmodule so that s ok. Maybe have a look to altdd to use test.persistence.xml in src/main/resources Le 3 nov. 2013 00:00, Matthias Wessendorf mat...@apache.org a écrit : Hi, when running unit tests - where I have a

Re: [test resources] persistence.xml

2013-11-03 Thread Matthias Wessendorf
Hrm, for me using a src/main/resources/META-INF/test.persistence.xml feels a bit wrong, especially since test-ware should be stored w/in src/test, like src/test/resources/META-INF/persistence.xml; -Matthias On Sun, Nov 3, 2013 at 9:17 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote: Hi

Re: [test resources] persistence.xml

2013-11-03 Thread Romain Manni-Bucau
So use arquillian or applicationcomposer. You use EJBContainer i think which is a standalone solution and not a test one. That said you can exclude the resource configuring mvn jar plugin Le 3 nov. 2013 09:41, Matthias Wessendorf mat...@apache.org a écrit : Hrm, for me using a

[test resources] persistence.xml

2013-11-02 Thread Matthias Wessendorf
Hi, when running unit tests - where I have a src/test/resources/META-INF/persistence.xml file - I am wondering why the one in src/main is also included. Wouldn't the one in test be the 'right' one ? See also [1] -Matthias [1]