blob: 093c5a1b6f4d7e64ecad4988f7298fe30e2fb5d5 [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 Hanl33829ec2016-05-28 17:03:38 +02008 <version>0.59.4</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 Hanl8abaf9e2016-05-23 16:46:35 +0200119 <!--
120 Formatter plugin for Eclipse based coding conventions
121 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
122 -->
123 <plugin>
124 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
125 <artifactId>maven-java-formatter-plugin</artifactId>
126 <version>0.4</version>
127 <configuration>
128 <configFile>${project.basedir}/Format.xml</configFile>
129 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
130 <compilerSource>1.7</compilerSource>
131 <compilerCompliance>1.7</compilerCompliance>
132 <compilerTargetPlatform>1.7</compilerTargetPlatform>
133 </configuration>
Michael Hanl33829ec2016-05-28 17:03:38 +0200134
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200135 <executions>
136 <execution>
137 <goals>
138 <goal>format</goal>
139 </goals>
140 </execution>
141 </executions>
Michael Hanl33829ec2016-05-28 17:03:38 +0200142
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200143 </plugin>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-compiler-plugin</artifactId>
147 <version>3.3</version>
148 <configuration>
149 <compilerVersion>1.7</compilerVersion>
150 <source>1.7</source>
151 <target>1.7</target>
152 </configuration>
153 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200154
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200155 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
156 <plugin>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200159 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200160 <executions>
161 <execution>
162 <phase>package</phase>
163 <goals>
164 <goal>test-jar</goal>
165 </goals>
166 </execution>
167 </executions>
168 </plugin>
Michael Hanlca740d72015-06-16 10:04:58 +0200169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200172 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200173 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +0200174 <reuseForks>false</reuseForks>
Michael Hanl45636922016-06-03 14:00:56 +0200175 <forkCount>2</forkCount>
Michael Hanldaf86602016-05-12 14:31:52 +0200176 <threadCount>10</threadCount>
177
Michael Hanlca740d72015-06-16 10:04:58 +0200178 <excludes>
179 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +0200180 <exclude>de/ids_mannheim/korap/suites/*.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>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200295 <version>0.21</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>
333
334 <dependency>
335 <groupId>org.owasp.esapi</groupId>
336 <artifactId>esapi</artifactId>
337 <version>2.1.0</version>
338 </dependency>
Michael Hanl08aa7722016-06-03 13:34:37 +0200339<!--
340 <dependency>
341 <groupId>commons-validator</groupId>
342 <artifactId>commons-validator</artifactId>
343 <version>1.4.0</version>
344 </dependency>
345-->
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>
Michael Hanldaf86602016-05-12 14:31:52 +0200361 <version>0.55.5</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 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200505 </dependencies>
506
507</project>