Hello

First you need to set up the element outputfilename as seen here:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/s
chema_output.html

Also you need to include the annotated classes in your hibernate.cfg.xml
file

Regards

Johann Reyes

-----Original Message-----
From: lemon dumpling [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 03, 2007 8:33 PM
To: users@maven.apache.org
Subject: Maven2+Hibernate3 Annotation Problem

Hi,

I want to generate database schema to a sql file and feed the schema into my
database. I have hibernate annotations instead of hbm.xml files.

<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>hibernate3-maven-plugin</artifactId>
        <version>2.0-SNAPSHOT</version
        <configuration>
          <components>
            <component>
              <name>hbm2ddl</name>
            </component>
          </components>
          <componentProperties>
            <drop>true</drop>
            <create>true</create>

<configurationfile>src/main/resources/etc/hibernate.cfg.xml</configurationfi
le>
          </componentProperties>
        </configuration>
</plugin>

I believe something is missing. Thanks!

Cheers



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to