[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>
|
||||
<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>
|
||||
|
||||
<modules>
|
||||
|
@ -37,6 +42,24 @@
|
|||
<target>1.7</target>
|
||||
</configuration>
|
||||
</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>
|
||||
</build>
|
||||
|
||||
|
@ -47,4 +70,16 @@
|
|||
<url>https://raw.github.com/vivo-project/dependencies/master/</url>
|
||||
</repository>
|
||||
</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>
|
||||
|
|
|
@ -27,6 +27,12 @@
|
|||
<configuration>
|
||||
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
|
||||
<archiveClasses>false</archiveClasses>
|
||||
<webResources>
|
||||
<resource>
|
||||
<directory>src/main/webResources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
${build.timestamp}
|
||||
Vitro ~ ${project.version} ~ ${buildNumber}
|
Loading…
Add table
Reference in a new issue