2013-07-27 18:33:20 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.sismics.docs</groupId>
|
|
|
|
<artifactId>docs-parent</artifactId>
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<relativePath>../docs-parent</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>docs-web</artifactId>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
<name>Docs Web</name>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- Dependencies to Docs -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sismics.docs</groupId>
|
|
|
|
<artifactId>docs-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sismics.docs</groupId>
|
|
|
|
<artifactId>docs-web-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Dependencies to Jersey -->
|
|
|
|
<dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
<groupId>org.glassfish.jersey.containers</groupId>
|
|
|
|
<artifactId>jersey-container-servlet</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
<groupId>org.glassfish.jersey.media</groupId>
|
|
|
|
<artifactId>jersey-media-json-processing</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
<groupId>org.glassfish.jersey.media</groupId>
|
|
|
|
<artifactId>jersey-media-multipart</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Other external dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-lang</groupId>
|
|
|
|
<artifactId>commons-lang</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-dbcp</groupId>
|
|
|
|
<artifactId>commons-dbcp</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>joda-time</groupId>
|
|
|
|
<artifactId>joda-time</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
2015-09-05 12:36:01 +02:00
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
<artifactId>h2</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Test dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sismics.docs</groupId>
|
|
|
|
<artifactId>docs-web-common</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
|
|
|
|
<artifactId>jersey-test-framework-provider-bundle</artifactId>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-07-27 18:33:20 +02:00
|
|
|
|
|
|
|
<dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
|
|
|
|
<artifactId>jersey-test-framework-provider-grizzly2</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
|
2013-07-27 18:33:20 +02:00
|
|
|
<dependency>
|
2015-09-07 21:51:13 +02:00
|
|
|
<groupId>org.glassfish.jersey.containers</groupId>
|
|
|
|
<artifactId>jersey-container-grizzly2-servlet</artifactId>
|
2013-07-27 18:33:20 +02:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<!-- Development profile (active by default) -->
|
|
|
|
<profile>
|
|
|
|
<id>dev</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
<property>
|
|
|
|
<name>env</name>
|
|
|
|
<value>dev</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/dev/resources</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/config.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/dev/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>**/config.properties</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2015-09-06 15:21:20 +02:00
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2013-07-27 18:33:20 +02:00
|
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
2015-09-07 21:51:13 +02:00
|
|
|
<systemProperties>
|
|
|
|
<systemProperty>
|
|
|
|
<name>application.mode</name>
|
|
|
|
<value>dev</value>
|
|
|
|
</systemProperty>
|
|
|
|
</systemProperties>
|
|
|
|
<webApp>
|
2013-07-27 18:33:20 +02:00
|
|
|
<contextPath>/docs-web</contextPath>
|
|
|
|
<overrideDescriptor>src/dev/main/webapp/web-override.xml</overrideDescriptor>
|
2015-09-07 21:51:13 +02:00
|
|
|
</webApp>
|
2013-07-27 18:33:20 +02:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2015-09-02 01:12:33 +02:00
|
|
|
<!-- Stress profile -->
|
|
|
|
<profile>
|
|
|
|
<id>stress</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>env</name>
|
|
|
|
<value>stress</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/stress/resources</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/config.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/stress/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>**/config.properties</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2015-09-06 15:21:20 +02:00
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2015-09-02 01:12:33 +02:00
|
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
2015-09-07 21:51:13 +02:00
|
|
|
<systemProperties>
|
|
|
|
<systemProperty>
|
|
|
|
<name>application.mode</name>
|
|
|
|
<value>dev</value>
|
|
|
|
</systemProperty>
|
|
|
|
</systemProperties>
|
|
|
|
<webApp>
|
2015-09-02 01:12:33 +02:00
|
|
|
<contextPath>/docs-web</contextPath>
|
2015-09-07 21:51:13 +02:00
|
|
|
<overrideDescriptor>src/dev/main/webapp/web-override.xml</overrideDescriptor>
|
|
|
|
</webApp>
|
2015-09-02 01:12:33 +02:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2013-07-27 18:33:20 +02:00
|
|
|
<!-- Production profile -->
|
|
|
|
<profile>
|
|
|
|
<id>prod</id>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/prod/resources</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/config.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/prod/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>**/config.properties</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
|
2014-02-23 02:28:44 +01:00
|
|
|
<!-- Launch NPM & Grunt -->
|
|
|
|
<plugin>
|
2015-09-06 15:21:20 +02:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2014-02-23 02:28:44 +01:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<configuration>
|
|
|
|
<target name="building">
|
|
|
|
<!-- npm install -->
|
|
|
|
<exec executable="cmd" dir="${project.basedir}/src/main/webapp" osfamily="windows" failonerror="true">
|
|
|
|
<arg line="/c npm install" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="npm" dir="${project.basedir}/src/main/webapp" osfamily="unix" failonerror="true">
|
|
|
|
<arg line="install" />
|
|
|
|
</exec>
|
|
|
|
<!-- grunt -->
|
|
|
|
<exec executable="cmd" dir="${project.basedir}/src/main/webapp" osfamily="windows">
|
|
|
|
<arg line="/c grunt --apiurl=api" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="grunt" dir="${project.basedir}/src/main/webapp" osfamily="unix">
|
|
|
|
<arg line="--apiurl=api" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!-- WAR generation -->
|
2013-07-27 18:33:20 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<configuration>
|
2014-02-23 02:28:44 +01:00
|
|
|
<warSourceDirectory>${basedir}/src/main/webapp/dist</warSourceDirectory>
|
2013-07-27 18:33:20 +02:00
|
|
|
<webXml>src\main\webapp\WEB-INF\web.xml</webXml>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|