blob: 04243ca7ca32213059e32c787394d8cc0d0265d8 [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>
Akron78e2d202016-10-13 14:17:11 +02008 <version>0.59.7</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>
Michael Hanlc0ed00f2016-06-23 14:33:10 +020089 <include>**/*.kustvakt</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020090 <include>**/*.properties</include>
Michael Hanld3c8bc82015-11-10 07:47:24 +010091 <include>**/*.sql</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020092 </includes>
93 </resource>
94 </resources>
95 <testResources>
96 <testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +020097 <directory>src/test/resources</directory>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020098 <filtering>true</filtering>
99 <includes>
100 <include>**/*.prop</include>
101 <include>**/*.xml</include>
102 <include>**/*.conf</include>
Michael Hanldaf86602016-05-12 14:31:52 +0200103 <include>**/*.info</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200104 <include>**/*.properties</include>
105 </includes>
106 </testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +0200107 <testResource>
108 <directory>src/main/resources</directory>
109 <filtering>true</filtering>
110 <includes>
Michael Hanldaf86602016-05-12 14:31:52 +0200111 <include>**/*.info</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200112 <include>**/*.properties</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200113 </includes>
114 </testResource>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200115 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +0200116 <plugins>
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200117 <!--
118 Formatter plugin for Eclipse based coding conventions
119 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
120 -->
121 <plugin>
122 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
123 <artifactId>maven-java-formatter-plugin</artifactId>
124 <version>0.4</version>
125 <configuration>
126 <configFile>${project.basedir}/Format.xml</configFile>
127 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
128 <compilerSource>1.7</compilerSource>
129 <compilerCompliance>1.7</compilerCompliance>
130 <compilerTargetPlatform>1.7</compilerTargetPlatform>
131 </configuration>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200132 <!--
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200133 <executions>
134 <execution>
135 <goals>
136 <goal>format</goal>
137 </goals>
138 </execution>
139 </executions>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200140 -->
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200141 </plugin>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200142 <plugin>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-compiler-plugin</artifactId>
145 <version>3.3</version>
146 <configuration>
147 <compilerVersion>1.7</compilerVersion>
148 <source>1.7</source>
149 <target>1.7</target>
150 </configuration>
151 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200152
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200153 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
154 <plugin>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200157 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200158 <executions>
159 <execution>
160 <phase>package</phase>
161 <goals>
162 <goal>test-jar</goal>
163 </goals>
164 </execution>
165 </executions>
166 </plugin>
Michael Hanlca740d72015-06-16 10:04:58 +0200167 <plugin>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200170 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200171 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +0200172 <reuseForks>false</reuseForks>
Michael Hanl45636922016-06-03 14:00:56 +0200173 <forkCount>2</forkCount>
Michael Hanldaf86602016-05-12 14:31:52 +0200174 <threadCount>10</threadCount>
175
Michael Hanlca740d72015-06-16 10:04:58 +0200176 <excludes>
177 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +0200178 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
margaretha55c650a2017-03-07 18:48:20 +0100179 <exclude>**/ResouceServiceServerTest.java</exclude>
180 <exclude>**/PolicyServiceTest.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +0200181 </excludes>
182 <includes>
Michael Hanl83356752016-02-06 14:33:50 +0100183 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200184 </includes>
185 </configuration>
186 </plugin>
187 <plugin>
188 <artifactId>maven-shade-plugin</artifactId>
189 <version>2.1</version>
190 <executions>
191 <!-- option 1 -->
192 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200193 <id>full</id>
194 <phase>package</phase>
195 <goals>
196 <goal>shade</goal>
197 </goals>
198 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200199 <transformers>
200 <transformer
201 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
202 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200203 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200204 </mainClass>
205 </transformer>
206 <transformer
207 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
208 <resource>META-INF/spring.handlers
209 </resource>
210 </transformer>
211 <transformer
212 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
213 <resource>META-INF/spring.schemas
214 </resource>
215 </transformer>
216 </transformers>
217 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100218 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200219 <filters>
220 <filter>
221 <artifact>*:*</artifact>
222 <excludes>
223 <exclude>META-INF/*.SF</exclude>
224 <exclude>META-INF/*.DSA
225 </exclude>
226 <exclude>META-INF/*.RSA
227 </exclude>
228 </excludes>
229 </filter>
230 </filters>
231 </configuration>
232 </execution>
233 </executions>
234 </plugin>
235 </plugins>
236 </build>
Michael Hanlca740d72015-06-16 10:04:58 +0200237 <dependencies>
238 <dependency>
239 <groupId>com.sun.jersey</groupId>
240 <artifactId>jersey-bundle</artifactId>
241 <version>1.8</version>
242 </dependency>
243 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200244 <groupId>com.sun.jersey.jersey-test-framework</groupId>
245 <artifactId>jersey-test-framework-core</artifactId>
246 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200247 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200248 </dependency>
249 <dependency>
250 <groupId>com.sun.jersey.jersey-test-framework</groupId>
251 <artifactId>jersey-test-framework-grizzly</artifactId>
252 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200253 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200254 </dependency>
255 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200256 <groupId>org.slf4j</groupId>
257 <artifactId>slf4j-api</artifactId>
258 <version>1.7.5</version>
259 </dependency>
260 <dependency>
261 <groupId>org.slf4j</groupId>
262 <artifactId>slf4j-log4j12</artifactId>
263 <version>1.7.5</version>
264 </dependency>
265 <dependency>
266 <groupId>log4j</groupId>
267 <artifactId>log4j</artifactId>
268 <version>1.2.17</version>
269 </dependency>
270 <dependency>
271 <groupId>log4j</groupId>
272 <artifactId>apache-log4j-extras</artifactId>
273 <version>1.2.17</version>
274 </dependency>
275 <dependency>
276 <groupId>junit</groupId>
277 <artifactId>junit</artifactId>
278 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200279 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200280 </dependency>
281 <dependency>
282 <groupId>org.projectlombok</groupId>
283 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200284 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200285 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200286 </dependency>
287 <dependency>
288 <groupId>joda-time</groupId>
289 <artifactId>joda-time</artifactId>
290 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200291 </dependency>
292 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200293 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200294 <artifactId>Koral</artifactId>
margarethaf09d9dc2017-02-10 13:02:26 +0100295 <version>0.23</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200296 <exclusions>
297 <exclusion>
298 <groupId>org.eclipse.jetty</groupId>
299 <artifactId>jetty-servlet</artifactId>
300 </exclusion>
301 </exclusions>
302 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200303 <!--
304 <dependency>
305 <groupId>com.sun.jersey</groupId>
306 <artifactId>jersey-grizzly2</artifactId>
307 <version>1.8</version>
308 </dependency>
309 <dependency>
310 <groupId>com.sun.grizzly</groupId>
311 <artifactId>grizzly-servlet-webserver</artifactId>
312 <version>1.9.18-i</version>
313 </dependency>
314 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200315
Michael Hanlf21773f2015-10-16 23:02:31 +0200316 <dependency>
317 <groupId>org.xerial</groupId>
318 <artifactId>sqlite-jdbc</artifactId>
319 <version>3.8.10.1</version>
320 </dependency>
321
322 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100323 <groupId>mysql</groupId>
324 <artifactId>mysql-connector-java</artifactId>
325 <version>5.1.6</version>
326 </dependency>
327
328 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200329 <groupId>org.apache.commons</groupId>
330 <artifactId>commons-dbcp2</artifactId>
331 <version>2.1.1</version>
332 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200333<!--
Michael Hanlf21773f2015-10-16 23:02:31 +0200334 <dependency>
335 <groupId>org.owasp.esapi</groupId>
336 <artifactId>esapi</artifactId>
337 <version>2.1.0</version>
338 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200339-->
Michael Hanl08aa7722016-06-03 13:34:37 +0200340 <dependency>
341 <groupId>commons-validator</groupId>
342 <artifactId>commons-validator</artifactId>
343 <version>1.4.0</version>
344 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200345
Michael Hanlf21773f2015-10-16 23:02:31 +0200346 <dependency>
347 <groupId>org.mindrot</groupId>
348 <artifactId>jbcrypt</artifactId>
349 <version>0.3m</version>
350 </dependency>
351
Michael Hanlca740d72015-06-16 10:04:58 +0200352 <dependency>
353 <groupId>com.nimbusds</groupId>
354 <artifactId>nimbus-jose-jwt</artifactId>
355 <version>2.10.1</version>
356 </dependency>
357
358 <dependency>
359 <groupId>de.ids_mannheim.korap</groupId>
360 <artifactId>Krill</artifactId>
Akron78e2d202016-10-13 14:17:11 +0200361 <version>0.55.7</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200362 <exclusions>
363 <exclusion>
364 <groupId>org.xerial</groupId>
365 <artifactId>sqlite-jdbc</artifactId>
366 </exclusion>
367 </exclusions>
368 </dependency>
369 <dependency>
370 <groupId>org.reflections</groupId>
371 <artifactId>reflections</artifactId>
372 <version>0.9.9-RC1</version>
373 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200374 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100375 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100376 <!--<groupId>com.restfuse</groupId>-->
377 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
378 <!--<version>1.0.0</version>-->
379 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100380 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200381 <!-- deprecated -->
382 <!--<dependency>-->
383 <!--<groupId>com.jayway.restassured</groupId>-->
384 <!--<artifactId>rest-assured</artifactId>-->
385 <!--<version>2.4.0</version>-->
386 <!--<scope>provided</scope>-->
387 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100388 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100389 <!--<groupId>org.springframework</groupId>-->
390 <!--<artifactId>spring-core</artifactId>-->
391 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100392 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200393 <dependency>
394 <groupId>org.springframework</groupId>
395 <artifactId>spring-context</artifactId>
396 <version>4.0.5.RELEASE</version>
397 </dependency>
398 <dependency>
399 <groupId>org.springframework</groupId>
400 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200401 <version>4.1.6.RELEASE</version>
402 </dependency>
403 <dependency>
404 <groupId>org.springframework</groupId>
405 <artifactId>spring-test</artifactId>
406 <version>4.1.6.RELEASE</version>
407 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200408 </dependency>
409
410 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
411 -->
412 <dependency>
413 <groupId>org.springframework</groupId>
414 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200415 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200416 </dependency>
417 <dependency>
418 <groupId>org.springframework</groupId>
419 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200420 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200421 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200422
423 <!-- copied from extension -->
424 <dependency>
425 <groupId>org.springframework</groupId>
426 <artifactId>spring-jdbc</artifactId>
427 <version>4.1.6.RELEASE</version>
428 </dependency>
429 <dependency>
430 <groupId>org.springframework</groupId>
431 <artifactId>spring-tx</artifactId>
432 <version>4.1.6.RELEASE</version>
433 </dependency>
434 <dependency>
435 <groupId>org.flywaydb</groupId>
436 <artifactId>flyway-core</artifactId>
437 <version>3.2.1</version>
438 </dependency>
439
440 <dependency>
441 <groupId>net.sf.ehcache</groupId>
442 <artifactId>ehcache-core</artifactId>
443 <version>2.6.5</version>
444 </dependency>
445
446 <dependency>
447 <groupId>org.apache.oltu.oauth2</groupId>
448 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
449 <version>1.0.0</version>
450 </dependency>
451
452 <!-- end copy -->
453
Michael Hanlbadd79c2015-06-19 07:41:03 +0200454 <dependency>
455 <groupId>commons-collections</groupId>
456 <artifactId>commons-collections</artifactId>
457 <version>3.2.1</version>
458 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200459 <dependency>
460 <groupId>org.eclipse.jetty</groupId>
461 <artifactId>jetty-server</artifactId>
462 <version>8.1.8.v20121106</version>
463 </dependency>
464 <dependency>
465 <groupId>org.eclipse.jetty</groupId>
466 <artifactId>jetty-servlet</artifactId>
467 <version>8.1.8.v20121106</version>
468 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100469 <dependency>
470 <groupId>asm</groupId>
471 <artifactId>asm</artifactId>
472 <version>3.3.1</version>
473 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200474
Michael Hanlbadd79c2015-06-19 07:41:03 +0200475 <!--
476 not part of public release
477 <dependency>
478 <groupId>KorAP-graphDB</groupId>
479 <artifactId>KorAP-graphDB</artifactId>
480 <version>1.0-SNAPSHOT</version>
481 <exclusions>
482 <exclusion>
483 <groupId>org.antlr</groupId>
484 <artifactId>antlr4-runtime</artifactId>
485 </exclusion>
486 <exclusion>
487 <groupId>org.glassfish.jersey.core</groupId>
488 <artifactId>jersey-client</artifactId>
489 </exclusion>
490 <exclusion>
491 <groupId>org.glassfish.jersey.containers</groupId>
492 <artifactId>jersey-container-grizzly2-http</artifactId>
493 </exclusion>
494 <exclusion>
495 <groupId>org.glassfish.jersey.core</groupId>
496 <artifactId>jersey-common</artifactId>
497 </exclusion>
498 <exclusion>
499 <groupId>org.glassfish.jersey.core</groupId>
500 <artifactId>jersey-server</artifactId>
501 </exclusion>
502 </exclusions>
503 </dependency>
504 -->
margaretha1a6d0202017-02-16 18:09:39 +0100505 <dependency>
506 <groupId>org.apache.httpcomponents</groupId>
507 <artifactId>httpclient</artifactId>
508 <version>4.3.3</version>
509 </dependency>
510 <dependency>
511 <groupId>commons-io</groupId>
512 <artifactId>commons-io</artifactId>
513 <version>2.4</version>
514 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200515 </dependencies>
516
517</project>