o Add an experimental way of sending the release announcement, so that I can test it on a real release. If all goes well I will move this into maven-plugins-parent and add the relevant documentation to our release documents.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1083903 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index e4ee720..efde887 100644
--- a/pom.xml
+++ b/pom.xml
@@ -88,6 +88,33 @@
</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-changes-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <generateJiraAnnouncement>true</generateJiraAnnouncement>
+ <maxEntries>1000</maxEntries>
+ <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
+ <subject>[ANN] ${project.name} ${project.version} Released</subject>
+ <templateDirectory>org/apache/maven/plugins</templateDirectory>
+ <toAddresses>
+ <toAddress implementation="java.lang.String">announce@maven.apache.org</toAddress>
+ <toAddress implementation="java.lang.String">users@maven.apache.org</toAddress>
+ <toAddress implementation="java.lang.String">dev@maven.apache.org</toAddress>
+ </toAddresses>
+ <!-- These values need to be specified as properties in the profile apache-release in your settings.xml -->
+ <fromDeveloperId>${apache.availid}</fromDeveloperId>
+ <smtpHost>${smtp.host}</smtpHost>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<profiles>
<profile>
<id>run-its</id>
diff --git a/src/main/resources/org/apache/maven/plugins/announcement.vm b/src/main/resources/org/apache/maven/plugins/announcement.vm
new file mode 100644
index 0000000..2e66eea
--- /dev/null
+++ b/src/main/resources/org/apache/maven/plugins/announcement.vm
@@ -0,0 +1,71 @@
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements. See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership. The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied. See the License for the
+## specific language governing permissions and limitations
+## under the License.
+The Maven team is pleased to announce the release of the ${project.name}, version ${version}
+
+${introduction}
+
+${url}
+
+You should specify the version in your project's plugin configuration:
+
+<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+</plugin>
+
+
+Release Notes - ${project.name} - Version ${version}
+#if ($release.getActions().size() == 0)
+
+No changes defined in this version.
+#else
+#if ($release.getActions('fix').size() !=0)
+
+Bug
+#foreach($actionItem in $release.getActions('fix'))
+* [$actionItem.getIssue()] $actionItem.getAction()
+#end
+#end
+#if ($release.getActions('update').size() !=0)
+
+Improvement
+#foreach($actionItem in $release.getActions('update'))
+* [$actionItem.getIssue()] $actionItem.getAction()
+#end
+#end
+#if ($release.getActions('add').size() !=0)
+
+New Feature
+#foreach($actionItem in $release.getActions('add'))
+* [$actionItem.getIssue()] $actionItem.getAction()
+#end
+#end
+#if ($release.getActions('').size() !=0)
+
+Task
+#foreach($actionItem in $release.getActions(''))
+* [$actionItem.getIssue()] $actionItem.getAction()
+#end
+#end
+## End of main loop
+#end
+
+
+Enjoy,
+
+-The Maven team