Path

  1. Hibernate Maven Plugin
  2. Project Reports
  3. Plugin Documentation


Plugin Documentation

Goals available for this plugin:

Goal Description
hibernate:create Generate/Execute SQL to create a database-schema that represents the configured mappings.
hibernate:drop Generate/Execute SQL to drop all tables of a database-schema that represents the configured mappings.
hibernate:help Display help information on hibernate-maven-plugin.
Call mvn hibernate:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
hibernate:update Generate/Execute SQL to update the database-schema according to the configured mappings.

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>hibernate-maven-plugin</artifactId>
          <version>2.1.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.juplo</groupId>
        <artifactId>hibernate-maven-plugin</artifactId>
        <version>2.1.0</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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


Pages