blob: ff64201b7050e8fa030c50509c9ced64f3ed50eb [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 Hanldaf86602016-05-12 14:31:52 +02008 <version>0.59.1</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>
134 <executions>
135 <execution>
136 <goals>
137 <goal>format</goal>
138 </goals>
139 </execution>
140 </executions>
141 </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>
173 <forkCount>1</forkCount>
174 <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 Hanl1e18cb42015-08-06 20:57:35 +0200293 <version>0.21</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>
331
332 <dependency>
333 <groupId>org.owasp.esapi</groupId>
334 <artifactId>esapi</artifactId>
335 <version>2.1.0</version>
336 </dependency>
337
338 <dependency>
339 <groupId>org.mindrot</groupId>
340 <artifactId>jbcrypt</artifactId>
341 <version>0.3m</version>
342 </dependency>
343
Michael Hanlca740d72015-06-16 10:04:58 +0200344 <dependency>
345 <groupId>com.nimbusds</groupId>
346 <artifactId>nimbus-jose-jwt</artifactId>
347 <version>2.10.1</version>
348 </dependency>
349
350 <dependency>
351 <groupId>de.ids_mannheim.korap</groupId>
352 <artifactId>Krill</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200353 <version>0.55.5</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200354 <exclusions>
355 <exclusion>
356 <groupId>org.xerial</groupId>
357 <artifactId>sqlite-jdbc</artifactId>
358 </exclusion>
359 </exclusions>
360 </dependency>
361 <dependency>
362 <groupId>org.reflections</groupId>
363 <artifactId>reflections</artifactId>
364 <version>0.9.9-RC1</version>
365 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200366 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100367 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100368 <!--<groupId>com.restfuse</groupId>-->
369 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
370 <!--<version>1.0.0</version>-->
371 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100372 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200373 <!-- deprecated -->
374 <!--<dependency>-->
375 <!--<groupId>com.jayway.restassured</groupId>-->
376 <!--<artifactId>rest-assured</artifactId>-->
377 <!--<version>2.4.0</version>-->
378 <!--<scope>provided</scope>-->
379 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100380 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100381 <!--<groupId>org.springframework</groupId>-->
382 <!--<artifactId>spring-core</artifactId>-->
383 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100384 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200385 <dependency>
386 <groupId>org.springframework</groupId>
387 <artifactId>spring-context</artifactId>
388 <version>4.0.5.RELEASE</version>
389 </dependency>
390 <dependency>
391 <groupId>org.springframework</groupId>
392 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200393 <version>4.1.6.RELEASE</version>
394 </dependency>
395 <dependency>
396 <groupId>org.springframework</groupId>
397 <artifactId>spring-test</artifactId>
398 <version>4.1.6.RELEASE</version>
399 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200400 </dependency>
401
402 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
403 -->
404 <dependency>
405 <groupId>org.springframework</groupId>
406 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200407 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200408 </dependency>
409 <dependency>
410 <groupId>org.springframework</groupId>
411 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200412 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200413 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200414
415 <!-- copied from extension -->
416 <dependency>
417 <groupId>org.springframework</groupId>
418 <artifactId>spring-jdbc</artifactId>
419 <version>4.1.6.RELEASE</version>
420 </dependency>
421 <dependency>
422 <groupId>org.springframework</groupId>
423 <artifactId>spring-tx</artifactId>
424 <version>4.1.6.RELEASE</version>
425 </dependency>
426 <dependency>
427 <groupId>org.flywaydb</groupId>
428 <artifactId>flyway-core</artifactId>
429 <version>3.2.1</version>
430 </dependency>
431
432 <dependency>
433 <groupId>net.sf.ehcache</groupId>
434 <artifactId>ehcache-core</artifactId>
435 <version>2.6.5</version>
436 </dependency>
437
438 <dependency>
439 <groupId>org.apache.oltu.oauth2</groupId>
440 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
441 <version>1.0.0</version>
442 </dependency>
443
444 <!-- end copy -->
445
Michael Hanlbadd79c2015-06-19 07:41:03 +0200446 <dependency>
447 <groupId>commons-collections</groupId>
448 <artifactId>commons-collections</artifactId>
449 <version>3.2.1</version>
450 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200451 <dependency>
452 <groupId>org.eclipse.jetty</groupId>
453 <artifactId>jetty-server</artifactId>
454 <version>8.1.8.v20121106</version>
455 </dependency>
456 <dependency>
457 <groupId>org.eclipse.jetty</groupId>
458 <artifactId>jetty-servlet</artifactId>
459 <version>8.1.8.v20121106</version>
460 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100461 <dependency>
462 <groupId>asm</groupId>
463 <artifactId>asm</artifactId>
464 <version>3.3.1</version>
465 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200466
Michael Hanlbadd79c2015-06-19 07:41:03 +0200467 <!--
468 not part of public release
469 <dependency>
470 <groupId>KorAP-graphDB</groupId>
471 <artifactId>KorAP-graphDB</artifactId>
472 <version>1.0-SNAPSHOT</version>
473 <exclusions>
474 <exclusion>
475 <groupId>org.antlr</groupId>
476 <artifactId>antlr4-runtime</artifactId>
477 </exclusion>
478 <exclusion>
479 <groupId>org.glassfish.jersey.core</groupId>
480 <artifactId>jersey-client</artifactId>
481 </exclusion>
482 <exclusion>
483 <groupId>org.glassfish.jersey.containers</groupId>
484 <artifactId>jersey-container-grizzly2-http</artifactId>
485 </exclusion>
486 <exclusion>
487 <groupId>org.glassfish.jersey.core</groupId>
488 <artifactId>jersey-common</artifactId>
489 </exclusion>
490 <exclusion>
491 <groupId>org.glassfish.jersey.core</groupId>
492 <artifactId>jersey-server</artifactId>
493 </exclusion>
494 </exclusions>
495 </dependency>
496 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200497 </dependencies>
498
499</project>