public abstract class AbstractJiraDbMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected static Collection<String> |
BOXDB_PROPERTY_NAMES
Important properties we want to save to file and restore on later invocations.
|
protected File |
boxSettingsFile |
protected String |
containerName |
protected String |
databaseName |
protected String |
databasePassword |
protected String |
databaseUser |
protected File |
dumpDirectory |
protected String |
dumpName |
protected boolean |
interactiveMode |
protected File |
jiraHome |
protected org.apache.maven.project.MavenProject |
project |
protected org.codehaus.plexus.components.interactivity.Prompter |
prompter |
protected org.apache.maven.execution.MavenSession |
session |
protected boolean |
useClusterWorkaround
Turn this off if you don't want to use add a JAR to jmake's Tomcat that fixes clustered dbconfig.xml files.
|
| Constructor and Description |
|---|
AbstractJiraDbMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNotRunningInChildModule() |
protected void |
copyImportantPropertiesToProject(Properties source) |
protected void |
fillInBoxDbArtifacts() |
protected boolean |
isRunningFromJiraBaseDirectory() |
protected boolean |
readBoxSettingsFromFile() |
protected DatabaseType |
verifyDatabaseType(String dbTypeProperty) |
getLog, getPluginContext, setLog, setPluginContextprotected static final Collection<String> BOXDB_PROPERTY_NAMES
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${session}",
readonly=true)
protected org.apache.maven.execution.MavenSession session
@Parameter(property="jiradb.settingsFile",
defaultValue="${project.basedir}/jirahome/boxdb.properties")
protected File boxSettingsFile
@Parameter(property="db.containerName") protected String containerName
@Parameter(property="db.name") protected String databaseName
@Parameter(property="db.user") protected String databaseUser
@Parameter(property="db.password") protected String databasePassword
@Parameter(property="jira.home",
defaultValue="${project.basedir}/jirahome",
required=true)
protected File jiraHome
@Parameter(property="db.dumpDirectory",
defaultValue="${user.home}/jira-database-dumps")
protected File dumpDirectory
@Parameter(property="db.dump") protected String dumpName
@Component protected org.codehaus.plexus.components.interactivity.Prompter prompter
@Parameter(property="interactiveMode",
defaultValue="${settings.interactiveMode}",
required=true)
protected boolean interactiveMode
@Parameter(property="jiradb.cluster.workaround",
defaultValue="true")
protected boolean useClusterWorkaround
protected boolean isRunningFromJiraBaseDirectory()
protected boolean readBoxSettingsFromFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void copyImportantPropertiesToProject(Properties source)
protected DatabaseType verifyDatabaseType(String dbTypeProperty) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void checkNotRunningInChildModule()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void fillInBoxDbArtifacts()
Copyright © 2016 Atlassian. All rights reserved.