hibernate3-maven-plugin not compatible with hibernate4, I get the following error while trying to run any goals in that plugin. How do I circumvent this issue?
[ERROR] Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2
ddl (create sql schema) on project framework: Execution create sql schema of goal
org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl failed: An API incompatibi
lity was encountered while executing org.codehaus.mojo:hibernate3-maven-plugin:2.
2:hbm2ddl: java.lang.IllegalAccessError: tried to access method org.hibernate.cfg
.Configuration.<init>(Lorg/hibernate/cfg/SettingsFactory;)V from class org.hibern
ate.ejb.Ejb3Configuration
use this config
and add
<hibernate.maven.plugin.version>3.6.10.Final</hibernate.maven.plugin.version>
to your pom properties.