[mevenide-user] Maven2 test not finding src/resources/META-INF/persistence.xml

Ryan de Laplante <[email protected]> Fri, 12 Sep 2008 07:15:03 -0700 (PDT)
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <[email protected]>
This message is cross posted in nbusers mailing list. I just remembered
someone telling me that this mailing list is more appropriate for maven
questions.  

Hi,

I have a maven2 project and has a persistence.xml in 
src/main/resources/META-INF/ and src/test/resources/META-INF/.   I've got a
dependency on TopLink JPA provider configured. When I execute the test it
uses the persistence.xml from main instead of test folder.  When I rename
the main persistence.xml (leaving the test one named properly), then no
persistence.xml is found. 

Any idea what is happening?

FYI Spring 2.5.5 is the JPA container. It is trying to initialize a PU to
inject it into an entityManagerFactory bean.


Thanks,
Ryan

-- 
View this message in context: http://www.nabble.com/Maven2-test-not-finding-src-resources-META-INF-persistence.xml-tp19456760p19456760.html
Sent from the mevenide - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email