Class ChangeLogMojo

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

    @Mojo(name="changelog",
          aggregator=true)
    public class ChangeLogMojo
    extends AbstractScmMojo
    Dump changelog contents to console. It is mainly used to test maven-scm-api's changelog command.
    • Field Detail

      • DEFAULT_DATE_FORMAT

        private static final java.lang.String DEFAULT_DATE_FORMAT
        See Also:
        Constant Field Values
      • startDate

        @Parameter(property="startDate")
        private java.lang.String startDate
        Start Date.
      • endDate

        @Parameter(property="endDate")
        private java.lang.String endDate
        End Date.
      • startScmVersion

        @Parameter(property="startScmVersion")
        private java.lang.String startScmVersion
        Start Scm Version.
      • endScmVersion

        @Parameter(property="endScmVersion")
        private java.lang.String endScmVersion
        End Scm Version.
      • startScmVersionType

        @Parameter(property="startScmVersionType")
        private java.lang.String startScmVersionType
        Start Scm Version Type.
      • endScmVersionType

        @Parameter(property="endScmVersionType")
        private java.lang.String endScmVersionType
        End Scm Version Type.
      • dateFormat

        @Parameter(property="dateFormat")
        private java.lang.String dateFormat
        Date Format in changelog output of scm tool.
      • userDateFormat

        @Parameter(property="userDateFormat",
                   defaultValue="yyyy-MM-dd")
        private java.lang.String userDateFormat
        Date format to use for the specified startDate and/or endDate.
      • scmVersionType

        @Parameter(property="scmVersionType")
        private java.lang.String scmVersionType
        The version type (branch/tag) of scmVersion.
      • scmVersion

        @Parameter(property="scmVersion")
        private java.lang.String scmVersion
        The version (revision number/branch name/tag name).
    • Constructor Detail

      • ChangeLogMojo

        public ChangeLogMojo()
    • 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
      • parseDate

        private java.util.Date parseDate​(java.text.SimpleDateFormat format,
                                         java.lang.String date)
                                  throws org.apache.maven.plugin.MojoExecutionException
        Converts the localized date string pattern to date object.
        Returns:
        A date
        Throws:
        org.apache.maven.plugin.MojoExecutionException