blob: e0febda1ca123a786e33ddbca08c0124d6c9a749 [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
21 src/main/resources/korap.conf
22 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000023 -->
24
Nils Diewald7c50e2d2013-11-18 19:20:22 +000025 <groupId>KorAP-modules</groupId>
Nils Diewaldbbd39a52015-02-23 19:56:57 +000026 <artifactId>Krill</artifactId>
27 <version>0.50.1</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>
87
Nils Diewald6aa929e2014-09-17 13:30:34 +000088 <!-- SQLite for database connection tests -->
89 <dependency>
90 <groupId>org.xerial</groupId>
91 <artifactId>sqlite-jdbc</artifactId>
92 <version>3.7.2</version>
93 </dependency>
94
95 <!-- Database Connection Pool Manager -->
96 <dependency>
97 <groupId>c3p0</groupId>
98 <artifactId>c3p0</artifactId>
99 <version>0.9.1.2</version>
100 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000101
Nils Diewaldf399a672013-11-18 17:55:22 +0000102 <!-- Lucene core dependency -->
103 <dependency>
104 <artifactId>lucene-core</artifactId>
105 <groupId>org.apache.lucene</groupId>
106 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000107 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 </dependency>
109
110 <!-- Lucene queryparser dependency -->
111 <dependency>
112 <artifactId>lucene-queryparser</artifactId>
113 <groupId>org.apache.lucene</groupId>
114 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000115 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000116 </dependency>
117
118 <!-- Lucene analyzers dependency -->
119 <dependency>
120 <artifactId>lucene-analyzers-common</artifactId>
121 <groupId>org.apache.lucene</groupId>
122 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000123 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000124 </dependency>
125
Nils Diewald8a1fc012014-02-19 15:23:33 +0000126 <dependency>
127 <groupId>org.hamcrest</groupId>
128 <artifactId>hamcrest-core</artifactId>
129 <version>1.3</version>
130 </dependency>
131
Nils Diewaldf399a672013-11-18 17:55:22 +0000132 <!-- JCache -->
133 <dependency>
134 <groupId>net.sf.jsr107cache</groupId>
135 <artifactId>jsr107cache</artifactId>
136 <version>1.0</version>
137 </dependency>
138
Nils Diewald32030a62014-09-03 20:16:50 +0000139 <!-- Jersey -->
140 <dependency>
141 <groupId>org.glassfish.jersey.containers</groupId>
142 <artifactId>jersey-container-grizzly2-http</artifactId>
143 </dependency>
144
145 <dependency>
146 <groupId>com.sun.jersey.contribs</groupId>
147 <artifactId>jersey-freemarker</artifactId>
148 <version>1.13-b01</version>
149 </dependency>
150
Nils Diewald2f2b0672014-11-25 20:26:22 +0000151 <!-- JSON support in Jersey -->
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000152 <!--
153 <dependency>
154 <groupId>org.glassfish.jersey.media</groupId>
155 <artifactId>jersey-media-moxy</artifactId>
156 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000157 <dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000158 <groupId>com.sun.jersey</groupId>
159 <artifactId>jersey-json</artifactId>
160 <version>1.9</version>
161 </dependency>
162 -->
163 <!--
164 <dependency>
165 <groupId>org.glassfish.jersey.media</groupId>
166 <artifactId>jersey-media-json-jackson</artifactId>
167 <version>2.16</version>
168 </dependency>
169 -->
170 <dependency>
171 <groupId>com.fasterxml.jackson.jaxrs</groupId>
172 <artifactId>jackson-jaxrs-json-provider</artifactId>
173 <version>2.4.4</version>
Nils Diewald32030a62014-09-03 20:16:50 +0000174 </dependency>
175
Nils Diewald2f2b0672014-11-25 20:26:22 +0000176 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000177 <!-- see https://github.com/FasterXML/jackson-core -->
178 <!-- https://github.com/FasterXML/jackson-databind -->
179 <dependency>
180 <groupId>com.fasterxml.jackson.core</groupId>
181 <artifactId>jackson-databind</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000182 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000183 </dependency>
184 <dependency>
185 <groupId>com.fasterxml.jackson.core</groupId>
186 <artifactId>jackson-annotations</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000187 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000188 </dependency>
189 <dependency>
190 <groupId>com.fasterxml.jackson.core</groupId>
191 <artifactId>jackson-core</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000192 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000193 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000194
195 <!-- JSON-LD support -->
196 <!--
197 <dependency>
198 <groupId>com.github.jsonld-java</groupId>
199 <artifactId>jsonld-java</artifactId>
200 <version>0.5.2-SNAPSHOT</version>
201 </dependency>
202 -->
203
204 <!--
Nils Diewald5c63ab82014-12-04 22:53:20 +0000205 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000206 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000207 <groupId>KorapAnnotationProcessor</groupId>
208 <artifactId>KorapAnnotationProcessor</artifactId>
209 <version>0.0.1-SNAPSHOT</version>
210 <scope>compile</scope>
211 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000212 -->
213
Nils Diewaldf399a672013-11-18 17:55:22 +0000214 </dependencies>
215
216 <build>
217 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
218 <outputDirectory>${basedir}/bin</outputDirectory>
219 <plugins>
220 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000221 <artifactId>maven-compiler-plugin</artifactId>
222 <version>2.5.1</version>
223 <inherited>true</inherited>
224 <configuration>
225 <showWarnings>true</showWarnings>
226 <source>1.7</source>
227 <target>1.7</target>
228 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000229 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000230
Nils Diewaldaee45452013-11-27 22:35:55 +0000231 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-assembly-plugin</artifactId>
234 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000235 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000236 <archive>
237 <manifest>
238 <addClasspath>true</addClasspath>
Nils Diewald6535c522015-02-26 17:45:24 +0000239 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000240 </manifest>
241 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000242 <appendAssemblyId>false</appendAssemblyId>
243 <descriptorRefs>
244 <descriptorRef>jar-with-dependencies</descriptorRef>
245 </descriptorRefs>
246 </configuration>
247 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000248 <execution>
Nils Diewald6535c522015-02-26 17:45:24 +0000249 <id>Indexer</id>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000250 <phase>package</phase>
251 <goals>
252 <goal>single</goal>
253 </goals>
254 <configuration>
Nils Diewald6535c522015-02-26 17:45:24 +0000255 <finalName>Indexer</finalName>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000256 <archive>
257 <manifest>
Nils Diewald6535c522015-02-26 17:45:24 +0000258 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000259 </manifest>
260 </archive>
261 </configuration>
262 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000263 </executions>
264 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000265
Nils Diewaldf399a672013-11-18 17:55:22 +0000266 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000267 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000268 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000269 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000270 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000271 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000272 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000273 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000274 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000275 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000276 </configuration>
277 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000278
Nils Diewald2f2b0672014-11-25 20:26:22 +0000279 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000280 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000281 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000282 -->
283 <plugin>
284 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
285 <artifactId>maven-java-formatter-plugin</artifactId>
286 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000287 <configuration>
288 <configFile>${project.basedir}/korap-style.xml</configFile>
289 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
290 <compilerSource>1.7</compilerSource>
291 <compilerCompliance>1.7</compilerCompliance>
292 <compilerTargetPlatform>1.7</compilerTargetPlatform>
293 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000294 </plugin>
295
Nils Diewald32030a62014-09-03 20:16:50 +0000296 <plugin>
297 <groupId>org.codehaus.mojo</groupId>
298 <artifactId>exec-maven-plugin</artifactId>
299 <version>1.2.1</version>
300 <executions>
301 <execution>
302 <goals>
303 <goal>java</goal>
304 </goals>
305 </execution>
306 </executions>
307 <configuration>
308 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
309 </configuration>
310 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000311 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000312
313 <resources>
314 <resource>
315 <directory>src/main/resources</directory>
316 <filtering>true</filtering>
317 <includes>
318 <include>index.properties</include>
319 </includes>
320 </resource>
321 <resource>
322 <directory>src/main/resources</directory>
323 <filtering>false</filtering>
324 <excludes>
325 <exclude>index.properties</exclude>
326 </excludes>
327 </resource>
328 </resources>
329
330 <testResources>
331 <testResource>
332 <directory>src/test/resources</directory>
333 <filtering>true</filtering>
334 <includes>
335 <include>index.properties</include>
336 </includes>
337 </testResource>
338 <testResource>
339 <directory>src/test/resources</directory>
340 <filtering>false</filtering>
341 <excludes>
342 <exclude>index.properties</exclude>
343 </excludes>
344 </testResource>
345 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000346 </build>
347</project>