blob: 45ed86f82d29535aec9f1231d796925e44496620 [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>
margaretha8efa3752018-07-24 17:46:43 +020038 <version>0.58.0</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>
42 <url>http://www.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>
62 <jersey.version>2.15</jersey.version>
margaretha3b2c3512017-11-17 14:42:12 +010063 <jackson.version>2.9.1</jackson.version>
Eliza Margarethaff416632016-11-03 15:08:07 +010064 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
65 </properties>
Nils Diewald32030a62014-09-03 20:16:50 +000066
Eliza Margarethaff416632016-11-03 15:08:07 +010067 <dependencyManagement>
68 <dependencies>
69 <dependency>
70 <groupId>org.glassfish.jersey</groupId>
71 <artifactId>jersey-bom</artifactId>
72 <version>${jersey.version}</version>
73 <type>pom</type>
74 <scope>import</scope>
75 </dependency>
76 </dependencies>
77 </dependencyManagement>
Nils Diewald32030a62014-09-03 20:16:50 +000078
Eliza Margarethaff416632016-11-03 15:08:07 +010079 <dependencies>
80 <!-- junit dependency -->
81 <dependency>
82 <groupId>junit</groupId>
83 <artifactId>junit</artifactId>
84 <version>4.11</version>
85 <scope>test</scope>
86 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000087
Eliza Margarethaff416632016-11-03 15:08:07 +010088 <!-- log4j dependency -->
89 <dependency>
Akronab2b3a52018-01-11 16:10:46 +010090 <groupId>org.apache.logging.log4j</groupId>
91 <artifactId>log4j-api</artifactId>
92 <version>2.10.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010093 </dependency>
Akronab2b3a52018-01-11 16:10:46 +010094 <dependency>
95 <groupId>org.apache.logging.log4j</groupId>
96 <artifactId>log4j-core</artifactId>
97 <version>2.10.0</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010098 </dependency>
Akronab2b3a52018-01-11 16:10:46 +010099 <dependency>
100 <groupId>org.apache.logging.log4j</groupId>
101 <artifactId>log4j-slf4j-impl</artifactId>
102 <version>2.10.0</version>
103 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100104 <dependency>
105 <groupId>org.slf4j</groupId>
106 <artifactId>jul-to-slf4j</artifactId>
Akronab2b3a52018-01-11 16:10:46 +0100107 <version>1.7.25</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100108 </dependency>
margaretha8efa3752018-07-24 17:46:43 +0200109
110 <dependency>
111 <groupId>net.sf.ehcache</groupId>
112 <artifactId>ehcache</artifactId>
113 <version>2.10.5</version>
114 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000115
Eliza Margarethaff416632016-11-03 15:08:07 +0100116 <!-- SQLite for database connection tests -->
117 <dependency>
118 <groupId>org.xerial</groupId>
119 <artifactId>sqlite-jdbc</artifactId>
120 <version>3.7.2</version>
121 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000122
Eliza Margarethaff416632016-11-03 15:08:07 +0100123 <!-- Database Connection Pool Manager -->
124 <dependency>
125 <groupId>c3p0</groupId>
126 <artifactId>c3p0</artifactId>
127 <version>0.9.1.2</version>
128 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000129
Eliza Margarethaff416632016-11-03 15:08:07 +0100130 <!-- Lucene core dependency -->
131 <dependency>
132 <artifactId>lucene-core</artifactId>
133 <groupId>org.apache.lucene</groupId>
134 <type>jar</type>
135 <version>5.0.0</version>
136 </dependency>
Nils Diewaldaee45452013-11-27 22:35:55 +0000137
Eliza Margarethaff416632016-11-03 15:08:07 +0100138 <!-- Lucene queryparser dependency -->
139 <dependency>
140 <artifactId>lucene-queryparser</artifactId>
141 <groupId>org.apache.lucene</groupId>
142 <type>jar</type>
143 <version>5.0.0</version>
144 </dependency>
Akron09ae3732015-08-13 20:56:20 +0200145
Eliza Margarethaff416632016-11-03 15:08:07 +0100146 <!-- Lucene analyzers dependency -->
147 <dependency>
148 <artifactId>lucene-analyzers-common</artifactId>
149 <groupId>org.apache.lucene</groupId>
150 <type>jar</type>
151 <version>5.0.0</version>
152 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000153
Eliza Margarethaff416632016-11-03 15:08:07 +0100154 <dependency>
155 <groupId>org.hamcrest</groupId>
156 <artifactId>hamcrest-core</artifactId>
157 <version>1.3</version>
158 </dependency>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000159
Eliza Margarethaff416632016-11-03 15:08:07 +0100160 <!-- JCache -->
161 <dependency>
162 <groupId>net.sf.jsr107cache</groupId>
163 <artifactId>jsr107cache</artifactId>
164 <version>1.0</version>
165 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000166
Eliza Margarethaff416632016-11-03 15:08:07 +0100167 <!-- Jersey -->
168 <dependency>
169 <groupId>org.glassfish.jersey.containers</groupId>
170 <artifactId>jersey-container-grizzly2-http</artifactId>
171 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000172
Eliza Margarethaff416632016-11-03 15:08:07 +0100173 <!-- JSON support in Jersey -->
174 <dependency>
175 <groupId>com.fasterxml.jackson.jaxrs</groupId>
176 <artifactId>jackson-jaxrs-json-provider</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100177 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100178 </dependency>
179
180 <!-- JSON support using Jackson -->
181 <!-- see https://github.com/FasterXML/jackson-core -->
182 <!-- https://github.com/FasterXML/jackson-databind -->
183 <dependency>
184 <groupId>com.fasterxml.jackson.core</groupId>
185 <artifactId>jackson-databind</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100186 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100187 </dependency>
188 <dependency>
189 <groupId>com.fasterxml.jackson.core</groupId>
190 <artifactId>jackson-annotations</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100191 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100192 </dependency>
193 <dependency>
194 <groupId>com.fasterxml.jackson.core</groupId>
195 <artifactId>jackson-core</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100196 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100197 </dependency>
198
199 <!-- JSON-LD support -->
200 <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId>
201 <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental
202 annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId>
203 <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> -->
204
Akron22d319e2018-04-01 17:13:49 +0200205 <!-- Some language extensions like StringUtil, IOUtils ... -->
Eliza Margarethaff416632016-11-03 15:08:07 +0100206 <dependency>
207 <groupId>commons-lang</groupId>
208 <artifactId>commons-lang</artifactId>
209 <version>2.3</version>
210 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100211 <dependency>
212 <groupId>commons-cli</groupId>
213 <artifactId>commons-cli</artifactId>
214 <version>1.3.1</version>
215 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200216 <dependency>
217 <groupId>org.apache.commons</groupId>
218 <artifactId>commons-io</artifactId>
219 <version>1.3.2</version>
220 </dependency>
221 </dependencies>
Eliza Margarethaff416632016-11-03 15:08:07 +0100222
223 <build>
224 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
225 <outputDirectory>${basedir}/bin</outputDirectory>
226 <plugins>
227 <plugin>
228 <artifactId>maven-compiler-plugin</artifactId>
229 <version>2.5.1</version>
230 <inherited>true</inherited>
231 <configuration>
232 <showWarnings>true</showWarnings>
233 <source>1.7</source>
234 <target>1.7</target>
235 </configuration>
236 </plugin>
237
238 <plugin>
239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-shade-plugin</artifactId>
241 <version>2.4.1</version>
242 <executions>
243 <execution>
244 <id>indexer</id>
245 <phase>package</phase>
246 <goals>
247 <goal>shade</goal>
248 </goals>
249 <configuration>
250 <transformers>
251 <transformer
252 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
253 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
254 </transformer>
255 </transformers>
256 <finalName>${project.artifactId}-Indexer</finalName>
257 </configuration>
258 </execution>
259 <execution>
260 <id>server</id>
261 <phase>package</phase>
262 <goals>
263 <goal>shade</goal>
264 </goals>
265 <configuration>
266 <transformers>
267 <transformer
268 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
269 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
270 </transformer>
271 <transformer
272 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
273 <resource>krill.properties</resource>
274 </transformer>
275 </transformers>
276 <finalName>${project.name}-Server</finalName>
277 </configuration>
278 </execution>
279 </executions>
280 </plugin>
281
282 <plugin>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-surefire-plugin</artifactId>
285 <version>2.16</version>
286 <configuration>
287 <excludes>
288 <exclude>**/benchmark/*</exclude>
289 <exclude>**/TestWPDIndex.java</exclude>
290 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200291 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100292 </excludes>
293 </configuration>
294 </plugin>
295
296 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
297 <plugin>
298 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
299 <artifactId>maven-java-formatter-plugin</artifactId>
300 <version>0.4</version>
301 <configuration>
302 <configFile>${project.basedir}/Format.xml</configFile>
303 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
304 <compilerSource>1.7</compilerSource>
305 <compilerCompliance>1.7</compilerCompliance>
306 <compilerTargetPlatform>1.7</compilerTargetPlatform>
307 </configuration>
308 </plugin>
309
310 <plugin>
311 <groupId>org.codehaus.mojo</groupId>
312 <artifactId>exec-maven-plugin</artifactId>
313 <version>1.2.1</version>
314 <executions>
315 <execution>
316 <goals>
317 <goal>java</goal>
318 </goals>
319 </execution>
320 </executions>
321 <configuration>
322 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
323 </configuration>
324 </plugin>
325 </plugins>
326
327 <resources>
328 <resource>
329 <directory>src/main/resources</directory>
330 <filtering>true</filtering>
331 <includes>
332 <include>krill.info</include>
333 </includes>
334 </resource>
335 <resource>
336 <directory>src/main/resources</directory>
337 <filtering>false</filtering>
338 <excludes>
339 <exclude>krill.info</exclude>
340 </excludes>
341 </resource>
342 </resources>
343
344 <testResources>
345 <testResource>
346 <directory>src/test/resources</directory>
347 <filtering>true</filtering>
348 <includes>
349 <include>krill.properties</include>
350 </includes>
351 </testResource>
352 <testResource>
353 <directory>src/test/resources</directory>
354 <filtering>false</filtering>
355 <excludes>
356 <exclude>krill.properties</exclude>
357 </excludes>
358 </testResource>
359 </testResources>
360 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000361</project>