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