blob: 184ab1e685f5cb5ea3e1b5d8874b91fc7218e208 [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>
Michael Hanlca740d72015-06-16 10:04:58 +0200179 </excludes>
180 <includes>
Michael Hanl83356752016-02-06 14:33:50 +0100181 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200182 </includes>
183 </configuration>
184 </plugin>
185 <plugin>
186 <artifactId>maven-shade-plugin</artifactId>
187 <version>2.1</version>
188 <executions>
189 <!-- option 1 -->
190 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200191 <id>full</id>
192 <phase>package</phase>
193 <goals>
194 <goal>shade</goal>
195 </goals>
196 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200197 <transformers>
198 <transformer
199 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
200 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200201 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200202 </mainClass>
203 </transformer>
204 <transformer
205 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
206 <resource>META-INF/spring.handlers
207 </resource>
208 </transformer>
209 <transformer
210 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
211 <resource>META-INF/spring.schemas
212 </resource>
213 </transformer>
214 </transformers>
215 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100216 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200217 <filters>
218 <filter>
219 <artifact>*:*</artifact>
220 <excludes>
221 <exclude>META-INF/*.SF</exclude>
222 <exclude>META-INF/*.DSA
223 </exclude>
224 <exclude>META-INF/*.RSA
225 </exclude>
226 </excludes>
227 </filter>
228 </filters>
229 </configuration>
230 </execution>
231 </executions>
232 </plugin>
233 </plugins>
234 </build>
Michael Hanlca740d72015-06-16 10:04:58 +0200235 <dependencies>
236 <dependency>
237 <groupId>com.sun.jersey</groupId>
238 <artifactId>jersey-bundle</artifactId>
239 <version>1.8</version>
240 </dependency>
241 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200242 <groupId>com.sun.jersey.jersey-test-framework</groupId>
243 <artifactId>jersey-test-framework-core</artifactId>
244 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200245 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200246 </dependency>
247 <dependency>
248 <groupId>com.sun.jersey.jersey-test-framework</groupId>
249 <artifactId>jersey-test-framework-grizzly</artifactId>
250 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200251 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200252 </dependency>
253 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200254 <groupId>org.slf4j</groupId>
255 <artifactId>slf4j-api</artifactId>
256 <version>1.7.5</version>
257 </dependency>
258 <dependency>
259 <groupId>org.slf4j</groupId>
260 <artifactId>slf4j-log4j12</artifactId>
261 <version>1.7.5</version>
262 </dependency>
263 <dependency>
264 <groupId>log4j</groupId>
265 <artifactId>log4j</artifactId>
266 <version>1.2.17</version>
267 </dependency>
268 <dependency>
269 <groupId>log4j</groupId>
270 <artifactId>apache-log4j-extras</artifactId>
271 <version>1.2.17</version>
272 </dependency>
273 <dependency>
274 <groupId>junit</groupId>
275 <artifactId>junit</artifactId>
276 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200277 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200278 </dependency>
279 <dependency>
280 <groupId>org.projectlombok</groupId>
281 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200282 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200283 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200284 </dependency>
285 <dependency>
286 <groupId>joda-time</groupId>
287 <artifactId>joda-time</artifactId>
288 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200289 </dependency>
290 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200291 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200292 <artifactId>Koral</artifactId>
Michael Hanlb3a476f2016-06-03 19:01:59 +0200293 <version>0.22</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200294 <exclusions>
295 <exclusion>
296 <groupId>org.eclipse.jetty</groupId>
297 <artifactId>jetty-servlet</artifactId>
298 </exclusion>
299 </exclusions>
300 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200301 <!--
302 <dependency>
303 <groupId>com.sun.jersey</groupId>
304 <artifactId>jersey-grizzly2</artifactId>
305 <version>1.8</version>
306 </dependency>
307 <dependency>
308 <groupId>com.sun.grizzly</groupId>
309 <artifactId>grizzly-servlet-webserver</artifactId>
310 <version>1.9.18-i</version>
311 </dependency>
312 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200313
Michael Hanlf21773f2015-10-16 23:02:31 +0200314 <dependency>
315 <groupId>org.xerial</groupId>
316 <artifactId>sqlite-jdbc</artifactId>
317 <version>3.8.10.1</version>
318 </dependency>
319
320 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100321 <groupId>mysql</groupId>
322 <artifactId>mysql-connector-java</artifactId>
323 <version>5.1.6</version>
324 </dependency>
325
326 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200327 <groupId>org.apache.commons</groupId>
328 <artifactId>commons-dbcp2</artifactId>
329 <version>2.1.1</version>
330 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200331<!--
Michael Hanlf21773f2015-10-16 23:02:31 +0200332 <dependency>
333 <groupId>org.owasp.esapi</groupId>
334 <artifactId>esapi</artifactId>
335 <version>2.1.0</version>
336 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200337-->
Michael Hanl08aa7722016-06-03 13:34:37 +0200338 <dependency>
339 <groupId>commons-validator</groupId>
340 <artifactId>commons-validator</artifactId>
341 <version>1.4.0</version>
342 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200343
Michael Hanlf21773f2015-10-16 23:02:31 +0200344 <dependency>
345 <groupId>org.mindrot</groupId>
346 <artifactId>jbcrypt</artifactId>
347 <version>0.3m</version>
348 </dependency>
349
Michael Hanlca740d72015-06-16 10:04:58 +0200350 <dependency>
351 <groupId>com.nimbusds</groupId>
352 <artifactId>nimbus-jose-jwt</artifactId>
353 <version>2.10.1</version>
354 </dependency>
355
356 <dependency>
357 <groupId>de.ids_mannheim.korap</groupId>
358 <artifactId>Krill</artifactId>
Akron78e2d202016-10-13 14:17:11 +0200359 <version>0.55.7</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200360 <exclusions>
361 <exclusion>
362 <groupId>org.xerial</groupId>
363 <artifactId>sqlite-jdbc</artifactId>
364 </exclusion>
365 </exclusions>
366 </dependency>
367 <dependency>
368 <groupId>org.reflections</groupId>
369 <artifactId>reflections</artifactId>
370 <version>0.9.9-RC1</version>
371 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200372 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100373 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100374 <!--<groupId>com.restfuse</groupId>-->
375 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
376 <!--<version>1.0.0</version>-->
377 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100378 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200379 <!-- deprecated -->
380 <!--<dependency>-->
381 <!--<groupId>com.jayway.restassured</groupId>-->
382 <!--<artifactId>rest-assured</artifactId>-->
383 <!--<version>2.4.0</version>-->
384 <!--<scope>provided</scope>-->
385 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100386 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100387 <!--<groupId>org.springframework</groupId>-->
388 <!--<artifactId>spring-core</artifactId>-->
389 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100390 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200391 <dependency>
392 <groupId>org.springframework</groupId>
393 <artifactId>spring-context</artifactId>
394 <version>4.0.5.RELEASE</version>
395 </dependency>
396 <dependency>
397 <groupId>org.springframework</groupId>
398 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200399 <version>4.1.6.RELEASE</version>
400 </dependency>
401 <dependency>
402 <groupId>org.springframework</groupId>
403 <artifactId>spring-test</artifactId>
404 <version>4.1.6.RELEASE</version>
405 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200406 </dependency>
407
408 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
409 -->
410 <dependency>
411 <groupId>org.springframework</groupId>
412 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200413 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200414 </dependency>
415 <dependency>
416 <groupId>org.springframework</groupId>
417 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200418 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200419 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200420
421 <!-- copied from extension -->
422 <dependency>
423 <groupId>org.springframework</groupId>
424 <artifactId>spring-jdbc</artifactId>
425 <version>4.1.6.RELEASE</version>
426 </dependency>
427 <dependency>
428 <groupId>org.springframework</groupId>
429 <artifactId>spring-tx</artifactId>
430 <version>4.1.6.RELEASE</version>
431 </dependency>
432 <dependency>
433 <groupId>org.flywaydb</groupId>
434 <artifactId>flyway-core</artifactId>
435 <version>3.2.1</version>
436 </dependency>
437
438 <dependency>
439 <groupId>net.sf.ehcache</groupId>
440 <artifactId>ehcache-core</artifactId>
441 <version>2.6.5</version>
442 </dependency>
443
444 <dependency>
445 <groupId>org.apache.oltu.oauth2</groupId>
446 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
447 <version>1.0.0</version>
448 </dependency>
449
450 <!-- end copy -->
451
Michael Hanlbadd79c2015-06-19 07:41:03 +0200452 <dependency>
453 <groupId>commons-collections</groupId>
454 <artifactId>commons-collections</artifactId>
455 <version>3.2.1</version>
456 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200457 <dependency>
458 <groupId>org.eclipse.jetty</groupId>
459 <artifactId>jetty-server</artifactId>
460 <version>8.1.8.v20121106</version>
461 </dependency>
462 <dependency>
463 <groupId>org.eclipse.jetty</groupId>
464 <artifactId>jetty-servlet</artifactId>
465 <version>8.1.8.v20121106</version>
466 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100467 <dependency>
468 <groupId>asm</groupId>
469 <artifactId>asm</artifactId>
470 <version>3.3.1</version>
471 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200472
Michael Hanlbadd79c2015-06-19 07:41:03 +0200473 <!--
474 not part of public release
475 <dependency>
476 <groupId>KorAP-graphDB</groupId>
477 <artifactId>KorAP-graphDB</artifactId>
478 <version>1.0-SNAPSHOT</version>
479 <exclusions>
480 <exclusion>
481 <groupId>org.antlr</groupId>
482 <artifactId>antlr4-runtime</artifactId>
483 </exclusion>
484 <exclusion>
485 <groupId>org.glassfish.jersey.core</groupId>
486 <artifactId>jersey-client</artifactId>
487 </exclusion>
488 <exclusion>
489 <groupId>org.glassfish.jersey.containers</groupId>
490 <artifactId>jersey-container-grizzly2-http</artifactId>
491 </exclusion>
492 <exclusion>
493 <groupId>org.glassfish.jersey.core</groupId>
494 <artifactId>jersey-common</artifactId>
495 </exclusion>
496 <exclusion>
497 <groupId>org.glassfish.jersey.core</groupId>
498 <artifactId>jersey-server</artifactId>
499 </exclusion>
500 </exclusions>
501 </dependency>
502 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200503 </dependencies>
504
505</project>