When using following maven plugin all 'normal' tables were generated normal. The problem is that for the versioned tables no ddl code is generated.
When packaging the ear and deploy in JBoss all is fine. The versioned tables are generated well.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.2</version> <configuration> <components> <component> <name>hbm2ddl</name> <implementation>jpaconfiguration</implementation> </component> </components> <componentProperties> <export>no</export> <create>true</create> <drop>true</drop> <format>true</format> <jdk5>true</jdk5> <ejb3>true</ejb3> <haltonerror>true</haltonerror> <console>true</console> <outputfilename>schema.ddl</outputfilename> <persistenceunit>ImpactEntityManager</persistenceunit> <propertyfile>src/main/resources/hibernate.properties</propertyfile> </componentProperties> </configuration> <dependencies> <dependency> <groupId>com.oracle.jdbc</groupId> <artifactId>ojdbc6</artifactId> <version>11.1.0.6</version> </dependency> <dependency> <groupId>org.jboss.envers</groupId> <artifactId>jboss-envers</artifactId> <version>1.2.0.GA-hibernate-3.3</version> </dependency> </dependencies> </plugin>
Hello,
I'm not aware of a maven plugin that would generate DDLs with Envers tables. There is a special ant task (EnversHibernateToolTask - see in the docs), so I guess the maven plugin would have to be adapted to use it.
Adam