2016-04-06 21:25:59 +02:00
<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" >
2015-07-09 14:51:06 +02:00
<modelVersion > 4.0.0</modelVersion>
<groupId > li.strolch</groupId>
<artifactId > strolch_minimal_rest</artifactId>
<packaging > war</packaging>
<version > 1.0.0-SNAPSHOT</version>
<inceptionYear > 2014</inceptionYear>
<name > strolch_minimal_rest</name>
<url > http://www.strolch.li</url>
<properties >
<m2eclipse.wtp.contextRoot > strolch_minimal</m2eclipse.wtp.contextRoot>
<warFinalName > strolch_minimal</warFinalName>
<project.build.sourceEncoding > UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format > yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
<buildTimestamp > ${maven.build.timestamp}</buildTimestamp>
<java-version > 1.8</java-version>
<strolch.version > 1.1.0-SNAPSHOT</strolch.version>
<jersey.version > 2.11</jersey.version>
<jaxrs.api.version > 2.0</jaxrs.api.version>
2015-11-20 11:53:54 +01:00
<tomcat7Url > http://tomcat.eitchnet.ch:8080/manager/text</tomcat7Url>
2015-07-09 14:51:06 +02:00
<tomcat7ServerId > tomcat7.eitchnet.ch</tomcat7ServerId>
</properties>
<dependencyManagement >
<dependencies >
<dependency >
<groupId > li.strolch</groupId>
<artifactId > li.strolch.bom</artifactId>
<type > pom</type>
<version > ${strolch.version}</version>
<scope > import</scope>
</dependency>
<dependency >
<groupId > org.glassfish.jersey</groupId>
<artifactId > jersey-bom</artifactId>
<version > ${jersey.version}</version>
<type > pom</type>
<scope > import</scope>
</dependency>
<dependency >
<groupId > javax.ws.rs</groupId>
<artifactId > javax.ws.rs-api</artifactId>
<version > ${jaxrs.api.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies >
<!-- base -->
<dependency >
<groupId > org.slf4j</groupId>
<artifactId > slf4j-api</artifactId>
</dependency>
<dependency >
<groupId > org.slf4j</groupId>
<artifactId > slf4j-log4j12</artifactId>
<scope > runtime</scope>
</dependency>
<!-- eitchnet -->
<dependency >
<groupId > ch.eitchnet</groupId>
<artifactId > ch.eitchnet.utils</artifactId>
</dependency>
<dependency >
<groupId > ch.eitchnet</groupId>
<artifactId > ch.eitchnet.privilege</artifactId>
</dependency>
<!-- strolch -->
<dependency >
<groupId > li.strolch</groupId>
<artifactId > li.strolch.model</artifactId>
</dependency>
<dependency >
<groupId > li.strolch</groupId>
<artifactId > li.strolch.agent</artifactId>
</dependency>
<dependency >
<groupId > li.strolch</groupId>
<artifactId > li.strolch.service</artifactId>
</dependency>
<dependency >
<groupId > li.strolch</groupId>
<artifactId > li.strolch.rest</artifactId>
</dependency>
<!-- Servlet 3.0 API -->
<dependency >
<groupId > javax.servlet</groupId>
<artifactId > javax.servlet-api</artifactId>
<version > 3.0.1</version>
<scope > provided</scope>
</dependency>
<!-- Web -->
<dependency >
<groupId > org.glassfish.jersey.containers</groupId>
<artifactId > jersey-container-servlet</artifactId>
</dependency>
<dependency >
<groupId > org.glassfish.jersey.containers</groupId>
<artifactId > jersey-container-grizzly2-http</artifactId>
<scope > test</scope>
</dependency>
2016-04-06 21:25:59 +02:00
<!-- uncomment this to get JSON support: <dependency> <groupId>org.glassfish.jersey.media</groupId> <artifactId>jersey - media - moxy</artifactId> </dependency> -->
2015-07-09 14:51:06 +02:00
<dependency >
<groupId > com.google.code.gson</groupId>
<artifactId > gson</artifactId>
<version > 2.3.1</version>
</dependency>
<!-- testing -->
<dependency >
<groupId > junit</groupId>
<artifactId > junit</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.hamcrest</groupId>
<artifactId > hamcrest-core</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.hamcrest</groupId>
<artifactId > hamcrest-library</artifactId>
<scope > test</scope>
</dependency>
</dependencies>
<build >
<finalName > ${warFinalName}</finalName>
2016-04-06 21:25:59 +02:00
<resources >
<resource >
<directory > src/main/resources</directory>
<filtering > true</filtering>
<includes >
<include > **/*.properties</include>
</includes>
</resource>
<resource >
<directory > src/main/resources</directory>
<filtering > false</filtering>
<excludes >
<exclude > **/*.properties</exclude>
</excludes>
</resource>
</resources>
2015-07-09 14:51:06 +02:00
<plugins >
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-compiler-plugin</artifactId>
<version > 3.0</version>
<configuration >
<source > ${java-version}</source>
<target > ${java-version}</target>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-eclipse-plugin</artifactId>
<version > 2.9</version>
<configuration >
<downloadJavadocs > true</downloadJavadocs>
<downloadSources > true</downloadSources>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-war-plugin</artifactId>
<version > 2.4</version>
<configuration >
<failOnMissingWebXml > false</failOnMissingWebXml>
<warName > ${warFinalName}</warName>
<webResources >
<resource >
<directory > src/main/non-packaged-resources</directory>
<targetPath > WEB-INF</targetPath>
<filtering > true</filtering>
<includes >
<include > **/ENV.properties</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin >
<!-- Publish to Tomcat7: mvn tomcat7:redeploy -->
<groupId > org.apache.tomcat.maven</groupId>
<artifactId > tomcat7-maven-plugin</artifactId>
<version > 2.2</version>
<configuration >
<url > ${tomcat7Url}</url>
<server > ${tomcat7ServerId}</server>
<path > /${warFinalName}</path>
</configuration>
</plugin>
</plugins>
</build>
<profiles >
<profile >
<id > m2e</id>
<!-- This profile is only activated when building in Eclipse with m2e -->
<activation >
<property >
<name > m2e.version</name>
</property>
</activation>
<properties >
<strolch.env > dev</strolch.env>
</properties>
</profile>
</profiles>
</project>