public class ModelloReleaseDescriptor extends Object implements Serializable
Constructor and Description |
---|
ModelloReleaseDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
addActivateProfile(String string)
Method addActivateProfile.
|
void |
addCheckModificationExclude(String string)
Method addCheckModificationExclude.
|
void |
addDependencyDevelopmentVersion(String dependencyKey,
String version) |
void |
addDependencyOriginalVersion(String dependencyKey,
String version) |
void |
addDependencyReleaseVersion(String dependencyKey,
String version) |
void |
addDevelopmentVersion(String projectId,
String version)
Method addDevelopmentVersion.
|
void |
addOriginalScmInfo(String key,
Scm value)
Method addOriginalScmInfo.
|
void |
addOriginalVersion(String projectId,
String version) |
void |
addReleaseVersion(String projectId,
String version)
Method addReleaseVersion.
|
boolean |
equals(Object obj) |
List<String> |
getActivateProfiles()
Method getActivateProfiles.
|
String |
getAdditionalArguments()
Get additional arguments to pass to any executed Maven
process.
|
String |
getAutoResolveSnapshots()
Get specifies whether unresolved SNAPSHOT dependencies are
automatically resolved.
|
List<String> |
getCheckModificationExcludes()
Method getCheckModificationExcludes.
|
String |
getCheckoutDirectory()
Get the directory where the tag will be checked out.
|
String |
getCompletedPhase()
Get the last completed phase.
|
String |
getCompletionGoals()
Get the goals to execute in on completion of preparation for
the release.
|
String |
getDefaultDevelopmentVersion()
Get default version to use for new working copy.
|
String |
getDefaultReleaseVersion()
Get default version to use for the tagged release or the new
branch.
|
String |
getDependencyDevelopmentVersion(String artifactConflictId)
Retrieve the release version for the resolved snapshot dependency.
|
String |
getDependencyOriginalVersion(String artifactConflictId)
Retrieve the original version for the resolved snapshot dependency.
|
String |
getDependencyReleaseVersion(String artifactConflictId)
Retrieve the release version for the resolved snapshot dependency.
|
String |
getDescription()
Get the description of this release configuration.
|
String |
getModelEncoding()
Get the modelEncoding field.
|
String |
getName()
Get the name of this release configuration.
|
Scm |
getOriginalScmInfo(String id)
Method getOriginalScmInfo.
|
String |
getPerformGoals()
Get the goals to execute in perform phase for the release.
|
String |
getPomFileName()
Get the file name of the POM to pass to any executed Maven
process.
|
String |
getPreparationGoals()
Get the goals to execute in preparation for the release.
|
String |
getProjectDevelopmentVersion(String projectId) |
String |
getProjectNamingPolicyId()
Get the role-hint for the NamingPolicy implementation used
to calculate the project branch and tag names.
|
String |
getProjectOriginalVersion(String projectId) |
String |
getProjectReleaseVersion(String projectId) |
String |
getProjectVersionPolicyId()
Get the role-hint for the VersionPolicy implementation used
to calculate the project versions.
|
String |
getReleaseStrategyId()
Get the role-hint for the release Strategy implementation.
|
String |
getScmBranchBase()
Get where you are going to put your branched sources
Example
https://svn.apache.org/repos/asf/maven/plugins/branches.
|
String |
getScmBranchCommitComment()
Get the SCM commit comment when branching.
|
String |
getScmCommentPrefix()
Get the prefix of SCM modification messages.
|
String |
getScmDevelopmentCommitComment()
Get the SCM commit comment when setting pom.xml back to
development.
|
String |
getScmId()
Get the id can be used to get the credentials by the
server-id from the settings.xml.
|
String |
getScmPassword()
Get the password for the user interacting with the scm.
|
String |
getScmPrivateKey()
Get private key for an SSH based SCM repository.
|
String |
getScmPrivateKeyPassPhrase()
Get pass phrase for the private key.
|
String |
getScmRelativePathProjectDirectory()
Get relative path of the project returned by the checkout
command.
|
String |
getScmReleaseCommitComment()
Get the SCM commit comment when setting pom.xml to release.
|
String |
getScmReleasedPomRevision()
Get nOTE : currently only implemented with svn scm.
|
String |
getScmReleaseLabel()
Get tag or branch name: the identifier for the tag/branch.
|
String |
getScmRollbackCommitComment()
Get the SCM commit comment when rolling back.
|
String |
getScmSourceUrl()
Get this is a MavenSCM of where you're going to get the
sources to make the release with.
|
String |
getScmTagBase()
Get where you are going to put your tagged sources
Example
https://svn.apache.org/repos/asf/maven/plugins/tags.
|
String |
getScmTagNameFormat()
Get specifies the format for generating a tag name.
|
String |
getScmUsername()
Get the user name to interact with the scm.
|
int |
getWaitBeforeTagging()
Get wait the specified number of seconds before creating a
tag.
|
String |
getWorkingDirectory()
Get the directory where the release is performed.
|
String |
getWorkItem()
Get some SCMs may require a Work Item or a Task to allow the
changes to be pushed or delivered.
|
int |
hashCode() |
boolean |
isAddSchema()
Get whether to add the model schema to the top of the
rewritten POM if it wasn't there already.
|
boolean |
isAllowTimestampedSnapshots()
Get should timestamped SNAPSHOT dependencies be allowed?
Default is to fail when any SNAPSHOT
dependency is found.
|
boolean |
isAutoVersionSubmodules()
Get whether to use the parent pom version for submodule
versions.
|
boolean |
isBranchCreation()
Get whether to create a branch instead of do a release.
|
boolean |
isCommitByProject()
Get the commits must be done by modules or not.
|
boolean |
isGenerateReleasePoms()
Get whether to generate release POMs.
|
boolean |
isInteractive()
Get whether the release process is interactive and the
release manager should be prompted to
confirm values, or whether the defaults are used
regardless.
|
boolean |
isLocalCheckout()
Get if the scm provider should use local checkouts via
file://${basedir}
instead of doing a clean checkout over the
network.
|
boolean |
isPinExternals()
Get enable the "--pin-externals" option in svn copy commands
which is new in Subversion 1.9.
|
boolean |
isPushChanges()
Get should distributed changes be pushed to the central
repository?
For many distributed SCMs like Git, a change
like a commit is only stored in your local copy of the
repository.
|
boolean |
isRemoteTagging()
Get nOTE : currently only implemented with svn scm.
|
boolean |
isScmSignTags()
Get if the scm provider should use sign tags, for example
for git-exe the '--sign' argument would be used.
|
boolean |
isScmUseEditMode()
Get whether to use edit mode when making SCM modifications.
|
boolean |
isSnapshotReleasePluginAllowed()
Get whether a SNAPSHOT of the release plugin is allowed.
|
boolean |
isSuppressCommitBeforeTagOrBranch()
Get whether to suppress a commit of changes to the working
copy before a tag or branch is created.
|
boolean |
isUpdateBranchVersions()
Get whether to update branch POM versions.
|
boolean |
isUpdateDependencies()
Get if updateDependencies is false, dependencies version
won't be updated to the next development version.
|
boolean |
isUpdateVersionsToSnapshot()
Get whether to update branch versions to SNAPSHOT.
|
boolean |
isUpdateWorkingCopyVersions()
Get whether to update working copy POM versions.
|
boolean |
isUseReleaseProfile()
Get whether to use the release profile that adds sources and
javadocs to the released artifact, if appropriate.
|
void |
removeActivateProfile(String string)
Method removeActivateProfile.
|
void |
removeCheckModificationExclude(String string)
Method removeCheckModificationExclude.
|
void |
setActivateProfiles(List<String> activateProfiles)
Set list of profiles to activate.
|
void |
setAdditionalArguments(String additionalArguments)
Set additional arguments to pass to any executed Maven
process.
|
void |
setAddSchema(boolean addSchema)
Set whether to add the model schema to the top of the
rewritten POM if it wasn't there already.
|
void |
setAllowTimestampedSnapshots(boolean allowTimestampedSnapshots)
Set should timestamped SNAPSHOT dependencies be allowed?
Default is to fail when any SNAPSHOT
dependency is found.
|
void |
setAutoResolveSnapshots(String autoResolveSnapshots)
Set specifies whether unresolved SNAPSHOT dependencies are
automatically resolved.
|
void |
setAutoVersionSubmodules(boolean autoVersionSubmodules)
Set whether to use the parent pom version for submodule
versions.
|
void |
setBranchCreation(boolean branchCreation)
Set whether to create a branch instead of do a release.
|
void |
setCheckModificationExcludes(List<String> checkModificationExcludes)
Set in some exceptions you want to allow changes to the
working copy.
|
void |
setCheckoutDirectory(String checkoutDirectory)
Set the directory where the tag will be checked out.
|
void |
setCommitByProject(boolean commitByProject)
Set the commits must be done by modules or not.
|
void |
setCompletedPhase(String completedPhase)
Set the last completed phase.
|
void |
setCompletionGoals(String completionGoals)
Set the goals to execute in on completion of preparation for
the release.
|
void |
setDefaultDevelopmentVersion(String defaultDevelopmentVersion)
Set default version to use for new working copy.
|
void |
setDefaultReleaseVersion(String defaultReleaseVersion)
Set default version to use for the tagged release or the new
branch.
|
void |
setDescription(String description)
Set the description of this release configuration.
|
void |
setGenerateReleasePoms(boolean generateReleasePoms)
Set whether to generate release POMs.
|
void |
setInteractive(boolean interactive)
Set whether the release process is interactive and the
release manager should be prompted to
confirm values, or whether the defaults are used
regardless.
|
void |
setLocalCheckout(boolean localCheckout)
Set if the scm provider should use local checkouts via
file://${basedir}
instead of doing a clean checkout over the
network.
|
void |
setModelEncoding(String modelEncoding)
Set the modelEncoding field.
|
void |
setName(String name)
Set the name of this release configuration.
|
void |
setPerformGoals(String performGoals)
Set the goals to execute in perform phase for the release.
|
void |
setPinExternals(boolean pinExternals)
Set enable the "--pin-externals" option in svn copy commands
which is new in Subversion 1.9.
|
void |
setPomFileName(String pomFileName)
Set the file name of the POM to pass to any executed Maven
process.
|
void |
setPreparationGoals(String preparationGoals)
Set the goals to execute in preparation for the release.
|
void |
setProjectNamingPolicyId(String projectNamingPolicyId)
Set the role-hint for the NamingPolicy implementation used
to calculate the project branch and tag names.
|
void |
setProjectVersionPolicyId(String projectVersionPolicyId)
Set the role-hint for the VersionPolicy implementation used
to calculate the project versions.
|
void |
setPushChanges(boolean pushChanges)
Set should distributed changes be pushed to the central
repository?
For many distributed SCMs like Git, a change
like a commit is only stored in your local copy of the
repository.
|
void |
setReleaseStrategyId(String releaseStrategyId)
Set the role-hint for the release Strategy implementation.
|
void |
setRemoteTagging(boolean remoteTagging)
Set nOTE : currently only implemented with svn scm.
|
void |
setScmBranchBase(String scmBranchBase)
Set where you are going to put your branched sources
Example
https://svn.apache.org/repos/asf/maven/plugins/branches.
|
void |
setScmBranchCommitComment(String scmBranchCommitComment)
Set the SCM commit comment when branching.
|
void |
setScmCommentPrefix(String ScmCommentPrefix)
Set the prefix of SCM modification messages.
|
void |
setScmDevelopmentCommitComment(String scmDevelopmentCommitComment)
Set the SCM commit comment when setting pom.xml back to
development.
|
void |
setScmId(String scmId)
Set the id can be used to get the credentials by the
server-id from the settings.xml.
|
void |
setScmPassword(String scmPassword)
Set the password for the user interacting with the scm.
|
void |
setScmPrivateKey(String scmPrivateKey)
Set private key for an SSH based SCM repository.
|
void |
setScmPrivateKeyPassPhrase(String scmPrivateKeyPassPhrase)
Set pass phrase for the private key.
|
void |
setScmRelativePathProjectDirectory(String scmRelativePathProjectDirectory)
Set relative path of the project returned by the checkout
command.
|
void |
setScmReleaseCommitComment(String scmReleaseCommitComment)
Set the SCM commit comment when setting pom.xml to release.
|
void |
setScmReleasedPomRevision(String scmReleasedPomRevision)
Set nOTE : currently only implemented with svn scm.
|
void |
setScmReleaseLabel(String scmReleaseLabel)
Set tag or branch name: the identifier for the tag/branch.
|
void |
setScmRollbackCommitComment(String scmRollbackCommitComment)
Set the SCM commit comment when rolling back.
|
void |
setScmSignTags(boolean scmSignTags)
Set if the scm provider should use sign tags, for example
for git-exe the '--sign' argument would be used.
|
void |
setScmSourceUrl(String scmSourceUrl)
Set this is a MavenSCM of where you're going to get the
sources to make the release with.
|
void |
setScmTagBase(String scmTagBase)
Set where you are going to put your tagged sources
Example
https://svn.apache.org/repos/asf/maven/plugins/tags.
|
void |
setScmTagNameFormat(String scmTagNameFormat)
Set specifies the format for generating a tag name.
|
void |
setScmUseEditMode(boolean scmUseEditMode)
Set whether to use edit mode when making SCM modifications.
|
void |
setScmUsername(String scmUsername)
Set the user name to interact with the scm.
|
void |
setSnapshotReleasePluginAllowed(boolean snapshotReleasePluginAllowed)
Set whether a SNAPSHOT of the release plugin is allowed.
|
void |
setSuppressCommitBeforeTagOrBranch(boolean suppressCommitBeforeTagOrBranch)
Set whether to suppress a commit of changes to the working
copy before a tag or branch is created.
|
void |
setUpdateBranchVersions(boolean updateBranchVersions)
Set whether to update branch POM versions.
|
void |
setUpdateDependencies(boolean updateDependencies)
Set if updateDependencies is false, dependencies version
won't be updated to the next development version.
|
void |
setUpdateVersionsToSnapshot(boolean updateVersionsToSnapshot)
Set whether to update branch versions to SNAPSHOT.
|
void |
setUpdateWorkingCopyVersions(boolean updateWorkingCopyVersions)
Set whether to update working copy POM versions.
|
void |
setUseReleaseProfile(boolean useReleaseProfile)
Set whether to use the release profile that adds sources and
javadocs to the released artifact, if appropriate.
|
void |
setWaitBeforeTagging(int waitBeforeTagging)
Set wait the specified number of seconds before creating a
tag.
|
void |
setWorkingDirectory(String workingDirectory)
Set the directory where the release is performed.
|
void |
setWorkItem(String workItem)
Set some SCMs may require a Work Item or a Task to allow the
changes to be pushed or delivered.
|
public void addActivateProfile(String string)
string
- public void addCheckModificationExclude(String string)
string
- public List<String> getActivateProfiles()
public String getAdditionalArguments()
public String getAutoResolveSnapshots()
public List<String> getCheckModificationExcludes()
public String getCheckoutDirectory()
public String getCompletedPhase()
public String getCompletionGoals()
public String getDefaultDevelopmentVersion()
public String getDefaultReleaseVersion()
public String getDescription()
public String getModelEncoding()
public String getName()
public String getPerformGoals()
public String getPomFileName()
public String getPreparationGoals()
public String getProjectNamingPolicyId()
public String getProjectVersionPolicyId()
public String getReleaseStrategyId()
public String getScmBranchBase()
public String getScmBranchCommitComment()
public String getScmCommentPrefix()
public String getScmDevelopmentCommitComment()
public String getScmId()
public String getScmPassword()
public String getScmPrivateKey()
public String getScmPrivateKeyPassPhrase()
public String getScmRelativePathProjectDirectory()
public String getScmReleaseCommitComment()
public String getScmReleaseLabel()
public String getScmReleasedPomRevision()
public String getScmRollbackCommitComment()
public String getScmSourceUrl()
public String getScmTagBase()
public String getScmTagNameFormat()
public String getScmUsername()
public int getWaitBeforeTagging()
public String getWorkItem()
public String getWorkingDirectory()
public boolean isAddSchema()
false
then the root element will
remain untouched.public boolean isAllowTimestampedSnapshots()
public boolean isAutoVersionSubmodules()
public boolean isBranchCreation()
public boolean isCommitByProject()
public boolean isGenerateReleasePoms()
public boolean isInteractive()
public boolean isLocalCheckout()
public boolean isPinExternals()
public boolean isPushChanges()
public boolean isRemoteTagging()
public boolean isScmSignTags()
public boolean isScmUseEditMode()
public boolean isSnapshotReleasePluginAllowed()
public boolean isSuppressCommitBeforeTagOrBranch()
public boolean isUpdateBranchVersions()
public boolean isUpdateDependencies()
public boolean isUpdateVersionsToSnapshot()
public boolean isUpdateWorkingCopyVersions()
public boolean isUseReleaseProfile()
public void removeActivateProfile(String string)
string
- public void removeCheckModificationExclude(String string)
string
- public void setActivateProfiles(List<String> activateProfiles)
activateProfiles
- public void setAddSchema(boolean addSchema)
false
then the root element will
remain untouched.addSchema
- public void setAdditionalArguments(String additionalArguments)
additionalArguments
- public void setAllowTimestampedSnapshots(boolean allowTimestampedSnapshots)
allowTimestampedSnapshots
- public void setAutoResolveSnapshots(String autoResolveSnapshots)
autoResolveSnapshots
- public void setAutoVersionSubmodules(boolean autoVersionSubmodules)
autoVersionSubmodules
- public void setBranchCreation(boolean branchCreation)
branchCreation
- public void setCheckModificationExcludes(List<String> checkModificationExcludes)
checkModificationExcludes
- public void setCheckoutDirectory(String checkoutDirectory)
checkoutDirectory
- public void setCommitByProject(boolean commitByProject)
commitByProject
- public void setCompletedPhase(String completedPhase)
completedPhase
- public void setCompletionGoals(String completionGoals)
completionGoals
- public void setDefaultDevelopmentVersion(String defaultDevelopmentVersion)
defaultDevelopmentVersion
- public void setDefaultReleaseVersion(String defaultReleaseVersion)
defaultReleaseVersion
- public void setDescription(String description)
description
- public void setGenerateReleasePoms(boolean generateReleasePoms)
generateReleasePoms
- public void setInteractive(boolean interactive)
interactive
- public void setLocalCheckout(boolean localCheckout)
localCheckout
- public void setModelEncoding(String modelEncoding)
modelEncoding
- public void setName(String name)
name
- public void setPerformGoals(String performGoals)
performGoals
- public void setPinExternals(boolean pinExternals)
pinExternals
- public void setPomFileName(String pomFileName)
pomFileName
- public void setPreparationGoals(String preparationGoals)
preparationGoals
- public void setProjectNamingPolicyId(String projectNamingPolicyId)
projectNamingPolicyId
- public void setProjectVersionPolicyId(String projectVersionPolicyId)
projectVersionPolicyId
- public void setPushChanges(boolean pushChanges)
pushChanges
- public void setReleaseStrategyId(String releaseStrategyId)
releaseStrategyId
- public void setRemoteTagging(boolean remoteTagging)
remoteTagging
- public void setScmBranchBase(String scmBranchBase)
scmBranchBase
- public void setScmBranchCommitComment(String scmBranchCommitComment)
scmBranchCommitComment
- public void setScmCommentPrefix(String ScmCommentPrefix)
ScmCommentPrefix
- public void setScmDevelopmentCommitComment(String scmDevelopmentCommitComment)
scmDevelopmentCommitComment
- public void setScmId(String scmId)
scmId
- public void setScmPassword(String scmPassword)
scmPassword
- public void setScmPrivateKey(String scmPrivateKey)
scmPrivateKey
- public void setScmPrivateKeyPassPhrase(String scmPrivateKeyPassPhrase)
scmPrivateKeyPassPhrase
- public void setScmRelativePathProjectDirectory(String scmRelativePathProjectDirectory)
scmRelativePathProjectDirectory
- public void setScmReleaseCommitComment(String scmReleaseCommitComment)
scmReleaseCommitComment
- public void setScmReleaseLabel(String scmReleaseLabel)
scmReleaseLabel
- public void setScmReleasedPomRevision(String scmReleasedPomRevision)
scmReleasedPomRevision
- public void setScmRollbackCommitComment(String scmRollbackCommitComment)
scmRollbackCommitComment
- public void setScmSignTags(boolean scmSignTags)
scmSignTags
- public void setScmSourceUrl(String scmSourceUrl)
scmSourceUrl
- public void setScmTagBase(String scmTagBase)
scmTagBase
- public void setScmTagNameFormat(String scmTagNameFormat)
scmTagNameFormat
- public void setScmUseEditMode(boolean scmUseEditMode)
scmUseEditMode
- public void setScmUsername(String scmUsername)
scmUsername
- public void setSnapshotReleasePluginAllowed(boolean snapshotReleasePluginAllowed)
snapshotReleasePluginAllowed
- public void setSuppressCommitBeforeTagOrBranch(boolean suppressCommitBeforeTagOrBranch)
suppressCommitBeforeTagOrBranch
- public void setUpdateBranchVersions(boolean updateBranchVersions)
updateBranchVersions
- public void setUpdateDependencies(boolean updateDependencies)
updateDependencies
- public void setUpdateVersionsToSnapshot(boolean updateVersionsToSnapshot)
updateVersionsToSnapshot
- public void setUpdateWorkingCopyVersions(boolean updateWorkingCopyVersions)
updateWorkingCopyVersions
- public void setUseReleaseProfile(boolean useReleaseProfile)
useReleaseProfile
- public void setWaitBeforeTagging(int waitBeforeTagging)
waitBeforeTagging
- public void setWorkItem(String workItem)
workItem
- public void setWorkingDirectory(String workingDirectory)
workingDirectory
- public void addReleaseVersion(String projectId, String version)
projectId
- version
- public void addDevelopmentVersion(String projectId, String version)
projectId
- version
- public void addOriginalScmInfo(String key, Scm value)
key
- value
- public String getDependencyDevelopmentVersion(String artifactConflictId)
public String getDependencyReleaseVersion(String artifactConflictId)
public String getDependencyOriginalVersion(String artifactConflictId)
public void addDependencyOriginalVersion(String dependencyKey, String version)
public void addDependencyReleaseVersion(String dependencyKey, String version)
public void addDependencyDevelopmentVersion(String dependencyKey, String version)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.