From e01f9041e7cb466dede5fa79bc2683c3296b5d0c Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Fri, 04 Mar 2016 16:29:56 +0000
Subject: [PATCH] OPENDJ-2582 Fix dsconfig --version

---
 opendj-config/pom.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/opendj-config/pom.xml b/opendj-config/pom.xml
index 929f67d..382382e 100644
--- a/opendj-config/pom.xml
+++ b/opendj-config/pom.xml
@@ -94,6 +94,19 @@
     </resources>
 
     <plugins>
+      <!-- Retrieve the SCM revision number and store it into the ${buildRevision} property -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>buildnumber-maven-plugin</artifactId>
+        <executions>
+          <!-- We do not need build timestamp for this module -->
+          <execution>
+            <id>generate-timestamp</id>
+            <phase>none</phase>
+          </execution>
+        </executions>
+      </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
@@ -150,6 +163,11 @@
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <SCM-Revision>${buildRevision}</SCM-Revision>
+          </instructions>
+        </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>

--
Gitblit v1.10.0