blob: c28e0efd51add4ba9f4ffdef0aea6c7d954a3888 [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 Hanlf21773f2015-10-16 23:02:31 +02008 <version>0.5</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>
90 </includes>
91 </resource>
92 </resources>
93 <testResources>
94 <testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +020095 <directory>src/test/resources</directory>
Michael Hanl9f8d90c2015-09-14 16:13:54 +020096 <filtering>true</filtering>
97 <includes>
98 <include>**/*.prop</include>
99 <include>**/*.xml</include>
100 <include>**/*.conf</include>
101 <include>**/*.properties</include>
102 </includes>
103 </testResource>
Michael Hanlf21773f2015-10-16 23:02:31 +0200104 <testResource>
105 <directory>src/main/resources</directory>
106 <filtering>true</filtering>
107 <includes>
108 <include>**/*.prop</include>
109 <include>**/*.xml</include>
110 <include>**/*.conf</include>
111 <include>**/*.properties</include>
112 <include>**/*.sql</include>
113 </includes>
114 </testResource>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200115 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +0200116 <plugins>
Michael Hanlc95c0a82015-10-20 16:45:46 +0200117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-compiler-plugin</artifactId>
120 <version>3.3</version>
121 <configuration>
122 <compilerVersion>1.7</compilerVersion>
123 <source>1.7</source>
124 <target>1.7</target>
125 </configuration>
126 </plugin>
Michael Hanlf21773f2015-10-16 23:02:31 +0200127
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200128 <!-- build tests jar, so extensions can use fastjerseytest class to build rest tests -->
129 <plugin>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-jar-plugin</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200132 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200133 <executions>
134 <execution>
135 <phase>package</phase>
136 <goals>
137 <goal>test-jar</goal>
138 </goals>
139 </execution>
140 </executions>
141 </plugin>
Michael Hanlca740d72015-06-16 10:04:58 +0200142 <plugin>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-surefire-plugin</artifactId>
145 <version>2.9</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200146 <configuration>
147 <excludes>
148 <exclude>**/*APITest.java</exclude>
149 </excludes>
150 <includes>
Michael Hanlf21773f2015-10-16 23:02:31 +0200151 <include>**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +0200152 </includes>
153 </configuration>
154 </plugin>
155 <plugin>
156 <artifactId>maven-shade-plugin</artifactId>
157 <version>2.1</version>
158 <executions>
159 <!-- option 1 -->
160 <execution>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200161 <id>full</id>
162 <phase>package</phase>
163 <goals>
164 <goal>shade</goal>
165 </goals>
166 <configuration>
Michael Hanlca740d72015-06-16 10:04:58 +0200167 <transformers>
168 <transformer
169 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
170 <mainClass>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200171 de.ids_mannheim.korap.web.KustvaktServer
Michael Hanlca740d72015-06-16 10:04:58 +0200172 </mainClass>
173 </transformer>
174 <transformer
175 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
176 <resource>META-INF/spring.handlers
177 </resource>
178 </transformer>
179 <transformer
180 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
181 <resource>META-INF/spring.schemas
182 </resource>
183 </transformer>
184 </transformers>
185 <!-- Additional configuration. -->
186 <!-- apparently there is a securityexception -->
187 <filters>
188 <filter>
189 <artifact>*:*</artifact>
190 <excludes>
191 <exclude>META-INF/*.SF</exclude>
192 <exclude>META-INF/*.DSA
193 </exclude>
194 <exclude>META-INF/*.RSA
195 </exclude>
196 </excludes>
197 </filter>
198 </filters>
199 </configuration>
200 </execution>
201 </executions>
202 </plugin>
203 </plugins>
204 </build>
205 <repositories>
206 <repository>
207 <id>codehaus-release-repo</id>
208 <name>Codehaus Release Repo</name>
209 <url>http://repository.codehaus.org</url>
210 </repository>
211 <repository>
212 <id>central</id>
213 <url>http://repo1.maven.org/maven2/</url>
214 </repository>
215 <repository>
216 <id>sonatype</id>
217 <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
218 <snapshots/>
219 </repository>
220 </repositories>
221 <dependencies>
222 <dependency>
223 <groupId>com.sun.jersey</groupId>
224 <artifactId>jersey-bundle</artifactId>
225 <version>1.8</version>
226 </dependency>
227 <dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200228 <groupId>com.sun.jersey.jersey-test-framework</groupId>
229 <artifactId>jersey-test-framework-core</artifactId>
230 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200231 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200232 </dependency>
233 <dependency>
234 <groupId>com.sun.jersey.jersey-test-framework</groupId>
235 <artifactId>jersey-test-framework-grizzly</artifactId>
236 <version>1.19</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200237 <scope>test</scope>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200238 </dependency>
239 <dependency>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200240 <groupId>org.slf4j</groupId>
241 <artifactId>slf4j-api</artifactId>
242 <version>1.7.5</version>
243 </dependency>
244 <dependency>
245 <groupId>org.slf4j</groupId>
246 <artifactId>slf4j-log4j12</artifactId>
247 <version>1.7.5</version>
248 </dependency>
249 <dependency>
250 <groupId>log4j</groupId>
251 <artifactId>log4j</artifactId>
252 <version>1.2.17</version>
253 </dependency>
254 <dependency>
255 <groupId>log4j</groupId>
256 <artifactId>apache-log4j-extras</artifactId>
257 <version>1.2.17</version>
258 </dependency>
259 <dependency>
260 <groupId>junit</groupId>
261 <artifactId>junit</artifactId>
262 <version>4.11</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200263 <scope>test</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200264 </dependency>
265 <dependency>
266 <groupId>org.projectlombok</groupId>
267 <artifactId>lombok</artifactId>
Michael Hanlf21773f2015-10-16 23:02:31 +0200268 <version>1.16.6</version>
Michael Hanlc8729b92015-09-02 12:37:36 +0200269 <scope>provided</scope>
Michael Hanlbadd79c2015-06-19 07:41:03 +0200270 </dependency>
271 <dependency>
272 <groupId>joda-time</groupId>
273 <artifactId>joda-time</artifactId>
274 <version>2.2</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200275 </dependency>
276 <dependency>
Michael Hanlcafa03e2015-06-26 17:01:16 +0200277 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +0200278 <artifactId>Koral</artifactId>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200279 <version>0.21</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200280 <exclusions>
281 <exclusion>
282 <groupId>org.eclipse.jetty</groupId>
283 <artifactId>jetty-servlet</artifactId>
284 </exclusion>
285 </exclusions>
286 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200287 <!--
288 <dependency>
289 <groupId>com.sun.jersey</groupId>
290 <artifactId>jersey-grizzly2</artifactId>
291 <version>1.8</version>
292 </dependency>
293 <dependency>
294 <groupId>com.sun.grizzly</groupId>
295 <artifactId>grizzly-servlet-webserver</artifactId>
296 <version>1.9.18-i</version>
297 </dependency>
298 -->
Michael Hanlc8729b92015-09-02 12:37:36 +0200299
Michael Hanlf21773f2015-10-16 23:02:31 +0200300 <dependency>
301 <groupId>org.xerial</groupId>
302 <artifactId>sqlite-jdbc</artifactId>
303 <version>3.8.10.1</version>
304 </dependency>
305
306 <dependency>
307 <groupId>org.apache.commons</groupId>
308 <artifactId>commons-dbcp2</artifactId>
309 <version>2.1.1</version>
310 </dependency>
311
312 <dependency>
313 <groupId>org.owasp.esapi</groupId>
314 <artifactId>esapi</artifactId>
315 <version>2.1.0</version>
316 </dependency>
317
318 <dependency>
319 <groupId>org.mindrot</groupId>
320 <artifactId>jbcrypt</artifactId>
321 <version>0.3m</version>
322 </dependency>
323
Michael Hanlca740d72015-06-16 10:04:58 +0200324 <dependency>
325 <groupId>com.nimbusds</groupId>
326 <artifactId>nimbus-jose-jwt</artifactId>
327 <version>2.10.1</version>
328 </dependency>
329
330 <dependency>
331 <groupId>de.ids_mannheim.korap</groupId>
332 <artifactId>Krill</artifactId>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200333 <version>0.53</version>
Michael Hanlca740d72015-06-16 10:04:58 +0200334 <exclusions>
335 <exclusion>
336 <groupId>org.xerial</groupId>
337 <artifactId>sqlite-jdbc</artifactId>
338 </exclusion>
339 </exclusions>
340 </dependency>
341 <dependency>
342 <groupId>org.reflections</groupId>
343 <artifactId>reflections</artifactId>
344 <version>0.9.9-RC1</version>
345 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200346 <!-- deprecated? -->
Michael Hanlca740d72015-06-16 10:04:58 +0200347 <dependency>
348 <groupId>com.restfuse</groupId>
349 <artifactId>com.eclipsesource.restfuse</artifactId>
350 <version>1.0.0</version>
351 <scope>provided</scope>
352 </dependency>
Michael Hanl1e18cb42015-08-06 20:57:35 +0200353 <!-- deprecated -->
354 <!--<dependency>-->
355 <!--<groupId>com.jayway.restassured</groupId>-->
356 <!--<artifactId>rest-assured</artifactId>-->
357 <!--<version>2.4.0</version>-->
358 <!--<scope>provided</scope>-->
359 <!--</dependency>-->
Michael Hanlbadd79c2015-06-19 07:41:03 +0200360 <dependency>
361 <groupId>org.springframework</groupId>
362 <artifactId>spring-core</artifactId>
363 <version>4.0.5.RELEASE</version>
364 </dependency>
365 <dependency>
366 <groupId>org.springframework</groupId>
367 <artifactId>spring-context</artifactId>
368 <version>4.0.5.RELEASE</version>
369 </dependency>
370 <dependency>
371 <groupId>org.springframework</groupId>
372 <artifactId>spring-context-support</artifactId>
373 <version>4.0.5.RELEASE</version>
374 </dependency>
375
376 <!-- apparently this order prevents the spring schemas from being overriden in META-INF/spring.schemas, thus must stay like this
377 -->
378 <dependency>
379 <groupId>org.springframework</groupId>
380 <artifactId>spring-aop</artifactId>
381 <version>4.0.5.RELEASE</version>
382 </dependency>
383 <dependency>
384 <groupId>org.springframework</groupId>
385 <artifactId>spring-aspects</artifactId>
386 <version>4.0.5.RELEASE</version>
387 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200388
389 <!-- copied from extension -->
390 <dependency>
391 <groupId>org.springframework</groupId>
392 <artifactId>spring-jdbc</artifactId>
393 <version>4.1.6.RELEASE</version>
394 </dependency>
395 <dependency>
396 <groupId>org.springframework</groupId>
397 <artifactId>spring-tx</artifactId>
398 <version>4.1.6.RELEASE</version>
399 </dependency>
400 <dependency>
401 <groupId>org.flywaydb</groupId>
402 <artifactId>flyway-core</artifactId>
403 <version>3.2.1</version>
404 </dependency>
405
406 <dependency>
407 <groupId>net.sf.ehcache</groupId>
408 <artifactId>ehcache-core</artifactId>
409 <version>2.6.5</version>
410 </dependency>
411
412 <dependency>
413 <groupId>org.apache.oltu.oauth2</groupId>
414 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
415 <version>1.0.0</version>
416 </dependency>
417
418 <!-- end copy -->
419
Michael Hanlbadd79c2015-06-19 07:41:03 +0200420 <dependency>
421 <groupId>commons-collections</groupId>
422 <artifactId>commons-collections</artifactId>
423 <version>3.2.1</version>
424 </dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200425 <dependency>
426 <groupId>org.eclipse.jetty</groupId>
427 <artifactId>jetty-server</artifactId>
428 <version>8.1.8.v20121106</version>
429 </dependency>
430 <dependency>
431 <groupId>org.eclipse.jetty</groupId>
432 <artifactId>jetty-servlet</artifactId>
433 <version>8.1.8.v20121106</version>
434 </dependency>
Michael Hanl9f8d90c2015-09-14 16:13:54 +0200435
Michael Hanlbadd79c2015-06-19 07:41:03 +0200436 <!--
437 not part of public release
438 <dependency>
439 <groupId>KorAP-graphDB</groupId>
440 <artifactId>KorAP-graphDB</artifactId>
441 <version>1.0-SNAPSHOT</version>
442 <exclusions>
443 <exclusion>
444 <groupId>org.antlr</groupId>
445 <artifactId>antlr4-runtime</artifactId>
446 </exclusion>
447 <exclusion>
448 <groupId>org.glassfish.jersey.core</groupId>
449 <artifactId>jersey-client</artifactId>
450 </exclusion>
451 <exclusion>
452 <groupId>org.glassfish.jersey.containers</groupId>
453 <artifactId>jersey-container-grizzly2-http</artifactId>
454 </exclusion>
455 <exclusion>
456 <groupId>org.glassfish.jersey.core</groupId>
457 <artifactId>jersey-common</artifactId>
458 </exclusion>
459 <exclusion>
460 <groupId>org.glassfish.jersey.core</groupId>
461 <artifactId>jersey-server</artifactId>
462 </exclusion>
463 </exclusions>
464 </dependency>
465 -->
Michael Hanlca740d72015-06-16 10:04:58 +0200466 </dependencies>
467
468</project>