I'm trying to get JBehave, JPA and Maven to play nicely together. I can run the test via eclipse and everything works just fine. I run it via maven, and JPA can't find the persistence.xml
file. However a unit test I have finds the persistence.xml
file just fine, but JBehave is not involved.
Clearly I need to tell JBehave to look in src/main/resources
for the META-INF/persistence.xml
file, or get it on the classpath at least. Is there a way to do that?
org.jbehave jbehave-maven-plugin 2.3-rc1 run-scenarios-found test test test/nsfw/bmp/partymodel/PartySearch.java test/nsfw/bmp/partymodel/RealtionshihpFunctionality.java run-scenarios