Hibernate 4 Maven Plugin - Plugin Documentation

Plugin Documentation

Goals available for this plugin:

Goal Description
hibernate4:export Goal which extracts the hibernate-mapping-configuration and exports an according SQL-database-schema.
hibernate4:help Display help information on hibernate4-maven-plugin.
Call mvn hibernate4: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.6
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.juplo</groupId>
          <artifactId>hibernate4-maven-plugin</artifactId>
          <version>1.0.3</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.juplo</groupId>
        <artifactId>hibernate4-maven-plugin</artifactId>
        <version>1.0.3</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"