blob: 0cc151348244a381e6dda87a18563c46573725c2 [file] [log] [blame]
Nils Diewaldf399a672013-11-18 17:55:22 +00001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Eliza Margarethaff416632016-11-03 15:08:07 +01002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Nils Diewald97b66382014-02-11 00:32:23 +00004
Eliza Margarethaff416632016-11-03 15:08:07 +01005 <!-- ** Server
6
7 # Start the server with
8
9 $ mvn compile exec:java
10
11 # Or after packaging
12
13 $ mvn clean package
Nils Diewalde26f03f2014-06-04 17:48:53 +000014
Eliza Margarethaff416632016-11-03 15:08:07 +010015 # with
16
17 $ java -jar target/Krill-Server.jar
18
19 ** Formatter
20
21 # Format the code with $ mvn java-formatter:format
22
23 ** Indexer
24 # after packaging (see above)
25
26 $ java -jar target/Krill-Indexer.jar -c [configuration file]
27 -i [input directories] -o [output directory]
28
29 for example:
30
31 $ java -jar target/Krill-Indexer.jar -c src/test/resources/krill.properties
32 -i src/test/resources/bzk -o index/
33
34 -->
Nils Diewaldf399a672013-11-18 17:55:22 +000035
Eliza Margarethaff416632016-11-03 15:08:07 +010036 <groupId>de.ids_mannheim.korap</groupId>
37 <artifactId>Krill</artifactId>
Akron92798062021-07-27 11:58:21 +020038 <version>0.59.4</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010039 <packaging>jar</packaging>
Nils Diewaldf399a672013-11-18 17:55:22 +000040
Eliza Margarethaff416632016-11-03 15:08:07 +010041 <name>Krill</name>
Akron59caed42020-03-04 07:32:25 +010042 <url>https://korap.ids-mannheim.de/</url>
Nils Diewaldf399a672013-11-18 17:55:22 +000043
Eliza Margarethaff416632016-11-03 15:08:07 +010044 <organization>
45 <name>IDS Mannheim</name>
Akron92798062021-07-27 11:58:21 +020046 <url>https://www.ids-mannheim.de/</url>
Eliza Margarethaff416632016-11-03 15:08:07 +010047 </organization>
Nils Diewald8a1fc012014-02-19 15:23:33 +000048
Eliza Margarethaff416632016-11-03 15:08:07 +010049 <developers>
50 <developer>
51 <name>Nils Diewald</name>
52 <email>diewald@ids-mannheim.de</email>
Akron92798062021-07-27 11:58:21 +020053 <url>https://www.nils-diewald.de</url>
Eliza Margarethaff416632016-11-03 15:08:07 +010054 </developer>
55 <developer>
56 <name>Eliza Margaretha</name>
57 <email>margaretha@ids-mannheim.de</email>
58 </developer>
59 </developers>
Nils Diewaldf399a672013-11-18 17:55:22 +000060
Eliza Margarethaff416632016-11-03 15:08:07 +010061 <properties>
margaretha1f2791d2019-11-07 15:41:40 +010062 <java.version>1.8</java.version>
Akron92798062021-07-27 11:58:21 +020063 <jersey.version>2.34</jersey.version>
64 <jackson.version>2.12.4</jackson.version>
65 <log4j.version>2.14.1</log4j.version>
66 <lucene.version>5.0.0</lucene.version>
67 <cobertura.version>2.7</cobertura.version>
Eliza Margarethaff416632016-11-03 15:08:07 +010068 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
69 </properties>
Nils Diewald32030a62014-09-03 20:16:50 +000070
Eliza Margarethaff416632016-11-03 15:08:07 +010071 <dependencyManagement>
72 <dependencies>
73 <dependency>
74 <groupId>org.glassfish.jersey</groupId>
75 <artifactId>jersey-bom</artifactId>
76 <version>${jersey.version}</version>
77 <type>pom</type>
78 <scope>import</scope>
79 </dependency>
80 </dependencies>
81 </dependencyManagement>
Nils Diewald32030a62014-09-03 20:16:50 +000082
Eliza Margarethaff416632016-11-03 15:08:07 +010083 <dependencies>
84 <!-- junit dependency -->
85 <dependency>
86 <groupId>junit</groupId>
87 <artifactId>junit</artifactId>
Akron92798062021-07-27 11:58:21 +020088 <version>4.13.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010089 <scope>test</scope>
90 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000091
Eliza Margarethaff416632016-11-03 15:08:07 +010092 <!-- log4j dependency -->
93 <dependency>
Akronab2b3a52018-01-11 16:10:46 +010094 <groupId>org.apache.logging.log4j</groupId>
95 <artifactId>log4j-api</artifactId>
Akron92798062021-07-27 11:58:21 +020096 <version>${log4j.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010097 </dependency>
Akronab2b3a52018-01-11 16:10:46 +010098 <dependency>
99 <groupId>org.apache.logging.log4j</groupId>
100 <artifactId>log4j-core</artifactId>
Akron92798062021-07-27 11:58:21 +0200101 <version>${log4j.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100102 </dependency>
Akronab2b3a52018-01-11 16:10:46 +0100103 <dependency>
104 <groupId>org.apache.logging.log4j</groupId>
105 <artifactId>log4j-slf4j-impl</artifactId>
Akron92798062021-07-27 11:58:21 +0200106 <version>${log4j.version}</version>
Akronab2b3a52018-01-11 16:10:46 +0100107 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100108 <dependency>
109 <groupId>org.slf4j</groupId>
110 <artifactId>jul-to-slf4j</artifactId>
Akron92798062021-07-27 11:58:21 +0200111 <version>1.7.32</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100112 </dependency>
margaretha8efa3752018-07-24 17:46:43 +0200113
114 <dependency>
115 <groupId>net.sf.ehcache</groupId>
116 <artifactId>ehcache</artifactId>
Akron92798062021-07-27 11:58:21 +0200117 <version>2.10.9.2</version>
margaretha8efa3752018-07-24 17:46:43 +0200118 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000119
Eliza Margarethaff416632016-11-03 15:08:07 +0100120 <!-- SQLite for database connection tests -->
121 <dependency>
122 <groupId>org.xerial</groupId>
123 <artifactId>sqlite-jdbc</artifactId>
Akron92798062021-07-27 11:58:21 +0200124 <version>3.36.0.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100125 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000126
Eliza Margarethaff416632016-11-03 15:08:07 +0100127 <!-- Database Connection Pool Manager -->
128 <dependency>
Akron92798062021-07-27 11:58:21 +0200129 <groupId>com.mchange</groupId>
Eliza Margarethaff416632016-11-03 15:08:07 +0100130 <artifactId>c3p0</artifactId>
Akron92798062021-07-27 11:58:21 +0200131 <version>0.9.5.5</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100132 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000133
Eliza Margarethaff416632016-11-03 15:08:07 +0100134 <!-- Lucene core dependency -->
135 <dependency>
136 <artifactId>lucene-core</artifactId>
137 <groupId>org.apache.lucene</groupId>
138 <type>jar</type>
Akron92798062021-07-27 11:58:21 +0200139 <version>${lucene.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100140 </dependency>
Nils Diewaldaee45452013-11-27 22:35:55 +0000141
Eliza Margarethaff416632016-11-03 15:08:07 +0100142 <!-- Lucene queryparser dependency -->
143 <dependency>
144 <artifactId>lucene-queryparser</artifactId>
145 <groupId>org.apache.lucene</groupId>
146 <type>jar</type>
Akron92798062021-07-27 11:58:21 +0200147 <version>${lucene.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100148 </dependency>
Akron09ae3732015-08-13 20:56:20 +0200149
Eliza Margarethaff416632016-11-03 15:08:07 +0100150 <!-- Lucene analyzers dependency -->
151 <dependency>
152 <artifactId>lucene-analyzers-common</artifactId>
153 <groupId>org.apache.lucene</groupId>
154 <type>jar</type>
Akron92798062021-07-27 11:58:21 +0200155 <version>${lucene.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100156 </dependency>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000157
Eliza Margarethaff416632016-11-03 15:08:07 +0100158 <!-- JCache -->
159 <dependency>
160 <groupId>net.sf.jsr107cache</groupId>
161 <artifactId>jsr107cache</artifactId>
Akron92798062021-07-27 11:58:21 +0200162 <version>1.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100163 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000164
Eliza Margarethaff416632016-11-03 15:08:07 +0100165 <!-- Jersey -->
166 <dependency>
167 <groupId>org.glassfish.jersey.containers</groupId>
168 <artifactId>jersey-container-grizzly2-http</artifactId>
169 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000170
Eliza Margarethaff416632016-11-03 15:08:07 +0100171 <!-- JSON support in Jersey -->
172 <dependency>
173 <groupId>com.fasterxml.jackson.jaxrs</groupId>
174 <artifactId>jackson-jaxrs-json-provider</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100175 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100176 </dependency>
177
Akron92798062021-07-27 11:58:21 +0200178 <dependency>
179 <groupId>org.glassfish.jersey.inject</groupId>
180 <artifactId>jersey-hk2</artifactId>
181 <version>${jersey.version}</version>
182 </dependency>
183
Eliza Margarethaff416632016-11-03 15:08:07 +0100184 <!-- JSON support using Jackson -->
185 <!-- see https://github.com/FasterXML/jackson-core -->
186 <!-- https://github.com/FasterXML/jackson-databind -->
187 <dependency>
188 <groupId>com.fasterxml.jackson.core</groupId>
189 <artifactId>jackson-databind</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100190 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100191 </dependency>
192 <dependency>
193 <groupId>com.fasterxml.jackson.core</groupId>
194 <artifactId>jackson-annotations</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100195 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100196 </dependency>
197 <dependency>
198 <groupId>com.fasterxml.jackson.core</groupId>
199 <artifactId>jackson-core</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100200 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100201 </dependency>
202
203 <!-- JSON-LD support -->
204 <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId>
205 <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental
206 annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId>
207 <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> -->
208
Akron22d319e2018-04-01 17:13:49 +0200209 <!-- Some language extensions like StringUtil, IOUtils ... -->
Eliza Margarethaff416632016-11-03 15:08:07 +0100210 <dependency>
211 <groupId>commons-lang</groupId>
212 <artifactId>commons-lang</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100213 <version>2.6</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100214 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100215 <dependency>
216 <groupId>commons-cli</groupId>
217 <artifactId>commons-cli</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100218 <version>1.4</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100219 </dependency>
margarethac20a9212018-08-21 14:32:09 +0200220 <dependency>
221 <groupId>commons-io</groupId>
222 <artifactId>commons-io</artifactId>
Akron92798062021-07-27 11:58:21 +0200223 <version>2.11.0</version>
margarethac20a9212018-08-21 14:32:09 +0200224 </dependency>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100225
226 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/cobertura-maven-plugin -->
227 <dependency>
228 <groupId>org.codehaus.mojo</groupId>
229 <artifactId>cobertura-maven-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200230 <version>${cobertura.version}</version>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100231 <scope>test</scope>
232 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200233 </dependencies>
Eliza Margarethaff416632016-11-03 15:08:07 +0100234
235 <build>
236 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
237 <outputDirectory>${basedir}/bin</outputDirectory>
238 <plugins>
239 <plugin>
240 <artifactId>maven-compiler-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100241 <version>3.8.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100242 <inherited>true</inherited>
243 <configuration>
244 <showWarnings>true</showWarnings>
margaretha1f2791d2019-11-07 15:41:40 +0100245 <source>${java.version}</source>
246 <target>${java.version}</target>
Eliza Margarethaff416632016-11-03 15:08:07 +0100247 </configuration>
248 </plugin>
249
250 <plugin>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-shade-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200253 <version>3.2.4</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100254 <executions>
255 <execution>
256 <id>indexer</id>
257 <phase>package</phase>
258 <goals>
259 <goal>shade</goal>
260 </goals>
261 <configuration>
262 <transformers>
263 <transformer
264 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
265 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
266 </transformer>
267 </transformers>
268 <finalName>${project.artifactId}-Indexer</finalName>
269 </configuration>
270 </execution>
271 <execution>
272 <id>server</id>
273 <phase>package</phase>
274 <goals>
275 <goal>shade</goal>
276 </goals>
277 <configuration>
278 <transformers>
279 <transformer
280 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
281 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
282 </transformer>
283 <transformer
284 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
285 <resource>krill.properties</resource>
286 </transformer>
287 </transformers>
288 <finalName>${project.name}-Server</finalName>
289 </configuration>
290 </execution>
291 </executions>
292 </plugin>
293
294 <plugin>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-surefire-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100297 <version>2.22.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100298 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100299 <useSystemClassLoader>false</useSystemClassLoader>
margarethafd469f32019-05-02 12:35:08 +0200300 <argLine>-Xmx512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100301 <excludes>
302 <exclude>**/benchmark/*</exclude>
303 <exclude>**/TestWPDIndex.java</exclude>
304 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200305 <exclude>**/TestSampleIndex.java</exclude>
Akron672f98c2019-11-05 19:20:45 +0100306 <exclude>**/TestParallelIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100307 </excludes>
308 </configuration>
309 </plugin>
310
311 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
312 <plugin>
313 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
314 <artifactId>maven-java-formatter-plugin</artifactId>
315 <version>0.4</version>
316 <configuration>
317 <configFile>${project.basedir}/Format.xml</configFile>
318 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
margaretha1f2791d2019-11-07 15:41:40 +0100319 <compilerSource>${java.version}</compilerSource>
320 <compilerCompliance>${java.version}</compilerCompliance>
321 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
Eliza Margarethaff416632016-11-03 15:08:07 +0100322 </configuration>
323 </plugin>
324
325 <plugin>
326 <groupId>org.codehaus.mojo</groupId>
327 <artifactId>exec-maven-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200328 <version>3.0.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100329 <executions>
330 <execution>
331 <goals>
332 <goal>java</goal>
333 </goals>
334 </execution>
335 </executions>
336 <configuration>
337 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
338 </configuration>
339 </plugin>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100340
341 <plugin>
342 <groupId>org.codehaus.mojo</groupId>
343 <artifactId>cobertura-maven-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200344 <version>${cobertura.version}</version>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100345 <configuration>
346 <formats>
347 <format>html</format>
348 <format>xml</format>
349 </formats>
350 <check>
351 <branchRate>70</branchRate>
352 <lineRate>70</lineRate>
353 <haltOnFailure>true</haltOnFailure>
354 <totalBranchRate>70</totalBranchRate>
355 <totalLineRate>70</totalLineRate>
356 <packageLineRate>70</packageLineRate>
357 <packageBranchRate>70</packageBranchRate>
358 </check>
359 </configuration>
360 <executions>
361 <execution>
362 <goals>
363 <goal>clean</goal>
364 </goals>
365 </execution>
366 </executions>
367 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100368 </plugins>
369
370 <resources>
371 <resource>
372 <directory>src/main/resources</directory>
373 <filtering>true</filtering>
374 <includes>
375 <include>krill.info</include>
376 </includes>
377 </resource>
378 <resource>
379 <directory>src/main/resources</directory>
380 <filtering>false</filtering>
381 <excludes>
382 <exclude>krill.info</exclude>
383 </excludes>
384 </resource>
385 </resources>
386
387 <testResources>
388 <testResource>
389 <directory>src/test/resources</directory>
390 <filtering>true</filtering>
391 <includes>
392 <include>krill.properties</include>
393 </includes>
394 </testResource>
395 <testResource>
396 <directory>src/test/resources</directory>
397 <filtering>false</filtering>
398 <excludes>
399 <exclude>krill.properties</exclude>
400 </excludes>
401 </testResource>
402 </testResources>
403 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000404</project>