code: protected void gitTag(final String tagName, String message, boolean gpgSignTag, Map<String, String> messageProperties)
              throws MojoFailureException, CommandLineException {
          message = replaceProperties(message, messageProperties);
  
          if (gpgSignTag) {
              getLog().info("Creating GPG-signed '" + tagName + "' tag.");
  
              executeGitCommand("tag", "-a", "-s", tagName, "-m", message);
          } else {
              getLog().info("Creating '" + tagName + "' tag.");
  
              executeGitCommand("tag", "-a", tagName, "-m", message);
          }
      }
docs: Executes git tag -a [-s] -m.
  
  @param tagName
  Name of the tag.
  @param message
  Tag message.
  @param gpgSignTag
  Make a GPG-signed tag.
  @param messageProperties
  Properties to replace in message.
  @throws MojoFailureException
  @throws CommandLineException