| org.hibernate:hibernate-tools:5.0.0.Alpha2 works well together with hibernate 5.0.7.Final but has class incompabillities together with hibernate 5.1.0.Final. Run it from maven – <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <executions> <execution> <phase>process-classes</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>1.9.6</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>$ {cia.project.versions.hibernate.build.validator} </version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>$ {cia.project.versions.hibernate.build} </version> </dependency> </dependencies> <configuration> <hibernatetool destdir="target/classes"> <jpaconfiguration persistenceunit="com.hack23.cia.$ {project.artifactId} " propertyfile="src/main/resources/schema-mysql.properties"></jpaconfiguration> <hbm2ddl export="false" outputfilename="schema-mysql.sql"></hbm2ddl> <hbm2doc destdir="target/site/hbm2doc"></hbm2doc> <property key="dot.executable" value="$ {graphviz.dot.executable} "></property> </hibernatetool> </configuration> </plugin> – |