From ca45b5e93d1f20377547374e3f759b2f44e7216c Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Mon, 23 May 2016 15:11:16 +0100 Subject: [PATCH] [VIVO-1222] Add revisionInfo to build --- pom.xml | 35 +++++++++++++++++++ webapp/pom.xml | 6 ++++ .../WEB-INF/resources/revisionInfo.txt | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 webapp/src/main/webResources/WEB-INF/resources/revisionInfo.txt diff --git a/pom.xml b/pom.xml index e0efc6ed1..e505234fa 100644 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,11 @@ 1.9.0-SNAPSHOT pom + + yyyy-MM-dd HH:mm:ss + ${maven.build.timestamp} + + Vitro @@ -37,6 +42,24 @@ 1.7 + + org.codehaus.mojo + buildnumber-maven-plugin + 1.4 + + + validate + + create + + + + + false + false + 7 + + @@ -47,4 +70,16 @@ https://raw.github.com/vivo-project/dependencies/master/ + + + + scm:git:git@github.com:vivo-project/Vitro.git + scm:git:git@github.com:vivo-project/Vitro.git + git@github.com:vivo-project/Vitro.git + HEAD + diff --git a/webapp/pom.xml b/webapp/pom.xml index beea6bbe3..8a888dd99 100644 --- a/webapp/pom.xml +++ b/webapp/pom.xml @@ -27,6 +27,12 @@ WEB-INF/lib/*.jar false + + + src/main/webResources + true + + diff --git a/webapp/src/main/webResources/WEB-INF/resources/revisionInfo.txt b/webapp/src/main/webResources/WEB-INF/resources/revisionInfo.txt new file mode 100644 index 000000000..6221cbb37 --- /dev/null +++ b/webapp/src/main/webResources/WEB-INF/resources/revisionInfo.txt @@ -0,0 +1,2 @@ +${build.timestamp} +Vitro ~ ${project.version} ~ ${buildNumber} \ No newline at end of file