blob: b8534ce93d9fc77efc638447bda2c5d37d0d5926 [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 Hanl19390652016-01-16 11:01:24 +01008 <version>0.56</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>
86 <include>**/*.prop</include>
87 <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>
Michael Hanl19390652016-01-16 11:01:24 +010099
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200100 <include>**/*.prop</include>
101 <include>**/*.xml</include>
102 <include>**/*.conf</include>
103 <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>
110 <include>**/*.prop</include>
111 <include>**/*.xml</include>
112 <include>**/*.conf</include>
113 <include>**/*.properties</include>
114 <include>**/*.sql</include>
115 </includes>
116 </testResource>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200117 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +0200118 <plugins>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-compiler-plugin</artifactId>
122 <version>3.3</version>
123 <configuration>
124 <compilerVersion>1.7</compilerVersion>
125 <source>1.7</source>
126 <target>1.7</target>
127 </configuration>
128 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200129
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200130 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
131 <plugin>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200134 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200135 <executions>
136 <execution>
137 <phase>package</phase>
138 <goals>
139 <goal>test-jar</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
Michael Hanlca740d72015-06-16 10:04:58 +0200144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-surefire-plugin</artifactId>
147 <version>2.9</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200148 <configuration>
149 <excludes>
150 <exclude>**/*APITest.java</exclude>
151 </excludes>
152 <includes>
Michael Hanlf21773f2015-10-16 23:02:31 +0200153 <include>**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200154 </includes>
155 </configuration>
156 </plugin>
157 <plugin>
158 <artifactId>maven-shade-plugin</artifactId>
159 <version>2.1</version>
160 <executions>
161 <!-- option 1 -->
162 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200163 <id>full</id>
164 <phase>package</phase>
165 <goals>
166 <goal>shade</goal>
167 </goals>
168 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200169 <transformers>
170 <transformer
171 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
172 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200173 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200174 </mainClass>
175 </transformer>
176 <transformer
177 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
178 <resource>META-INF/spring.handlers
179 </resource>
180 </transformer>
181 <transformer
182 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
183 <resource>META-INF/spring.schemas
184 </resource>
185 </transformer>
186 </transformers>
187 <!-- Additional configuration. -->
Michael Hanl59bff812015-10-27 23:10:32 +0100188 <!-- apparently there is a securityException -->
Michael Hanlca740d72015-06-16 10:04:58 +0200189 <filters>
190 <filter>
191 <artifact>*:*</artifact>
192 <excludes>
193 <exclude>META-INF/*.SF</exclude>
194 <exclude>META-INF/*.DSA
195 </exclude>
196 <exclude>META-INF/*.RSA
197 </exclude>
198 </excludes>
199 </filter>
200 </filters>
201 </configuration>
202 </execution>
203 </executions>
204 </plugin>
205 </plugins>
206 </build>
207 <repositories>
208 <repository>
209 <id>codehaus-release-repo</id>
210 <name>Codehaus Release Repo</name>
211 <url>http://repository.codehaus.org</url>
212 </repository>
213 <repository>
214 <id>central</id>
215 <url>http://repo1.maven.org/maven2/</url>
216 </repository>
217 <repository>
218 <id>sonatype</id>
219 <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
220 <snapshots/>
221 </repository>
222 </repositories>
223 <dependencies>
224 <dependency>
225 <groupId>com.sun.jersey</groupId>
226 <artifactId>jersey-bundle</artifactId>
227 <version>1.8</version>
228 </dependency>
229 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200230 <groupId>com.sun.jersey.jersey-test-framework</groupId>
231 <artifactId>jersey-test-framework-core</artifactId>
232 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200233 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200234 </dependency>
235 <dependency>
236 <groupId>com.sun.jersey.jersey-test-framework</groupId>
237 <artifactId>jersey-test-framework-grizzly</artifactId>
238 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200239 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200240 </dependency>
241 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200242 <groupId>org.slf4j</groupId>
243 <artifactId>slf4j-api</artifactId>
244 <version>1.7.5</version>
245 </dependency>
246 <dependency>
247 <groupId>org.slf4j</groupId>
248 <artifactId>slf4j-log4j12</artifactId>
249 <version>1.7.5</version>
250 </dependency>
251 <dependency>
252 <groupId>log4j</groupId>
253 <artifactId>log4j</artifactId>
254 <version>1.2.17</version>
255 </dependency>
256 <dependency>
257 <groupId>log4j</groupId>
258 <artifactId>apache-log4j-extras</artifactId>
259 <version>1.2.17</version>
260 </dependency>
261 <dependency>
262 <groupId>junit</groupId>
263 <artifactId>junit</artifactId>
264 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200265 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200266 </dependency>
267 <dependency>
268 <groupId>org.projectlombok</groupId>
269 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200270 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200271 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200272 </dependency>
273 <dependency>
274 <groupId>joda-time</groupId>
275 <artifactId>joda-time</artifactId>
276 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200277 </dependency>
278 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200279 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200280 <artifactId>Koral</artifactId>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200281 <version>0.21</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200282 <exclusions>
283 <exclusion>
284 <groupId>org.eclipse.jetty</groupId>
285 <artifactId>jetty-servlet</artifactId>
286 </exclusion>
287 </exclusions>
288 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200289 <!--
290 <dependency>
291 <groupId>com.sun.jersey</groupId>
292 <artifactId>jersey-grizzly2</artifactId>
293 <version>1.8</version>
294 </dependency>
295 <dependency>
296 <groupId>com.sun.grizzly</groupId>
297 <artifactId>grizzly-servlet-webserver</artifactId>
298 <version>1.9.18-i</version>
299 </dependency>
300 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200301
Michael Hanlf21773f2015-10-16 23:02:31 +0200302 <dependency>
303 <groupId>org.xerial</groupId>
304 <artifactId>sqlite-jdbc</artifactId>
305 <version>3.8.10.1</version>
306 </dependency>
307
308 <dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100309 <groupId>mysql</groupId>
310 <artifactId>mysql-connector-java</artifactId>
311 <version>5.1.6</version>
312 </dependency>
313
314 <dependency>
Michael Hanlf21773f2015-10-16 23:02:31 +0200315 <groupId>org.apache.commons</groupId>
316 <artifactId>commons-dbcp2</artifactId>
317 <version>2.1.1</version>
318 </dependency>
319
320 <dependency>
321 <groupId>org.owasp.esapi</groupId>
322 <artifactId>esapi</artifactId>
323 <version>2.1.0</version>
324 </dependency>
325
326 <dependency>
327 <groupId>org.mindrot</groupId>
328 <artifactId>jbcrypt</artifactId>
329 <version>0.3m</version>
330 </dependency>
331
Michael Hanlca740d72015-06-16 10:04:58 +0200332 <dependency>
333 <groupId>com.nimbusds</groupId>
334 <artifactId>nimbus-jose-jwt</artifactId>
335 <version>2.10.1</version>
336 </dependency>
337
338 <dependency>
339 <groupId>de.ids_mannheim.korap</groupId>
340 <artifactId>Krill</artifactId>
Michael Hanl19390652016-01-16 11:01:24 +0100341 <version>0.54</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200342 <exclusions>
343 <exclusion>
344 <groupId>org.xerial</groupId>
345 <artifactId>sqlite-jdbc</artifactId>
346 </exclusion>
347 </exclusions>
348 </dependency>
349 <dependency>
350 <groupId>org.reflections</groupId>
351 <artifactId>reflections</artifactId>
352 <version>0.9.9-RC1</version>
353 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200354 <!-- deprecated? -->
Michael Hanl2760cc42015-11-16 19:30:01 +0100355 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100356 <!--<groupId>com.restfuse</groupId>-->
357 <!--<artifactId>com.eclipsesource.restfuse</artifactId>-->
358 <!--<version>1.0.0</version>-->
359 <!--<scope>provided</scope>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100360 <!--</dependency>-->
Michael Hanl1e18cb42015-08-06 20:57:35 +0200361 <!-- deprecated -->
362 <!--<dependency>-->
363 <!--<groupId>com.jayway.restassured</groupId>-->
364 <!--<artifactId>rest-assured</artifactId>-->
365 <!--<version>2.4.0</version>-->
366 <!--<scope>provided</scope>-->
367 <!--</dependency>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100368 <!--<dependency>-->
Michael Hanl19390652016-01-16 11:01:24 +0100369 <!--<groupId>org.springframework</groupId>-->
370 <!--<artifactId>spring-core</artifactId>-->
371 <!--<version>4.0.5.RELEASE</version>-->
Michael Hanl2760cc42015-11-16 19:30:01 +0100372 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200373 <dependency>
374 <groupId>org.springframework</groupId>
375 <artifactId>spring-context</artifactId>
376 <version>4.0.5.RELEASE</version>
377 </dependency>
378 <dependency>
379 <groupId>org.springframework</groupId>
380 <artifactId>spring-context-support</artifactId>
381 <version>4.0.5.RELEASE</version>
382 </dependency>
383
384 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
385 -->
386 <dependency>
387 <groupId>org.springframework</groupId>
388 <artifactId>spring-aop</artifactId>
389 <version>4.0.5.RELEASE</version>
390 </dependency>
391 <dependency>
392 <groupId>org.springframework</groupId>
393 <artifactId>spring-aspects</artifactId>
394 <version>4.0.5.RELEASE</version>
395 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200396
397 <!-- copied from extension -->
398 <dependency>
399 <groupId>org.springframework</groupId>
400 <artifactId>spring-jdbc</artifactId>
401 <version>4.1.6.RELEASE</version>
402 </dependency>
403 <dependency>
404 <groupId>org.springframework</groupId>
405 <artifactId>spring-tx</artifactId>
406 <version>4.1.6.RELEASE</version>
407 </dependency>
408 <dependency>
409 <groupId>org.flywaydb</groupId>
410 <artifactId>flyway-core</artifactId>
411 <version>3.2.1</version>
412 </dependency>
413
414 <dependency>
415 <groupId>net.sf.ehcache</groupId>
416 <artifactId>ehcache-core</artifactId>
417 <version>2.6.5</version>
418 </dependency>
419
420 <dependency>
421 <groupId>org.apache.oltu.oauth2</groupId>
422 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
423 <version>1.0.0</version>
424 </dependency>
425
426 <!-- end copy -->
427
Michael Hanlbadd79c2015-06-19 07:41:03 +0200428 <dependency>
429 <groupId>commons-collections</groupId>
430 <artifactId>commons-collections</artifactId>
431 <version>3.2.1</version>
432 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200433 <dependency>
434 <groupId>org.eclipse.jetty</groupId>
435 <artifactId>jetty-server</artifactId>
436 <version>8.1.8.v20121106</version>
437 </dependency>
438 <dependency>
439 <groupId>org.eclipse.jetty</groupId>
440 <artifactId>jetty-servlet</artifactId>
441 <version>8.1.8.v20121106</version>
442 </dependency>
Michael Hanl19390652016-01-16 11:01:24 +0100443 <dependency>
444 <groupId>asm</groupId>
445 <artifactId>asm</artifactId>
446 <version>3.3.1</version>
447 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200448
Michael Hanlbadd79c2015-06-19 07:41:03 +0200449 <!--
450 not part of public release
451 <dependency>
452 <groupId>KorAP-graphDB</groupId>
453 <artifactId>KorAP-graphDB</artifactId>
454 <version>1.0-SNAPSHOT</version>
455 <exclusions>
456 <exclusion>
457 <groupId>org.antlr</groupId>
458 <artifactId>antlr4-runtime</artifactId>
459 </exclusion>
460 <exclusion>
461 <groupId>org.glassfish.jersey.core</groupId>
462 <artifactId>jersey-client</artifactId>
463 </exclusion>
464 <exclusion>
465 <groupId>org.glassfish.jersey.containers</groupId>
466 <artifactId>jersey-container-grizzly2-http</artifactId>
467 </exclusion>
468 <exclusion>
469 <groupId>org.glassfish.jersey.core</groupId>
470 <artifactId>jersey-common</artifactId>
471 </exclusion>
472 <exclusion>
473 <groupId>org.glassfish.jersey.core</groupId>
474 <artifactId>jersey-server</artifactId>
475 </exclusion>
476 </exclusions>
477 </dependency>
478 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200479 </dependencies>
480
481</project>