Changing the Heading Date Format

If you are using one of the types date or range, the headings of the reports will have dates in them. Starting with version 2.1 of the plugin, it is possible to configure the format of these dates.

This is done with the <headingDateFormat> configuration element. It takes a string of characters, the same that is used in the SimpleDateFormat class, and uses them to format the dates in the headings to your liking.

<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changelog-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <type>range</type>
          <range>30</range>
          <headingDateFormat>dd MMM, yyyy</headingDateFormat>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  ...
</project>