org.dbmaintain.maven.plugin
Class BaseMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.dbmaintain.maven.plugin.BaseMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- BaseDatabaseMojo, CreateScriptArchiveMojo
public abstract class BaseMojo
- extends org.apache.maven.plugin.AbstractMojo
- Author:
- Tim Ducheyne, tiwe
Field Summary |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected File |
configFile
The DbMaintain configuration file
(common for native dbMaintain, through ant or this maven-plugin). |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.apache.maven.project.MavenProjectHelper |
mavenProjectHelper
|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected List |
remoteRepositories
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
|
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 |
project
protected org.apache.maven.project.MavenProject project
- The maven project.
artifactFactory
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
resolver
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
localRepository
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
remoteRepositories
protected List remoteRepositories
mavenProjectHelper
protected org.apache.maven.project.MavenProjectHelper mavenProjectHelper
configFile
protected File configFile
- The DbMaintain configuration file
(common for native dbMaintain, through ant or this maven-plugin).
BaseMojo
public BaseMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
createDbMaintainTask
protected abstract DbMaintainTask createDbMaintainTask()
performAfterTaskActions
protected void performAfterTaskActions()
- Hook method to perform some operations (such as attaching an artifact) when the
task has completed successfully.
getMavenProperties
protected Properties getMavenProperties()
Copyright © 2011. All Rights Reserved.