blob: a063442bd9cd4d28de5ef2c28ee070627f966177 [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>
220 <version>2.6</version>
221 </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>
margarethacab655c2019-02-26 11:31:29 +0100241 <argLine>-Xms512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100242 <showWarnings>true</showWarnings>
margaretha1f2791d2019-11-07 15:41:40 +0100243 <source>${java.version}</source>
244 <target>${java.version}</target>
Eliza Margarethaff416632016-11-03 15:08:07 +0100245 </configuration>
246 </plugin>
247
248 <plugin>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-shade-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100251 <version>3.2.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100252 <executions>
253 <execution>
254 <id>indexer</id>
255 <phase>package</phase>
256 <goals>
257 <goal>shade</goal>
258 </goals>
259 <configuration>
260 <transformers>
261 <transformer
262 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
263 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
264 </transformer>
265 </transformers>
266 <finalName>${project.artifactId}-Indexer</finalName>
267 </configuration>
268 </execution>
269 <execution>
270 <id>server</id>
271 <phase>package</phase>
272 <goals>
273 <goal>shade</goal>
274 </goals>
275 <configuration>
276 <transformers>
277 <transformer
278 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
279 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
280 </transformer>
281 <transformer
282 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
283 <resource>krill.properties</resource>
284 </transformer>
285 </transformers>
286 <finalName>${project.name}-Server</finalName>
287 </configuration>
288 </execution>
289 </executions>
290 </plugin>
291
292 <plugin>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-surefire-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100295 <version>2.22.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100296 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100297 <useSystemClassLoader>false</useSystemClassLoader>
margarethafd469f32019-05-02 12:35:08 +0200298 <argLine>-Xmx512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100299 <excludes>
300 <exclude>**/benchmark/*</exclude>
301 <exclude>**/TestWPDIndex.java</exclude>
302 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200303 <exclude>**/TestSampleIndex.java</exclude>
Akron672f98c2019-11-05 19:20:45 +0100304 <exclude>**/TestParallelIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100305 </excludes>
306 </configuration>
307 </plugin>
308
309 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
310 <plugin>
311 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
312 <artifactId>maven-java-formatter-plugin</artifactId>
313 <version>0.4</version>
314 <configuration>
315 <configFile>${project.basedir}/Format.xml</configFile>
316 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
margaretha1f2791d2019-11-07 15:41:40 +0100317 <compilerSource>${java.version}</compilerSource>
318 <compilerCompliance>${java.version}</compilerCompliance>
319 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
Eliza Margarethaff416632016-11-03 15:08:07 +0100320 </configuration>
321 </plugin>
322
323 <plugin>
324 <groupId>org.codehaus.mojo</groupId>
325 <artifactId>exec-maven-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100326 <version>1.6.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100327 <executions>
328 <execution>
329 <goals>
330 <goal>java</goal>
331 </goals>
332 </execution>
333 </executions>
334 <configuration>
335 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
336 </configuration>
337 </plugin>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100338
339 <plugin>
340 <groupId>org.codehaus.mojo</groupId>
341 <artifactId>cobertura-maven-plugin</artifactId>
342 <version>2.7</version>
343 <configuration>
344 <formats>
345 <format>html</format>
346 <format>xml</format>
347 </formats>
348 <check>
349 <branchRate>70</branchRate>
350 <lineRate>70</lineRate>
351 <haltOnFailure>true</haltOnFailure>
352 <totalBranchRate>70</totalBranchRate>
353 <totalLineRate>70</totalLineRate>
354 <packageLineRate>70</packageLineRate>
355 <packageBranchRate>70</packageBranchRate>
356 </check>
357 </configuration>
358 <executions>
359 <execution>
360 <goals>
361 <goal>clean</goal>
362 </goals>
363 </execution>
364 </executions>
365 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100366 </plugins>
367
368 <resources>
369 <resource>
370 <directory>src/main/resources</directory>
371 <filtering>true</filtering>
372 <includes>
373 <include>krill.info</include>
374 </includes>
375 </resource>
376 <resource>
377 <directory>src/main/resources</directory>
378 <filtering>false</filtering>
379 <excludes>
380 <exclude>krill.info</exclude>
381 </excludes>
382 </resource>
383 </resources>
384
385 <testResources>
386 <testResource>
387 <directory>src/test/resources</directory>
388 <filtering>true</filtering>
389 <includes>
390 <include>krill.properties</include>
391 </includes>
392 </testResource>
393 <testResource>
394 <directory>src/test/resources</directory>
395 <filtering>false</filtering>
396 <excludes>
397 <exclude>krill.properties</exclude>
398 </excludes>
399 </testResource>
400 </testResources>
401 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000402</project>