Plugin Documentation

Goals available for this plugin:

GoalDescription
db:blockBlock until the user hits Ctrl-C.
db:cleanUpThis class is a convenience mojo that includes the 'drop' and 'stop' mojo.
db:cleanUpDBDEPRECATED This class is a convenience mojo that includes the 'drop' and 'stop' mojo.
db:createThis class is a database mojo for the 'create' statement. It creates the table(s) in the database.
db:deleteThis class is a database mojo for the 'delete' statement. It deletes the entries previously added to the database table.
db:destroyThis class is a database mojo for the 'destroy' statement. It deletes all database tables.
db:dropThis class is a database mojo for the 'drop' statement.
db:prepareThis class is a convenience mojo that includes the 'start', 'silentDrop' and 'create' mojo.
db:prepareDBDEPRECATED This class is a convenience mojo that includes the 'start', 'silentDrop' and 'create' mojo.
db:runThis class is a database mojo for the generic 'run' statement which executes all sql files matching the given prefix.
db:silentDropThis class is a database mojo for the 'silentDrop' statement. It executes the same statement as the drop mojo, but ignores exceptions. It's intended to be used as a "safe" drop before a the create mojo, e.g.
db:startThis class is a database mojo for the 'start' statement.
db:stopThis class is a database mojo for the 'stop' statement.
db:updateThis class is a database mojo for the 'update' statement.
db:webUIStart the H2 web UI. Database driver dependencies have to be declared in the build/plugins/plugin/dependencies section of the pom.xml file.

System Requirements

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

Maven2.0
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo 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>ch.elca.el4j.maven.plugins</groupId>
          <artifactId>maven-database-plugin</artifactId>
          <version>3.1</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>ch.elca.el4j.maven.plugins</groupId>
        <artifactId>maven-database-plugin</artifactId>
        <version>3.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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