blob: 3c6da01e98ad9d385c349255060e43cb3dde954c [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
8 $ mvn clean compile exec:java
9
10 ** Formatter
11 # Format the code with
12 $ mvn java-formatter:format
13
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000014 ** Indexer
15 (This is not the preferred way to index new data!)
16 # install the indexer
17 $ mvn clean compile assembly:single
Nils Diewald392bcf32015-02-26 20:01:17 +000018
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000019 # Then run e.g.
20 $ java -jar target/Krill-X.XX.jar
Akronc63697c2015-06-17 22:32:02 +020021 src/main/resources/krill.properties
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000022 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000023 -->
24
Nils Diewalde50bae02015-03-03 22:08:30 +000025 <groupId>de.ids_mannheim.korap</groupId>
Nils Diewaldbbd39a52015-02-23 19:56:57 +000026 <artifactId>Krill</artifactId>
margarethab9ee3e52015-05-04 12:42:23 +020027 <version>0.52</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000028 <packaging>jar</packaging>
29
Nils Diewaldbbd39a52015-02-23 19:56:57 +000030 <name>Krill</name>
Nils Diewaldf399a672013-11-18 17:55:22 +000031 <url>http://www.ids-mannheim.de/</url>
32
33 <organization>
34 <name>IDS Mannheim</name>
35 <url>http://www.ids-mannheim.de/</url>
36 </organization>
37
38 <developers>
39 <developer>
40 <name>Nils Diewald</name>
41 <email>diewald@ids-mannheim.de</email>
42 <url>http://nils-diewald.de</url>
43 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000044 <developer>
45 <name>Eliza Margaretha</name>
46 <email>margaretha@ids-mannheim.de</email>
47 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000048 </developers>
49
50 <properties>
Nils Diewaldcb8afb32015-02-04 21:12:37 +000051 <jersey.version>2.15</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000052 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53 </properties>
54
Nils Diewald32030a62014-09-03 20:16:50 +000055 <dependencyManagement>
56 <dependencies>
57 <dependency>
58 <groupId>org.glassfish.jersey</groupId>
59 <artifactId>jersey-bom</artifactId>
60 <version>${jersey.version}</version>
61 <type>pom</type>
62 <scope>import</scope>
63 </dependency>
64 </dependencies>
65 </dependencyManagement>
66
Eliza Margarethaa929f272014-11-28 14:10:05 +000067 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000068 <!-- junit dependency -->
69 <dependency>
70 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
72 <version>4.11</version>
73 <scope>test</scope>
74 </dependency>
75
76 <!-- log4j dependency -->
77 <dependency>
78 <groupId>log4j</groupId>
79 <artifactId>log4j</artifactId>
80 <version>1.2.17</version>
81 </dependency>
82 <dependency>
83 <groupId>org.slf4j</groupId>
84 <artifactId>slf4j-log4j12</artifactId>
85 <version>1.7.5</version>
86 </dependency>
Marc Kupietza61d2ba2015-03-20 16:30:26 +010087 <dependency>
88 <groupId>org.slf4j</groupId>
89 <artifactId>jul-to-slf4j</artifactId>
90 <version>1.7.5</version>
91 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +000092
Nils Diewald6aa929e2014-09-17 13:30:34 +000093 <!-- SQLite for database connection tests -->
94 <dependency>
95 <groupId>org.xerial</groupId>
96 <artifactId>sqlite-jdbc</artifactId>
97 <version>3.7.2</version>
98 </dependency>
99
100 <!-- Database Connection Pool Manager -->
101 <dependency>
102 <groupId>c3p0</groupId>
103 <artifactId>c3p0</artifactId>
104 <version>0.9.1.2</version>
105 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000106
Nils Diewaldf399a672013-11-18 17:55:22 +0000107 <!-- Lucene core dependency -->
108 <dependency>
109 <artifactId>lucene-core</artifactId>
110 <groupId>org.apache.lucene</groupId>
111 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000112 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000113 </dependency>
114
115 <!-- Lucene queryparser dependency -->
116 <dependency>
117 <artifactId>lucene-queryparser</artifactId>
118 <groupId>org.apache.lucene</groupId>
119 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000120 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000121 </dependency>
122
123 <!-- Lucene analyzers dependency -->
124 <dependency>
125 <artifactId>lucene-analyzers-common</artifactId>
126 <groupId>org.apache.lucene</groupId>
127 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000128 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000129 </dependency>
130
Nils Diewald8a1fc012014-02-19 15:23:33 +0000131 <dependency>
132 <groupId>org.hamcrest</groupId>
133 <artifactId>hamcrest-core</artifactId>
134 <version>1.3</version>
135 </dependency>
136
Nils Diewaldf399a672013-11-18 17:55:22 +0000137 <!-- JCache -->
138 <dependency>
139 <groupId>net.sf.jsr107cache</groupId>
140 <artifactId>jsr107cache</artifactId>
141 <version>1.0</version>
142 </dependency>
143
Nils Diewald32030a62014-09-03 20:16:50 +0000144 <!-- Jersey -->
145 <dependency>
146 <groupId>org.glassfish.jersey.containers</groupId>
147 <artifactId>jersey-container-grizzly2-http</artifactId>
148 </dependency>
149
150 <dependency>
151 <groupId>com.sun.jersey.contribs</groupId>
152 <artifactId>jersey-freemarker</artifactId>
153 <version>1.13-b01</version>
154 </dependency>
155
Nils Diewald2f2b0672014-11-25 20:26:22 +0000156 <!-- JSON support in Jersey -->
Marc Kupietza61d2ba2015-03-20 16:30:26 +0100157 <dependency>
158 <groupId>com.fasterxml.jackson.jaxrs</groupId>
159 <artifactId>jackson-jaxrs-json-provider</artifactId>
160 <version>2.4.4</version>
161 </dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000162 <!--
Nils Diewalde50bae02015-03-03 22:08:30 +0000163 <dependency>
164 <groupId>org.glassfish.jersey.media</groupId>
165 <artifactId>jersey-media-moxy</artifactId>
166 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000167 <dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000168 <groupId>com.sun.jersey</groupId>
169 <artifactId>jersey-json</artifactId>
170 <version>1.9</version>
171 </dependency>
Nils Diewalde50bae02015-03-03 22:08:30 +0000172 <dependency>
173 <groupId>org.glassfish.jersey.media</groupId>
174 <artifactId>jersey-media-json-jackson</artifactId>
175 <version>2.16</version>
176 </dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000177 -->
Nils Diewald32030a62014-09-03 20:16:50 +0000178
Nils Diewald2f2b0672014-11-25 20:26:22 +0000179 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000180 <!-- see https://github.com/FasterXML/jackson-core -->
181 <!-- https://github.com/FasterXML/jackson-databind -->
182 <dependency>
183 <groupId>com.fasterxml.jackson.core</groupId>
184 <artifactId>jackson-databind</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000185 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000186 </dependency>
187 <dependency>
188 <groupId>com.fasterxml.jackson.core</groupId>
189 <artifactId>jackson-annotations</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000190 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000191 </dependency>
192 <dependency>
193 <groupId>com.fasterxml.jackson.core</groupId>
194 <artifactId>jackson-core</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000195 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000196 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000197
198 <!-- JSON-LD support -->
199 <!--
200 <dependency>
201 <groupId>com.github.jsonld-java</groupId>
202 <artifactId>jsonld-java</artifactId>
203 <version>0.5.2-SNAPSHOT</version>
204 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000205
Nils Diewald5c63ab82014-12-04 22:53:20 +0000206 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000207 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000208 <groupId>KorapAnnotationProcessor</groupId>
209 <artifactId>KorapAnnotationProcessor</artifactId>
210 <version>0.0.1-SNAPSHOT</version>
211 <scope>compile</scope>
212 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000213 -->
214
Nils Diewaldf399a672013-11-18 17:55:22 +0000215 </dependencies>
216
217 <build>
218 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
219 <outputDirectory>${basedir}/bin</outputDirectory>
220 <plugins>
221 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000222 <artifactId>maven-compiler-plugin</artifactId>
223 <version>2.5.1</version>
224 <inherited>true</inherited>
225 <configuration>
226 <showWarnings>true</showWarnings>
227 <source>1.7</source>
228 <target>1.7</target>
229 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000230 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000231
Nils Diewaldaee45452013-11-27 22:35:55 +0000232 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-assembly-plugin</artifactId>
235 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000236 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000237 <archive>
238 <manifest>
239 <addClasspath>true</addClasspath>
Nils Diewald6535c522015-02-26 17:45:24 +0000240 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000241 </manifest>
242 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000243 <appendAssemblyId>false</appendAssemblyId>
244 <descriptorRefs>
245 <descriptorRef>jar-with-dependencies</descriptorRef>
246 </descriptorRefs>
247 </configuration>
248 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000249 <execution>
Nils Diewald6535c522015-02-26 17:45:24 +0000250 <id>Indexer</id>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000251 <phase>package</phase>
252 <goals>
253 <goal>single</goal>
254 </goals>
255 <configuration>
Nils Diewald6535c522015-02-26 17:45:24 +0000256 <finalName>Indexer</finalName>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000257 <archive>
258 <manifest>
Nils Diewald6535c522015-02-26 17:45:24 +0000259 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000260 </manifest>
261 </archive>
262 </configuration>
263 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000264 </executions>
265 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000266
Nils Diewaldf399a672013-11-18 17:55:22 +0000267 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000268 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000269 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000270 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000271 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000272 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000273 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000274 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000275 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000276 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000277 </configuration>
278 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000279
Nils Diewald2f2b0672014-11-25 20:26:22 +0000280 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000281 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000282 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000283 -->
284 <plugin>
285 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
286 <artifactId>maven-java-formatter-plugin</artifactId>
287 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000288 <configuration>
Nils Diewald857c9582015-03-03 21:16:14 +0000289 <configFile>${project.basedir}/Format.xml</configFile>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000290 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
291 <compilerSource>1.7</compilerSource>
292 <compilerCompliance>1.7</compilerCompliance>
293 <compilerTargetPlatform>1.7</compilerTargetPlatform>
294 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000295 </plugin>
296
Nils Diewald32030a62014-09-03 20:16:50 +0000297 <plugin>
298 <groupId>org.codehaus.mojo</groupId>
299 <artifactId>exec-maven-plugin</artifactId>
300 <version>1.2.1</version>
301 <executions>
302 <execution>
303 <goals>
304 <goal>java</goal>
305 </goals>
306 </execution>
307 </executions>
308 <configuration>
Nils Diewalde50bae02015-03-03 22:08:30 +0000309 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
Nils Diewald32030a62014-09-03 20:16:50 +0000310 </configuration>
311 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000312 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000313
314 <resources>
315 <resource>
316 <directory>src/main/resources</directory>
317 <filtering>true</filtering>
318 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000319 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000320 </includes>
321 </resource>
322 <resource>
323 <directory>src/main/resources</directory>
324 <filtering>false</filtering>
325 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000326 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000327 </excludes>
328 </resource>
329 </resources>
330
331 <testResources>
332 <testResource>
333 <directory>src/test/resources</directory>
334 <filtering>true</filtering>
335 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000336 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000337 </includes>
338 </testResource>
339 <testResource>
340 <directory>src/test/resources</directory>
341 <filtering>false</filtering>
342 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000343 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000344 </excludes>
345 </testResource>
346 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000347 </build>
348</project>