diff --git a/announcement/plugin.jelly b/announcement/plugin.jelly index 60ca4f11..f72e735e 100644 --- a/announcement/plugin.jelly +++ b/announcement/plugin.jelly @@ -34,10 +34,6 @@ - - The 'maven.announcement.version' property needs to be defined. - - Generating announcement for release ${maven.announcement.version} in ${maven.announcement.file}... diff --git a/announcement/plugin.properties b/announcement/plugin.properties index e64ac796..7212c569 100644 --- a/announcement/plugin.properties +++ b/announcement/plugin.properties @@ -18,7 +18,10 @@ # Properties for the Announcement plugin # ------------------------------------------------------------------- -# Version for which to create a release note. This property needs to -# be defined in your project. For example: -maven.announcement.version = ${pom.version} -maven.announcement.file=${maven.build.dir}/announcement.txt \ No newline at end of file +# Version for which to create a release note. If not defined, it +# defaults to ${pom.currentVersion}. +# For example: +# maven.announcement.version = ${pom.version} + +# Name and location of generated announcement file +maven.announcement.file=${maven.build.dir}/announcement.txt diff --git a/announcement/xdocs/changes.xml b/announcement/xdocs/changes.xml index 949635aa..6d468fd1 100644 --- a/announcement/xdocs/changes.xml +++ b/announcement/xdocs/changes.xml @@ -24,7 +24,12 @@ Vincent Massol - + + + The maven.announcement.version property does no longer + needs to be defined. It defaults to ${pom.currentVersion} + if not defined. + Improved web site documentation. diff --git a/announcement/xdocs/properties.xml b/announcement/xdocs/properties.xml index 325a1d5b..1ca502af 100644 --- a/announcement/xdocs/properties.xml +++ b/announcement/xdocs/properties.xml @@ -35,7 +35,7 @@ Version for which to create a release note. - ${pom.version} + ${pom.currentVersion}