views:

149

answers:

2

I used the hibernate3-maven-plugin to automatically create a SQL script I can use to create a database schema in a new database. I do this via the hbm2ddl tool. I thought that when I instructed it to write the SQL to a file it would stop cluttering up my maven builds with 50 pages of SQL. Anyway to make it stop writing to the console and only write to the file? Can't find the answer!

A: 

Looks like a known bug with the documentation:

http://jira.codehaus.org/browse/MHIBERNATE-92

HDave
+1  A: 

Add this to the config for this plugin:

<componentProperties>
  ...
  <console>false</console>
  ...
</componentProperties>
Gareth Williams