How to make maven changelog plugin generate and, changelog.html and changelog.xml

Version: Apache Maven 3.0.5

I have successfully created a changelog.xml file via maven site plugin and command mvn site

. Content of site plugin pom.xml:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-site-plugin</artifactId>
    <version>3.0-beta-2</version>
    <configuration>
      <reportPlugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-changelog-plugin</artifactId>
            <version>2.3</version>
        </plugin>
      </reportPlugins>
    </configuration>
</plugin>

      

Now I need a changelog.html file, I couldn't find any information on how to set up my pom.xml to generate the html version of the changlog.

+3


source to share


1 answer


You have to move the plugin to the reports section of your pom.xml.

To generate reports, you have to add below in the plugin config changelog for changelog and dev activity if you like. There is also an activity report file.



  <reportSets>
    <reportSet>
      <reports>
        <report>changelog</report>
        <report>dev-activity</report>
    </reports>
  </reportSet>

      

The plugin page has examples of these reports: http://maven.apache.org/plugins/maven-changelog-plugin/changelog.html

0


source







All Articles