2014-10-30 22:55:46 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2014-10-31 17:04:32 +00:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>gov.nasa.arc.wtd</groupId>
|
|
|
|
<artifactId>open-mct-web</artifactId>
|
|
|
|
<name>Open MCT Web</name>
|
2015-12-18 20:36:43 +00:00
|
|
|
<version>0.9.1-SNAPSHOT</version>
|
2014-10-31 17:04:32 +00:00
|
|
|
<packaging>war</packaging>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2014-10-31 17:04:32 +00:00
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
</properties>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2015-01-23 01:12:52 +00:00
|
|
|
<!-- SCM info, for build number plugin -->
|
|
|
|
<scm>
|
|
|
|
<connection>scm:git:${basedir}</connection>
|
|
|
|
</scm>
|
|
|
|
|
2014-10-31 17:04:32 +00:00
|
|
|
<build>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2014-10-31 17:04:32 +00:00
|
|
|
<plugins>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2015-01-23 01:10:46 +00:00
|
|
|
<!-- Assemble WAR file -->
|
2014-10-31 17:04:32 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
2015-01-23 00:56:38 +00:00
|
|
|
<webResources>
|
|
|
|
<resource>
|
|
|
|
<directory>.</directory>
|
|
|
|
<includes>
|
|
|
|
<include>index.html</include>
|
2016-01-08 23:37:46 +00:00
|
|
|
<include>main.js</include>
|
2015-01-23 00:56:38 +00:00
|
|
|
<include>*.json</include>
|
|
|
|
<include>**/src/**/*</include>
|
|
|
|
<include>**/res/**/*</include>
|
|
|
|
<include>**/lib/**/*</include>
|
|
|
|
<include>**/bundle.json</include>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
2015-07-30 19:44:49 +00:00
|
|
|
<exclude>protractor/**/*</exclude>
|
|
|
|
<exclude>node_modules/**/*</exclude>
|
2015-01-23 00:56:38 +00:00
|
|
|
<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>
|
2014-10-31 17:04:32 +00:00
|
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2015-01-23 01:10:46 +00:00
|
|
|
<!-- 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>
|
2015-01-23 01:12:52 +00:00
|
|
|
<timestampFormat>{0,date,yyyy-MM-dd HH:mm:ss.SSSZ}</timestampFormat>
|
2015-01-23 01:10:46 +00:00
|
|
|
<doCheck>true</doCheck>
|
|
|
|
<doUpdate>false</doUpdate>
|
2015-01-23 01:12:52 +00:00
|
|
|
<revisionOnScmFailure>Unknown</revisionOnScmFailure>
|
2015-01-23 01:10:46 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2016-01-08 20:10:42 +00:00
|
|
|
<!-- Run specs using npm -->
|
2014-10-31 17:04:32 +00:00
|
|
|
<plugin>
|
2016-01-08 20:10:42 +00:00
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<version>0.0.26</version>
|
|
|
|
<configuration>
|
|
|
|
<installDirectory>target</installDirectory>
|
|
|
|
<nodeVersion>v0.12.2</nodeVersion>
|
|
|
|
<npmVersion>2.7.6</npmVersion>
|
|
|
|
</configuration>
|
2014-10-31 17:04:32 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2016-01-08 20:10:42 +00:00
|
|
|
<id>install node and npm</id>
|
2014-10-31 17:04:32 +00:00
|
|
|
<goals>
|
2016-01-08 20:10:42 +00:00
|
|
|
<goal>install-node-and-npm</goal>
|
2014-10-31 17:04:32 +00:00
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2016-01-08 20:10:42 +00:00
|
|
|
<id>npm install</id>
|
2014-10-31 17:04:32 +00:00
|
|
|
<goals>
|
2016-01-08 20:10:42 +00:00
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>javascript tests</id>
|
|
|
|
<goals>
|
|
|
|
<goal>karma</goal>
|
2014-10-31 17:04:32 +00:00
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
|
|
|
|
2014-10-31 17:04:32 +00:00
|
|
|
<!-- Copy over css for test results -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<version>2.6</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-resources</id>
|
|
|
|
<phase>test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/platform/framework/test/lib</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>platform/framework/test/lib</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2014-10-31 17:04:32 +00:00
|
|
|
<!-- Enforce code style -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>jslint-maven-plugin</artifactId>
|
|
|
|
<version>1.0.1</version>
|
|
|
|
<configuration>
|
|
|
|
<sourceJsFolder>${basedir}</sourceJsFolder>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/lib/**</exclude>
|
2016-01-08 20:16:32 +00:00
|
|
|
<exclude>*.js</exclude>
|
2015-05-22 03:47:49 +00:00
|
|
|
<exclude>node_modules/**/*</exclude>
|
2015-07-30 19:44:49 +00:00
|
|
|
<exclude>protractor/**/*</exclude>
|
2016-01-08 23:04:54 +00:00
|
|
|
<exclude>target/**/*</exclude>
|
2016-01-08 23:29:58 +00:00
|
|
|
<exclude>scripts/**/*</exclude>
|
2014-10-31 17:04:32 +00:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>jslint</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
2015-08-07 08:16:59 +00:00
|
|
|
<!-- To start this WAR in an embedded Tomcat Servlet Container -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
|
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
|
<version>2.2</version>
|
|
|
|
<configuration>
|
|
|
|
<httpPort>8080</httpPort>
|
|
|
|
<path>/mct</path>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2014-10-31 17:04:32 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2014-10-30 22:55:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
</project>
|