blob: b6d879de3d4de12e6c38030fd13af67f7dff079c [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>
Akrond9991622020-06-02 11:45:33 +020038 <version>0.59.2</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>
85 <version>4.11</version>
86 <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>
Akron22d319e2018-04-01 17:13:49 +0200222 </dependencies>
Eliza Margarethaff416632016-11-03 15:08:07 +0100223
224 <build>
225 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
226 <outputDirectory>${basedir}/bin</outputDirectory>
227 <plugins>
228 <plugin>
229 <artifactId>maven-compiler-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100230 <version>3.8.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100231 <inherited>true</inherited>
232 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100233 <argLine>-Xms512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100234 <showWarnings>true</showWarnings>
margaretha1f2791d2019-11-07 15:41:40 +0100235 <source>${java.version}</source>
236 <target>${java.version}</target>
Eliza Margarethaff416632016-11-03 15:08:07 +0100237 </configuration>
238 </plugin>
239
240 <plugin>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-shade-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100243 <version>3.2.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100244 <executions>
245 <execution>
246 <id>indexer</id>
247 <phase>package</phase>
248 <goals>
249 <goal>shade</goal>
250 </goals>
251 <configuration>
252 <transformers>
253 <transformer
254 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
255 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
256 </transformer>
257 </transformers>
258 <finalName>${project.artifactId}-Indexer</finalName>
259 </configuration>
260 </execution>
261 <execution>
262 <id>server</id>
263 <phase>package</phase>
264 <goals>
265 <goal>shade</goal>
266 </goals>
267 <configuration>
268 <transformers>
269 <transformer
270 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
271 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
272 </transformer>
273 <transformer
274 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
275 <resource>krill.properties</resource>
276 </transformer>
277 </transformers>
278 <finalName>${project.name}-Server</finalName>
279 </configuration>
280 </execution>
281 </executions>
282 </plugin>
283
284 <plugin>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-surefire-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100287 <version>2.22.2</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100288 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100289 <useSystemClassLoader>false</useSystemClassLoader>
margarethafd469f32019-05-02 12:35:08 +0200290 <argLine>-Xmx512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100291 <excludes>
292 <exclude>**/benchmark/*</exclude>
293 <exclude>**/TestWPDIndex.java</exclude>
294 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200295 <exclude>**/TestSampleIndex.java</exclude>
Akron672f98c2019-11-05 19:20:45 +0100296 <exclude>**/TestParallelIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100297 </excludes>
298 </configuration>
299 </plugin>
300
301 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
302 <plugin>
303 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
304 <artifactId>maven-java-formatter-plugin</artifactId>
305 <version>0.4</version>
306 <configuration>
307 <configFile>${project.basedir}/Format.xml</configFile>
308 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
margaretha1f2791d2019-11-07 15:41:40 +0100309 <compilerSource>${java.version}</compilerSource>
310 <compilerCompliance>${java.version}</compilerCompliance>
311 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
Eliza Margarethaff416632016-11-03 15:08:07 +0100312 </configuration>
313 </plugin>
314
315 <plugin>
316 <groupId>org.codehaus.mojo</groupId>
317 <artifactId>exec-maven-plugin</artifactId>
margaretha1f2791d2019-11-07 15:41:40 +0100318 <version>1.6.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100319 <executions>
320 <execution>
321 <goals>
322 <goal>java</goal>
323 </goals>
324 </execution>
325 </executions>
326 <configuration>
327 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
328 </configuration>
329 </plugin>
330 </plugins>
331
332 <resources>
333 <resource>
334 <directory>src/main/resources</directory>
335 <filtering>true</filtering>
336 <includes>
337 <include>krill.info</include>
338 </includes>
339 </resource>
340 <resource>
341 <directory>src/main/resources</directory>
342 <filtering>false</filtering>
343 <excludes>
344 <exclude>krill.info</exclude>
345 </excludes>
346 </resource>
347 </resources>
348
349 <testResources>
350 <testResource>
351 <directory>src/test/resources</directory>
352 <filtering>true</filtering>
353 <includes>
354 <include>krill.properties</include>
355 </includes>
356 </testResource>
357 <testResource>
358 <directory>src/test/resources</directory>
359 <filtering>false</filtering>
360 <excludes>
361 <exclude>krill.properties</exclude>
362 </excludes>
363 </testResource>
364 </testResources>
365 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000366</project>