<?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"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>de.ids_mannheim.korap</groupId> | |
<artifactId>Kustvakt-core</artifactId> | |
<name>Kustvakt core</name> | |
<version>0.56</version> | |
<description>Kustvakt core, basic rest api for testing purposes and default | |
interfaces</description> | |
<build> | |
<resources> | |
<resource> | |
<filtering>true</filtering> | |
<directory>src/main/resources</directory> | |
<includes> | |
<include>**/*.prop</include> | |
<include>**/*.xml</include> | |
<include>**/*.conf</include> | |
<include>**/*.properties</include> | |
<include>**/*.sql</include> | |
</includes> | |
</resource> | |
</resources> | |
<testResources> | |
<testResource> | |
<filtering>true</filtering> | |
<directory>src/test/resources</directory> | |
<includes> | |
<include>**/*.prop</include> | |
<include>**/*.xml</include> | |
<include>**/*.conf</include> | |
<include>**/*.properties</include> | |
</includes> | |
</testResource> | |
<testResource> | |
<filtering>true</filtering> | |
<directory>src/main/resources</directory> | |
<includes> | |
<include>**/*.properties</include> | |
</includes> | |
</testResource> | |
</testResources> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<compilerVersion>1.7</compilerVersion> | |
<source>1.7</source> | |
<target>1.7</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.1</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>test-jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.9</version> | |
<configuration> | |
<excludes> | |
<exclude>**/*APITest.java</exclude> | |
</excludes> | |
<includes> | |
<include>**/*.java</include> | |
</includes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.1</version> | |
<executions> | |
<execution> | |
<id>full</id> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<transformers> | |
<transformer> | |
<mainClass>de.ids_mannheim.korap.web.KustvaktServer</mainClass> | |
</transformer> | |
<transformer> | |
<resource>META-INF/spring.handlers</resource> | |
</transformer> | |
<transformer> | |
<resource>META-INF/spring.schemas</resource> | |
</transformer> | |
</transformers> | |
<filters> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.SF</exclude> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.RSA</exclude> | |
</excludes> | |
</filter> | |
</filters> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>light</id> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.1</version> | |
<executions> | |
<execution> | |
<id>light</id> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<finalName>Kustvakt-core-${project.version}-light</finalName> | |
<transformers> | |
<transformer> | |
<mainClass>de.ids_mannheim.korap.web.KustvaktBaseServer</mainClass> | |
</transformer> | |
<transformer> | |
<resource>META-INF/spring.handlers</resource> | |
</transformer> | |
<transformer> | |
<resource>META-INF/spring.schemas</resource> | |
</transformer> | |
</transformers> | |
<filters> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.SF</exclude> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.RSA</exclude> | |
</excludes> | |
</filter> | |
</filters> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
<repositories> | |
<repository> | |
<id>codehaus-release-repo</id> | |
<name>Codehaus Release Repo</name> | |
<url>http://repository.codehaus.org</url> | |
</repository> | |
<repository> | |
<id>central</id> | |
<url>http://repo1.maven.org/maven2/</url> | |
</repository> | |
<repository> | |
<snapshots /> | |
<id>sonatype</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>com.sun.jersey.jersey-test-framework</groupId> | |
<artifactId>jersey-test-framework-core</artifactId> | |
<version>1.19</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>javax.servlet-api</artifactId> | |
<groupId>javax.servlet</groupId> | |
</exclusion> | |
<exclusion> | |
<artifactId>jersey-client</artifactId> | |
<groupId>com.sun.jersey</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.sun.jersey.jersey-test-framework</groupId> | |
<artifactId>jersey-test-framework-grizzly</artifactId> | |
<version>1.19</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>grizzly-servlet-webserver</artifactId> | |
<groupId>com.sun.grizzly</groupId> | |
</exclusion> | |
<exclusion> | |
<artifactId>jersey-grizzly</artifactId> | |
<groupId>com.sun.jersey</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.11</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.16.6</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<maven.compiler.source>1.7</maven.compiler.source> | |
<maven.compiler.target>1.7</maven.compiler.target> | |
</properties> | |
</project> | |