com.googlecode.flyway.maven
Class MigrateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.googlecode.flyway.maven.MigrateMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class MigrateMojo
- extends org.apache.maven.plugin.AbstractMojo
Maven goal that triggers the migration of the configured database to the latest version.
|
Field Summary |
protected java.lang.String |
driver
The fully qualified classname of the jdbc driver to use to connect to the database. |
protected java.lang.String |
password
The password to use to connect to the database. |
protected java.lang.String |
url
The jdbc url to use to connect to the database. |
protected java.lang.String |
user
The user to use to connect to the database. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
driver
protected java.lang.String driver
- The fully qualified classname of the jdbc driver to use to connect to the database.
url
protected java.lang.String url
- The jdbc url to use to connect to the database.
user
protected java.lang.String user
- The user to use to connect to the database.
password
protected java.lang.String password
- The password to use to connect to the database.
MigrateMojo
public MigrateMojo()
doExecute
protected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException- See Also:
Mojo.execute()
getDataSource
protected javax.sql.DataSource getDataSource()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
execute
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2010. All Rights Reserved.