public abstract class AbstractJGitFlowMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowSnapshots
Whether to allow SNAPSHOT dependencies.
|
protected boolean |
allowUntracked
Whether to allow untracked files when checking if the working tree is clean.
|
protected boolean |
alwaysUpdateOrigin
Whether to always overwrite the origin url in the .git/config file
This is useful to ensure the proper origin url is used in CI environments
|
protected String |
defaultOriginUrl
Default url to use if origin remote is not found in .git/config.
|
protected boolean |
enableSshAgent
Whether to enable using an ssh-agent.
|
protected String |
eol
This can be used to force the type of line ending used when rewriting poms.
|
protected boolean |
localOnly
Whether to turn off all operations access the remote git repository.
|
protected boolean |
offline
Whether to turn off all operations that require network access.
|
protected String |
password
The password to use when using user/pass authentication
|
protected org.apache.maven.project.MavenProject |
project |
protected boolean |
pullDevelop
Whether to pull the develop branch when jgitflow is initialized
|
protected boolean |
pullMaster
Whether to pull the master branch when jgitflow is initialized
|
protected String |
scmCommentPrefix
The message prefix to use for all SCM changes.
|
protected String |
scmCommentSuffix
The message suffix to use for all SCM changes.
|
protected org.apache.maven.execution.MavenSession |
session |
protected String |
username
The username to use when using user/pass authentication
|
| Constructor and Description |
|---|
AbstractJGitFlowMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getBasedir() |
ClassLoader |
getClassloader(String classpath) |
protected String |
getClasspath() |
MavenJGitFlowExtension |
getExtensionInstance(String classname) |
FlowInitContext |
getFlowInitContext() |
List<org.apache.maven.project.MavenProject> |
getReactorProjects()
Gets the list of projects in the build reactor.
|
boolean |
isRemoteAllowed() |
void |
setBasedir(File basedir)
Sets the base directory of the build.
|
void |
setFlowInitContext(FlowInitContext flowInitContext) |
getLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${session}",
readonly=true,
required=true)
protected org.apache.maven.execution.MavenSession session
@Parameter(defaultValue="false",
property="enableSshAgent")
protected boolean enableSshAgent
@Parameter(defaultValue="false",
property="allowSnapshots")
protected boolean allowSnapshots
@Parameter(defaultValue="false",
property="allowUntracked")
protected boolean allowUntracked
@Parameter(property="offline",
defaultValue="${settings.offline}")
protected boolean offline
@Parameter(property="localOnly",
defaultValue="false")
protected boolean localOnly
@Parameter(property="defaultOriginUrl",
defaultValue="")
protected String defaultOriginUrl
@Parameter(property="scmCommentPrefix",
defaultValue="")
protected String scmCommentPrefix
@Parameter(property="scmCommentSuffix",
defaultValue="")
protected String scmCommentSuffix
@Parameter(property="username",
defaultValue="")
protected String username
@Parameter(property="password",
defaultValue="")
protected String password
@Parameter(defaultValue="true",
property="alwaysUpdateOrigin")
protected boolean alwaysUpdateOrigin
@Parameter(defaultValue="false",
property="pullMaster")
protected boolean pullMaster
@Parameter(defaultValue="false",
property="pullDevelop")
protected boolean pullDevelop
@Parameter(defaultValue="",
property="eol")
protected String eol
protected final File getBasedir()
public void setBasedir(File basedir)
basedir - The build's base directory, must not be null.public List<org.apache.maven.project.MavenProject> getReactorProjects()
null.public FlowInitContext getFlowInitContext()
public void setFlowInitContext(FlowInitContext flowInitContext)
public boolean isRemoteAllowed()
public MavenJGitFlowExtension getExtensionInstance(String classname) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic ClassLoader getClassloader(String classpath)
protected String getClasspath() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2017 Atlassian. All rights reserved.