blob: 5b72473a9fdc22cc52b8ec194b5552abf9e34b2b [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>
Akron408ae352018-03-28 16:47:41 +020038 <version>0.57.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>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000109
Eliza Margarethaff416632016-11-03 15:08:07 +0100110 <!-- SQLite for database connection tests -->
111 <dependency>
112 <groupId>org.xerial</groupId>
113 <artifactId>sqlite-jdbc</artifactId>
114 <version>3.7.2</version>
115 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000116
Eliza Margarethaff416632016-11-03 15:08:07 +0100117 <!-- Database Connection Pool Manager -->
118 <dependency>
119 <groupId>c3p0</groupId>
120 <artifactId>c3p0</artifactId>
121 <version>0.9.1.2</version>
122 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000123
Eliza Margarethaff416632016-11-03 15:08:07 +0100124 <!-- Lucene core dependency -->
125 <dependency>
126 <artifactId>lucene-core</artifactId>
127 <groupId>org.apache.lucene</groupId>
128 <type>jar</type>
129 <version>5.0.0</version>
130 </dependency>
Nils Diewaldaee45452013-11-27 22:35:55 +0000131
Eliza Margarethaff416632016-11-03 15:08:07 +0100132 <!-- Lucene queryparser dependency -->
133 <dependency>
134 <artifactId>lucene-queryparser</artifactId>
135 <groupId>org.apache.lucene</groupId>
136 <type>jar</type>
137 <version>5.0.0</version>
138 </dependency>
Akron09ae3732015-08-13 20:56:20 +0200139
Eliza Margarethaff416632016-11-03 15:08:07 +0100140 <!-- Lucene analyzers dependency -->
141 <dependency>
142 <artifactId>lucene-analyzers-common</artifactId>
143 <groupId>org.apache.lucene</groupId>
144 <type>jar</type>
145 <version>5.0.0</version>
146 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000147
Eliza Margarethaff416632016-11-03 15:08:07 +0100148 <dependency>
149 <groupId>org.hamcrest</groupId>
150 <artifactId>hamcrest-core</artifactId>
151 <version>1.3</version>
152 </dependency>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000153
Eliza Margarethaff416632016-11-03 15:08:07 +0100154 <!-- JCache -->
155 <dependency>
156 <groupId>net.sf.jsr107cache</groupId>
157 <artifactId>jsr107cache</artifactId>
158 <version>1.0</version>
159 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000160
Eliza Margarethaff416632016-11-03 15:08:07 +0100161 <!-- Jersey -->
162 <dependency>
163 <groupId>org.glassfish.jersey.containers</groupId>
164 <artifactId>jersey-container-grizzly2-http</artifactId>
165 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000166
Eliza Margarethaff416632016-11-03 15:08:07 +0100167 <!-- JSON support in Jersey -->
168 <dependency>
169 <groupId>com.fasterxml.jackson.jaxrs</groupId>
170 <artifactId>jackson-jaxrs-json-provider</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100171 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100172 </dependency>
173
174 <!-- JSON support using Jackson -->
175 <!-- see https://github.com/FasterXML/jackson-core -->
176 <!-- https://github.com/FasterXML/jackson-databind -->
177 <dependency>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-databind</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100180 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100181 </dependency>
182 <dependency>
183 <groupId>com.fasterxml.jackson.core</groupId>
184 <artifactId>jackson-annotations</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100185 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100186 </dependency>
187 <dependency>
188 <groupId>com.fasterxml.jackson.core</groupId>
189 <artifactId>jackson-core</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100190 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100191 </dependency>
192
193 <!-- JSON-LD support -->
194 <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId>
195 <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental
196 annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId>
197 <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> -->
198
Akron22d319e2018-04-01 17:13:49 +0200199 <!-- Some language extensions like StringUtil, IOUtils ... -->
Eliza Margarethaff416632016-11-03 15:08:07 +0100200 <dependency>
201 <groupId>commons-lang</groupId>
202 <artifactId>commons-lang</artifactId>
203 <version>2.3</version>
204 </dependency>
Eliza Margarethaff416632016-11-03 15:08:07 +0100205 <dependency>
206 <groupId>commons-cli</groupId>
207 <artifactId>commons-cli</artifactId>
208 <version>1.3.1</version>
209 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200210 <dependency>
211 <groupId>org.apache.commons</groupId>
212 <artifactId>commons-io</artifactId>
213 <version>1.3.2</version>
214 </dependency>
215 </dependencies>
Eliza Margarethaff416632016-11-03 15:08:07 +0100216
217 <build>
218 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
219 <outputDirectory>${basedir}/bin</outputDirectory>
220 <plugins>
221 <plugin>
222 <artifactId>maven-compiler-plugin</artifactId>
223 <version>2.5.1</version>
224 <inherited>true</inherited>
225 <configuration>
226 <showWarnings>true</showWarnings>
227 <source>1.7</source>
228 <target>1.7</target>
229 </configuration>
230 </plugin>
231
232 <plugin>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-shade-plugin</artifactId>
235 <version>2.4.1</version>
236 <executions>
237 <execution>
238 <id>indexer</id>
239 <phase>package</phase>
240 <goals>
241 <goal>shade</goal>
242 </goals>
243 <configuration>
244 <transformers>
245 <transformer
246 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
247 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
248 </transformer>
249 </transformers>
250 <finalName>${project.artifactId}-Indexer</finalName>
251 </configuration>
252 </execution>
253 <execution>
254 <id>server</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.server.Node</mainClass>
264 </transformer>
265 <transformer
266 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
267 <resource>krill.properties</resource>
268 </transformer>
269 </transformers>
270 <finalName>${project.name}-Server</finalName>
271 </configuration>
272 </execution>
273 </executions>
274 </plugin>
275
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-surefire-plugin</artifactId>
279 <version>2.16</version>
280 <configuration>
281 <excludes>
282 <exclude>**/benchmark/*</exclude>
283 <exclude>**/TestWPDIndex.java</exclude>
284 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200285 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100286 </excludes>
287 </configuration>
288 </plugin>
289
290 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
291 <plugin>
292 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
293 <artifactId>maven-java-formatter-plugin</artifactId>
294 <version>0.4</version>
295 <configuration>
296 <configFile>${project.basedir}/Format.xml</configFile>
297 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
298 <compilerSource>1.7</compilerSource>
299 <compilerCompliance>1.7</compilerCompliance>
300 <compilerTargetPlatform>1.7</compilerTargetPlatform>
301 </configuration>
302 </plugin>
303
304 <plugin>
305 <groupId>org.codehaus.mojo</groupId>
306 <artifactId>exec-maven-plugin</artifactId>
307 <version>1.2.1</version>
308 <executions>
309 <execution>
310 <goals>
311 <goal>java</goal>
312 </goals>
313 </execution>
314 </executions>
315 <configuration>
316 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
317 </configuration>
318 </plugin>
319 </plugins>
320
321 <resources>
322 <resource>
323 <directory>src/main/resources</directory>
324 <filtering>true</filtering>
325 <includes>
326 <include>krill.info</include>
327 </includes>
328 </resource>
329 <resource>
330 <directory>src/main/resources</directory>
331 <filtering>false</filtering>
332 <excludes>
333 <exclude>krill.info</exclude>
334 </excludes>
335 </resource>
336 </resources>
337
338 <testResources>
339 <testResource>
340 <directory>src/test/resources</directory>
341 <filtering>true</filtering>
342 <includes>
343 <include>krill.properties</include>
344 </includes>
345 </testResource>
346 <testResource>
347 <directory>src/test/resources</directory>
348 <filtering>false</filtering>
349 <excludes>
350 <exclude>krill.properties</exclude>
351 </excludes>
352 </testResource>
353 </testResources>
354 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000355</project>