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
Tag the project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Use timestamp tagging.private String
The message applied to the tag creation.private boolean
Currently only implemented with Subversion.private boolean
currently only implemented with svn scm.private boolean
Enable the "--sign" in Gitprivate String
The tag name.private String
Set the timestamp format.private String
Define the timestamp position (end or begin).private String
Timestamp tag prefix.Fields inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAG
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
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
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
tag
The tag name. -
message
The message applied to the tag creation. -
timestampFormat
@Parameter(property="timestampFormat", defaultValue="yyyyMMddHHmmss") private String timestampFormatSet the timestamp format. -
addTimestamp
@Parameter(property="addTimestamp", defaultValue="false") private boolean addTimestampUse timestamp tagging. -
timestampPosition
Define the timestamp position (end or begin). -
timestampPrefix
Timestamp 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 signEnable the "--sign" in Git- Since:
- 1.11.0
-
-
Constructor Details
-
TagMojo
public TagMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractScmMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-