commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [1/2] [math] Wrap jgit buildnumber plugin in a profile triggered by .git exsiting.
Date Fri, 17 Apr 2015 19:23:29 GMT
Repository: commons-math
Updated Branches:
  refs/heads/master 3a4e18ddf -> e613e029f


Wrap jgit buildnumber plugin in a profile triggered by .git exsiting.

This should prevent numerous warnings when building from a source
archive instead of from git checkout.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/6dc7ccc5
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/6dc7ccc5
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/6dc7ccc5

Branch: refs/heads/master
Commit: 6dc7ccc57b4c49764e224ed3554bd541f6803b2f
Parents: 3a4e18d
Author: Luc Maisonobe <luc@apache.org>
Authored: Fri Apr 17 21:01:38 2015 +0200
Committer: Luc Maisonobe <luc@apache.org>
Committed: Fri Apr 17 21:01:38 2015 +0200

----------------------------------------------------------------------
 pom.xml | 42 +++++++++++++++++++++++++++---------------
 1 file changed, 27 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/6dc7ccc5/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 4dc0622..5553e40 100644
--- a/pom.xml
+++ b/pom.xml
@@ -529,21 +529,6 @@
           <additionalparam>-header &apos;&lt;script type=&quot;text/javascript&quot;
src=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&gt;&lt;/script&gt;&apos;</additionalparam>
         </configuration>
       </plugin>
-      <plugin>
-        <groupId>ru.concerteza.buildnumber</groupId>
-        <artifactId>maven-jgit-buildnumber-plugin</artifactId>
-        <version>${math.jgit.buildnumber.version}</version>
-        <executions>
-          <execution>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>extract-buildnumber</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-        </configuration>
-      </plugin>
     </plugins>
   </build>
 
@@ -695,6 +680,33 @@
 
   <profiles>
     <profile>
+      <id>jgit-buildnumber</id>
+      <activation>
+        <file>
+          <exists>.git</exists>
+        </file>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>ru.concerteza.buildnumber</groupId>
+            <artifactId>maven-jgit-buildnumber-plugin</artifactId>
+            <version>${math.jgit.buildnumber.version}</version>
+            <executions>
+              <execution>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>extract-buildnumber</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
       <id>setup-checkout</id>
       <activation>
         <file>


Mime
View raw message