Hello,
Schema export is simply doing nothing as far as I can tell: it opens a connection to the database, commits and closes the connection. It also creates an empty file where I want my ddl file to be. Postgres produces this warning:
Quote:
WARNING: COMMIT: no transaction in progress
Here's my maven.xml
Code:
<project xmlns:ant="jelly:ant">
<preGoal name="java:compile">
<attainGoal name="xdoclet:hibernatedoclet"/>
</preGoal>
<goal name="hibernate:schema-export3" >
<ant:echo>Exporting Hibernate Schema file</ant:echo>
<ant:mkdir dir="${maven.hibernate.output.dir}"/>
<ant:taskdef name="schemaexport"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask">
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement path="${maven.build.dest}"/>
</ant:classpath>
</ant:taskdef>
<schemaexport
properties="${maven.hibernate.properties}"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="${maven.hibernate.output.file}">
<fileset dir="target/classes/">
<include name="**.*.hbm.xml"/>
</fileset>
</schemaexport>
</goal>
</project>
I'm using :
hibernate : 2.1.4
maven: 1.0rc-3
postgresql: 7.3