blob: bab503ae51ff9c70d516a42ef65f3ca41684b15d [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>
Michael Hanlca740d72015-06-16 10:04:58 +0200180 </excludes>
181 <includes>
Michael Hanl83356752016-02-06 14:33:50 +0100182 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200183 </includes>
184 </configuration>
185 </plugin>
186 <plugin>
187 <artifactId>maven-shade-plugin</artifactId>
188 <version>2.1</version>
189 <executions>
190 <!-- option 1 -->
191 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200192 <id>full</id>
193 <phase>package</phase>
194 <goals>
195 <goal>shade</goal>
196 </goals>
197 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200198 <transformers>
199 <transformer
200 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
201 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200202 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200203 </mainClass>
204 </transformer>
205 <transformer
206 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
207 <resource>META-INF/spring.handlers
208 </resource>
209 </transformer>
210 <transformer
211 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
212 <resource>META-INF/spring.schemas
213 </resource>
214 </transformer>
215 </transformers>
216 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100217 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200218 <filters>
219 <filter>
220 <artifact>*:*</artifact>
221 <excludes>
222 <exclude>META-INF/*.SF</exclude>
223 <exclude>META-INF/*.DSA
224 </exclude>
225 <exclude>META-INF/*.RSA
226 </exclude>
227 </excludes>
228 </filter>
229 </filters>
230 </configuration>
231 </execution>
232 </executions>
233 </plugin>
234 </plugins>
235 </build>
Michael Hanlca740d72015-06-16 10:04:58 +0200236 <dependencies>
237 <dependency>
238 <groupId>com.sun.jersey</groupId>
239 <artifactId>jersey-bundle</artifactId>
240 <version>1.8</version>
241 </dependency>
242 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200243 <groupId>com.sun.jersey.jersey-test-framework</groupId>
244 <artifactId>jersey-test-framework-core</artifactId>
245 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200246 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200247 </dependency>
248 <dependency>
249 <groupId>com.sun.jersey.jersey-test-framework</groupId>
250 <artifactId>jersey-test-framework-grizzly</artifactId>
251 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200252 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200253 </dependency>
254 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200255 <groupId>org.slf4j</groupId>
256 <artifactId>slf4j-api</artifactId>
257 <version>1.7.5</version>
258 </dependency>
259 <dependency>
260 <groupId>org.slf4j</groupId>
261 <artifactId>slf4j-log4j12</artifactId>
262 <version>1.7.5</version>
263 </dependency>
264 <dependency>
265 <groupId>log4j</groupId>
266 <artifactId>log4j</artifactId>
267 <version>1.2.17</version>
268 </dependency>
269 <dependency>
270 <groupId>log4j</groupId>
271 <artifactId>apache-log4j-extras</artifactId>
272 <version>1.2.17</version>
273 </dependency>
274 <dependency>
275 <groupId>junit</groupId>
276 <artifactId>junit</artifactId>
277 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200278 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200279 </dependency>
280 <dependency>
281 <groupId>org.projectlombok</groupId>
282 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200283 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200284 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200285 </dependency>
286 <dependency>
287 <groupId>joda-time</groupId>
288 <artifactId>joda-time</artifactId>
289 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200290 </dependency>
291 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200292 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200293 <artifactId>Koral</artifactId>
margarethaf09d9dc2017-02-10 13:02:26 +0100294 <version>0.23</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200295 <exclusions>
296 <exclusion>
297 <groupId>org.eclipse.jetty</groupId>
298 <artifactId>jetty-servlet</artifactId>
299 </exclusion>
300 </exclusions>
301 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200302 <!--
303 <dependency>
304 <groupId>com.sun.jersey</groupId>
305 <artifactId>jersey-grizzly2</artifactId>
306 <version>1.8</version>
307 </dependency>
308 <dependency>
309 <groupId>com.sun.grizzly</groupId>
310 <artifactId>grizzly-servlet-webserver</artifactId>
311 <version>1.9.18-i</version>
312 </dependency>
313 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200314
Michael Hanlf21773f2015-10-16 23:02:31 +0200315 <dependency>
316 <groupId>org.xerial</groupId>
317 <artifactId>sqlite-jdbc</artifactId>
318 <version>3.8.10.1</version>
319 </dependency>
320
321 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100322 <groupId>mysql</groupId>
323 <artifactId>mysql-connector-java</artifactId>
324 <version>5.1.6</version>
325 </dependency>
326
327 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200328 <groupId>org.apache.commons</groupId>
329 <artifactId>commons-dbcp2</artifactId>
330 <version>2.1.1</version>
331 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200332<!--
Michael Hanlf21773f2015-10-16 23:02:31 +0200333 <dependency>
334 <groupId>org.owasp.esapi</groupId>
335 <artifactId>esapi</artifactId>
336 <version>2.1.0</version>
337 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200338-->
Michael Hanl08aa7722016-06-03 13:34:37 +0200339 <dependency>
340 <groupId>commons-validator</groupId>
341 <artifactId>commons-validator</artifactId>
342 <version>1.4.0</version>
343 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200344
Michael Hanlf21773f2015-10-16 23:02:31 +0200345 <dependency>
346 <groupId>org.mindrot</groupId>
347 <artifactId>jbcrypt</artifactId>
348 <version>0.3m</version>
349 </dependency>
350
Michael Hanlca740d72015-06-16 10:04:58 +0200351 <dependency>
352 <groupId>com.nimbusds</groupId>
353 <artifactId>nimbus-jose-jwt</artifactId>
354 <version>2.10.1</version>
355 </dependency>
356
357 <dependency>
358 <groupId>de.ids_mannheim.korap</groupId>
359 <artifactId>Krill</artifactId>
Akron78e2d202016-10-13 14:17:11 +0200360 <version>0.55.7</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200361 <exclusions>
362 <exclusion>
363 <groupId>org.xerial</groupId>
364 <artifactId>sqlite-jdbc</artifactId>
365 </exclusion>
366 </exclusions>
367 </dependency>
368 <dependency>
369 <groupId>org.reflections</groupId>
370 <artifactId>reflections</artifactId>
371 <version>0.9.9-RC1</version>
372 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200373 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100374 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100375 <!--<groupId>com.restfuse</groupId>-->
376 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
377 <!--<version>1.0.0</version>-->
378 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100379 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200380 <!-- deprecated -->
381 <!--<dependency>-->
382 <!--<groupId>com.jayway.restassured</groupId>-->
383 <!--<artifactId>rest-assured</artifactId>-->
384 <!--<version>2.4.0</version>-->
385 <!--<scope>provided</scope>-->
386 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100387 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100388 <!--<groupId>org.springframework</groupId>-->
389 <!--<artifactId>spring-core</artifactId>-->
390 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100391 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200392 <dependency>
393 <groupId>org.springframework</groupId>
394 <artifactId>spring-context</artifactId>
395 <version>4.0.5.RELEASE</version>
396 </dependency>
397 <dependency>
398 <groupId>org.springframework</groupId>
399 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200400 <version>4.1.6.RELEASE</version>
401 </dependency>
402 <dependency>
403 <groupId>org.springframework</groupId>
404 <artifactId>spring-test</artifactId>
405 <version>4.1.6.RELEASE</version>
406 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200407 </dependency>
408
409 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
410 -->
411 <dependency>
412 <groupId>org.springframework</groupId>
413 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200414 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200415 </dependency>
416 <dependency>
417 <groupId>org.springframework</groupId>
418 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200419 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200420 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200421
422 <!-- copied from extension -->
423 <dependency>
424 <groupId>org.springframework</groupId>
425 <artifactId>spring-jdbc</artifactId>
426 <version>4.1.6.RELEASE</version>
427 </dependency>
428 <dependency>
429 <groupId>org.springframework</groupId>
430 <artifactId>spring-tx</artifactId>
431 <version>4.1.6.RELEASE</version>
432 </dependency>
433 <dependency>
434 <groupId>org.flywaydb</groupId>
435 <artifactId>flyway-core</artifactId>
436 <version>3.2.1</version>
437 </dependency>
438
439 <dependency>
440 <groupId>net.sf.ehcache</groupId>
441 <artifactId>ehcache-core</artifactId>
442 <version>2.6.5</version>
443 </dependency>
444
445 <dependency>
446 <groupId>org.apache.oltu.oauth2</groupId>
447 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
448 <version>1.0.0</version>
449 </dependency>
450
451 <!-- end copy -->
452
Michael Hanlbadd79c2015-06-19 07:41:03 +0200453 <dependency>
454 <groupId>commons-collections</groupId>
455 <artifactId>commons-collections</artifactId>
456 <version>3.2.1</version>
457 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200458 <dependency>
459 <groupId>org.eclipse.jetty</groupId>
460 <artifactId>jetty-server</artifactId>
461 <version>8.1.8.v20121106</version>
462 </dependency>
463 <dependency>
464 <groupId>org.eclipse.jetty</groupId>
465 <artifactId>jetty-servlet</artifactId>
466 <version>8.1.8.v20121106</version>
467 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100468 <dependency>
469 <groupId>asm</groupId>
470 <artifactId>asm</artifactId>
471 <version>3.3.1</version>
472 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200473
Michael Hanlbadd79c2015-06-19 07:41:03 +0200474 <!--
475 not part of public release
476 <dependency>
477 <groupId>KorAP-graphDB</groupId>
478 <artifactId>KorAP-graphDB</artifactId>
479 <version>1.0-SNAPSHOT</version>
480 <exclusions>
481 <exclusion>
482 <groupId>org.antlr</groupId>
483 <artifactId>antlr4-runtime</artifactId>
484 </exclusion>
485 <exclusion>
486 <groupId>org.glassfish.jersey.core</groupId>
487 <artifactId>jersey-client</artifactId>
488 </exclusion>
489 <exclusion>
490 <groupId>org.glassfish.jersey.containers</groupId>
491 <artifactId>jersey-container-grizzly2-http</artifactId>
492 </exclusion>
493 <exclusion>
494 <groupId>org.glassfish.jersey.core</groupId>
495 <artifactId>jersey-common</artifactId>
496 </exclusion>
497 <exclusion>
498 <groupId>org.glassfish.jersey.core</groupId>
499 <artifactId>jersey-server</artifactId>
500 </exclusion>
501 </exclusions>
502 </dependency>
503 -->
margaretha1a6d0202017-02-16 18:09:39 +0100504 <dependency>
505 <groupId>org.apache.httpcomponents</groupId>
506 <artifactId>httpclient</artifactId>
507 <version>4.3.3</version>
508 </dependency>
509 <dependency>
510 <groupId>commons-io</groupId>
511 <artifactId>commons-io</artifactId>
512 <version>2.4</version>
513 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200514 </dependencies>
515
516</project>