mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 23:12:23 +00:00
179 lines
6.9 KiB
XML
179 lines
6.9 KiB
XML
<?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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>gov.nasa.arc.wtd</groupId>
|
|
<artifactId>open-mct-web</artifactId>
|
|
<name>Open MCT Web</name>
|
|
<version>0.9.1-SNAPSHOT</version>
|
|
<packaging>war</packaging>
|
|
|
|
<properties>
|
|
<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>
|
|
<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>protractor/**/*</exclude>
|
|
<exclude>node_modules/**/*</exclude>
|
|
<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>
|
|
|
|
<!-- Run specs using npm -->
|
|
<plugin>
|
|
<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>
|
|
<executions>
|
|
<execution>
|
|
<id>install node and npm</id>
|
|
<goals>
|
|
<goal>install-node-and-npm</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>npm install</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>javascript tests</id>
|
|
<goals>
|
|
<goal>karma</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
|
|
<!-- 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>
|
|
|
|
<!-- 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>
|
|
<exclude>app.js</exclude>
|
|
<exclude>node_modules/**/*</exclude>
|
|
<exclude>protractor/**/*</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>jslint</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- 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>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project>
|