blob: 78279d8424bc39d408d31028fbe6ad5d23151643 [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>
Akrond5789302018-01-31 09:18:14 +010038 <version>0.56.1</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
199 <!-- Some language extensions like StringUtil -->
200 <dependency>
201 <groupId>commons-lang</groupId>
202 <artifactId>commons-lang</artifactId>
203 <version>2.3</version>
204 </dependency>
205
206 <dependency>
207 <groupId>commons-cli</groupId>
208 <artifactId>commons-cli</artifactId>
209 <version>1.3.1</version>
210 </dependency>
211 </dependencies>
212
213 <build>
214 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
215 <outputDirectory>${basedir}/bin</outputDirectory>
216 <plugins>
217 <plugin>
218 <artifactId>maven-compiler-plugin</artifactId>
219 <version>2.5.1</version>
220 <inherited>true</inherited>
221 <configuration>
222 <showWarnings>true</showWarnings>
223 <source>1.7</source>
224 <target>1.7</target>
225 </configuration>
226 </plugin>
227
228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-shade-plugin</artifactId>
231 <version>2.4.1</version>
232 <executions>
233 <execution>
234 <id>indexer</id>
235 <phase>package</phase>
236 <goals>
237 <goal>shade</goal>
238 </goals>
239 <configuration>
240 <transformers>
241 <transformer
242 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
243 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
244 </transformer>
245 </transformers>
246 <finalName>${project.artifactId}-Indexer</finalName>
247 </configuration>
248 </execution>
249 <execution>
250 <id>server</id>
251 <phase>package</phase>
252 <goals>
253 <goal>shade</goal>
254 </goals>
255 <configuration>
256 <transformers>
257 <transformer
258 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
259 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
260 </transformer>
261 <transformer
262 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
263 <resource>krill.properties</resource>
264 </transformer>
265 </transformers>
266 <finalName>${project.name}-Server</finalName>
267 </configuration>
268 </execution>
269 </executions>
270 </plugin>
271
272 <plugin>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-surefire-plugin</artifactId>
275 <version>2.16</version>
276 <configuration>
277 <excludes>
278 <exclude>**/benchmark/*</exclude>
279 <exclude>**/TestWPDIndex.java</exclude>
280 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200281 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100282 </excludes>
283 </configuration>
284 </plugin>
285
286 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
287 <plugin>
288 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
289 <artifactId>maven-java-formatter-plugin</artifactId>
290 <version>0.4</version>
291 <configuration>
292 <configFile>${project.basedir}/Format.xml</configFile>
293 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
294 <compilerSource>1.7</compilerSource>
295 <compilerCompliance>1.7</compilerCompliance>
296 <compilerTargetPlatform>1.7</compilerTargetPlatform>
297 </configuration>
298 </plugin>
299
300 <plugin>
301 <groupId>org.codehaus.mojo</groupId>
302 <artifactId>exec-maven-plugin</artifactId>
303 <version>1.2.1</version>
304 <executions>
305 <execution>
306 <goals>
307 <goal>java</goal>
308 </goals>
309 </execution>
310 </executions>
311 <configuration>
312 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
313 </configuration>
314 </plugin>
315 </plugins>
316
317 <resources>
318 <resource>
319 <directory>src/main/resources</directory>
320 <filtering>true</filtering>
321 <includes>
322 <include>krill.info</include>
323 </includes>
324 </resource>
325 <resource>
326 <directory>src/main/resources</directory>
327 <filtering>false</filtering>
328 <excludes>
329 <exclude>krill.info</exclude>
330 </excludes>
331 </resource>
332 </resources>
333
334 <testResources>
335 <testResource>
336 <directory>src/test/resources</directory>
337 <filtering>true</filtering>
338 <includes>
339 <include>krill.properties</include>
340 </includes>
341 </testResource>
342 <testResource>
343 <directory>src/test/resources</directory>
344 <filtering>false</filtering>
345 <excludes>
346 <exclude>krill.properties</exclude>
347 </excludes>
348 </testResource>
349 </testResources>
350 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000351</project>