You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2011/09/10 03:11:48 UTC

svn commit: r1167429 - /httpcomponents/project/pom.xml

Author: sebb
Date: Sat Sep 10 01:11:48 2011
New Revision: 1167429

URL: http://svn.apache.org/viewvc?rev=1167429&view=rev
Log:
Add buildnumber plugin and add Implementation-Build manifest line
Default Clirr severity to info, and allow command-line override

Modified:
    httpcomponents/project/pom.xml

Modified: httpcomponents/project/pom.xml
URL: http://svn.apache.org/viewvc/httpcomponents/project/pom.xml?rev=1167429&r1=1167428&r2=1167429&view=diff
==============================================================================
--- httpcomponents/project/pom.xml (original)
+++ httpcomponents/project/pom.xml Sat Sep 10 01:11:48 2011
@@ -274,6 +274,8 @@
               <Implementation-Version>${project.version}</Implementation-Version>
               <Implementation-Vendor>Apache Software Foundation</Implementation-Vendor>
               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
+              <!-- from buildnumber plugin and properties -->
+              <Implementation-Build>${implementation.build}</Implementation-Build>
               <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
               <X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
             </manifestEntries>
@@ -284,7 +286,31 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>buildnumber-maven-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <phase>validate</phase>
+            <goals>
+              <goal>create</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <!-- Use committed revision so it does not change every time svn update is run -->
+          <useLastCommittedRevision>true</useLastCommittedRevision>
+          <!-- default revision number if unavailable -->
+          <revisionOnScmFailure>??????</revisionOnScmFailure>
+          <!-- svnjava works even if an svn command-line client is not on the path -->
+          <providerImplementations>
+            <svn>javasvn</svn>
+          </providerImplementations>
+        </configuration>
+      </plugin>
     </plugins>
+
     <pluginManagement>
       <plugins>
         <!-- org.apache.maven.plugins, alpha order by artifact id -->
@@ -447,6 +473,9 @@
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>clirr-maven-plugin</artifactId>
           <version>2.3</version>
+          <configuration>
+            <minSeverity>${minSeverity}</minSeverity>
+          </configuration>
         </plugin>
       </plugins>
     </pluginManagement>
@@ -536,5 +565,12 @@
    <!-- N.B. It appears that the latest version for which the ASF has a licence is 2.6.3 -->
    <!-- TODO - try 3.1.0 -->
    <clover.version>2.6.3</clover.version>
+
+    <!-- build meta inf -->
+    <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssZ</maven.build.timestamp.format>
+    <implementation.build>${scmBranch}@r${buildNumber}; ${maven.build.timestamp}</implementation.build>
+
+    <!-- Allow Clirr severity to be overriden by the command-line option -DminSeverity=level -->
+    <minSeverity>info</minSeverity>
  </properties>
 </project>