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>
|
2020-03-26 19:57:10 +01:00
|
|
|
<version>1.8</version>
|
2016-05-05 22:43:18 +02:00
|
|
|
<relativePath>..</relativePath>
|
2013-07-27 18:33:20 +02:00
|
|
|
</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>
|
2018-10-21 11:54:19 +02:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.glassfish.jersey.inject</groupId>
|
|
|
|
<artifactId>jersey-hk2</artifactId>
|
|
|
|
</dependency>
|
2013-07-27 18:33:20 +02:00
|
|
|
|
|
|
|
<!-- 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>
|
2016-01-24 15:44:40 +01:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.twelvemonkeys.servlet</groupId>
|
|
|
|
<artifactId>servlet</artifactId>
|
|
|
|
</dependency>
|
2016-01-29 01:55:59 +01:00
|
|
|
|
2013-07-27 18:33:20 +02:00
|
|
|
<!-- 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>
|
2017-11-17 22:03:54 +01:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.subethamail</groupId>
|
|
|
|
<artifactId>subethasmtp-wiser</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2018-02-27 14:58:37 +01:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.icegreen</groupId>
|
|
|
|
<artifactId>greenmail</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-07-27 18:33:20 +02:00
|
|
|
|
|
|
|
</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>
|
2015-11-29 20:22:24 +01:00
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<forkCount>1</forkCount>
|
|
|
|
<reuseForks>false</reuseForks>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-07-27 18:33:20 +02:00
|
|
|
</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
|
|
|
</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 -->
|
2016-06-16 22:15:54 +02:00
|
|
|
<exec executable="cmd" dir="${project.basedir}/src/main/webapp" osfamily="windows" failonerror="true">
|
2014-02-23 02:28:44 +01:00
|
|
|
<arg line="/c grunt --apiurl=api" />
|
|
|
|
</exec>
|
2016-06-16 22:15:54 +02:00
|
|
|
<exec executable="grunt" dir="${project.basedir}/src/main/webapp" osfamily="unix" failonerror="true">
|
2014-02-23 02:28:44 +01:00
|
|
|
<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>
|