Package org.apache.maven.scm.plugin
Class TagMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.scm.plugin.AbstractScmMojo
-
- org.apache.maven.scm.plugin.TagMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="tag", aggregator=true) public class TagMojo extends AbstractScmMojoTag the project.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanaddTimestampUse timestamp tagging.private java.lang.StringmessageThe message applied to the tag creation.private booleanpinExternalsCurrently only implemented with Subversion.private booleanremoteTaggingCurrently only implemented with svn scm.private booleansignDeprecated.since 2.2.1, usesignOptioninsteadprivate CommandParameters.SignOptionsignOptionToggles the signing for the tag command (only applicable to SCMs that support signing).private java.lang.StringtagThe tag name.private java.lang.StringtimestampFormatSet the timestamp format.private java.lang.StringtimestampPositionDefine the timestamp position (end or begin).private java.lang.StringtimestampPrefixTimestamp tag prefix.-
Fields inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAG
-
-
Constructor Summary
Constructors Constructor Description TagMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
Methods inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
-
-
-
-
Field Detail
-
tag
@Parameter(property="tag", required=true) private java.lang.String tagThe tag name.
-
message
@Parameter(property="message") private java.lang.String message
The message applied to the tag creation.
-
timestampFormat
@Parameter(property="timestampFormat", defaultValue="yyyyMMddHHmmss") private java.lang.String timestampFormatSet the timestamp format.
-
addTimestamp
@Parameter(property="addTimestamp", defaultValue="false") private boolean addTimestampUse timestamp tagging.
-
timestampPosition
@Parameter(property="timestampPosition", defaultValue="end") private java.lang.String timestampPositionDefine the timestamp position (end or begin).
-
timestampPrefix
@Parameter(property="timestampPrefix", defaultValue="-") private java.lang.String timestampPrefixTimestamp tag prefix.
-
remoteTagging
@Parameter(property="remoteTagging", defaultValue="true") private boolean remoteTaggingCurrently 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)- Since:
- 1.2
-
pinExternals
@Parameter(property="pinExternals", defaultValue="false") private boolean pinExternalsCurrently only implemented with Subversion. Enable the "--pin-externals" option in svn copy commands which is new in Subversion 1.9.- Since:
- 1.11.0
-
sign
@Parameter(property="sign", defaultValue="false") private boolean signDeprecated.since 2.2.1, usesignOptioninsteadEnable the "--sign" in Git. Same assignOptionset to eitherCommandParameters.SignOption.FORCE_SIGNorCommandParameters.SignOption.DEFAULT.- Since:
- 1.11.0
-
signOption
@Parameter(property="signOption") private CommandParameters.SignOption signOption
Toggles the signing for the tag command (only applicable to SCMs that support signing).- Since:
- 2.2.1
-
-
Constructor Detail
-
TagMojo
@Inject public TagMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-