public abstract class AbstractPerformBranchReleaseMojo extends AbstractCxxMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
addSchema
Whether to add a XML schema to the POM if it was previously missing on.
|
protected String |
artifactId
new artifact id, if provided
|
protected boolean |
autoVersionSubmodules
Whether to automatically assign submodules the parent (main) version.
|
protected boolean |
dryRun
Dry run: don't checkin or tag anything in the scm repository, or modify the checkout.
|
protected File |
javaHome
The
JAVA_HOME parameter to use for forked Maven invocations. |
protected File |
localRepoDirectory
The command-line local repository directory in use for this build (if specified).
|
protected File |
mavenHome
The
M2_HOME parameter to use for forked Maven invocations. |
protected CxxReleaseManager |
releaseManager
phases manager.
|
protected String |
settingsServerId
The server id to use in maven settings to retrieve credential.
|
protected boolean |
snapshotDevelopmentVersion
Shall developpment version use -SNAPSHOT suffix
|
protected boolean |
updateDependencies
Whether to update dependencies version to the next development version.
|
protected String |
username
The user name (used by svn).
|
protected File |
workingDirectory
The checkout directory.
|
basedir, project, reactorProjects, session, settings
Constructor and Description |
---|
AbstractPerformBranchReleaseMojo() |
Modifier and Type | Method and Description |
---|---|
protected CxxReleaseDescriptor |
createReleaseDescriptor()
Creates the release descriptor from the various goal parameters.
|
protected org.apache.maven.shared.release.env.ReleaseEnvironment |
getReleaseEnvironment()
Gets the enviroment settings configured for this release.
|
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${maven.home}") protected File mavenHome
M2_HOME
parameter to use for forked Maven invocations.@Parameter(defaultValue="${java.home}") protected File javaHome
JAVA_HOME
parameter to use for forked Maven invocations.@Parameter(defaultValue="${maven.repo.local}") protected File localRepoDirectory
@Parameter(property="username") protected String username
@Parameter(property="settingsServerId") protected String settingsServerId
@Parameter(defaultValue="false", property="dryRun") protected boolean dryRun
mvn -DdryRun=true cxx:branch
is useful in order to check that modifications to
poms and scm operations (only listed on the console) are working as expected.
Modified POMs are written alongside the originals without modifying them.@Parameter(defaultValue="false", property="snapshotDevelopmentVersion") protected boolean snapshotDevelopmentVersion
@Parameter(property="artifactId") protected String artifactId
@Parameter(defaultValue="false", property="autoVersionSubmodules") protected boolean autoVersionSubmodules
@Parameter(defaultValue="true", property="updateDependencies") protected boolean updateDependencies
@Parameter(defaultValue="true", property="addSchema") protected boolean addSchema
@Parameter(defaultValue="${project.build.directory}/checkout", property="workingDirectory", required=true) protected File workingDirectory
@Component protected CxxReleaseManager releaseManager
protected org.apache.maven.shared.release.env.ReleaseEnvironment getReleaseEnvironment()
null
.protected CxxReleaseDescriptor createReleaseDescriptor()
null
.Copyright © 2010–2017 Neticoa SAS. All rights reserved.