Hi, I'm trying to specify the directory where I want to output the schema generated running the hbm2ddl goal. Whatever string I'll set to the outputdirectory tag it gets ignored placing the file with the correct name always into the target/hibernate3/sql directory. Can you please help me?
I'm running the 2.1 plugin version and my POM hibernate3-maven-plugin part follows <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <executions> <execution> <phase>generate-test-resources</phase> <id>hsqldb-schema.sql</id> <goals> <goal>hbm2ddl</goal> </goals> <configuration> <componentProperties> <configurationfile>/res/db/hibernate.cfg.xml</configurationfile> <propertyfile>/res/db/hsqldb.properties</propertyfile> <outputfilename>hsqldb-schema.sql</outputfilename> <outputdirectory>/res/db</outputdirectory> <export>false</export> <jdk5>true</jdk5> <format>true</format> </componentProperties> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.7</version> </dependency> </dependencies> </plugin> -- Roberto Lo Giacco