commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r933821 - in /commons/proper/compress/trunk: pom.xml src/changes/changes.xml
Date Wed, 14 Apr 2010 00:49:29 GMT
Author: sebb
Date: Wed Apr 14 00:49:28 2010
New Revision: 933821

URL: http://svn.apache.org/viewvc?rev=933821&view=rev
Log:
Add profile "relnotes" so can optionally override changes plugin template.
This means that the changes plugin can still be used to generate the announcement.
Changes plugin does not need to be mentioned in build section.

Modified:
    commons/proper/compress/trunk/pom.xml
    commons/proper/compress/trunk/src/changes/changes.xml

Modified: commons/proper/compress/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/pom.xml?rev=933821&r1=933820&r2=933821&view=diff
==============================================================================
--- commons/proper/compress/trunk/pom.xml (original)
+++ commons/proper/compress/trunk/pom.xml Wed Apr 14 00:49:28 2010
@@ -131,19 +131,6 @@
           </archive>
         </configuration>
       </plugin>
-      <!-- Repeat the configuration here for use when directly invoking the plugin -->
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-changes-plugin</artifactId>
-        <version>2.3</version>
-        <configuration>
-          <issueLinkTemplatePerSystem>
-            <default>%URL%/%ISSUE%</default>
-          </issueLinkTemplatePerSystem>
-          <template>release-notes.vm</template>
-          <templateDirectory>src/changes</templateDirectory>
-        </configuration>
-      </plugin>
     </plugins>
   </build>
 
@@ -158,8 +145,6 @@
            <issueLinkTemplatePerSystem>
                <default>%URL%/%ISSUE%</default>
            </issueLinkTemplatePerSystem>
-           <template>release-notes.vm</template>
-           <templateDirectory>src/changes</templateDirectory>
         </configuration>
         <reportSets>
           <reportSet>
@@ -228,6 +213,23 @@
         </site>
       </distributionManagement>
     </profile>
+    <profile>
+      <id>relnotes</id>
+      <!-- Override the built-in announce.vm in order to generate release notes -->
+      <build>
+        <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-changes-plugin</artifactId>
+              <version>2.3</version>
+              <configuration>
+                <template>release-notes.vm</template>
+                <templateDirectory>src/changes</templateDirectory>
+              </configuration>
+            </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
 </project>

Modified: commons/proper/compress/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/changes/changes.xml?rev=933821&r1=933820&r2=933821&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/changes.xml (original)
+++ commons/proper/compress/trunk/src/changes/changes.xml Wed Apr 14 00:49:28 2010
@@ -32,7 +32,7 @@ SVN commits. TBA how to use this with SV
 
 To generate the release notes from this file:
 
-mvn changes:announcement-generate
+mvn changes:announcement-generate -Prelnotes
 mv target/announcement/release-notes.vm RELEASE-NOTES.txt
 then tweak the formatting if necessary 
 and commit



Mime
View raw message