blob: 4a1e5344213db0b9f9d1d9556e66e184d77acecb [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"
2 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
Nils Diewaldf6b351c2014-09-04 21:34:05 +00005 <!--
Nils Diewaldf6b351c2014-09-04 21:34:05 +00006 ** Server
Nils Diewaldd86c0682014-12-05 20:46:26 +00007 # Start the server with
Akroncb165f52015-08-24 16:20:48 +02008 $ mvn compile exec:java
Nils Diewaldd86c0682014-12-05 20:46:26 +00009
Akron09ae3732015-08-13 20:56:20 +020010 # Or after packaging
11 $ mvn clean package
12 # with
13 $ java -jar target/Krill-Server.jar
14
15
Nils Diewaldd86c0682014-12-05 20:46:26 +000016 ** Formatter
17 # Format the code with
18 $ mvn java-formatter:format
19
Akron09ae3732015-08-13 20:56:20 +020020 ** Indexer after packaging (see above)
21 $ java -jar target/Krill-Indexer.jar
Akronc5e73b82016-01-14 17:01:18 +010022 -cfg src/main/resources/krill.properties
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000023 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000024 -->
25
Nils Diewalde50bae02015-03-03 22:08:30 +000026 <groupId>de.ids_mannheim.korap</groupId>
Nils Diewaldbbd39a52015-02-23 19:56:57 +000027 <artifactId>Krill</artifactId>
Akron09a63ec2015-12-02 17:36:33 +010028 <version>0.55</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000029 <packaging>jar</packaging>
30
Nils Diewaldbbd39a52015-02-23 19:56:57 +000031 <name>Krill</name>
Nils Diewaldf399a672013-11-18 17:55:22 +000032 <url>http://www.ids-mannheim.de/</url>
33
34 <organization>
35 <name>IDS Mannheim</name>
36 <url>http://www.ids-mannheim.de/</url>
37 </organization>
38
39 <developers>
40 <developer>
41 <name>Nils Diewald</name>
42 <email>diewald@ids-mannheim.de</email>
43 <url>http://nils-diewald.de</url>
44 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000045 <developer>
46 <name>Eliza Margaretha</name>
47 <email>margaretha@ids-mannheim.de</email>
48 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000049 </developers>
50
51 <properties>
Nils Diewaldcb8afb32015-02-04 21:12:37 +000052 <jersey.version>2.15</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000053 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54 </properties>
55
Nils Diewald32030a62014-09-03 20:16:50 +000056 <dependencyManagement>
57 <dependencies>
58 <dependency>
59 <groupId>org.glassfish.jersey</groupId>
60 <artifactId>jersey-bom</artifactId>
61 <version>${jersey.version}</version>
62 <type>pom</type>
63 <scope>import</scope>
64 </dependency>
65 </dependencies>
66 </dependencyManagement>
67
Eliza Margarethaa929f272014-11-28 14:10:05 +000068 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000069 <!-- junit dependency -->
70 <dependency>
71 <groupId>junit</groupId>
72 <artifactId>junit</artifactId>
73 <version>4.11</version>
74 <scope>test</scope>
75 </dependency>
76
77 <!-- log4j dependency -->
78 <dependency>
79 <groupId>log4j</groupId>
80 <artifactId>log4j</artifactId>
81 <version>1.2.17</version>
82 </dependency>
83 <dependency>
84 <groupId>org.slf4j</groupId>
85 <artifactId>slf4j-log4j12</artifactId>
86 <version>1.7.5</version>
87 </dependency>
Marc Kupietza61d2ba2015-03-20 16:30:26 +010088 <dependency>
89 <groupId>org.slf4j</groupId>
90 <artifactId>jul-to-slf4j</artifactId>
91 <version>1.7.5</version>
92 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +000093
Nils Diewald6aa929e2014-09-17 13:30:34 +000094 <!-- SQLite for database connection tests -->
95 <dependency>
96 <groupId>org.xerial</groupId>
97 <artifactId>sqlite-jdbc</artifactId>
98 <version>3.7.2</version>
99 </dependency>
100
101 <!-- Database Connection Pool Manager -->
102 <dependency>
103 <groupId>c3p0</groupId>
104 <artifactId>c3p0</artifactId>
105 <version>0.9.1.2</version>
106 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000107
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 <!-- Lucene core dependency -->
109 <dependency>
110 <artifactId>lucene-core</artifactId>
111 <groupId>org.apache.lucene</groupId>
112 <type>jar</type>
Akron700c1eb2015-09-25 16:57:30 +0200113 <version>5.0.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000114 </dependency>
115
116 <!-- Lucene queryparser dependency -->
117 <dependency>
118 <artifactId>lucene-queryparser</artifactId>
119 <groupId>org.apache.lucene</groupId>
120 <type>jar</type>
Akron700c1eb2015-09-25 16:57:30 +0200121 <version>5.0.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000122 </dependency>
123
124 <!-- Lucene analyzers dependency -->
125 <dependency>
126 <artifactId>lucene-analyzers-common</artifactId>
127 <groupId>org.apache.lucene</groupId>
128 <type>jar</type>
Akron700c1eb2015-09-25 16:57:30 +0200129 <version>5.0.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000130 </dependency>
131
Nils Diewald8a1fc012014-02-19 15:23:33 +0000132 <dependency>
133 <groupId>org.hamcrest</groupId>
134 <artifactId>hamcrest-core</artifactId>
135 <version>1.3</version>
136 </dependency>
137
Nils Diewaldf399a672013-11-18 17:55:22 +0000138 <!-- JCache -->
139 <dependency>
140 <groupId>net.sf.jsr107cache</groupId>
141 <artifactId>jsr107cache</artifactId>
142 <version>1.0</version>
143 </dependency>
144
Nils Diewald32030a62014-09-03 20:16:50 +0000145 <!-- Jersey -->
146 <dependency>
147 <groupId>org.glassfish.jersey.containers</groupId>
148 <artifactId>jersey-container-grizzly2-http</artifactId>
149 </dependency>
150
151 <dependency>
152 <groupId>com.sun.jersey.contribs</groupId>
153 <artifactId>jersey-freemarker</artifactId>
154 <version>1.13-b01</version>
155 </dependency>
156
Nils Diewald2f2b0672014-11-25 20:26:22 +0000157 <!-- JSON support in Jersey -->
Marc Kupietza61d2ba2015-03-20 16:30:26 +0100158 <dependency>
159 <groupId>com.fasterxml.jackson.jaxrs</groupId>
160 <artifactId>jackson-jaxrs-json-provider</artifactId>
161 <version>2.4.4</version>
162 </dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000163 <!--
Nils Diewalde50bae02015-03-03 22:08:30 +0000164 <dependency>
165 <groupId>org.glassfish.jersey.media</groupId>
166 <artifactId>jersey-media-moxy</artifactId>
167 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000168 <dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000169 <groupId>com.sun.jersey</groupId>
170 <artifactId>jersey-json</artifactId>
171 <version>1.9</version>
172 </dependency>
Nils Diewalde50bae02015-03-03 22:08:30 +0000173 <dependency>
174 <groupId>org.glassfish.jersey.media</groupId>
175 <artifactId>jersey-media-json-jackson</artifactId>
176 <version>2.16</version>
177 </dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000178 -->
Nils Diewald32030a62014-09-03 20:16:50 +0000179
Nils Diewald2f2b0672014-11-25 20:26:22 +0000180 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000181 <!-- 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>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000186 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000187 </dependency>
188 <dependency>
189 <groupId>com.fasterxml.jackson.core</groupId>
190 <artifactId>jackson-annotations</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000191 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000192 </dependency>
193 <dependency>
194 <groupId>com.fasterxml.jackson.core</groupId>
195 <artifactId>jackson-core</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000196 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000197 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000198
199 <!-- JSON-LD support -->
200 <!--
201 <dependency>
202 <groupId>com.github.jsonld-java</groupId>
203 <artifactId>jsonld-java</artifactId>
204 <version>0.5.2-SNAPSHOT</version>
205 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000206
Nils Diewald5c63ab82014-12-04 22:53:20 +0000207 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000208 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000209 <groupId>KorapAnnotationProcessor</groupId>
210 <artifactId>KorapAnnotationProcessor</artifactId>
211 <version>0.0.1-SNAPSHOT</version>
212 <scope>compile</scope>
213 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000214 -->
215
Akron484c3c12015-07-07 20:25:44 +0200216 <!-- Some language extensions like StringUtil -->
217 <dependency>
218 <groupId>commons-lang</groupId>
219 <artifactId>commons-lang</artifactId>
220 <version>2.3</version>
221 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000222 </dependencies>
223
224 <build>
225 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
226 <outputDirectory>${basedir}/bin</outputDirectory>
227 <plugins>
228 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000229 <artifactId>maven-compiler-plugin</artifactId>
230 <version>2.5.1</version>
231 <inherited>true</inherited>
232 <configuration>
233 <showWarnings>true</showWarnings>
234 <source>1.7</source>
235 <target>1.7</target>
236 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000237 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000238
Nils Diewaldaee45452013-11-27 22:35:55 +0000239 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000240 <groupId>org.apache.maven.plugins</groupId>
Akron09ae3732015-08-13 20:56:20 +0200241 <artifactId>maven-shade-plugin</artifactId>
242 <version>2.4.1</version>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000243 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000244 <execution>
Akron09ae3732015-08-13 20:56:20 +0200245 <id>indexer</id>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000246 <phase>package</phase>
247 <goals>
Akron09ae3732015-08-13 20:56:20 +0200248 <goal>shade</goal>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000249 </goals>
250 <configuration>
Akron09ae3732015-08-13 20:56:20 +0200251 <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>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000258 </configuration>
259 </execution>
Akron09ae3732015-08-13 20:56:20 +0200260 <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 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>
Nils Diewaldaee45452013-11-27 22:35:55 +0000280 </plugin>
Akron09ae3732015-08-13 20:56:20 +0200281
Nils Diewaldf399a672013-11-18 17:55:22 +0000282 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000283 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000284 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000285 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000286 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000287 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000288 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000289 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000290 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000291 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000292 </configuration>
293 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000294
Nils Diewald2f2b0672014-11-25 20:26:22 +0000295 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000296 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000297 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000298 -->
299 <plugin>
300 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
301 <artifactId>maven-java-formatter-plugin</artifactId>
302 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000303 <configuration>
Nils Diewald857c9582015-03-03 21:16:14 +0000304 <configFile>${project.basedir}/Format.xml</configFile>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000305 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
306 <compilerSource>1.7</compilerSource>
307 <compilerCompliance>1.7</compilerCompliance>
308 <compilerTargetPlatform>1.7</compilerTargetPlatform>
309 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000310 </plugin>
311
Nils Diewald32030a62014-09-03 20:16:50 +0000312 <plugin>
313 <groupId>org.codehaus.mojo</groupId>
314 <artifactId>exec-maven-plugin</artifactId>
315 <version>1.2.1</version>
316 <executions>
317 <execution>
318 <goals>
319 <goal>java</goal>
320 </goals>
321 </execution>
322 </executions>
323 <configuration>
Nils Diewalde50bae02015-03-03 22:08:30 +0000324 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
Nils Diewald32030a62014-09-03 20:16:50 +0000325 </configuration>
326 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000327 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000328
329 <resources>
330 <resource>
331 <directory>src/main/resources</directory>
332 <filtering>true</filtering>
333 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000334 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000335 </includes>
336 </resource>
337 <resource>
338 <directory>src/main/resources</directory>
339 <filtering>false</filtering>
340 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000341 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000342 </excludes>
343 </resource>
344 </resources>
345
346 <testResources>
347 <testResource>
348 <directory>src/test/resources</directory>
349 <filtering>true</filtering>
350 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000351 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000352 </includes>
353 </testResource>
354 <testResource>
355 <directory>src/test/resources</directory>
356 <filtering>false</filtering>
357 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000358 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000359 </excludes>
360 </testResource>
361 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000362 </build>
363</project>