com.google.code.flyway.maven
Class MigrateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.google.code.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
 
Constructor Summary
MigrateMojo()
           
 
Method Summary
 void execute()
           
protected  javax.sql.DataSource getDataSource()
           
 
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
 

Field Detail

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.

Constructor Detail

MigrateMojo

public MigrateMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getDataSource

protected javax.sql.DataSource getDataSource()
                                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2010. All Rights Reserved.