Goals available for this plugin:
Goal | Description |
---|---|
db:block | Block until the user hits Ctrl-C. |
db:cleanUp | This class is a convenience mojo that includes the 'drop' and 'stop' mojo. |
db:cleanUpDB | DEPRECATED This class is a convenience mojo that includes the 'drop' and 'stop' mojo. |
db:create | This class is a database mojo for the 'create' statement. It creates the table(s) in the database. |
db:delete | This class is a database mojo for the 'delete' statement. It deletes the entries previously added to the database table. |
db:destroy | This class is a database mojo for the 'destroy' statement. It deletes all database tables. |
db:drop | This class is a database mojo for the 'drop' statement. |
db:prepare | This class is a convenience mojo that includes the 'start', 'silentDrop' and 'create' mojo. |
db:prepareDB | DEPRECATED This class is a convenience mojo that includes the 'start', 'silentDrop' and 'create' mojo. |
db:run | This class is a database mojo for the generic 'run' statement which executes all sql files matching the given prefix. |
db:silentDrop | This 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:start | This class is a database mojo for the 'start' statement. |
db:stop | This class is a database mojo for the 'stop' statement. |
db:update | This class is a database mojo for the 'update' statement. |
db:webUI | Start the H2 web UI. Database driver dependencies have to be
declared in the build/plugins/plugin/dependencies
section of the pom.xml file. |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.6 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
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"