Interface ReleaseDescriptor
- All Known Implementing Classes:
ReleaseDescriptorBuilder.BuilderReleaseDescriptor
public interface ReleaseDescriptor
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependencyDevelopmentVersion(String versionlessKey, String version) voidaddDependencyOriginalVersion(String versionlessKey, String string) voidaddDependencyReleaseVersion(String versionlessKey, String version) voidaddDevelopmentVersion(String projectId, String nextVersion) voidaddReleaseVersion(String projectId, String nextVersion) Get additional arguments to pass to any executed Maven process.Method getCheckModificationExcludes.Get the directory where the tag will be checked out.Get the last completed phase.Get the goals to execute in on completion of preparation for the release.Get default version to use for new working copy.Get default version to use for the tagged release or the new branch.getDependencyDevelopmentVersion(String artifactKey) Retrieve the release version for the resolved snapshot dependency.getDependencyOriginalVersion(String artifactKey) Retrieve the original version for the resolved snapshot dependency.getDependencyReleaseVersion(String artifactKey) Retrieve the release version for the resolved snapshot dependency.org.apache.maven.model.ScmgetOriginalScmInfo(String projectKey) Method getOriginalScmInfo.Get the goals to execute in perform phase for the release.Get the file name of the POM to pass to any executed Maven process.Get the goals to execute in preparation for the release.getProjectDevelopmentVersion(String projectKey) Get the role-hint for the NamingPolicy implementation used to calculate the project branch and tag names.getProjectOriginalVersion(String projectKey) Get the role-hint for the VersionPolicy implementation used to calculate the project versions.Get the role-hint for the release Strategy implementation.Get where you are going to put your branched sources Example https://svn.apache.org/repos/asf/maven/plugins/branches.Get the SCM commit comment when branching.Get the prefix of SCM modification messages.Get the SCM commit comment when setting pom.xml back to development.getScmId()Get the id can be used to get the credentials by the server-id from the settings.xml.Get the password for the user interacting with the scm.Get private key for an SSH based SCM repository.Get pass phrase for the private key.Get relative path of the project returned by the checkout command.Get the SCM commit comment when setting pom.xml to release.Get nOTE : currently only implemented with svn scm.Get tag or branch name: the identifier for the tag/branch.Get the SCM commit comment when rolling back.Get this is a MavenSCM of where you're going to get the sources to make the release with.Get where you are going to put your tagged sources Example https://svn.apache.org/repos/asf/maven/plugins/tags.Get specifies the format for generating a tag name.Get the user name to interact with the scm.intGet wait the specified number of seconds before creating a tag.Get the directory where the release is performed.Get default version to use for new working copy.booleanGet whether to add the model schema to the top of the rewritten POM if it wasn't there already.booleanGet should timestamped SNAPSHOT dependencies be allowed? Default is to fail when any SNAPSHOT dependency is found.booleanGet whether to use the parent pom version for submodule versions.booleanGet whether to create a branch instead of do a release.booleanGet the commits must be done by modules or not.booleanGet whether to generate release POMs.booleanGet whether the release process is interactive and the release manager should be prompted to confirm values, or whether the defaults are used regardless.booleanGet if the scm provider should use local checkouts via file://${basedir} instead of doing a clean checkout over the network.booleanGet 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.booleanGet nOTE : currently only implemented with svn scm.booleanGet whether to use edit mode when making SCM modifications.booleanGet whether a SNAPSHOT of the release plugin is allowed.booleanGet whether to suppress a commit of changes to the working copy before a tag or branch is created.booleanGet whether to update branch POM versions.booleanGet if updateDependencies is false, dependencies version won't be updated to the next development version.booleanGet whether to update branch versions to SNAPSHOT.booleanGet whether to update working copy POM versions.booleanGet whether to use the release profile that adds sources and javadocs to the released artifact, if appropriate.voidsetScmRelativePathProjectDirectory(String scmRelativePathProjectDirectory) voidsetScmReleasedPomRevision(String scmRevision) voidsetScmReleaseLabel(String tag) voidsetScmSourceUrl(String scmUrl)
-
Method Details
-
isUpdateDependencies
boolean isUpdateDependencies()Get if updateDependencies is false, dependencies version won't be updated to the next development version.- Returns:
- boolean
-
isUseReleaseProfile
boolean isUseReleaseProfile()Get whether to use the release profile that adds sources and javadocs to the released artifact, if appropriate. If set to true, this will set the property "performRelease" to true.- Returns:
- boolean
-
isAutoVersionSubmodules
boolean isAutoVersionSubmodules()Get whether to use the parent pom version for submodule versions.- Returns:
- boolean
-
isSnapshotReleasePluginAllowed
boolean isSnapshotReleasePluginAllowed()Get whether a SNAPSHOT of the release plugin is allowed.- Returns:
- boolean
-
isCommitByProject
boolean isCommitByProject()Get the commits must be done by modules or not. Set it to true in case of flat directory structure.- Returns:
- boolean
-
isBranchCreation
boolean isBranchCreation()Get whether to create a branch instead of do a release.- Returns:
- boolean
-
isUpdateBranchVersions
boolean isUpdateBranchVersions()Get whether to update branch POM versions.- Returns:
- boolean
-
isUpdateWorkingCopyVersions
boolean isUpdateWorkingCopyVersions()Get whether to update working copy POM versions.- Returns:
- boolean
-
isSuppressCommitBeforeTagOrBranch
boolean isSuppressCommitBeforeTagOrBranch()Get whether to suppress a commit of changes to the working copy before a tag or branch is created.- Returns:
- boolean
-
isAllowTimestampedSnapshots
boolean isAllowTimestampedSnapshots()Get should timestamped SNAPSHOT dependencies be allowed? Default is to fail when any SNAPSHOT dependency is found.- Returns:
- boolean
-
isUpdateVersionsToSnapshot
boolean isUpdateVersionsToSnapshot()Get whether to update branch versions to SNAPSHOT.- Returns:
- boolean
-
isRemoteTagging
boolean isRemoteTagging()Get nOTE : currently only implemented with svn scm. Enable a workaround to prevent issue due to svn client > 1.5.0 (https://issues.apache.org/jira/browse/SCM-406).- Returns:
- boolean
-
isLocalCheckout
boolean isLocalCheckout()Get if the scm provider should use local checkouts via file://${basedir} instead of doing a clean checkout over the network. This is very helpful for releasing large projects!- Returns:
- boolean
-
isPushChanges
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. Pushing the change allows your to more easily share it with other users.- Returns:
- boolean
-
getWorkItem
String getWorkItem()Get default version to use for new working copy. Some SCMs may require a Work Item or a Task to allow the changes to be pushed or delivered. This field allows you to specify that Work Item or Task. It is optional, and only relevant if pushChanges is true.- Returns:
- String
-
getDefaultDevelopmentVersion
String getDefaultDevelopmentVersion()Get default version to use for new working copy.- Returns:
- String
-
getScmRelativePathProjectDirectory
String getScmRelativePathProjectDirectory()Get relative path of the project returned by the checkout command.- Returns:
- String
-
getCheckoutDirectory
-
getPerformGoals
-
getDefaultReleaseVersion
String getDefaultReleaseVersion()Get default version to use for the tagged release or the new branch.- Returns:
- String
-
getScmReleasedPomRevision
String getScmReleasedPomRevision()Get nOTE : currently only implemented with svn scm. It contains the revision of the committed released pom to remotely tag the source code with this revision.- Returns:
- String
-
isAddSchema
boolean isAddSchema()Get whether to add the model schema to the top of the rewritten POM if it wasn't there already. Iffalsethen the root element will remain untouched.- Returns:
- boolean
-
isGenerateReleasePoms
boolean isGenerateReleasePoms()Get whether to generate release POMs.- Returns:
- boolean
-
isInteractive
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.- Returns:
- boolean
-
isScmUseEditMode
boolean isScmUseEditMode()Get whether to use edit mode when making SCM modifications. This setting is disregarded if the SCM does not support edit mode, or if edit mode is compulsory for the given SCM.- Returns:
- boolean
-
getActivateProfiles
-
getCompletedPhase
-
getCheckModificationExcludes
-
getAdditionalArguments
String getAdditionalArguments()Get additional arguments to pass to any executed Maven process.- Returns:
- String
-
getPreparationGoals
String getPreparationGoals()Get the goals to execute in preparation for the release.- Returns:
- String
-
getCompletionGoals
String getCompletionGoals()Get the goals to execute in on completion of preparation for the release.- Returns:
- String
-
getPomFileName
String getPomFileName()Get the file name of the POM to pass to any executed Maven process.- Returns:
- String
-
getScmCommentPrefix
-
getScmReleaseCommitComment
String getScmReleaseCommitComment()Get the SCM commit comment when setting pom.xml to release.- Returns:
- String
- Since:
- 3.0.0-M1
-
getScmDevelopmentCommitComment
String getScmDevelopmentCommitComment()Get the SCM commit comment when setting pom.xml back to development.- Returns:
- String
- Since:
- 3.0.0-M1
-
getScmBranchCommitComment
String getScmBranchCommitComment()Get the SCM commit comment when branching.- Returns:
- String
- Since:
- 3.0.0-M1
-
getScmRollbackCommitComment
String getScmRollbackCommitComment()Get the SCM commit comment when rolling back.- Returns:
- String
- Since:
- 3.0.0-M1
-
getScmPrivateKeyPassPhrase
-
getScmPassword
-
getScmPrivateKey
-
getScmReleaseLabel
String getScmReleaseLabel()Get tag or branch name: the identifier for the tag/branch. Example: maven-release-plugin-2.0.- Returns:
- String
-
getScmTagBase
String getScmTagBase()Get where you are going to put your tagged sources Example https://svn.apache.org/repos/asf/maven/plugins/tags.- Returns:
- String
-
getScmBranchBase
String getScmBranchBase()Get where you are going to put your branched sources Example https://svn.apache.org/repos/asf/maven/plugins/branches.- Returns:
- String
-
getScmId
String getScmId()Get the id can be used to get the credentials by the server-id from the settings.xml.- Returns:
- String
-
getScmSourceUrl
String getScmSourceUrl()Get this is a MavenSCM of where you're going to get the sources to make the release with. Example: scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-release-plugin.- Returns:
- String
-
getScmUsername
-
getWaitBeforeTagging
int getWaitBeforeTagging()Get wait the specified number of seconds before creating a tag.- Returns:
- int
-
getWorkingDirectory
-
getScmTagNameFormat
String getScmTagNameFormat()Get specifies the format for generating a tag name. Property expansion is used with the optional prefix of project, where properties are delimited with @{ and }.- Returns:
- String
-
getProjectNamingPolicyId
String getProjectNamingPolicyId()Get the role-hint for the NamingPolicy implementation used to calculate the project branch and tag names.- Returns:
- String
-
getProjectVersionPolicyId
String getProjectVersionPolicyId()Get the role-hint for the VersionPolicy implementation used to calculate the project versions.- Returns:
- String
-
getReleaseStrategyId
String getReleaseStrategyId()Get the role-hint for the release Strategy implementation.- Returns:
- String
-
getDependencyOriginalVersion
-
getDependencyReleaseVersion
-
getDependencyDevelopmentVersion
-
getProjectOriginalVersion
-
getProjectDevelopmentVersion
-
getProjectReleaseVersion
-
getOriginalScmInfo
Method getOriginalScmInfo.- Returns:
- Map
-
addDependencyOriginalVersion
-
addDependencyReleaseVersion
-
addDependencyDevelopmentVersion
-
addReleaseVersion
-
addDevelopmentVersion
-
setScmReleaseLabel
-
setScmReleasedPomRevision
-
setScmRelativePathProjectDirectory
-
setScmSourceUrl
-