blob: f89de18c327538518a44deec07d87431b1327062 [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"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Michael Hanlca740d72015-06-16 10:04:58 +02005 <modelVersion>4.0.0</modelVersion>
Michael Hanlbadd79c2015-06-19 07:41:03 +02006 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +02007 <artifactId>Kustvakt-core</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +02008 <version>0.59.1</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +02009 <packaging>jar</packaging>
10 <name>Kustvakt core</name>
11 <description>Kustvakt core, basic rest api for testing purposes and default
12 interfaces
13 </description>
Michael Hanlca740d72015-06-16 10:04:58 +020014 <properties>
15 <maven.compiler.source>1.7</maven.compiler.source>
16 <maven.compiler.target>1.7</maven.compiler.target>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18 </properties>
Michael Hanl840878a2015-09-21 22:38:05 +020019 <profiles>
20 <!-- mvn -Plight builds additionally the light server version with reduced functionality! -->
21 <profile>
22 <id>light</id>
23 <build>
24 <plugins>
25 <plugin>
26 <artifactId>maven-shade-plugin</artifactId>
27 <version>2.1</version>
28 <executions>
29 <!-- option 1 -->
30 <execution>
31 <id>light</id>
32 <phase>package</phase>
33 <goals>
34 <goal>shade</goal>
35 </goals>
36 <configuration>
37 <finalName>
38 Kustvakt-core-${project.version}-light
39 </finalName>
40 <transformers>
41 <transformer
42 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
43 <mainClass>
Michael Hanl482f30d2015-09-25 12:39:46 +020044 de.ids_mannheim.korap.web.KustvaktBaseServer
Michael Hanl840878a2015-09-21 22:38:05 +020045 </mainClass>
46 </transformer>
47 <transformer
48 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
49 <resource>META-INF/spring.handlers
50 </resource>
51 </transformer>
52 <transformer
53 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
54 <resource>META-INF/spring.schemas
55 </resource>
56 </transformer>
57 </transformers>
58 <!-- Additional configuration. -->
59 <!-- apparently there is a securityexception -->
60 <filters>
61 <filter>
62 <artifact>*:*</artifact>
63 <excludes>
64 <exclude>META-INF/*.SF</exclude>
65 <exclude>META-INF/*.DSA
66 </exclude>
67 <exclude>META-INF/*.RSA
68 </exclude>
69 </excludes>
70 </filter>
71 </filters>
72 </configuration>
73 </execution>
74 </executions>
75 </plugin>
76 </plugins>
77 </build>
78 </profile>
79 </profiles>
Michael Hanlca740d72015-06-16 10:04:58 +020080 <build>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020081 <resources>
82 <resource>
83 <directory>src/main/resources</directory>
84 <filtering>true</filtering>
85 <includes>
Michael Hanldaf86602016-05-12 14:31:52 +020086 <include>**/*.info</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020087 <include>**/*.xml</include>
88 <include>**/*.conf</include>
89 <include>**/*.properties</include>
Michael Hanld3c8bc82015-11-10 07:47:24 +010090 <include>**/*.sql</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020091 </includes>
92 </resource>
93 </resources>
94 <testResources>
95 <testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +020096 <directory>src/test/resources</directory>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020097 <filtering>true</filtering>
98 <includes>
99 <include>**/*.prop</include>
100 <include>**/*.xml</include>
101 <include>**/*.conf</include>
Michael Hanldaf86602016-05-12 14:31:52 +0200102 <include>**/*.info</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200103 <include>**/*.properties</include>
104 </includes>
105 </testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +0200106 <testResource>
107 <directory>src/main/resources</directory>
108 <filtering>true</filtering>
109 <includes>
Michael Hanlefb54c42016-01-16 18:54:03 +0100110 <!--<include>**/*.prop</include>-->
111 <!--<include>**/*.xml</include>-->
Michael Hanldaf86602016-05-12 14:31:52 +0200112 <include>**/*.info</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200113 <include>**/*.properties</include>
Michael Hanlefb54c42016-01-16 18:54:03 +0100114 <!--<include>**/*.sql</include>-->
Michael Hanlf21773f2015-10-16 23:02:31 +0200115 </includes>
116 </testResource>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200117 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +0200118 <plugins>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-compiler-plugin</artifactId>
122 <version>3.3</version>
123 <configuration>
124 <compilerVersion>1.7</compilerVersion>
125 <source>1.7</source>
126 <target>1.7</target>
127 </configuration>
128 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200129
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200130 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200134 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200135 <executions>
136 <execution>
137 <phase>package</phase>
138 <goals>
139 <goal>test-jar</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
Michael Hanlca740d72015-06-16 10:04:58 +0200144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200147 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200148 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +0200149 <reuseForks>false</reuseForks>
150 <forkCount>1</forkCount>
151 <threadCount>10</threadCount>
152
Michael Hanlca740d72015-06-16 10:04:58 +0200153 <excludes>
154 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +0200155 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +0200156 </excludes>
157 <includes>
Michael Hanl83356752016-02-06 14:33:50 +0100158 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200159 </includes>
160 </configuration>
161 </plugin>
162 <plugin>
163 <artifactId>maven-shade-plugin</artifactId>
164 <version>2.1</version>
165 <executions>
166 <!-- option 1 -->
167 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200168 <id>full</id>
169 <phase>package</phase>
170 <goals>
171 <goal>shade</goal>
172 </goals>
173 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200174 <transformers>
175 <transformer
176 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
177 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200178 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200179 </mainClass>
180 </transformer>
181 <transformer
182 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
183 <resource>META-INF/spring.handlers
184 </resource>
185 </transformer>
186 <transformer
187 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
188 <resource>META-INF/spring.schemas
189 </resource>
190 </transformer>
191 </transformers>
192 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100193 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200194 <filters>
195 <filter>
196 <artifact>*:*</artifact>
197 <excludes>
198 <exclude>META-INF/*.SF</exclude>
199 <exclude>META-INF/*.DSA
200 </exclude>
201 <exclude>META-INF/*.RSA
202 </exclude>
203 </excludes>
204 </filter>
205 </filters>
206 </configuration>
207 </execution>
208 </executions>
209 </plugin>
210 </plugins>
211 </build>
Michael Hanlca740d72015-06-16 10:04:58 +0200212 <dependencies>
213 <dependency>
214 <groupId>com.sun.jersey</groupId>
215 <artifactId>jersey-bundle</artifactId>
216 <version>1.8</version>
217 </dependency>
218 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200219 <groupId>com.sun.jersey.jersey-test-framework</groupId>
220 <artifactId>jersey-test-framework-core</artifactId>
221 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200222 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200223 </dependency>
224 <dependency>
225 <groupId>com.sun.jersey.jersey-test-framework</groupId>
226 <artifactId>jersey-test-framework-grizzly</artifactId>
227 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200228 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200229 </dependency>
230 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200231 <groupId>org.slf4j</groupId>
232 <artifactId>slf4j-api</artifactId>
233 <version>1.7.5</version>
234 </dependency>
235 <dependency>
236 <groupId>org.slf4j</groupId>
237 <artifactId>slf4j-log4j12</artifactId>
238 <version>1.7.5</version>
239 </dependency>
240 <dependency>
241 <groupId>log4j</groupId>
242 <artifactId>log4j</artifactId>
243 <version>1.2.17</version>
244 </dependency>
245 <dependency>
246 <groupId>log4j</groupId>
247 <artifactId>apache-log4j-extras</artifactId>
248 <version>1.2.17</version>
249 </dependency>
250 <dependency>
251 <groupId>junit</groupId>
252 <artifactId>junit</artifactId>
253 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200254 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200255 </dependency>
256 <dependency>
257 <groupId>org.projectlombok</groupId>
258 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200259 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200260 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200261 </dependency>
262 <dependency>
263 <groupId>joda-time</groupId>
264 <artifactId>joda-time</artifactId>
265 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200266 </dependency>
267 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200268 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200269 <artifactId>Koral</artifactId>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200270 <version>0.21</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200271 <exclusions>
272 <exclusion>
273 <groupId>org.eclipse.jetty</groupId>
274 <artifactId>jetty-servlet</artifactId>
275 </exclusion>
276 </exclusions>
277 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200278 <!--
279 <dependency>
280 <groupId>com.sun.jersey</groupId>
281 <artifactId>jersey-grizzly2</artifactId>
282 <version>1.8</version>
283 </dependency>
284 <dependency>
285 <groupId>com.sun.grizzly</groupId>
286 <artifactId>grizzly-servlet-webserver</artifactId>
287 <version>1.9.18-i</version>
288 </dependency>
289 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200290
Michael Hanlf21773f2015-10-16 23:02:31 +0200291 <dependency>
292 <groupId>org.xerial</groupId>
293 <artifactId>sqlite-jdbc</artifactId>
294 <version>3.8.10.1</version>
295 </dependency>
296
297 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100298 <groupId>mysql</groupId>
299 <artifactId>mysql-connector-java</artifactId>
300 <version>5.1.6</version>
301 </dependency>
302
303 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200304 <groupId>org.apache.commons</groupId>
305 <artifactId>commons-dbcp2</artifactId>
306 <version>2.1.1</version>
307 </dependency>
308
309 <dependency>
310 <groupId>org.owasp.esapi</groupId>
311 <artifactId>esapi</artifactId>
312 <version>2.1.0</version>
313 </dependency>
314
315 <dependency>
316 <groupId>org.mindrot</groupId>
317 <artifactId>jbcrypt</artifactId>
318 <version>0.3m</version>
319 </dependency>
320
Michael Hanlca740d72015-06-16 10:04:58 +0200321 <dependency>
322 <groupId>com.nimbusds</groupId>
323 <artifactId>nimbus-jose-jwt</artifactId>
324 <version>2.10.1</version>
325 </dependency>
326
327 <dependency>
328 <groupId>de.ids_mannheim.korap</groupId>
329 <artifactId>Krill</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200330 <version>0.55.5</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200331 <exclusions>
332 <exclusion>
333 <groupId>org.xerial</groupId>
334 <artifactId>sqlite-jdbc</artifactId>
335 </exclusion>
336 </exclusions>
337 </dependency>
338 <dependency>
339 <groupId>org.reflections</groupId>
340 <artifactId>reflections</artifactId>
341 <version>0.9.9-RC1</version>
342 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200343 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100344 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100345 <!--<groupId>com.restfuse</groupId>-->
346 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
347 <!--<version>1.0.0</version>-->
348 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100349 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200350 <!-- deprecated -->
351 <!--<dependency>-->
352 <!--<groupId>com.jayway.restassured</groupId>-->
353 <!--<artifactId>rest-assured</artifactId>-->
354 <!--<version>2.4.0</version>-->
355 <!--<scope>provided</scope>-->
356 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100357 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100358 <!--<groupId>org.springframework</groupId>-->
359 <!--<artifactId>spring-core</artifactId>-->
360 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100361 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200362 <dependency>
363 <groupId>org.springframework</groupId>
364 <artifactId>spring-context</artifactId>
365 <version>4.0.5.RELEASE</version>
366 </dependency>
367 <dependency>
368 <groupId>org.springframework</groupId>
369 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200370 <version>4.1.6.RELEASE</version>
371 </dependency>
372 <dependency>
373 <groupId>org.springframework</groupId>
374 <artifactId>spring-test</artifactId>
375 <version>4.1.6.RELEASE</version>
376 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200377 </dependency>
378
379 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
380 -->
381 <dependency>
382 <groupId>org.springframework</groupId>
383 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200384 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200385 </dependency>
386 <dependency>
387 <groupId>org.springframework</groupId>
388 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200389 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200390 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200391
392 <!-- copied from extension -->
393 <dependency>
394 <groupId>org.springframework</groupId>
395 <artifactId>spring-jdbc</artifactId>
396 <version>4.1.6.RELEASE</version>
397 </dependency>
398 <dependency>
399 <groupId>org.springframework</groupId>
400 <artifactId>spring-tx</artifactId>
401 <version>4.1.6.RELEASE</version>
402 </dependency>
403 <dependency>
404 <groupId>org.flywaydb</groupId>
405 <artifactId>flyway-core</artifactId>
406 <version>3.2.1</version>
407 </dependency>
408
409 <dependency>
410 <groupId>net.sf.ehcache</groupId>
411 <artifactId>ehcache-core</artifactId>
412 <version>2.6.5</version>
413 </dependency>
414
415 <dependency>
416 <groupId>org.apache.oltu.oauth2</groupId>
417 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
418 <version>1.0.0</version>
419 </dependency>
420
421 <!-- end copy -->
422
Michael Hanlbadd79c2015-06-19 07:41:03 +0200423 <dependency>
424 <groupId>commons-collections</groupId>
425 <artifactId>commons-collections</artifactId>
426 <version>3.2.1</version>
427 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200428 <dependency>
429 <groupId>org.eclipse.jetty</groupId>
430 <artifactId>jetty-server</artifactId>
431 <version>8.1.8.v20121106</version>
432 </dependency>
433 <dependency>
434 <groupId>org.eclipse.jetty</groupId>
435 <artifactId>jetty-servlet</artifactId>
436 <version>8.1.8.v20121106</version>
437 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100438 <dependency>
439 <groupId>asm</groupId>
440 <artifactId>asm</artifactId>
441 <version>3.3.1</version>
442 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200443
Michael Hanlbadd79c2015-06-19 07:41:03 +0200444 <!--
445 not part of public release
446 <dependency>
447 <groupId>KorAP-graphDB</groupId>
448 <artifactId>KorAP-graphDB</artifactId>
449 <version>1.0-SNAPSHOT</version>
450 <exclusions>
451 <exclusion>
452 <groupId>org.antlr</groupId>
453 <artifactId>antlr4-runtime</artifactId>
454 </exclusion>
455 <exclusion>
456 <groupId>org.glassfish.jersey.core</groupId>
457 <artifactId>jersey-client</artifactId>
458 </exclusion>
459 <exclusion>
460 <groupId>org.glassfish.jersey.containers</groupId>
461 <artifactId>jersey-container-grizzly2-http</artifactId>
462 </exclusion>
463 <exclusion>
464 <groupId>org.glassfish.jersey.core</groupId>
465 <artifactId>jersey-common</artifactId>
466 </exclusion>
467 <exclusion>
468 <groupId>org.glassfish.jersey.core</groupId>
469 <artifactId>jersey-server</artifactId>
470 </exclusion>
471 </exclusions>
472 </dependency>
473 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200474 </dependencies>
475
476</project>