Merge remote-tracking branch 'origin/open699' into open-master

This commit is contained in:
bwyu 2015-02-02 15:44:13 -08:00
commit 60e450c0cb
2 changed files with 67 additions and 16 deletions

View File

@ -6,14 +6,26 @@
"versions": [
{
"name": "Open MCT Web",
"value": "0.3.0-dev",
"priority": 1000
"value": "${project.version}",
"priority": 999
},
{
"name": "Built",
"value": "YYYY-MM-DDTHH:MM:ssZ",
"value": "${timestamp}",
"description": "The date on which this version of the client was built.",
"priority": 990
},
{
"name": "Revision",
"value": "${buildNumber}",
"description": "A unique revision identifier for the client sources.",
"priority": 995
},
{
"name": "Branch",
"value": "${scmBranch}",
"description": "The date on which this version of the client was built.",
"priority": 994
}
],
"components": [

65
pom.xml
View File

@ -13,32 +13,71 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<!-- SCM info, for build number plugin -->
<scm>
<connection>scm:git:${basedir}</connection>
</scm>
<build>
<plugins>
<!-- Assemble WAR file -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<warSourceDirectory>.</warSourceDirectory>
<warSourceIncludes>
index.html,
*.json,
**/src/**/*,
**/res/**/*,
**/lib/**/*,
**/bundle.json
</warSourceIncludes>
<warSourceExcludes>
example/**/*,
**/test/lib/*
</warSourceExcludes>
<webResources>
<resource>
<directory>.</directory>
<includes>
<include>index.html</include>
<include>*.json</include>
<include>**/src/**/*</include>
<include>**/res/**/*</include>
<include>**/lib/**/*</include>
<include>**/bundle.json</include>
</includes>
<excludes>
<exclude>platform/core/bundle.json</exclude>
<exclude>example/**/*</exclude>
<exclude>**/test/lib/*</exclude>
</excludes>
</resource>
<resource>
<directory>.</directory>
<includes>
<include>platform/core/bundle.json</include>
</includes>
<filtering>true</filtering>
</resource>
</webResources>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<!-- Get commit hash, timestamp -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<timestampFormat>{0,date,yyyy-MM-dd HH:mm:ss.SSSZ}</timestampFormat>
<doCheck>true</doCheck>
<doUpdate>false</doUpdate>
<revisionOnScmFailure>Unknown</revisionOnScmFailure>
</configuration>
</plugin>
<!-- Get PhantomJS plugin -->
<plugin>
<groupId>com.github.klieber</groupId>