Mathis try this:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>hibernate3-maven-plugin</artifactId>
  <version>2.0-alpha-2</version>
  <configuration>
    <components>
      <component>
        <name>hbm2ddl</name>
        <implementation>annotationconfiguration</implementation>
      </component>
      <component>
        <name>hbm2hbmxml</name>
        <outputDirectory>src/main/resources</outputDirectory>
      </component>
    </components>
    <componentProperties>
      <drop>true</drop>
      <create>true</create>

<configurationfile>src/main/resources/hibernate.cfg.xml</configurationfile>
      <outputfilename>schema.sql</outputfilename>
    </componentProperties>
  </configuration>
  <executions>
    <execution>
      <phase>generate-sources</phase>
      <goals>
        <goal>hbm2ddl</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Regards

Johann Reyes

Reply via email to