blob: 56538cce8de371041d760b3024e2f057c15544f6 [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>
margarethaa9aa25b2017-03-07 17:41:52 +0100106 <excludes>
107 <exclude>**/ResouceServiceServerTest.java</exclude>
108 </excludes>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200109 </testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +0200110 <testResource>
111 <directory>src/main/resources</directory>
112 <filtering>true</filtering>
113 <includes>
Michael Hanldaf86602016-05-12 14:31:52 +0200114 <include>**/*.info</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200115 <include>**/*.properties</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200116 </includes>
117 </testResource>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200118 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +0200119 <plugins>
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200120 <!--
121 Formatter plugin for Eclipse based coding conventions
122 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
123 -->
124 <plugin>
125 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
126 <artifactId>maven-java-formatter-plugin</artifactId>
127 <version>0.4</version>
128 <configuration>
129 <configFile>${project.basedir}/Format.xml</configFile>
130 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
131 <compilerSource>1.7</compilerSource>
132 <compilerCompliance>1.7</compilerCompliance>
133 <compilerTargetPlatform>1.7</compilerTargetPlatform>
134 </configuration>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200135 <!--
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200136 <executions>
137 <execution>
138 <goals>
139 <goal>format</goal>
140 </goals>
141 </execution>
142 </executions>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200143 -->
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200144 </plugin>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200145 <plugin>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-compiler-plugin</artifactId>
148 <version>3.3</version>
149 <configuration>
150 <compilerVersion>1.7</compilerVersion>
151 <source>1.7</source>
152 <target>1.7</target>
153 </configuration>
154 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200155
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200156 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
157 <plugin>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200160 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200161 <executions>
162 <execution>
163 <phase>package</phase>
164 <goals>
165 <goal>test-jar</goal>
166 </goals>
167 </execution>
168 </executions>
169 </plugin>
Michael Hanlca740d72015-06-16 10:04:58 +0200170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200173 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200174 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +0200175 <reuseForks>false</reuseForks>
Michael Hanl45636922016-06-03 14:00:56 +0200176 <forkCount>2</forkCount>
Michael Hanldaf86602016-05-12 14:31:52 +0200177 <threadCount>10</threadCount>
178
Michael Hanlca740d72015-06-16 10:04:58 +0200179 <excludes>
180 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +0200181 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +0200182 </excludes>
183 <includes>
Michael Hanl83356752016-02-06 14:33:50 +0100184 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200185 </includes>
186 </configuration>
187 </plugin>
188 <plugin>
189 <artifactId>maven-shade-plugin</artifactId>
190 <version>2.1</version>
191 <executions>
192 <!-- option 1 -->
193 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200194 <id>full</id>
195 <phase>package</phase>
196 <goals>
197 <goal>shade</goal>
198 </goals>
199 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200200 <transformers>
201 <transformer
202 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
203 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200204 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200205 </mainClass>
206 </transformer>
207 <transformer
208 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
209 <resource>META-INF/spring.handlers
210 </resource>
211 </transformer>
212 <transformer
213 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
214 <resource>META-INF/spring.schemas
215 </resource>
216 </transformer>
217 </transformers>
218 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100219 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200220 <filters>
221 <filter>
222 <artifact>*:*</artifact>
223 <excludes>
224 <exclude>META-INF/*.SF</exclude>
225 <exclude>META-INF/*.DSA
226 </exclude>
227 <exclude>META-INF/*.RSA
228 </exclude>
229 </excludes>
230 </filter>
231 </filters>
232 </configuration>
233 </execution>
234 </executions>
235 </plugin>
236 </plugins>
237 </build>
Michael Hanlca740d72015-06-16 10:04:58 +0200238 <dependencies>
239 <dependency>
240 <groupId>com.sun.jersey</groupId>
241 <artifactId>jersey-bundle</artifactId>
242 <version>1.8</version>
243 </dependency>
244 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200245 <groupId>com.sun.jersey.jersey-test-framework</groupId>
246 <artifactId>jersey-test-framework-core</artifactId>
247 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200248 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200249 </dependency>
250 <dependency>
251 <groupId>com.sun.jersey.jersey-test-framework</groupId>
252 <artifactId>jersey-test-framework-grizzly</artifactId>
253 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200254 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200255 </dependency>
256 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200257 <groupId>org.slf4j</groupId>
258 <artifactId>slf4j-api</artifactId>
259 <version>1.7.5</version>
260 </dependency>
261 <dependency>
262 <groupId>org.slf4j</groupId>
263 <artifactId>slf4j-log4j12</artifactId>
264 <version>1.7.5</version>
265 </dependency>
266 <dependency>
267 <groupId>log4j</groupId>
268 <artifactId>log4j</artifactId>
269 <version>1.2.17</version>
270 </dependency>
271 <dependency>
272 <groupId>log4j</groupId>
273 <artifactId>apache-log4j-extras</artifactId>
274 <version>1.2.17</version>
275 </dependency>
276 <dependency>
277 <groupId>junit</groupId>
278 <artifactId>junit</artifactId>
279 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200280 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200281 </dependency>
282 <dependency>
283 <groupId>org.projectlombok</groupId>
284 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200285 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200286 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200287 </dependency>
288 <dependency>
289 <groupId>joda-time</groupId>
290 <artifactId>joda-time</artifactId>
291 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200292 </dependency>
293 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200294 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200295 <artifactId>Koral</artifactId>
margarethaf09d9dc2017-02-10 13:02:26 +0100296 <version>0.23</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200297 <exclusions>
298 <exclusion>
299 <groupId>org.eclipse.jetty</groupId>
300 <artifactId>jetty-servlet</artifactId>
301 </exclusion>
302 </exclusions>
303 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200304 <!--
305 <dependency>
306 <groupId>com.sun.jersey</groupId>
307 <artifactId>jersey-grizzly2</artifactId>
308 <version>1.8</version>
309 </dependency>
310 <dependency>
311 <groupId>com.sun.grizzly</groupId>
312 <artifactId>grizzly-servlet-webserver</artifactId>
313 <version>1.9.18-i</version>
314 </dependency>
315 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200316
Michael Hanlf21773f2015-10-16 23:02:31 +0200317 <dependency>
318 <groupId>org.xerial</groupId>
319 <artifactId>sqlite-jdbc</artifactId>
320 <version>3.8.10.1</version>
321 </dependency>
322
323 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100324 <groupId>mysql</groupId>
325 <artifactId>mysql-connector-java</artifactId>
326 <version>5.1.6</version>
327 </dependency>
328
329 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200330 <groupId>org.apache.commons</groupId>
331 <artifactId>commons-dbcp2</artifactId>
332 <version>2.1.1</version>
333 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200334<!--
Michael Hanlf21773f2015-10-16 23:02:31 +0200335 <dependency>
336 <groupId>org.owasp.esapi</groupId>
337 <artifactId>esapi</artifactId>
338 <version>2.1.0</version>
339 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200340-->
Michael Hanl08aa7722016-06-03 13:34:37 +0200341 <dependency>
342 <groupId>commons-validator</groupId>
343 <artifactId>commons-validator</artifactId>
344 <version>1.4.0</version>
345 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200346
Michael Hanlf21773f2015-10-16 23:02:31 +0200347 <dependency>
348 <groupId>org.mindrot</groupId>
349 <artifactId>jbcrypt</artifactId>
350 <version>0.3m</version>
351 </dependency>
352
Michael Hanlca740d72015-06-16 10:04:58 +0200353 <dependency>
354 <groupId>com.nimbusds</groupId>
355 <artifactId>nimbus-jose-jwt</artifactId>
356 <version>2.10.1</version>
357 </dependency>
358
359 <dependency>
360 <groupId>de.ids_mannheim.korap</groupId>
361 <artifactId>Krill</artifactId>
Akron78e2d202016-10-13 14:17:11 +0200362 <version>0.55.7</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200363 <exclusions>
364 <exclusion>
365 <groupId>org.xerial</groupId>
366 <artifactId>sqlite-jdbc</artifactId>
367 </exclusion>
368 </exclusions>
369 </dependency>
370 <dependency>
371 <groupId>org.reflections</groupId>
372 <artifactId>reflections</artifactId>
373 <version>0.9.9-RC1</version>
374 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200375 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100376 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100377 <!--<groupId>com.restfuse</groupId>-->
378 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
379 <!--<version>1.0.0</version>-->
380 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100381 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200382 <!-- deprecated -->
383 <!--<dependency>-->
384 <!--<groupId>com.jayway.restassured</groupId>-->
385 <!--<artifactId>rest-assured</artifactId>-->
386 <!--<version>2.4.0</version>-->
387 <!--<scope>provided</scope>-->
388 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100389 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100390 <!--<groupId>org.springframework</groupId>-->
391 <!--<artifactId>spring-core</artifactId>-->
392 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100393 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200394 <dependency>
395 <groupId>org.springframework</groupId>
396 <artifactId>spring-context</artifactId>
397 <version>4.0.5.RELEASE</version>
398 </dependency>
399 <dependency>
400 <groupId>org.springframework</groupId>
401 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200402 <version>4.1.6.RELEASE</version>
403 </dependency>
404 <dependency>
405 <groupId>org.springframework</groupId>
406 <artifactId>spring-test</artifactId>
407 <version>4.1.6.RELEASE</version>
408 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200409 </dependency>
410
411 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
412 -->
413 <dependency>
414 <groupId>org.springframework</groupId>
415 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200416 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200417 </dependency>
418 <dependency>
419 <groupId>org.springframework</groupId>
420 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200421 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200422 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200423
424 <!-- copied from extension -->
425 <dependency>
426 <groupId>org.springframework</groupId>
427 <artifactId>spring-jdbc</artifactId>
428 <version>4.1.6.RELEASE</version>
429 </dependency>
430 <dependency>
431 <groupId>org.springframework</groupId>
432 <artifactId>spring-tx</artifactId>
433 <version>4.1.6.RELEASE</version>
434 </dependency>
435 <dependency>
436 <groupId>org.flywaydb</groupId>
437 <artifactId>flyway-core</artifactId>
438 <version>3.2.1</version>
439 </dependency>
440
441 <dependency>
442 <groupId>net.sf.ehcache</groupId>
443 <artifactId>ehcache-core</artifactId>
444 <version>2.6.5</version>
445 </dependency>
446
447 <dependency>
448 <groupId>org.apache.oltu.oauth2</groupId>
449 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
450 <version>1.0.0</version>
451 </dependency>
452
453 <!-- end copy -->
454
Michael Hanlbadd79c2015-06-19 07:41:03 +0200455 <dependency>
456 <groupId>commons-collections</groupId>
457 <artifactId>commons-collections</artifactId>
458 <version>3.2.1</version>
459 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200460 <dependency>
461 <groupId>org.eclipse.jetty</groupId>
462 <artifactId>jetty-server</artifactId>
463 <version>8.1.8.v20121106</version>
464 </dependency>
465 <dependency>
466 <groupId>org.eclipse.jetty</groupId>
467 <artifactId>jetty-servlet</artifactId>
468 <version>8.1.8.v20121106</version>
469 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100470 <dependency>
471 <groupId>asm</groupId>
472 <artifactId>asm</artifactId>
473 <version>3.3.1</version>
474 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200475
Michael Hanlbadd79c2015-06-19 07:41:03 +0200476 <!--
477 not part of public release
478 <dependency>
479 <groupId>KorAP-graphDB</groupId>
480 <artifactId>KorAP-graphDB</artifactId>
481 <version>1.0-SNAPSHOT</version>
482 <exclusions>
483 <exclusion>
484 <groupId>org.antlr</groupId>
485 <artifactId>antlr4-runtime</artifactId>
486 </exclusion>
487 <exclusion>
488 <groupId>org.glassfish.jersey.core</groupId>
489 <artifactId>jersey-client</artifactId>
490 </exclusion>
491 <exclusion>
492 <groupId>org.glassfish.jersey.containers</groupId>
493 <artifactId>jersey-container-grizzly2-http</artifactId>
494 </exclusion>
495 <exclusion>
496 <groupId>org.glassfish.jersey.core</groupId>
497 <artifactId>jersey-common</artifactId>
498 </exclusion>
499 <exclusion>
500 <groupId>org.glassfish.jersey.core</groupId>
501 <artifactId>jersey-server</artifactId>
502 </exclusion>
503 </exclusions>
504 </dependency>
505 -->
margaretha1a6d0202017-02-16 18:09:39 +0100506 <dependency>
507 <groupId>org.apache.httpcomponents</groupId>
508 <artifactId>httpclient</artifactId>
509 <version>4.3.3</version>
510 </dependency>
511 <dependency>
512 <groupId>commons-io</groupId>
513 <artifactId>commons-io</artifactId>
514 <version>2.4</version>
515 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200516 </dependencies>
517
518</project>