blob: 76b1a2d0cdcba7aed060f0f41331a7923763f388 [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>
Akroncef695a2020-10-27 11:36:35 +010038 <version>0.59.3</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>
46 <url>http://www.ids-mannheim.de/</url>
47 </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>
53 <url>http://nils-diewald.de</url>
54 </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>
Eliza Margarethaff416632016-11-03 15:08:07 +010063 <jersey.version>2.15</jersey.version>
Akron77903842018-10-22 13:05:23 +020064 <jackson.version>[2.9.5,)</jackson.version>
Eliza Margarethaff416632016-11-03 15:08:07 +010065 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
66 </properties>
Nils Diewald32030a62014-09-03 20:16:50 +000067
Eliza Margarethaff416632016-11-03 15:08:07 +010068 <dependencyManagement>
69 <dependencies>
70 <dependency>
71 <groupId>org.glassfish.jersey</groupId>
72 <artifactId>jersey-bom</artifactId>
73 <version>${jersey.version}</version>
74 <type>pom</type>
75 <scope>import</scope>
76 </dependency>
77 </dependencies>
78 </dependencyManagement>
Nils Diewald32030a62014-09-03 20:16:50 +000079
Eliza Margarethaff416632016-11-03 15:08:07 +010080 <dependencies>
81 <!-- junit dependency -->
82 <dependency>
83 <groupId>junit</groupId>
84 <artifactId>junit</artifactId>
Akroncef695a2020-10-27 11:36:35 +010085 <version>4.13.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010086 <scope>test</scope>
87 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000088
Eliza Margarethaff416632016-11-03 15:08:07 +010089 <!-- log4j dependency -->
90 <dependency>
Akronab2b3a52018-01-11 16:10:46 +010091 <groupId>org.apache.logging.log4j</groupId>
92 <artifactId>log4j-api</artifactId>
dependabot[bot]f5f73202020-07-01 18:39:20 +000093 <version>2.13.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010094 </dependency>
Akronab2b3a52018-01-11 16:10:46 +010095 <dependency>
96 <groupId>org.apache.logging.log4j</groupId>
97 <artifactId>log4j-core</artifactId>
dependabot[bot]f5f73202020-07-01 18:39:20 +000098 <version>2.13.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010099 </dependency>
Akronab2b3a52018-01-11 16:10:46 +0100100 <dependency>
101 <groupId>org.apache.logging.log4j</groupId>
102 <artifactId>log4j-slf4j-impl</artifactId>
dependabot[bot]f5f73202020-07-01 18:39:20 +0000103 <version>2.13.2</version>
Akronab2b3a52018-01-11 16:10:46 +0100104 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100105 <dependency>
106 <groupId>org.slf4j</groupId>
107 <artifactId>jul-to-slf4j</artifactId>
dependabot[bot]f5f73202020-07-01 18:39:20 +0000108 <version>1.7.30</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100109 </dependency>
margaretha8efa3752018-07-24 17:46:43 +0200110
111 <dependency>
112 <groupId>net.sf.ehcache</groupId>
113 <artifactId>ehcache</artifactId>
114 <version>2.10.5</version>
115 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000116
Eliza Margarethaff416632016-11-03 15:08:07 +0100117 <!-- SQLite for database connection tests -->
118 <dependency>
119 <groupId>org.xerial</groupId>
120 <artifactId>sqlite-jdbc</artifactId>
121 <version>3.7.2</version>
122 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000123
Eliza Margarethaff416632016-11-03 15:08:07 +0100124 <!-- Database Connection Pool Manager -->
125 <dependency>
126 <groupId>c3p0</groupId>
127 <artifactId>c3p0</artifactId>
128 <version>0.9.1.2</version>
129 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000130
Eliza Margarethaff416632016-11-03 15:08:07 +0100131 <!-- Lucene core dependency -->
132 <dependency>
133 <artifactId>lucene-core</artifactId>
134 <groupId>org.apache.lucene</groupId>
135 <type>jar</type>
136 <version>5.0.0</version>
137 </dependency>
Nils Diewaldaee45452013-11-27 22:35:55 +0000138
Eliza Margarethaff416632016-11-03 15:08:07 +0100139 <!-- Lucene queryparser dependency -->
140 <dependency>
141 <artifactId>lucene-queryparser</artifactId>
142 <groupId>org.apache.lucene</groupId>
143 <type>jar</type>
144 <version>5.0.0</version>
145 </dependency>
Akron09ae3732015-08-13 20:56:20 +0200146
Eliza Margarethaff416632016-11-03 15:08:07 +0100147 <!-- Lucene analyzers dependency -->
148 <dependency>
149 <artifactId>lucene-analyzers-common</artifactId>
150 <groupId>org.apache.lucene</groupId>
151 <type>jar</type>
152 <version>5.0.0</version>
153 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000154
Eliza Margarethaff416632016-11-03 15:08:07 +0100155 <dependency>
156 <groupId>org.hamcrest</groupId>
157 <artifactId>hamcrest-core</artifactId>
158 <version>1.3</version>
159 </dependency>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000160
Eliza Margarethaff416632016-11-03 15:08:07 +0100161 <!-- JCache -->
162 <dependency>
163 <groupId>net.sf.jsr107cache</groupId>
164 <artifactId>jsr107cache</artifactId>
165 <version>1.0</version>
166 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000167
Eliza Margarethaff416632016-11-03 15:08:07 +0100168 <!-- Jersey -->
169 <dependency>
170 <groupId>org.glassfish.jersey.containers</groupId>
171 <artifactId>jersey-container-grizzly2-http</artifactId>
172 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000173
Eliza Margarethaff416632016-11-03 15:08:07 +0100174 <!-- JSON support in Jersey -->
175 <dependency>
176 <groupId>com.fasterxml.jackson.jaxrs</groupId>
177 <artifactId>jackson-jaxrs-json-provider</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100178 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100179 </dependency>
180
181 <!-- JSON support using Jackson -->
182 <!-- see https://github.com/FasterXML/jackson-core -->
183 <!-- https://github.com/FasterXML/jackson-databind -->
184 <dependency>
185 <groupId>com.fasterxml.jackson.core</groupId>
186 <artifactId>jackson-databind</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100187 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100188 </dependency>
189 <dependency>
190 <groupId>com.fasterxml.jackson.core</groupId>
191 <artifactId>jackson-annotations</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100192 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100193 </dependency>
194 <dependency>
195 <groupId>com.fasterxml.jackson.core</groupId>
196 <artifactId>jackson-core</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100197 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100198 </dependency>
199
200 <!-- JSON-LD support -->
201 <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId>
202 <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental
203 annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId>
204 <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> -->
205
Akron22d319e2018-04-01 17:13:49 +0200206 <!-- Some language extensions like StringUtil, IOUtils ... -->
Eliza Margarethaff416632016-11-03 15:08:07 +0100207 <dependency>
208 <groupId>commons-lang</groupId>
209 <artifactId>commons-lang</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100210 <version>2.6</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100211 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100212 <dependency>
213 <groupId>commons-cli</groupId>
214 <artifactId>commons-cli</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100215 <version>1.4</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100216 </dependency>
margarethac20a9212018-08-21 14:32:09 +0200217 <dependency>
218 <groupId>commons-io</groupId>
219 <artifactId>commons-io</artifactId>
dependabot[bot]6489b192021-04-26 18:27:36 +0000220 <version>2.7</version>
margarethac20a9212018-08-21 14:32:09 +0200221 </dependency>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100222
223 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/cobertura-maven-plugin -->
224 <dependency>
225 <groupId>org.codehaus.mojo</groupId>
226 <artifactId>cobertura-maven-plugin</artifactId>
227 <version>2.7</version>
228 <scope>test</scope>
229 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200230 </dependencies>
Eliza Margarethaff416632016-11-03 15:08:07 +0100231
232 <build>
233 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
234 <outputDirectory>${basedir}/bin</outputDirectory>
235 <plugins>
236 <plugin>
237 <artifactId>maven-compiler-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100238 <version>3.8.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100239 <inherited>true</inherited>
240 <configuration>
241 <showWarnings>true</showWarnings>
margaretha1f2791d2019-11-07 15:41:40 +0100242 <source>${java.version}</source>
243 <target>${java.version}</target>
Eliza Margarethaff416632016-11-03 15:08:07 +0100244 </configuration>
245 </plugin>
246
247 <plugin>
248 <groupId>org.apache.maven.plugins</groupId>
249 <artifactId>maven-shade-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100250 <version>3.2.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100251 <executions>
252 <execution>
253 <id>indexer</id>
254 <phase>package</phase>
255 <goals>
256 <goal>shade</goal>
257 </goals>
258 <configuration>
259 <transformers>
260 <transformer
261 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
262 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
263 </transformer>
264 </transformers>
265 <finalName>${project.artifactId}-Indexer</finalName>
266 </configuration>
267 </execution>
268 <execution>
269 <id>server</id>
270 <phase>package</phase>
271 <goals>
272 <goal>shade</goal>
273 </goals>
274 <configuration>
275 <transformers>
276 <transformer
277 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
278 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
279 </transformer>
280 <transformer
281 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
282 <resource>krill.properties</resource>
283 </transformer>
284 </transformers>
285 <finalName>${project.name}-Server</finalName>
286 </configuration>
287 </execution>
288 </executions>
289 </plugin>
290
291 <plugin>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-surefire-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100294 <version>2.22.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100295 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100296 <useSystemClassLoader>false</useSystemClassLoader>
margarethafd469f32019-05-02 12:35:08 +0200297 <argLine>-Xmx512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100298 <excludes>
299 <exclude>**/benchmark/*</exclude>
300 <exclude>**/TestWPDIndex.java</exclude>
301 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200302 <exclude>**/TestSampleIndex.java</exclude>
Akron672f98c2019-11-05 19:20:45 +0100303 <exclude>**/TestParallelIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100304 </excludes>
305 </configuration>
306 </plugin>
307
308 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
309 <plugin>
310 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
311 <artifactId>maven-java-formatter-plugin</artifactId>
312 <version>0.4</version>
313 <configuration>
314 <configFile>${project.basedir}/Format.xml</configFile>
315 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
margaretha1f2791d2019-11-07 15:41:40 +0100316 <compilerSource>${java.version}</compilerSource>
317 <compilerCompliance>${java.version}</compilerCompliance>
318 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
Eliza Margarethaff416632016-11-03 15:08:07 +0100319 </configuration>
320 </plugin>
321
322 <plugin>
323 <groupId>org.codehaus.mojo</groupId>
324 <artifactId>exec-maven-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100325 <version>1.6.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100326 <executions>
327 <execution>
328 <goals>
329 <goal>java</goal>
330 </goals>
331 </execution>
332 </executions>
333 <configuration>
334 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
335 </configuration>
336 </plugin>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100337
338 <plugin>
339 <groupId>org.codehaus.mojo</groupId>
340 <artifactId>cobertura-maven-plugin</artifactId>
341 <version>2.7</version>
342 <configuration>
343 <formats>
344 <format>html</format>
345 <format>xml</format>
346 </formats>
347 <check>
348 <branchRate>70</branchRate>
349 <lineRate>70</lineRate>
350 <haltOnFailure>true</haltOnFailure>
351 <totalBranchRate>70</totalBranchRate>
352 <totalLineRate>70</totalLineRate>
353 <packageLineRate>70</packageLineRate>
354 <packageBranchRate>70</packageBranchRate>
355 </check>
356 </configuration>
357 <executions>
358 <execution>
359 <goals>
360 <goal>clean</goal>
361 </goals>
362 </execution>
363 </executions>
364 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100365 </plugins>
366
367 <resources>
368 <resource>
369 <directory>src/main/resources</directory>
370 <filtering>true</filtering>
371 <includes>
372 <include>krill.info</include>
373 </includes>
374 </resource>
375 <resource>
376 <directory>src/main/resources</directory>
377 <filtering>false</filtering>
378 <excludes>
379 <exclude>krill.info</exclude>
380 </excludes>
381 </resource>
382 </resources>
383
384 <testResources>
385 <testResource>
386 <directory>src/test/resources</directory>
387 <filtering>true</filtering>
388 <includes>
389 <include>krill.properties</include>
390 </includes>
391 </testResource>
392 <testResource>
393 <directory>src/test/resources</directory>
394 <filtering>false</filtering>
395 <excludes>
396 <exclude>krill.properties</exclude>
397 </excludes>
398 </testResource>
399 </testResources>
400 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000401</project>