You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien CARSIQUE (JIRA)" <ji...@apache.org> on 2016/02/19 17:46:18 UTC

[jira] [Commented] (MCHANGELOG-107) generate changelog since previouse release

    [ https://issues.apache.org/jira/browse/MCHANGELOG-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154478#comment-15154478 ] 

Julien CARSIQUE commented on MCHANGELOG-107:
--------------------------------------------

Different strategies would be fine to compare with: 
- latest tag by date
- tag corresponding to the higher released artifact
- tag corresponding to the higher released artifact which is lower than the current version

Finding that tag could be:
- based on a pattern including the artifact version ({{release-${version\}}} in my case)
- a lookup of a given property in the artifact's MANIFEST or any other file

Semantic Versioning is the reference for the versions (http://semver.org/); a lot of Maven plugins already base their version resolution choices on it.
The Aether library provides tooling to ease the resolution. For instance, here's how I find the highest available version in my code
https://github.com/nuxeo/ant-assembly-maven-plugin/blob/master/src/main/java/org/nuxeo/build/maven/graph/DependencyUtils.java#L190

So, with a current version {{2.0.5-SNAPSHOT}}, I would like the change log since the last release {{2.0.4}} which SCM tag is {{release-2.0.4}}.


> generate changelog since previouse release
> ------------------------------------------
>
>                 Key: MCHANGELOG-107
>                 URL: https://issues.apache.org/jira/browse/MCHANGELOG-107
>             Project: Maven Changelog Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: Grzegorz Kochanski
>
> Now mvn release:release generates changelog for last 2 days.
> The default behavior should be changelog since previous released version.
> To simulate behavior now you have to add to pom.xml:
>       <plugin>
>         <artifactId>maven-changelog-plugin</artifactId>
>         <configuration>
>           <type>tag</type>
>           <tags>
>             <tag implementation="java.lang.String">someApplication-1_6</tag>
>             <tag implementation="java.lang.String">HEAD</tag>
>           </tags>
>         </configuration>
>       </plugin>
> and change the someApplication-1_6 with someApplication-1_7 after successful release.
> And you have to repeat it for every release you perform.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)