docs/docs-web/pom.xml

267 lines
7.9 KiB
XML
Raw Permalink Normal View History

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>
2023-03-12 14:11:52 +01:00
<version>1.12-SNAPSHOT</version>
<relativePath>../pom.xml</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>
2023-03-19 14:28:22 +01:00
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
2013-07-27 18:33:20 +02:00
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
2013-07-27 18:33:20 +02:00
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</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>
<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>
2020-08-28 19:33:58 +02:00
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>
<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>
<!-- 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>