[VIVO-1222] Add revisionInfo to build
This commit is contained in:
parent
a484532b01
commit
ca45b5e93d
3 changed files with 43 additions and 0 deletions
35
pom.xml
35
pom.xml
|
@ -10,6 +10,11 @@
|
||||||
<version>1.9.0-SNAPSHOT</version>
|
<version>1.9.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
|
||||||
|
<build.timestamp>${maven.build.timestamp}</build.timestamp>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<name>Vitro</name>
|
<name>Vitro</name>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@ -37,6 +42,24 @@
|
||||||
<target>1.7</target>
|
<target>1.7</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>create</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<doCheck>false</doCheck>
|
||||||
|
<doUpdate>false</doUpdate>
|
||||||
|
<shortRevisionLength>7</shortRevisionLength>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@ -47,4 +70,16 @@
|
||||||
<url>https://raw.github.com/vivo-project/dependencies/master/</url>
|
<url>https://raw.github.com/vivo-project/dependencies/master/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The SCM repository location is used by Continuum to update against
|
||||||
|
when changes have occurred. This spawns a new build cycle and releases
|
||||||
|
snapshots into the snapshot repository below.
|
||||||
|
-->
|
||||||
|
<scm>
|
||||||
|
<connection>scm:git:git@github.com:vivo-project/Vitro.git</connection>
|
||||||
|
<developerConnection>scm:git:git@github.com:vivo-project/Vitro.git</developerConnection>
|
||||||
|
<url>git@github.com:vivo-project/Vitro.git</url>
|
||||||
|
<tag>HEAD</tag>
|
||||||
|
</scm>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -27,6 +27,12 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
|
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
|
||||||
<archiveClasses>false</archiveClasses>
|
<archiveClasses>false</archiveClasses>
|
||||||
|
<webResources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/webResources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</webResources>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
${build.timestamp}
|
||||||
|
Vitro ~ ${project.version} ~ ${buildNumber}
|
Loading…
Add table
Reference in a new issue