blob: 231870ec2817018dd93a6bab75584a49fee5d43d [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"
Akrone1befe02021-07-27 13:34:51 +02002 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
Akrone1befe02021-07-27 13:34:51 +02005 <!-- ** Server
Eliza Margarethaff416632016-11-03 15:08:07 +01006
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
Akronc65c9432023-09-11 10:55:53 +020036 <groupId>de.ids-mannheim.korap.krill</groupId>
Akrone1befe02021-07-27 13:34:51 +020037 <artifactId>Krill</artifactId>
Akrond34403f2024-06-24 11:44:12 +020038 <version>0.63.1</version>
Akrone1befe02021-07-27 13:34:51 +020039 <packaging>jar</packaging>
Nils Diewaldf399a672013-11-18 17:55:22 +000040
Akrone1befe02021-07-27 13:34:51 +020041 <name>Krill</name>
42 <url>https://korap.ids-mannheim.de/</url>
43
44 <organization>
45 <name>IDS Mannheim</name>
46 <url>https://www.ids-mannheim.de/</url>
47 </organization>
Nils Diewaldf399a672013-11-18 17:55:22 +000048
Akrone1befe02021-07-27 13:34:51 +020049 <developers>
50 <developer>
51 <name>Nils Diewald</name>
52 <email>diewald@ids-mannheim.de</email>
53 <url>https://www.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 Diewald8a1fc012014-02-19 15:23:33 +000060
Akrone1befe02021-07-27 13:34:51 +020061 <properties>
Akrone96f9fe2023-08-28 11:36:12 +020062 <java.version>17</java.version>
dependabot[bot]0741ebe2024-06-10 00:02:38 +000063 <jersey.version>3.1.7</jersey.version>
dependabot[bot]d9064892024-07-08 00:44:00 +000064 <jackson.version>2.17.2</jackson.version>
Marc Kupietz58e0aaa2024-03-17 18:44:41 +010065 <log4j.version>2.23.1</log4j.version>
Akrone1befe02021-07-27 13:34:51 +020066 <lucene.version>5.0.0</lucene.version>
Akrone1befe02021-07-27 13:34:51 +020067 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
68 </properties>
Nils Diewaldf399a672013-11-18 17:55:22 +000069
Akrone1befe02021-07-27 13:34:51 +020070 <dependencyManagement>
71 <dependencies>
72 <dependency>
73 <groupId>org.glassfish.jersey</groupId>
74 <artifactId>jersey-bom</artifactId>
75 <version>${jersey.version}</version>
76 <type>pom</type>
77 <scope>import</scope>
78 </dependency>
79 </dependencies>
80 </dependencyManagement>
Nils Diewald32030a62014-09-03 20:16:50 +000081
Akrone1befe02021-07-27 13:34:51 +020082 <dependencies>
83 <!-- junit dependency -->
Akronab2b3a52018-01-11 16:10:46 +010084 <dependency>
Akrone1befe02021-07-27 13:34:51 +020085 <groupId>junit</groupId>
86 <artifactId>junit</artifactId>
87 <version>4.13.2</version>
88 <scope>test</scope>
89 </dependency>
90
91 <!-- https://mvnrepository.com/artifact/jakarta.ws.rs/jakarta.ws.rs-api -->
92 <dependency>
93 <groupId>jakarta.ws.rs</groupId>
94 <artifactId>jakarta.ws.rs-api</artifactId>
dependabot[bot]ba246c52024-05-03 00:04:59 +000095 <version>4.0.0</version>
Akrone1befe02021-07-27 13:34:51 +020096 </dependency>
97
98 <!-- log4j dependency -->
99 <dependency>
100 <groupId>org.apache.logging.log4j</groupId>
101 <artifactId>log4j-api</artifactId>
102 <version>${log4j.version}</version>
103 </dependency>
104 <dependency>
105 <groupId>org.apache.logging.log4j</groupId>
106 <artifactId>log4j-core</artifactId>
107 <version>${log4j.version}</version>
108 </dependency>
Akronab2b3a52018-01-11 16:10:46 +0100109 <dependency>
110 <groupId>org.apache.logging.log4j</groupId>
111 <artifactId>log4j-slf4j-impl</artifactId>
Akron92798062021-07-27 11:58:21 +0200112 <version>${log4j.version}</version>
Akronab2b3a52018-01-11 16:10:46 +0100113 </dependency>
Akrone1befe02021-07-27 13:34:51 +0200114 <dependency>
115 <groupId>org.slf4j</groupId>
116 <artifactId>jul-to-slf4j</artifactId>
dependabot[bot]27d47212024-04-15 00:39:37 +0000117 <version>2.0.13</version>
Akrone1befe02021-07-27 13:34:51 +0200118 </dependency>
Akronb17cc082022-11-16 11:16:31 +0100119
Akrone1befe02021-07-27 13:34:51 +0200120 <!-- SQLite for database connection tests -->
121 <dependency>
122 <groupId>org.xerial</groupId>
123 <artifactId>sqlite-jdbc</artifactId>
dependabot[bot]2c5cc6e2024-07-31 00:07:25 +0000124 <version>3.46.0.1</version>
Akrone1befe02021-07-27 13:34:51 +0200125 </dependency>
126
127 <!-- Database Connection Pool Manager -->
128 <dependency>
129 <groupId>com.mchange</groupId>
130 <artifactId>c3p0</artifactId>
dependabot[bot]c5b6a792024-05-08 00:29:14 +0000131 <version>0.10.1</version>
Akrone1befe02021-07-27 13:34:51 +0200132 </dependency>
133
134 <!-- Lucene core dependency -->
135 <dependency>
136 <artifactId>lucene-core</artifactId>
137 <groupId>org.apache.lucene</groupId>
138 <type>jar</type>
139 <version>${lucene.version}</version>
140 </dependency>
141
142 <!-- Lucene queryparser dependency -->
143 <dependency>
144 <artifactId>lucene-queryparser</artifactId>
145 <groupId>org.apache.lucene</groupId>
146 <type>jar</type>
147 <version>${lucene.version}</version>
148 </dependency>
149
150 <!-- Lucene analyzers dependency -->
151 <dependency>
152 <artifactId>lucene-analyzers-common</artifactId>
153 <groupId>org.apache.lucene</groupId>
154 <type>jar</type>
155 <version>${lucene.version}</version>
156 </dependency>
157
158 <!-- JCache -->
159 <dependency>
160 <groupId>net.sf.jsr107cache</groupId>
161 <artifactId>jsr107cache</artifactId>
162 <version>1.1</version>
163 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000164
Akrone1befe02021-07-27 13:34:51 +0200165 <!-- Jersey -->
166 <dependency>
167 <groupId>org.glassfish.jersey.containers</groupId>
168 <artifactId>jersey-container-grizzly2-http</artifactId>
169 </dependency>
170
171 <!-- JSON support in Jersey -->
172 <dependency>
173 <groupId>com.fasterxml.jackson.jaxrs</groupId>
174 <artifactId>jackson-jaxrs-json-provider</artifactId>
Akrond6c77b42022-10-05 12:34:15 +0200175 <version>${jackson.version}</version>
Akrone1befe02021-07-27 13:34:51 +0200176 </dependency>
177
178 <dependency>
179 <groupId>org.glassfish.jersey.inject</groupId>
180 <artifactId>jersey-hk2</artifactId>
181 <version>${jersey.version}</version>
182 </dependency>
183
184 <!-- 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>
Akronab711ff2022-11-16 10:53:15 +0100190 <version>${jackson.version}</version>
Akrone1befe02021-07-27 13:34:51 +0200191 </dependency>
192 <dependency>
193 <groupId>com.fasterxml.jackson.core</groupId>
194 <artifactId>jackson-annotations</artifactId>
195 <version>${jackson.version}</version>
196 </dependency>
197 <dependency>
198 <groupId>com.fasterxml.jackson.core</groupId>
199 <artifactId>jackson-core</artifactId>
200 <version>${jackson.version}</version>
201 </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
209 <!-- Some language extensions like StringUtil, IOUtils ... -->
210 <dependency>
211 <groupId>org.apache.commons</groupId>
212 <artifactId>commons-lang3</artifactId>
dependabot[bot]1b027072024-07-18 00:19:43 +0000213 <version>3.15.0</version>
Akrone1befe02021-07-27 13:34:51 +0200214 </dependency>
215
216 <dependency>
217 <groupId>commons-cli</groupId>
218 <artifactId>commons-cli</artifactId>
dependabot[bot]63b78b92024-05-24 00:51:28 +0000219 <version>1.8.0</version>
Akrone1befe02021-07-27 13:34:51 +0200220 </dependency>
221 <dependency>
222 <groupId>commons-io</groupId>
223 <artifactId>commons-io</artifactId>
dependabot[bot]ed702f22024-04-09 00:34:04 +0000224 <version>2.16.1</version>
Akrone1befe02021-07-27 13:34:51 +0200225 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200226 </dependencies>
Marc Kupietz6d76d9d2022-11-13 07:29:31 +0100227
Akrone1befe02021-07-27 13:34:51 +0200228 <build>
229 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
230 <outputDirectory>${basedir}/bin</outputDirectory>
231 <plugins>
232 <plugin>
233 <artifactId>maven-compiler-plugin</artifactId>
dependabot[bot]c385fe82024-03-19 00:59:07 +0000234 <version>3.13.0</version>
Akrone1befe02021-07-27 13:34:51 +0200235 <inherited>true</inherited>
236 <configuration>
237 <showWarnings>true</showWarnings>
238 <source>${java.version}</source>
239 <target>${java.version}</target>
240 </configuration>
241 </plugin>
242
243 <plugin>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-shade-plugin</artifactId>
dependabot[bot]e407fb12024-06-03 01:01:49 +0000246 <version>3.6.0</version>
Akrone1befe02021-07-27 13:34:51 +0200247 <executions>
248 <execution>
249 <id>indexer</id>
250 <phase>package</phase>
251 <goals>
252 <goal>shade</goal>
253 </goals>
254 <configuration>
Marc Kupietzc38dc9f2024-02-19 15:58:00 +0100255 <createDependencyReducedPom>false</createDependencyReducedPom>
Akrone1befe02021-07-27 13:34:51 +0200256 <transformers>
257 <transformer
258 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
259 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
260 </transformer>
261 </transformers>
262 <finalName>${project.artifactId}-Indexer</finalName>
263 </configuration>
264 </execution>
265 <execution>
266 <id>server</id>
267 <phase>package</phase>
268 <goals>
269 <goal>shade</goal>
270 </goals>
271 <configuration>
Marc Kupietzc38dc9f2024-02-19 15:58:00 +0100272 <createDependencyReducedPom>false</createDependencyReducedPom>
Akrone1befe02021-07-27 13:34:51 +0200273 <transformers>
274 <transformer
275 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
276 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
277 </transformer>
278 <transformer
279 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
280 <resource>krill.properties</resource>
281 </transformer>
282 </transformers>
283 <finalName>${project.name}-Server</finalName>
284 </configuration>
285 </execution>
286 </executions>
287 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100288
Akrone1befe02021-07-27 13:34:51 +0200289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-surefire-plugin</artifactId>
dependabot[bot]278472b2024-07-11 00:02:53 +0000292 <version>3.3.1</version>
Akrone1befe02021-07-27 13:34:51 +0200293 <configuration>
294 <useSystemClassLoader>false</useSystemClassLoader>
295 <argLine>-Xmx512m</argLine>
296 <excludes>
297 <exclude>**/benchmark/*</exclude>
298 <exclude>**/TestWPDIndex.java</exclude>
299 <exclude>**/TestRealIndex.java</exclude>
300 <exclude>**/TestSampleIndex.java</exclude>
301 <exclude>**/TestParallelIndex.java</exclude>
302 </excludes>
303 </configuration>
304 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100305
Akrone1befe02021-07-27 13:34:51 +0200306 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
307 <plugin>
308 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
309 <artifactId>maven-java-formatter-plugin</artifactId>
310 <version>0.4</version>
311 <configuration>
312 <configFile>${project.basedir}/Format.xml</configFile>
313 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
314 <compilerSource>${java.version}</compilerSource>
315 <compilerCompliance>${java.version}</compilerCompliance>
316 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
317 </configuration>
318 </plugin>
Eliza Margarethaff416632016-11-03 15:08:07 +0100319
Marc Kupietz58e0aaa2024-03-17 18:44:41 +0100320 <plugin>
321 <groupId>org.codehaus.mojo</groupId>
322 <artifactId>exec-maven-plugin</artifactId>
dependabot[bot]e1fd7d72024-06-10 00:02:44 +0000323 <version>3.3.0</version>
Marc Kupietz58e0aaa2024-03-17 18:44:41 +0100324 <executions>
325 <execution>
326 <goals>
327 <goal>java</goal>
328 </goals>
329 <configuration>
330 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
331 </configuration>
332 </execution>
333 <execution>
334 <id>run-krill-indexer-jar</id>
335 <phase>verify</phase>
336 <goals>
337 <goal>exec</goal>
338 </goals>
339 <configuration>
340 <executable>java</executable>
341 <arguments>
342 <argument>-jar</argument>
343 <argument>${project.build.directory}/Krill-Indexer.jar</argument>
344 </arguments>
345 </configuration>
346 </execution>
347 </executions>
348 </plugin>
Akrone1befe02021-07-27 13:34:51 +0200349 </plugins>
Eliza Margarethaff416632016-11-03 15:08:07 +0100350
Akrone1befe02021-07-27 13:34:51 +0200351 <resources>
352 <resource>
353 <directory>src/main/resources</directory>
354 <filtering>true</filtering>
355 <includes>
356 <include>krill.info</include>
357 </includes>
358 </resource>
359 <resource>
360 <directory>src/main/resources</directory>
361 <filtering>false</filtering>
362 <excludes>
363 <exclude>krill.info</exclude>
364 </excludes>
365 </resource>
366 </resources>
Marc Kupietz4369ed62020-11-12 10:05:44 +0100367
Akrone1befe02021-07-27 13:34:51 +0200368 <testResources>
369 <testResource>
370 <directory>src/test/resources</directory>
371 <filtering>true</filtering>
372 <includes>
373 <include>krill.properties</include>
374 </includes>
375 </testResource>
376 <testResource>
377 <directory>src/test/resources</directory>
378 <filtering>false</filtering>
379 <excludes>
380 <exclude>krill.properties</exclude>
381 </excludes>
382 </testResource>
383 </testResources>
384 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000385</project>