blob: 81d292170a100cf6983da355851dc2dcba81b3a9 [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>
Akron567b6fe2018-12-06 15:06:58 +010038 <version>0.58.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>
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>
Akron77903842018-10-22 13:05:23 +020063 <jackson.version>[2.9.5,)</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>
margarethac20a9212018-08-21 14:32:09 +0200216 <dependency>
217 <groupId>commons-io</groupId>
218 <artifactId>commons-io</artifactId>
219 <version>2.6</version>
220 </dependency>
Akron22d319e2018-04-01 17:13:49 +0200221 </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>
Akron6e5acee2018-10-31 01:22:46 +0100285 <version>2.22.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100286 <configuration>
Akron6e5acee2018-10-31 01:22:46 +0100287 <useSystemClassLoader>false</useSystemClassLoader>
Eliza Margarethaff416632016-11-03 15:08:07 +0100288 <excludes>
289 <exclude>**/benchmark/*</exclude>
290 <exclude>**/TestWPDIndex.java</exclude>
291 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200292 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100293 </excludes>
294 </configuration>
295 </plugin>
296
297 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
298 <plugin>
299 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
300 <artifactId>maven-java-formatter-plugin</artifactId>
301 <version>0.4</version>
302 <configuration>
303 <configFile>${project.basedir}/Format.xml</configFile>
304 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
305 <compilerSource>1.7</compilerSource>
306 <compilerCompliance>1.7</compilerCompliance>
307 <compilerTargetPlatform>1.7</compilerTargetPlatform>
308 </configuration>
309 </plugin>
310
311 <plugin>
312 <groupId>org.codehaus.mojo</groupId>
313 <artifactId>exec-maven-plugin</artifactId>
314 <version>1.2.1</version>
315 <executions>
316 <execution>
317 <goals>
318 <goal>java</goal>
319 </goals>
320 </execution>
321 </executions>
322 <configuration>
323 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
324 </configuration>
325 </plugin>
326 </plugins>
327
328 <resources>
329 <resource>
330 <directory>src/main/resources</directory>
331 <filtering>true</filtering>
332 <includes>
333 <include>krill.info</include>
334 </includes>
335 </resource>
336 <resource>
337 <directory>src/main/resources</directory>
338 <filtering>false</filtering>
339 <excludes>
340 <exclude>krill.info</exclude>
341 </excludes>
342 </resource>
343 </resources>
344
345 <testResources>
346 <testResource>
347 <directory>src/test/resources</directory>
348 <filtering>true</filtering>
349 <includes>
350 <include>krill.properties</include>
351 </includes>
352 </testResource>
353 <testResource>
354 <directory>src/test/resources</directory>
355 <filtering>false</filtering>
356 <excludes>
357 <exclude>krill.properties</exclude>
358 </excludes>
359 </testResource>
360 </testResources>
361 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000362</project>