blob: 563cd657ec603e4612ab636937b1e5e658771f79 [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>
Akron47929692017-09-12 14:41:26 +020038 <version>0.55.9</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>
90 <groupId>log4j</groupId>
91 <artifactId>log4j</artifactId>
92 <version>1.2.17</version>
93 </dependency>
94 <dependency>
95 <groupId>org.slf4j</groupId>
96 <artifactId>slf4j-log4j12</artifactId>
97 <version>1.7.5</version>
98 </dependency>
99 <dependency>
100 <groupId>org.slf4j</groupId>
101 <artifactId>jul-to-slf4j</artifactId>
102 <version>1.7.5</version>
103 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000104
Eliza Margarethaff416632016-11-03 15:08:07 +0100105 <!-- SQLite for database connection tests -->
106 <dependency>
107 <groupId>org.xerial</groupId>
108 <artifactId>sqlite-jdbc</artifactId>
109 <version>3.7.2</version>
110 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000111
Eliza Margarethaff416632016-11-03 15:08:07 +0100112 <!-- Database Connection Pool Manager -->
113 <dependency>
114 <groupId>c3p0</groupId>
115 <artifactId>c3p0</artifactId>
116 <version>0.9.1.2</version>
117 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000118
Eliza Margarethaff416632016-11-03 15:08:07 +0100119 <!-- Lucene core dependency -->
120 <dependency>
121 <artifactId>lucene-core</artifactId>
122 <groupId>org.apache.lucene</groupId>
123 <type>jar</type>
124 <version>5.0.0</version>
125 </dependency>
Nils Diewaldaee45452013-11-27 22:35:55 +0000126
Eliza Margarethaff416632016-11-03 15:08:07 +0100127 <!-- Lucene queryparser dependency -->
128 <dependency>
129 <artifactId>lucene-queryparser</artifactId>
130 <groupId>org.apache.lucene</groupId>
131 <type>jar</type>
132 <version>5.0.0</version>
133 </dependency>
Akron09ae3732015-08-13 20:56:20 +0200134
Eliza Margarethaff416632016-11-03 15:08:07 +0100135 <!-- Lucene analyzers dependency -->
136 <dependency>
137 <artifactId>lucene-analyzers-common</artifactId>
138 <groupId>org.apache.lucene</groupId>
139 <type>jar</type>
140 <version>5.0.0</version>
141 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000142
Eliza Margarethaff416632016-11-03 15:08:07 +0100143 <dependency>
144 <groupId>org.hamcrest</groupId>
145 <artifactId>hamcrest-core</artifactId>
146 <version>1.3</version>
147 </dependency>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000148
Eliza Margarethaff416632016-11-03 15:08:07 +0100149 <!-- JCache -->
150 <dependency>
151 <groupId>net.sf.jsr107cache</groupId>
152 <artifactId>jsr107cache</artifactId>
153 <version>1.0</version>
154 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000155
Eliza Margarethaff416632016-11-03 15:08:07 +0100156 <!-- Jersey -->
157 <dependency>
158 <groupId>org.glassfish.jersey.containers</groupId>
159 <artifactId>jersey-container-grizzly2-http</artifactId>
160 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000161
Eliza Margarethaff416632016-11-03 15:08:07 +0100162 <!-- JSON support in Jersey -->
163 <dependency>
164 <groupId>com.fasterxml.jackson.jaxrs</groupId>
165 <artifactId>jackson-jaxrs-json-provider</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100166 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100167 </dependency>
168
169 <!-- JSON support using Jackson -->
170 <!-- see https://github.com/FasterXML/jackson-core -->
171 <!-- https://github.com/FasterXML/jackson-databind -->
172 <dependency>
173 <groupId>com.fasterxml.jackson.core</groupId>
174 <artifactId>jackson-databind</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100175 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100176 </dependency>
177 <dependency>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-annotations</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-core</artifactId>
margaretha3b2c3512017-11-17 14:42:12 +0100185 <version>${jackson.version}</version>
Eliza Margarethaff416632016-11-03 15:08:07 +0100186 </dependency>
187
188 <!-- JSON-LD support -->
189 <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId>
190 <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental
191 annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId>
192 <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> -->
193
194 <!-- Some language extensions like StringUtil -->
195 <dependency>
196 <groupId>commons-lang</groupId>
197 <artifactId>commons-lang</artifactId>
198 <version>2.3</version>
199 </dependency>
200
201 <dependency>
202 <groupId>commons-cli</groupId>
203 <artifactId>commons-cli</artifactId>
204 <version>1.3.1</version>
205 </dependency>
206 </dependencies>
207
208 <build>
209 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
210 <outputDirectory>${basedir}/bin</outputDirectory>
211 <plugins>
212 <plugin>
213 <artifactId>maven-compiler-plugin</artifactId>
214 <version>2.5.1</version>
215 <inherited>true</inherited>
216 <configuration>
217 <showWarnings>true</showWarnings>
218 <source>1.7</source>
219 <target>1.7</target>
220 </configuration>
221 </plugin>
222
223 <plugin>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-shade-plugin</artifactId>
226 <version>2.4.1</version>
227 <executions>
228 <execution>
229 <id>indexer</id>
230 <phase>package</phase>
231 <goals>
232 <goal>shade</goal>
233 </goals>
234 <configuration>
235 <transformers>
236 <transformer
237 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
238 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
239 </transformer>
240 </transformers>
241 <finalName>${project.artifactId}-Indexer</finalName>
242 </configuration>
243 </execution>
244 <execution>
245 <id>server</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.server.Node</mainClass>
255 </transformer>
256 <transformer
257 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
258 <resource>krill.properties</resource>
259 </transformer>
260 </transformers>
261 <finalName>${project.name}-Server</finalName>
262 </configuration>
263 </execution>
264 </executions>
265 </plugin>
266
267 <plugin>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-surefire-plugin</artifactId>
270 <version>2.16</version>
271 <configuration>
272 <excludes>
273 <exclude>**/benchmark/*</exclude>
274 <exclude>**/TestWPDIndex.java</exclude>
275 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200276 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100277 </excludes>
278 </configuration>
279 </plugin>
280
281 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
282 <plugin>
283 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
284 <artifactId>maven-java-formatter-plugin</artifactId>
285 <version>0.4</version>
286 <configuration>
287 <configFile>${project.basedir}/Format.xml</configFile>
288 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
289 <compilerSource>1.7</compilerSource>
290 <compilerCompliance>1.7</compilerCompliance>
291 <compilerTargetPlatform>1.7</compilerTargetPlatform>
292 </configuration>
293 </plugin>
294
295 <plugin>
296 <groupId>org.codehaus.mojo</groupId>
297 <artifactId>exec-maven-plugin</artifactId>
298 <version>1.2.1</version>
299 <executions>
300 <execution>
301 <goals>
302 <goal>java</goal>
303 </goals>
304 </execution>
305 </executions>
306 <configuration>
307 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
308 </configuration>
309 </plugin>
310 </plugins>
311
312 <resources>
313 <resource>
314 <directory>src/main/resources</directory>
315 <filtering>true</filtering>
316 <includes>
317 <include>krill.info</include>
318 </includes>
319 </resource>
320 <resource>
321 <directory>src/main/resources</directory>
322 <filtering>false</filtering>
323 <excludes>
324 <exclude>krill.info</exclude>
325 </excludes>
326 </resource>
327 </resources>
328
329 <testResources>
330 <testResource>
331 <directory>src/test/resources</directory>
332 <filtering>true</filtering>
333 <includes>
334 <include>krill.properties</include>
335 </includes>
336 </testResource>
337 <testResource>
338 <directory>src/test/resources</directory>
339 <filtering>false</filtering>
340 <excludes>
341 <exclude>krill.properties</exclude>
342 </excludes>
343 </testResource>
344 </testResources>
345 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000346</project>