diff --git a/announcement/plugin.jelly b/announcement/plugin.jelly index 177e721e..b4ad0ed8 100644 --- a/announcement/plugin.jelly +++ b/announcement/plugin.jelly @@ -26,25 +26,35 @@ xmlns:util="jelly:util" xmlns:doc="doc" xmlns:maven="jelly:maven" - xmlns:jsl="jelly:jsl"> + xmlns:jsl="jelly:jsl" + xmlns:announcement="announcement"> - + - Generating announcement for release ${maven.announcement.version} in ${maven.announcement.file}... - - - - + + + + + + + + - + + + + + + + @@ -52,22 +62,61 @@ + + The release '${maven.announcement.version}' could not be found in change log - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generating announcement for release ${versionVariable} in ${file}... + + + + + + + + + + diff --git a/announcement/plugin.properties b/announcement/plugin.properties index 7ba58565..fa1de96d 100644 --- a/announcement/plugin.properties +++ b/announcement/plugin.properties @@ -23,9 +23,6 @@ # For example: # maven.announcement.version = ${pom.currentVersion} -# Name and location of generated announcement file -maven.announcement.file=${maven.build.dir}/announcement.txt - # Distribution location. For now, this property does not exist in the # POM (there's only a distributionSite and distributionDirectory which # doesn't map to anything for the web). We'll need to remove this diff --git a/announcement/src/plugin-resources/announcement.jsl b/announcement/src/plugin-resources/announcement.jsl index fb9c15c5..6b461c80 100644 --- a/announcement/src/plugin-resources/announcement.jsl +++ b/announcement/src/plugin-resources/announcement.jsl @@ -29,10 +29,10 @@ xmlns:maven="jelly:maven" xmlns="dummy" trim="true"> + - diff --git a/announcement/xdocs/changes.xml b/announcement/xdocs/changes.xml index 3a52dd3f..c82dbf65 100644 --- a/announcement/xdocs/changes.xml +++ b/announcement/xdocs/changes.xml @@ -25,6 +25,17 @@ + + Added new announcement:generate-all to generate + announcement files for all releases. + + + Generates the announcement file in ${maven.gen.docs}/announcements + so that it is copied to the web site when this later is deployed. + + + Default announcement file name now contains the version in its name. + Detect whether the project is a plugin or not by the existence of plugin.jelly in the project directory, and change the wording accordingly. diff --git a/announcement/xdocs/goals.xml b/announcement/xdocs/goals.xml index 5e085241..5b78dbc1 100644 --- a/announcement/xdocs/goals.xml +++ b/announcement/xdocs/goals.xml @@ -1,4 +1,5 @@ +