blob: 9cc960b0f4b594b7d5726a99e827f60735255cef [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>
Akron6b0be132019-09-16 19:01:59 +020038 <version>0.58.7</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>
margarethacab655c2019-02-26 11:31:29 +0100232 <argLine>-Xms512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100233 <showWarnings>true</showWarnings>
234 <source>1.7</source>
235 <target>1.7</target>
236 </configuration>
237 </plugin>
238
239 <plugin>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-shade-plugin</artifactId>
242 <version>2.4.1</version>
243 <executions>
244 <execution>
245 <id>indexer</id>
246 <phase>package</phase>
247 <goals>
248 <goal>shade</goal>
249 </goals>
250 <configuration>
251 <transformers>
252 <transformer
253 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
254 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
255 </transformer>
256 </transformers>
257 <finalName>${project.artifactId}-Indexer</finalName>
258 </configuration>
259 </execution>
260 <execution>
261 <id>server</id>
262 <phase>package</phase>
263 <goals>
264 <goal>shade</goal>
265 </goals>
266 <configuration>
267 <transformers>
268 <transformer
269 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
270 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
271 </transformer>
272 <transformer
273 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
274 <resource>krill.properties</resource>
275 </transformer>
276 </transformers>
277 <finalName>${project.name}-Server</finalName>
278 </configuration>
279 </execution>
280 </executions>
281 </plugin>
282
283 <plugin>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-surefire-plugin</artifactId>
Akron6e5acee2018-10-31 01:22:46 +0100286 <version>2.22.1</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100287 <configuration>
margarethacab655c2019-02-26 11:31:29 +0100288 <useSystemClassLoader>false</useSystemClassLoader>
margarethafd469f32019-05-02 12:35:08 +0200289 <argLine>-Xmx512m</argLine>
Eliza Margarethaff416632016-11-03 15:08:07 +0100290 <excludes>
291 <exclude>**/benchmark/*</exclude>
292 <exclude>**/TestWPDIndex.java</exclude>
293 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200294 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100295 </excludes>
296 </configuration>
297 </plugin>
298
299 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
300 <plugin>
301 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
302 <artifactId>maven-java-formatter-plugin</artifactId>
303 <version>0.4</version>
304 <configuration>
305 <configFile>${project.basedir}/Format.xml</configFile>
306 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
307 <compilerSource>1.7</compilerSource>
308 <compilerCompliance>1.7</compilerCompliance>
309 <compilerTargetPlatform>1.7</compilerTargetPlatform>
310 </configuration>
311 </plugin>
312
313 <plugin>
314 <groupId>org.codehaus.mojo</groupId>
315 <artifactId>exec-maven-plugin</artifactId>
316 <version>1.2.1</version>
317 <executions>
318 <execution>
319 <goals>
320 <goal>java</goal>
321 </goals>
322 </execution>
323 </executions>
324 <configuration>
325 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
326 </configuration>
327 </plugin>
328 </plugins>
329
330 <resources>
331 <resource>
332 <directory>src/main/resources</directory>
333 <filtering>true</filtering>
334 <includes>
335 <include>krill.info</include>
336 </includes>
337 </resource>
338 <resource>
339 <directory>src/main/resources</directory>
340 <filtering>false</filtering>
341 <excludes>
342 <exclude>krill.info</exclude>
343 </excludes>
344 </resource>
345 </resources>
346
347 <testResources>
348 <testResource>
349 <directory>src/test/resources</directory>
350 <filtering>true</filtering>
351 <includes>
352 <include>krill.properties</include>
353 </includes>
354 </testResource>
355 <testResource>
356 <directory>src/test/resources</directory>
357 <filtering>false</filtering>
358 <excludes>
359 <exclude>krill.properties</exclude>
360 </excludes>
361 </testResource>
362 </testResources>
363 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000364</project>