Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Maven's changes.xml automatically from git commit messages

Is there a Maven plugin that generates the changes.xml file for the changes plugin (http://maven.apache.org/plugins/maven-changes-plugin/index.html) automatically using the information provided by the Git commits?

This git log

commit af2ce13dc277d862ffddf4c03c809b73587188e3
Author: Stefan Birkner <[email protected]>
Date:   Tue Feb 11 00:13:53 2014 +0100

    [maven-release-plugin] prepare release system-rules-1.5.0

commit e78934311d68a0fb081d7a46e313952e21bd93f8
Author: Stefan Birkner <[email protected]>
Date:   Wed Feb 5 00:10:25 2014 +0100

    Fix wrong method names in class' Javadoc.


commit 42c054881fff69f682d7f3f6ecee51974f515d80
Author: Stefan Birkner <[email protected]>
Date:   Wed Sep 11 10:26:23 2013 +0200

    [maven-release-plugin] prepare for next development iteration

should be used to create this changes.xml section:

<release version="1.5.0" date="1024-02-11">
  <action dev="Stefan Birkner" type="fix" date="2014-02-05">
    Fix wrong method names in class' Javadoc.
  </action>
</release>
like image 666
Stefan Birkner Avatar asked Nov 23 '25 08:11

Stefan Birkner


1 Answers

The maven-gitlog-plugin plugin generates a changelog (not exactly generates your changes.xml file).

Also the official maven changes plugin has now support for github. See configuring github report.

like image 156
dadoonet Avatar answered Nov 24 '25 20:11

dadoonet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!