Hello all,
I'm having some trouble with the hibernate3-maven-plugin. I keep getting
the following error message whenever I run mvn hibernate3:hbm2ddl...
Org.hibernate.ejb.Ejb3Configuration - Could not find any
META-INF/persistence.xml file in the classpath.
The odd thing about this is that I have a persistence.xml at the path
src/main/java/META-INF/persistence.xml. I have also tried copying it
several other places and it hasn't made any difference.
My pom looks like this...
<!-- Hibernate DDL Generation -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
</execution>
</executions>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>annotationconfiguration</implementation>
</component>
</components>
<componentProperties>
<implementation>jpaconfiguration</implementation>
<persistenceunit>Default</persistenceunit>
<outputfilename>schema.ddl</outputfilename>
<drop>false</drop>
<create>true</create>
<export>false</export>
<format>true</format>
</componentProperties>
</configuration>
</plugin>
Anybody have a clue why this might be happening?
Jean-Philippe