Package org.javalite.db_migrator.maven
Class CheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.javalite.db_migrator.maven.AbstractMigrationMojo
org.javalite.db_migrator.maven.AbstractDbMigrationMojo
org.javalite.db_migrator.maven.CheckMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="check",
defaultPhase=PROCESS_TEST_RESOURCES)
public class CheckMojo
extends AbstractDbMigrationMojo
Check current schema against available migrations to see if database is up to date,
causing the build to fail if the database is not up to date.
-
Field Summary
Fields inherited from class org.javalite.db_migrator.maven.AbstractMigrationMojo
project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.javalite.db_migrator.maven.AbstractDbMigrationMojo
databaseExists, execute, getConfigFile, getCurrentEnvironment, getCurrentMergeProperties, getDriver, getEnvironments, getMergeProperties, getPassword, getUrl, getUsername, setConfigFile, setCurrentEnvironment, setCurrentMergeProperties, setDriver, setEnvironments, setMergeProperties, setPassword, setUrl, setUsername
Methods inherited from class org.javalite.db_migrator.maven.AbstractMigrationMojo
getCreateSql, getDropSql, getEncoding, getMigrationsPath, getProject, setCreateSql, setDropSql, setMigrationsPath, setProject, toAbsolutePath, toAbsolutePath
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CheckMojo
public CheckMojo()
-
-
Method Details
-
executeMojo
public void executeMojo() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executeMojo
in classAbstractDbMigrationMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-