trunk revision number as property to be used in version numbers
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Mon, 8 Mar 2010 08:54:34 +0000 (08:54 +0000)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Mon, 8 Mar 2010 08:54:34 +0000 (08:54 +0000)
pom.xml

diff --git a/pom.xml b/pom.xml
index 97fcf161611ac0c394cee3615315db244b8b28f0..09b4f74d8df34d17513932b254c6b4b6789746e8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -20,6 +20,7 @@
                <module>cdmlib-services</module>\r
                <module>cdmlib-ext</module>\r
                <module>cdmlib-remote</module>\r
+<!--    <module>cdm-server</module> -->\r
                <module>cdmlib-io</module>\r
        </modules>\r
   \r
                        <artifactId>maven-surefire-plugin</artifactId>\r
                        <configuration>\r
                          <argLine>-Xmx512M</argLine>\r
-                                 <includes>\r
-                           <include>**/*Test.java</include>\r
-                         </includes>\r
+            <includes>\r
+                   <include>**/*Test.java</include>\r
+                 </includes>\r
                        <systemProperties>\r
                                <property>\r
                                        <name>hibernate.connection.driver_class</name>\r
                                        <name>hibernate.connection.password</name>\r
                                        <value>${hibernate.connection.password}</value>\r
                                </property>\r
-                                       \r
                        </systemProperties>\r
                 </configuration>\r
-               </plugin>\r
-                       <plugin>\r
+             </plugin>\r
+       <plugin>\r
+        <groupId>org.codehaus.mojo</groupId>\r
+        <artifactId>buildnumber-maven-plugin</artifactId>\r
+        <version>1.0-beta-3</version>\r
+        <executions>\r
+          <execution>\r
+            <phase>validate</phase>\r
+            <goals>\r
+              <goal>create</goal>\r
+            </goals>\r
+          </execution>\r
+        </executions>\r
+        <configuration>\r
+          <doCheck>true</doCheck><!-- Only create the build number if there are no local modifications -->\r
+          <doUpdate>false</doUpdate><!-- automatically update the local svn copy -->\r
+        </configuration>\r
+      </plugin>\r
+       <plugin>\r
                                <groupId>org.apache.maven.plugins</groupId>\r
                                <artifactId>maven-site-plugin</artifactId>\r
                                <!-- \r
                                        <downloadJavadocs>true</downloadJavadocs>       \r
                                </configuration>\r
                        </plugin>\r
-                  <plugin>\r
+      <plugin>\r
                                <groupId>com.agilejava.docbkx</groupId>\r
                                <artifactId>docbkx-maven-plugin</artifactId>\r
                                <version>2.0.9</version>\r
                                        <htmlStylesheet>resources/css/html.css</htmlStylesheet>\r
                                        <xincludeSupported>true</xincludeSupported>\r
                                        <!--<htmlCustomization>src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>-->\r
-                              <!-- if anyone can get the xsl-fo customization to work properly, then by all \r
-                                   means use it\r
-                                <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>\r
-                              -->\r
+          <!-- if anyone can get the xsl-fo customization to work properly, then by all \r
+               means use it\r
+            <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>\r
+          -->\r
                                        <entities>\r
                                                <entity>\r
                                                        <name>version</name>\r
                                                        <value>${pom.version}</value>\r
                                                </entity>\r
                                        </entities>\r
-                              <!--We want the final documentation and the required resources to end up in \r
-                                  the right place-->\r
+          <!--We want the final documentation and the required resources to end up in \r
+              the right place-->\r
                                        <postProcess>\r
                                                <copy todir="target/site/reference">\r
                                                        <fileset dir="target/docbkx">\r