Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-311

Can not supply user date format for ChangeLog Mojo on command line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-rc1
    • 1.0
    • maven-plugin
    • None
    • Windows XP

    Description

      I tried to supply a date format to the date I supplied on the command line to the change log mojo. I noticed it complained that I was specifying the wrong format. Looking at the code it looks like the param associated with the userDateFormat is "dateFormat" instead of "userDateFormat".

      /**

      • Date format to use for the specified startDate and/or endDate.
        *
      • @parameter expression="${dateFormat}" default-value="yyyy-MM-dd"
        */
        private String userDateFormat = DEFAULT_DATE_FORMAT;

      I think that this should be "${userDateFormat}"

      To test I ran :

      mvn -DscmVersion=branch-1.0 -DscmVersionType=branch -DstartDate=18 -DuserDateFormat=K -scm:changelog

      Attachments

        Activity

          People

            evenisse Emmanuel Venisse
            hayesp25 Peter Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: