blob: 8cc045dcd8732d3d864ed737de8c91c5393c5565 [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
Akron932dd592021-07-27 12:52:46 +0200209 <!-- Some language extensions like StringUtil, IOUtils ... -->
210 <dependency>
211 <groupId>org.apache.commons</groupId>
212 <artifactId>commons-lang3</artifactId>
213 <version>3.12.0</version>
214 </dependency>
215
Eliza Margarethaff416632016-11-03 15:08:07 +0100216 <dependency>
217 <groupId>commons-cli</groupId>
218 <artifactId>commons-cli</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100219 <version>1.4</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100220 </dependency>
margarethac20a9212018-08-21 14:32:09 +0200221 <dependency>
222 <groupId>commons-io</groupId>
223 <artifactId>commons-io</artifactId>
Akron92798062021-07-27 11:58:21 +0200224 <version>2.11.0</version>
margarethac20a9212018-08-21 14:32:09 +0200225 </dependency>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100226
227 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/cobertura-maven-plugin -->
228 <dependency>
229 <groupId>org.codehaus.mojo</groupId>
230 <artifactId>cobertura-maven-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200231 <version>${cobertura.version}</version>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100232 <scope>test</scope>
233 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200234 </dependencies>
Eliza Margarethaff416632016-11-03 15:08:07 +0100235
236 <build>
237 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
238 <outputDirectory>${basedir}/bin</outputDirectory>
239 <plugins>
240 <plugin>
241 <artifactId>maven-compiler-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100242 <version>3.8.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100243 <inherited>true</inherited>
244 <configuration>
245 <showWarnings>true</showWarnings>
margaretha1f2791d2019-11-07 15:41:40 +0100246 <source>${java.version}</source>
247 <target>${java.version}</target>
Eliza Margarethaff416632016-11-03 15:08:07 +0100248 </configuration>
249 </plugin>
250
251 <plugin>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-shade-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200254 <version>3.2.4</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100255 <executions>
256 <execution>
257 <id>indexer</id>
258 <phase>package</phase>
259 <goals>
260 <goal>shade</goal>
261 </goals>
262 <configuration>
263 <transformers>
264 <transformer
265 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
266 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
267 </transformer>
268 </transformers>
269 <finalName>${project.artifactId}-Indexer</finalName>
270 </configuration>
271 </execution>
272 <execution>
273 <id>server</id>
274 <phase>package</phase>
275 <goals>
276 <goal>shade</goal>
277 </goals>
278 <configuration>
279 <transformers>
280 <transformer
281 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
282 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
283 </transformer>
284 <transformer
285 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
286 <resource>krill.properties</resource>
287 </transformer>
288 </transformers>
289 <finalName>${project.name}-Server</finalName>
290 </configuration>
291 </execution>
292 </executions>
293 </plugin>
294
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-surefire-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100298 <version>2.22.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100299 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100300 <useSystemClassLoader>false</useSystemClassLoader>
margarethafd469f32019-05-02 12:35:08 +0200301 <argLine>-Xmx512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100302 <excludes>
303 <exclude>**/benchmark/*</exclude>
304 <exclude>**/TestWPDIndex.java</exclude>
305 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200306 <exclude>**/TestSampleIndex.java</exclude>
Akron672f98c2019-11-05 19:20:45 +0100307 <exclude>**/TestParallelIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100308 </excludes>
309 </configuration>
310 </plugin>
311
312 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
313 <plugin>
314 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
315 <artifactId>maven-java-formatter-plugin</artifactId>
316 <version>0.4</version>
317 <configuration>
318 <configFile>${project.basedir}/Format.xml</configFile>
319 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
margaretha1f2791d2019-11-07 15:41:40 +0100320 <compilerSource>${java.version}</compilerSource>
321 <compilerCompliance>${java.version}</compilerCompliance>
322 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
Eliza Margarethaff416632016-11-03 15:08:07 +0100323 </configuration>
324 </plugin>
325
326 <plugin>
327 <groupId>org.codehaus.mojo</groupId>
328 <artifactId>exec-maven-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200329 <version>3.0.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100330 <executions>
331 <execution>
332 <goals>
333 <goal>java</goal>
334 </goals>
335 </execution>
336 </executions>
337 <configuration>
338 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
339 </configuration>
340 </plugin>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100341
342 <plugin>
343 <groupId>org.codehaus.mojo</groupId>
344 <artifactId>cobertura-maven-plugin</artifactId>
Akron92798062021-07-27 11:58:21 +0200345 <version>${cobertura.version}</version>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100346 <configuration>
347 <formats>
348 <format>html</format>
349 <format>xml</format>
350 </formats>
351 <check>
352 <branchRate>70</branchRate>
353 <lineRate>70</lineRate>
354 <haltOnFailure>true</haltOnFailure>
355 <totalBranchRate>70</totalBranchRate>
356 <totalLineRate>70</totalLineRate>
357 <packageLineRate>70</packageLineRate>
358 <packageBranchRate>70</packageBranchRate>
359 </check>
360 </configuration>
361 <executions>
362 <execution>
363 <goals>
364 <goal>clean</goal>
365 </goals>
366 </execution>
367 </executions>
368 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100369 </plugins>
370
371 <resources>
372 <resource>
373 <directory>src/main/resources</directory>
374 <filtering>true</filtering>
375 <includes>
376 <include>krill.info</include>
377 </includes>
378 </resource>
379 <resource>
380 <directory>src/main/resources</directory>
381 <filtering>false</filtering>
382 <excludes>
383 <exclude>krill.info</exclude>
384 </excludes>
385 </resource>
386 </resources>
387
388 <testResources>
389 <testResource>
390 <directory>src/test/resources</directory>
391 <filtering>true</filtering>
392 <includes>
393 <include>krill.properties</include>
394 </includes>
395 </testResource>
396 <testResource>
397 <directory>src/test/resources</directory>
398 <filtering>false</filtering>
399 <excludes>
400 <exclude>krill.properties</exclude>
401 </excludes>
402 </testResource>
403 </testResources>
404 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000405</project>