RE: persistence unit can not be found during test

2009-08-12 Thread Neo Anderson
ubject: RE: persistence unit can not be found during test > To: users@maven.apache.org > Date: Wednesday, 12 August, 2009, 8:33 PM > > why not use > oracle-toplink such as this example from > /src/conf/persistence.xml > > >   transaction-type="JTA" > >

RE: persistence unit can not be found during test

2009-08-12 Thread Martin Gainty
alement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 12 Aug 2009 19:19:27 + > From: javadeveloper...@yahoo.co.uk > Subject: persistence unit can not be foun

Re: persistence unit can not be found during test

2009-08-12 Thread Neo Anderson
to target/test-classes? Thanks for your help. I appreciate it. --- On Wed, 12/8/09, Brian Fox wrote: > From: Brian Fox > Subject: Re: persistence unit can not be found during test > To: "Maven Users List" > Date: Wednesday, 12 August, 2009, 7:44 PM > your resources will

Re: persistence unit can not be found during test

2009-08-12 Thread Brian Fox
your resources will be copied to /target/test-classes/ so use that, or better, load it from the classpath, then you aren't path dependent. On Wed, Aug 12, 2009 at 3:19 PM, Neo Anderson wrote: > I encouter a problem when running maven test + jpa + mysql. The report result > always shows that `No P

persistence unit can not be found during test

2009-08-12 Thread Neo Anderson
I encouter a problem when running maven test + jpa + mysql. The report result always shows that `No Persistence provider for EntityManager named jpa' (where jpa is the persistent-unit name specified in the persistence.xml under src/main/resources/META-INF). It looks like the test (e.g. mvn test)