blob: e87f1cfc267980dec8268c9acbc501a7a686776c [file] [log] [blame]
Michael Hanlca740d72015-06-16 10:04:58 +02001<?xml version="1.0" encoding="UTF-8"?>
2<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">
Michael Hanlca740d72015-06-16 10:04:58 +02003 <modelVersion>4.0.0</modelVersion>
Michael Hanlbadd79c2015-06-19 07:41:03 +02004 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +02005 <artifactId>Kustvakt-core</artifactId>
Michael Hanlbadd79c2015-06-19 07:41:03 +02006 <name>Kustvakt core</name>
Michael Hanl45636922016-06-03 14:00:56 +02007 <version>0.59.4</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +02008 <description>Kustvakt core, basic rest api for testing purposes and default
9 interfaces</description>
Michael Hanlca740d72015-06-16 10:04:58 +020010 <build>
Michael Hanl482f30d2015-09-25 12:39:46 +020011 <resources>
12 <resource>
13 <filtering>true</filtering>
14 <directory>src/main/resources</directory>
15 <includes>
Michael Hanldaf86602016-05-12 14:31:52 +020016 <include>**/*.info</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020017 <include>**/*.xml</include>
18 <include>**/*.conf</include>
19 <include>**/*.properties</include>
Michael Hanlf0785322015-11-13 16:14:45 +010020 <include>**/*.sql</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020021 </includes>
22 </resource>
23 </resources>
24 <testResources>
25 <testResource>
26 <filtering>true</filtering>
Michael Hanl59bff812015-10-27 23:10:32 +010027 <directory>src/test/resources</directory>
Michael Hanl482f30d2015-09-25 12:39:46 +020028 <includes>
29 <include>**/*.prop</include>
30 <include>**/*.xml</include>
31 <include>**/*.conf</include>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020032 <include>**/*.info</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020033 <include>**/*.properties</include>
34 </includes>
35 </testResource>
Michael Hanl59bff812015-10-27 23:10:32 +010036 <testResource>
37 <filtering>true</filtering>
38 <directory>src/main/resources</directory>
39 <includes>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020040 <include>**/*.info</include>
Michael Hanl59bff812015-10-27 23:10:32 +010041 <include>**/*.properties</include>
Michael Hanl59bff812015-10-27 23:10:32 +010042 </includes>
43 </testResource>
Michael Hanl482f30d2015-09-25 12:39:46 +020044 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +020045 <plugins>
46 <plugin>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020047 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
48 <artifactId>maven-java-formatter-plugin</artifactId>
49 <version>0.4</version>
Michael Hanl45636922016-06-03 14:00:56 +020050 <executions>
51 <execution>
52 <goals>
53 <goal>format</goal>
54 </goals>
55 </execution>
56 </executions>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020057 <configuration>
58 <configFile>${project.basedir}/Format.xml</configFile>
59 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
60 <compilerSource>1.7</compilerSource>
61 <compilerCompliance>1.7</compilerCompliance>
62 <compilerTargetPlatform>1.7</compilerTargetPlatform>
63 </configuration>
64 </plugin>
65 <plugin>
Michael Hanl59bff812015-10-27 23:10:32 +010066 <artifactId>maven-compiler-plugin</artifactId>
67 <version>3.3</version>
68 <configuration>
69 <compilerVersion>1.7</compilerVersion>
70 <source>1.7</source>
71 <target>1.7</target>
72 </configuration>
73 </plugin>
74 <plugin>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020075 <artifactId>maven-jar-plugin</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +010076 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020077 <executions>
78 <execution>
79 <phase>package</phase>
80 <goals>
81 <goal>test-jar</goal>
82 </goals>
83 </execution>
84 </executions>
85 </plugin>
86 <plugin>
Michael Hanlca740d72015-06-16 10:04:58 +020087 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +020088 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +020089 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +020090 <reuseForks>false</reuseForks>
Michael Hanl45636922016-06-03 14:00:56 +020091 <forkCount>2</forkCount>
Michael Hanldaf86602016-05-12 14:31:52 +020092 <threadCount>10</threadCount>
Michael Hanlca740d72015-06-16 10:04:58 +020093 <excludes>
94 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +020095 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +020096 </excludes>
97 <includes>
Michael Hanl3520dcd2016-02-08 19:11:37 +010098 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +020099 </includes>
100 </configuration>
101 </plugin>
102 <plugin>
103 <artifactId>maven-shade-plugin</artifactId>
104 <version>2.1</version>
105 <executions>
106 <execution>
Michael Hanl482f30d2015-09-25 12:39:46 +0200107 <id>full</id>
Michael Hanlca740d72015-06-16 10:04:58 +0200108 <phase>package</phase>
109 <goals>
110 <goal>shade</goal>
111 </goals>
112 <configuration>
113 <transformers>
114 <transformer>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200115 <mainClass>de.ids_mannheim.korap.web.KustvaktServer</mainClass>
Michael Hanlca740d72015-06-16 10:04:58 +0200116 </transformer>
117 <transformer>
118 <resource>META-INF/spring.handlers</resource>
119 </transformer>
120 <transformer>
121 <resource>META-INF/spring.schemas</resource>
122 </transformer>
123 </transformers>
124 <filters>
125 <filter>
126 <artifact>*:*</artifact>
127 <excludes>
128 <exclude>META-INF/*.SF</exclude>
129 <exclude>META-INF/*.DSA</exclude>
130 <exclude>META-INF/*.RSA</exclude>
131 </excludes>
132 </filter>
133 </filters>
134 </configuration>
135 </execution>
136 </executions>
137 </plugin>
138 </plugins>
139 </build>
Michael Hanl482f30d2015-09-25 12:39:46 +0200140 <profiles>
141 <profile>
142 <id>light</id>
143 <build>
144 <plugins>
145 <plugin>
146 <artifactId>maven-shade-plugin</artifactId>
147 <version>2.1</version>
148 <executions>
149 <execution>
150 <id>light</id>
151 <phase>package</phase>
152 <goals>
153 <goal>shade</goal>
154 </goals>
155 <configuration>
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200156 <finalName>Kustvakt-core-${project.version}-light</finalName>
Michael Hanl482f30d2015-09-25 12:39:46 +0200157 <transformers>
158 <transformer>
159 <mainClass>de.ids_mannheim.korap.web.KustvaktBaseServer</mainClass>
160 </transformer>
161 <transformer>
162 <resource>META-INF/spring.handlers</resource>
163 </transformer>
164 <transformer>
165 <resource>META-INF/spring.schemas</resource>
166 </transformer>
167 </transformers>
168 <filters>
169 <filter>
170 <artifact>*:*</artifact>
171 <excludes>
172 <exclude>META-INF/*.SF</exclude>
173 <exclude>META-INF/*.DSA</exclude>
174 <exclude>META-INF/*.RSA</exclude>
175 </excludes>
176 </filter>
177 </filters>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182 </plugins>
183 </build>
184 </profile>
185 </profiles>
Michael Hanlca740d72015-06-16 10:04:58 +0200186 <dependencies>
187 <dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200188 <groupId>com.sun.jersey.jersey-test-framework</groupId>
189 <artifactId>jersey-test-framework-core</artifactId>
190 <version>1.19</version>
191 <scope>test</scope>
192 <exclusions>
193 <exclusion>
194 <artifactId>javax.servlet-api</artifactId>
195 <groupId>javax.servlet</groupId>
196 </exclusion>
197 <exclusion>
Michael Hanldaf86602016-05-12 14:31:52 +0200198 <artifactId>jersey-servlet</artifactId>
199 <groupId>com.sun.jersey</groupId>
200 </exclusion>
201 <exclusion>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200202 <artifactId>jersey-client</artifactId>
203 <groupId>com.sun.jersey</groupId>
204 </exclusion>
205 </exclusions>
206 </dependency>
207 <dependency>
208 <groupId>com.sun.jersey.jersey-test-framework</groupId>
209 <artifactId>jersey-test-framework-grizzly</artifactId>
210 <version>1.19</version>
211 <scope>test</scope>
212 <exclusions>
213 <exclusion>
214 <artifactId>grizzly-servlet-webserver</artifactId>
215 <groupId>com.sun.grizzly</groupId>
216 </exclusion>
217 <exclusion>
218 <artifactId>jersey-grizzly</artifactId>
219 <groupId>com.sun.jersey</groupId>
220 </exclusion>
221 </exclusions>
222 </dependency>
223 <dependency>
224 <groupId>junit</groupId>
225 <artifactId>junit</artifactId>
226 <version>4.11</version>
227 <scope>test</scope>
228 </dependency>
229 <dependency>
Michael Hanl482f30d2015-09-25 12:39:46 +0200230 <groupId>org.projectlombok</groupId>
231 <artifactId>lombok</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +0100232 <version>1.16.6</version>
Michael Hanl482f30d2015-09-25 12:39:46 +0200233 <scope>provided</scope>
234 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200235 </dependencies>
236 <properties>
237 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
238 <maven.compiler.source>1.7</maven.compiler.source>
239 <maven.compiler.target>1.7</maven.compiler.target>
240 </properties>
241</project>
242