blob: cdde2f48d0a304d11801f805e35c6d13144eef0a [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>
175 <forkCount>1</forkCount>
176 <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>
339
340 <dependency>
341 <groupId>org.mindrot</groupId>
342 <artifactId>jbcrypt</artifactId>
343 <version>0.3m</version>
344 </dependency>
345
Michael Hanlca740d72015-06-16 10:04:58 +0200346 <dependency>
347 <groupId>com.nimbusds</groupId>
348 <artifactId>nimbus-jose-jwt</artifactId>
349 <version>2.10.1</version>
350 </dependency>
351
352 <dependency>
353 <groupId>de.ids_mannheim.korap</groupId>
354 <artifactId>Krill</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200355 <version>0.55.5</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200356 <exclusions>
357 <exclusion>
358 <groupId>org.xerial</groupId>
359 <artifactId>sqlite-jdbc</artifactId>
360 </exclusion>
361 </exclusions>
362 </dependency>
363 <dependency>
364 <groupId>org.reflections</groupId>
365 <artifactId>reflections</artifactId>
366 <version>0.9.9-RC1</version>
367 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200368 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100369 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100370 <!--<groupId>com.restfuse</groupId>-->
371 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
372 <!--<version>1.0.0</version>-->
373 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100374 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200375 <!-- deprecated -->
376 <!--<dependency>-->
377 <!--<groupId>com.jayway.restassured</groupId>-->
378 <!--<artifactId>rest-assured</artifactId>-->
379 <!--<version>2.4.0</version>-->
380 <!--<scope>provided</scope>-->
381 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100382 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100383 <!--<groupId>org.springframework</groupId>-->
384 <!--<artifactId>spring-core</artifactId>-->
385 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100386 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200387 <dependency>
388 <groupId>org.springframework</groupId>
389 <artifactId>spring-context</artifactId>
390 <version>4.0.5.RELEASE</version>
391 </dependency>
392 <dependency>
393 <groupId>org.springframework</groupId>
394 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200395 <version>4.1.6.RELEASE</version>
396 </dependency>
397 <dependency>
398 <groupId>org.springframework</groupId>
399 <artifactId>spring-test</artifactId>
400 <version>4.1.6.RELEASE</version>
401 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200402 </dependency>
403
404 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
405 -->
406 <dependency>
407 <groupId>org.springframework</groupId>
408 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200409 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200410 </dependency>
411 <dependency>
412 <groupId>org.springframework</groupId>
413 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200414 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200415 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200416
417 <!-- copied from extension -->
418 <dependency>
419 <groupId>org.springframework</groupId>
420 <artifactId>spring-jdbc</artifactId>
421 <version>4.1.6.RELEASE</version>
422 </dependency>
423 <dependency>
424 <groupId>org.springframework</groupId>
425 <artifactId>spring-tx</artifactId>
426 <version>4.1.6.RELEASE</version>
427 </dependency>
428 <dependency>
429 <groupId>org.flywaydb</groupId>
430 <artifactId>flyway-core</artifactId>
431 <version>3.2.1</version>
432 </dependency>
433
434 <dependency>
435 <groupId>net.sf.ehcache</groupId>
436 <artifactId>ehcache-core</artifactId>
437 <version>2.6.5</version>
438 </dependency>
439
440 <dependency>
441 <groupId>org.apache.oltu.oauth2</groupId>
442 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
443 <version>1.0.0</version>
444 </dependency>
445
446 <!-- end copy -->
447
Michael Hanlbadd79c2015-06-19 07:41:03 +0200448 <dependency>
449 <groupId>commons-collections</groupId>
450 <artifactId>commons-collections</artifactId>
451 <version>3.2.1</version>
452 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200453 <dependency>
454 <groupId>org.eclipse.jetty</groupId>
455 <artifactId>jetty-server</artifactId>
456 <version>8.1.8.v20121106</version>
457 </dependency>
458 <dependency>
459 <groupId>org.eclipse.jetty</groupId>
460 <artifactId>jetty-servlet</artifactId>
461 <version>8.1.8.v20121106</version>
462 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100463 <dependency>
464 <groupId>asm</groupId>
465 <artifactId>asm</artifactId>
466 <version>3.3.1</version>
467 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200468
Michael Hanlbadd79c2015-06-19 07:41:03 +0200469 <!--
470 not part of public release
471 <dependency>
472 <groupId>KorAP-graphDB</groupId>
473 <artifactId>KorAP-graphDB</artifactId>
474 <version>1.0-SNAPSHOT</version>
475 <exclusions>
476 <exclusion>
477 <groupId>org.antlr</groupId>
478 <artifactId>antlr4-runtime</artifactId>
479 </exclusion>
480 <exclusion>
481 <groupId>org.glassfish.jersey.core</groupId>
482 <artifactId>jersey-client</artifactId>
483 </exclusion>
484 <exclusion>
485 <groupId>org.glassfish.jersey.containers</groupId>
486 <artifactId>jersey-container-grizzly2-http</artifactId>
487 </exclusion>
488 <exclusion>
489 <groupId>org.glassfish.jersey.core</groupId>
490 <artifactId>jersey-common</artifactId>
491 </exclusion>
492 <exclusion>
493 <groupId>org.glassfish.jersey.core</groupId>
494 <artifactId>jersey-server</artifactId>
495 </exclusion>
496 </exclusions>
497 </dependency>
498 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200499 </dependencies>
500
501</project>