Plugin Documentation

Goals available for this plugin:

Goal Description
hibernate3:hbm2cfgxml Generates hibernate.cfg.xml
hibernate3:hbm2dao Base class for the different hibernate3 goals based on the Ant tasks of hibernate tools.
hibernate3:hbm2ddl Generates database schema.
hibernate3:hbm2doc Generates HTML documentation for the database schema.
hibernate3:hbm2hbmxml Generates a set of hbm.xml files
hibernate3:hbm2java Generates Java classes from set of *.hbm.xml files
hibernate3:hbmtemplate Generic exporter that can be controlled by a user provided template or class.
hibernate3:help Display help information on hibernate3-maven-plugin. Call
 mvn hibernate3:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.0.6
JDK 1.4
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You could run 'mvn -up' to get the latest version of this plugin, or specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>hibernate3-maven-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>hibernate3-maven-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>
For more information, see "Guide to Configuring Plug-ins"