Class TagMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="tag",
          aggregator=true)
    public class TagMojo
    extends AbstractScmMojo
    Tag the project.
    • Field Detail

      • tag

        @Parameter(property="tag",
                   required=true)
        private java.lang.String tag
        The 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 timestampFormat
        Set the timestamp format.
      • addTimestamp

        @Parameter(property="addTimestamp",
                   defaultValue="false")
        private boolean addTimestamp
        Use timestamp tagging.
      • timestampPosition

        @Parameter(property="timestampPosition",
                   defaultValue="end")
        private java.lang.String timestampPosition
        Define the timestamp position (end or begin).
      • timestampPrefix

        @Parameter(property="timestampPrefix",
                   defaultValue="-")
        private java.lang.String timestampPrefix
        Timestamp tag prefix.
      • remoteTagging

        @Parameter(property="remoteTagging",
                   defaultValue="true")
        private boolean remoteTagging
        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)
        Since:
        1.2
      • pinExternals

        @Parameter(property="pinExternals",
                   defaultValue="false")
        private boolean pinExternals
        Currently 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 sign
        Enable the "--sign" in Git
        Since:
        1.11.0
    • Constructor Detail

      • TagMojo

        public TagMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractScmMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException