From 6e24e58ffbe8d65d2953242fa05310c8226e1f69 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Tue, 14 Apr 2015 13:40:34 +0200 Subject: [PATCH] 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. --- pom.xml | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 9c100e234..70348afa4 100644 --- a/pom.xml +++ b/pom.xml @@ -527,21 +527,6 @@ -header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>' - - ru.concerteza.buildnumber - maven-jgit-buildnumber-plugin - ${math.jgit.buildnumber.version} - - - generate-resources - - extract-buildnumber - - - - - - @@ -692,6 +677,33 @@ + + jgit-buildnumber + + + .git + + + + + + ru.concerteza.buildnumber + maven-jgit-buildnumber-plugin + ${math.jgit.buildnumber.version} + + + generate-resources + + extract-buildnumber + + + + + + + + + setup-checkout