blob: 0b43e21f58295f634cdafc86f15a498a2139e699 [file] [log] [blame]
Michael Hanlca740d72015-06-16 10:04:58 +02001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 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 +02004 <modelVersion>4.0.0</modelVersion>
Michael Hanlbadd79c2015-06-19 07:41:03 +02005 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +02006 <artifactId>Kustvakt-core</artifactId>
Akron78e2d202016-10-13 14:17:11 +02007 <version>0.59.7</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +02008 <packaging>jar</packaging>
9 <name>Kustvakt core</name>
10 <description>Kustvakt core, basic rest api for testing purposes and default
11 interfaces
12 </description>
Michael Hanlca740d72015-06-16 10:04:58 +020013 <properties>
14 <maven.compiler.source>1.7</maven.compiler.source>
15 <maven.compiler.target>1.7</maven.compiler.target>
16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17 </properties>
Michael Hanl840878a2015-09-21 22:38:05 +020018 <profiles>
19 <!-- mvn -Plight builds additionally the light server version with reduced functionality! -->
20 <profile>
21 <id>light</id>
22 <build>
23 <plugins>
24 <plugin>
25 <artifactId>maven-shade-plugin</artifactId>
26 <version>2.1</version>
27 <executions>
28 <!-- option 1 -->
29 <execution>
30 <id>light</id>
31 <phase>package</phase>
32 <goals>
33 <goal>shade</goal>
34 </goals>
35 <configuration>
36 <finalName>
37 Kustvakt-core-${project.version}-light
38 </finalName>
39 <transformers>
40 <transformer
41 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
42 <mainClass>
Michael Hanl482f30d2015-09-25 12:39:46 +020043 de.ids_mannheim.korap.web.KustvaktBaseServer
Michael Hanl840878a2015-09-21 22:38:05 +020044 </mainClass>
45 </transformer>
46 <transformer
47 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
48 <resource>META-INF/spring.handlers
49 </resource>
50 </transformer>
51 <transformer
52 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
53 <resource>META-INF/spring.schemas
54 </resource>
55 </transformer>
56 </transformers>
57 <!-- Additional configuration. -->
58 <!-- apparently there is a securityexception -->
59 <filters>
60 <filter>
61 <artifact>*:*</artifact>
62 <excludes>
63 <exclude>META-INF/*.SF</exclude>
64 <exclude>META-INF/*.DSA
65 </exclude>
66 <exclude>META-INF/*.RSA
67 </exclude>
68 </excludes>
69 </filter>
70 </filters>
71 </configuration>
72 </execution>
73 </executions>
74 </plugin>
75 </plugins>
76 </build>
77 </profile>
78 </profiles>
Michael Hanlca740d72015-06-16 10:04:58 +020079 <build>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020080 <resources>
81 <resource>
82 <directory>src/main/resources</directory>
83 <filtering>true</filtering>
84 <includes>
Michael Hanldaf86602016-05-12 14:31:52 +020085 <include>**/*.info</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020086 <include>**/*.xml</include>
87 <include>**/*.conf</include>
Michael Hanlc0ed00f2016-06-23 14:33:10 +020088 <include>**/*.kustvakt</include>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020089 <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 Hanldaf86602016-05-12 14:31:52 +0200110 <include>**/*.info</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200111 <include>**/*.properties</include>
Michael Hanlf21773f2015-10-16 23:02:31 +0200112 </includes>
113 </testResource>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200114 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +0200115 <plugins>
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200116 <!--
117 Formatter plugin for Eclipse based coding conventions
118 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
119 -->
120 <plugin>
121 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
122 <artifactId>maven-java-formatter-plugin</artifactId>
123 <version>0.4</version>
124 <configuration>
125 <configFile>${project.basedir}/Format.xml</configFile>
126 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
127 <compilerSource>1.7</compilerSource>
128 <compilerCompliance>1.7</compilerCompliance>
129 <compilerTargetPlatform>1.7</compilerTargetPlatform>
130 </configuration>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200131 <!--
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200132 <executions>
133 <execution>
134 <goals>
135 <goal>format</goal>
136 </goals>
137 </execution>
138 </executions>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200139 -->
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200140 </plugin>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200141 <plugin>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-compiler-plugin</artifactId>
144 <version>3.3</version>
145 <configuration>
146 <compilerVersion>1.7</compilerVersion>
147 <source>1.7</source>
148 <target>1.7</target>
149 </configuration>
150 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200151
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200152 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
Bodmo3d6bd352017-04-25 11:31:39 +0200153 <!-- >plugin>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200156 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200157 <executions>
158 <execution>
159 <phase>package</phase>
160 <goals>
161 <goal>test-jar</goal>
162 </goals>
163 </execution>
164 </executions>
Bodmo3d6bd352017-04-25 11:31:39 +0200165 </plugin -->
Michael Hanlca740d72015-06-16 10:04:58 +0200166 <plugin>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200169 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200170 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +0200171 <reuseForks>false</reuseForks>
Michael Hanl45636922016-06-03 14:00:56 +0200172 <forkCount>2</forkCount>
Michael Hanldaf86602016-05-12 14:31:52 +0200173 <threadCount>10</threadCount>
174
Michael Hanlca740d72015-06-16 10:04:58 +0200175 <excludes>
176 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +0200177 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +0200178 </excludes>
179 <includes>
Michael Hanl83356752016-02-06 14:33:50 +0100180 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200181 </includes>
182 </configuration>
183 </plugin>
184 <plugin>
185 <artifactId>maven-shade-plugin</artifactId>
186 <version>2.1</version>
187 <executions>
188 <!-- option 1 -->
189 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200190 <id>full</id>
191 <phase>package</phase>
192 <goals>
193 <goal>shade</goal>
194 </goals>
195 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200196 <transformers>
197 <transformer
198 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
199 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200200 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200201 </mainClass>
202 </transformer>
203 <transformer
204 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
205 <resource>META-INF/spring.handlers
206 </resource>
207 </transformer>
208 <transformer
209 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
210 <resource>META-INF/spring.schemas
211 </resource>
212 </transformer>
213 </transformers>
214 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100215 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200216 <filters>
217 <filter>
218 <artifact>*:*</artifact>
219 <excludes>
220 <exclude>META-INF/*.SF</exclude>
221 <exclude>META-INF/*.DSA
222 </exclude>
223 <exclude>META-INF/*.RSA
224 </exclude>
225 </excludes>
226 </filter>
227 </filters>
228 </configuration>
229 </execution>
230 </executions>
231 </plugin>
232 </plugins>
233 </build>
Michael Hanlca740d72015-06-16 10:04:58 +0200234 <dependencies>
235 <dependency>
236 <groupId>com.sun.jersey</groupId>
237 <artifactId>jersey-bundle</artifactId>
238 <version>1.8</version>
239 </dependency>
240 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200241 <groupId>com.sun.jersey.jersey-test-framework</groupId>
242 <artifactId>jersey-test-framework-core</artifactId>
243 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200244 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200245 </dependency>
246 <dependency>
247 <groupId>com.sun.jersey.jersey-test-framework</groupId>
248 <artifactId>jersey-test-framework-grizzly</artifactId>
249 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200250 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200251 </dependency>
252 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200253 <groupId>org.slf4j</groupId>
254 <artifactId>slf4j-api</artifactId>
255 <version>1.7.5</version>
256 </dependency>
257 <dependency>
258 <groupId>org.slf4j</groupId>
259 <artifactId>slf4j-log4j12</artifactId>
260 <version>1.7.5</version>
261 </dependency>
262 <dependency>
263 <groupId>log4j</groupId>
264 <artifactId>log4j</artifactId>
265 <version>1.2.17</version>
266 </dependency>
267 <dependency>
268 <groupId>log4j</groupId>
269 <artifactId>apache-log4j-extras</artifactId>
270 <version>1.2.17</version>
271 </dependency>
272 <dependency>
273 <groupId>junit</groupId>
274 <artifactId>junit</artifactId>
275 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200276 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200277 </dependency>
278 <dependency>
279 <groupId>org.projectlombok</groupId>
280 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200281 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200282 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200283 </dependency>
284 <dependency>
285 <groupId>joda-time</groupId>
286 <artifactId>joda-time</artifactId>
287 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200288 </dependency>
289 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200290 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200291 <artifactId>Koral</artifactId>
Bodmo3d6bd352017-04-25 11:31:39 +0200292 <version>0.23</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200293 <exclusions>
294 <exclusion>
295 <groupId>org.eclipse.jetty</groupId>
296 <artifactId>jetty-servlet</artifactId>
297 </exclusion>
298 </exclusions>
299 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200300 <!--
301 <dependency>
302 <groupId>com.sun.jersey</groupId>
303 <artifactId>jersey-grizzly2</artifactId>
304 <version>1.8</version>
305 </dependency>
306 <dependency>
307 <groupId>com.sun.grizzly</groupId>
308 <artifactId>grizzly-servlet-webserver</artifactId>
309 <version>1.9.18-i</version>
310 </dependency>
311 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200312
Michael Hanlf21773f2015-10-16 23:02:31 +0200313 <dependency>
314 <groupId>org.xerial</groupId>
315 <artifactId>sqlite-jdbc</artifactId>
316 <version>3.8.10.1</version>
317 </dependency>
318
319 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100320 <groupId>mysql</groupId>
321 <artifactId>mysql-connector-java</artifactId>
322 <version>5.1.6</version>
323 </dependency>
324
325 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200326 <groupId>org.apache.commons</groupId>
327 <artifactId>commons-dbcp2</artifactId>
328 <version>2.1.1</version>
329 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200330<!--
Michael Hanlf21773f2015-10-16 23:02:31 +0200331 <dependency>
332 <groupId>org.owasp.esapi</groupId>
333 <artifactId>esapi</artifactId>
334 <version>2.1.0</version>
335 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200336-->
Michael Hanl08aa7722016-06-03 13:34:37 +0200337 <dependency>
338 <groupId>commons-validator</groupId>
339 <artifactId>commons-validator</artifactId>
340 <version>1.4.0</version>
341 </dependency>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200342
Michael Hanlf21773f2015-10-16 23:02:31 +0200343 <dependency>
344 <groupId>org.mindrot</groupId>
345 <artifactId>jbcrypt</artifactId>
346 <version>0.3m</version>
347 </dependency>
348
Michael Hanlca740d72015-06-16 10:04:58 +0200349 <dependency>
350 <groupId>com.nimbusds</groupId>
351 <artifactId>nimbus-jose-jwt</artifactId>
352 <version>2.10.1</version>
353 </dependency>
354
355 <dependency>
356 <groupId>de.ids_mannheim.korap</groupId>
357 <artifactId>Krill</artifactId>
Akron78e2d202016-10-13 14:17:11 +0200358 <version>0.55.7</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200359 <exclusions>
360 <exclusion>
361 <groupId>org.xerial</groupId>
362 <artifactId>sqlite-jdbc</artifactId>
363 </exclusion>
364 </exclusions>
365 </dependency>
366 <dependency>
367 <groupId>org.reflections</groupId>
368 <artifactId>reflections</artifactId>
369 <version>0.9.9-RC1</version>
370 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200371 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100372 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100373 <!--<groupId>com.restfuse</groupId>-->
374 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
375 <!--<version>1.0.0</version>-->
376 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100377 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200378 <!-- deprecated -->
379 <!--<dependency>-->
380 <!--<groupId>com.jayway.restassured</groupId>-->
381 <!--<artifactId>rest-assured</artifactId>-->
382 <!--<version>2.4.0</version>-->
383 <!--<scope>provided</scope>-->
384 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100385 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100386 <!--<groupId>org.springframework</groupId>-->
387 <!--<artifactId>spring-core</artifactId>-->
388 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100389 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200390 <dependency>
391 <groupId>org.springframework</groupId>
392 <artifactId>spring-context</artifactId>
393 <version>4.0.5.RELEASE</version>
394 </dependency>
395 <dependency>
396 <groupId>org.springframework</groupId>
397 <artifactId>spring-context-support</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200398 <version>4.1.6.RELEASE</version>
399 </dependency>
400 <dependency>
401 <groupId>org.springframework</groupId>
402 <artifactId>spring-test</artifactId>
403 <version>4.1.6.RELEASE</version>
404 <scope>compile</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200405 </dependency>
406
407 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
408 -->
409 <dependency>
410 <groupId>org.springframework</groupId>
411 <artifactId>spring-aop</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200412 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200413 </dependency>
414 <dependency>
415 <groupId>org.springframework</groupId>
416 <artifactId>spring-aspects</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +0200417 <version>4.1.6.RELEASE</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200418 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200419
420 <!-- copied from extension -->
421 <dependency>
422 <groupId>org.springframework</groupId>
423 <artifactId>spring-jdbc</artifactId>
424 <version>4.1.6.RELEASE</version>
425 </dependency>
426 <dependency>
427 <groupId>org.springframework</groupId>
428 <artifactId>spring-tx</artifactId>
429 <version>4.1.6.RELEASE</version>
430 </dependency>
431 <dependency>
432 <groupId>org.flywaydb</groupId>
433 <artifactId>flyway-core</artifactId>
434 <version>3.2.1</version>
435 </dependency>
436
437 <dependency>
438 <groupId>net.sf.ehcache</groupId>
439 <artifactId>ehcache-core</artifactId>
440 <version>2.6.5</version>
441 </dependency>
442
443 <dependency>
444 <groupId>org.apache.oltu.oauth2</groupId>
445 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
446 <version>1.0.0</version>
447 </dependency>
448
449 <!-- end copy -->
450
Michael Hanlbadd79c2015-06-19 07:41:03 +0200451 <dependency>
452 <groupId>commons-collections</groupId>
453 <artifactId>commons-collections</artifactId>
454 <version>3.2.1</version>
455 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200456 <dependency>
457 <groupId>org.eclipse.jetty</groupId>
458 <artifactId>jetty-server</artifactId>
459 <version>8.1.8.v20121106</version>
460 </dependency>
461 <dependency>
462 <groupId>org.eclipse.jetty</groupId>
463 <artifactId>jetty-servlet</artifactId>
464 <version>8.1.8.v20121106</version>
465 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100466 <dependency>
467 <groupId>asm</groupId>
468 <artifactId>asm</artifactId>
469 <version>3.3.1</version>
470 </dependency>
Bodmo3d6bd352017-04-25 11:31:39 +0200471 <dependency>
472 <groupId>com.novell.ldap</groupId>
473 <artifactId>jldap</artifactId>
474 <version>4.3</version>
475 </dependency>
476 <!-- https://mvnrepository.com/artifact/com.unboundid/unboundid-ldapsdk -->
477 <dependency>
478 <groupId>com.unboundid</groupId>
479 <artifactId>unboundid-ldapsdk</artifactId>
480 <version>3.2.1</version>
481 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200482
Michael Hanlbadd79c2015-06-19 07:41:03 +0200483 <!--
484 not part of public release
485 <dependency>
486 <groupId>KorAP-graphDB</groupId>
487 <artifactId>KorAP-graphDB</artifactId>
488 <version>1.0-SNAPSHOT</version>
489 <exclusions>
490 <exclusion>
491 <groupId>org.antlr</groupId>
492 <artifactId>antlr4-runtime</artifactId>
493 </exclusion>
494 <exclusion>
495 <groupId>org.glassfish.jersey.core</groupId>
496 <artifactId>jersey-client</artifactId>
497 </exclusion>
498 <exclusion>
499 <groupId>org.glassfish.jersey.containers</groupId>
500 <artifactId>jersey-container-grizzly2-http</artifactId>
501 </exclusion>
502 <exclusion>
503 <groupId>org.glassfish.jersey.core</groupId>
504 <artifactId>jersey-common</artifactId>
505 </exclusion>
506 <exclusion>
507 <groupId>org.glassfish.jersey.core</groupId>
508 <artifactId>jersey-server</artifactId>
509 </exclusion>
510 </exclusions>
511 </dependency>
512 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200513 </dependencies>
514
515</project>