From 23603eaa0c1c39782a97b321c3ab813ef60d9641 Mon Sep 17 00:00:00 2001 From: vmassol Date: Mon, 12 Apr 2004 19:46:04 +0000 Subject: [PATCH] - Several new addtions that makes the plugin more generic: the team name is now taken from pom.groupId, "[]" are removed from the first line, changes are sorted by type, changes report issue number and due-to, the download link is generated from pom.distributionDirectory and the "plugin has been tested with..." line has been removed. - Removed default value for the maven.announcement.version property. This property has to be set by the plugin user. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115001 13f79535-47bb-0310-9956-ffa450edef68 --- announcement/plugin.jelly | 8 +- announcement/plugin.properties | 5 +- announcement/project.xml | 20 ++-- .../src/plugin-resources/announcement.jsl | 98 ++++++++++++++----- announcement/xdocs/changes.xml | 13 +++ announcement/xdocs/properties.xml | 4 +- 6 files changed, 109 insertions(+), 39 deletions(-) diff --git a/announcement/plugin.jelly b/announcement/plugin.jelly index e817259f..90cfd1ad 100644 --- a/announcement/plugin.jelly +++ b/announcement/plugin.jelly @@ -1,4 +1,5 @@ + - + + The 'maven.announcement.version' property needs to be defined. + + + Generating announcement for release ${maven.announcement.version} ... + diff --git a/announcement/plugin.properties b/announcement/plugin.properties index 6cd25398..944b43c4 100644 --- a/announcement/plugin.properties +++ b/announcement/plugin.properties @@ -18,5 +18,6 @@ # Properties for the Announcement plugin # ------------------------------------------------------------------- -# Version for which to create a release note. -## maven.announcement.version = ${pom.currentVersion} +# Version for which to create a release note. This property needs to +# be defined in your project. For example: +# maven.announcement.version = 1.0 diff --git a/announcement/project.xml b/announcement/project.xml index 78d2746c..2da5c7a8 100644 --- a/announcement/project.xml +++ b/announcement/project.xml @@ -26,7 +26,6 @@ 1.1-SNAPSHOT Produce release announcement http://maven.apache.org/reference/plugins/announcement/ - http://jira.codehaus.org/BrowseProject.jspa?id=10470 /www/maven.apache.org/reference/plugins/announcement/ @@ -34,6 +33,18 @@ scm:cvs:ext:${maven.username}@cvs.apache.org:/home/cvs:maven-plugins/announcement/ http://cvs.apache.org/viewcvs/maven-plugins/announcement/ + + + 1.0 + 1.0 + MAVEN_ANNOUNCEMENT_1_0 + + + 1.1 + 1.1 + HEAD + + Vincent Massol @@ -63,11 +74,4 @@ maven-license-plugin maven-linkcheck-plugin - - - 1.0 - 1.0 - MAVEN_ANNOUNCEMENT_1_0 - - diff --git a/announcement/src/plugin-resources/announcement.jsl b/announcement/src/plugin-resources/announcement.jsl index eb369a1c..0a7e4bf8 100644 --- a/announcement/src/plugin-resources/announcement.jsl +++ b/announcement/src/plugin-resources/announcement.jsl @@ -16,21 +16,84 @@ - - - - - - ${formattedHeader} + + The ${pom.groupId} team is pleased to announce the ${pom.name} ${versionVariable} release! + + + ${line} + + + ${pom.url} -Changes in this version include (last changes first): +Changes in this version include: + + + + + + New Features: + + + + + + + + + + Fixed bugs: + + + + + + + + + + Changes: + + + + + + + + + + Removed features: + + + + + + + + +You can download the ${pom.name} here: +${pom.distributionDirectory} + +Have fun! +-The development team - - + + + + + + + + + + + + ${body} Fixes ${issue}. Thanks to ${dueto}. + + @@ -42,25 +105,8 @@ o ${line} ${line} - - - - - -This plugin has been tested with Maven [TODO]. Using it with -another version of Maven is at your own risks! :-) - -You can download the ${pom.name} here: -${maven.repo.remote}/${pom.groupId}/jars/${pom.artifactId}-${versionVariable}.jar - -Have fun! --The development team - - - - diff --git a/announcement/xdocs/changes.xml b/announcement/xdocs/changes.xml index c5ae6909..f1aef0da 100644 --- a/announcement/xdocs/changes.xml +++ b/announcement/xdocs/changes.xml @@ -24,6 +24,19 @@ Vincent Massol + + + Several new addtions that makes the plugin more generic: + the team name is now taken from pom.groupId, + "[]" are removed from the first line, changes are sorted by + type, changes report issue number and due-to, the download + link is generated from pom.distributionDirectory + and the "plugin has been tested with..." line has been removed. + + + Removed default value for the maven.announcement.version + property. This property has to be set by the plugin user. + Update to ASL v.2 Remove the need for ${pom} interpolation in properties. The use of the maven:property tag is now used to glean a default property. diff --git a/announcement/xdocs/properties.xml b/announcement/xdocs/properties.xml index ef4ad425..0e4b8593 100644 --- a/announcement/xdocs/properties.xml +++ b/announcement/xdocs/properties.xml @@ -30,12 +30,12 @@ PropertyOptional?DescriptionDefault maven.announcement.version - Yes + No Version for which to create a release note. - ${pom.currentVersion} + No default value