blob: 5d4440acda80ef1bdeb8bbad02115d039e3b935c [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
18 # Then run e.g.
19 $ java -jar target/Krill-X.XX.jar
20 src/main/resources/korap.conf
21 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000022 -->
23
Nils Diewald7c50e2d2013-11-18 19:20:22 +000024 <groupId>KorAP-modules</groupId>
Nils Diewaldbbd39a52015-02-23 19:56:57 +000025 <artifactId>Krill</artifactId>
26 <version>0.50.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000027 <packaging>jar</packaging>
28
Nils Diewaldbbd39a52015-02-23 19:56:57 +000029 <name>Krill</name>
Nils Diewaldf399a672013-11-18 17:55:22 +000030 <url>http://www.ids-mannheim.de/</url>
31
32 <organization>
33 <name>IDS Mannheim</name>
34 <url>http://www.ids-mannheim.de/</url>
35 </organization>
36
37 <developers>
38 <developer>
39 <name>Nils Diewald</name>
40 <email>diewald@ids-mannheim.de</email>
41 <url>http://nils-diewald.de</url>
42 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000043 <developer>
44 <name>Eliza Margaretha</name>
45 <email>margaretha@ids-mannheim.de</email>
46 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000047 </developers>
48
49 <properties>
Nils Diewaldcb8afb32015-02-04 21:12:37 +000050 <jersey.version>2.15</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000051 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
52 </properties>
53
Nils Diewald32030a62014-09-03 20:16:50 +000054 <dependencyManagement>
55 <dependencies>
56 <dependency>
57 <groupId>org.glassfish.jersey</groupId>
58 <artifactId>jersey-bom</artifactId>
59 <version>${jersey.version}</version>
60 <type>pom</type>
61 <scope>import</scope>
62 </dependency>
63 </dependencies>
64 </dependencyManagement>
65
Eliza Margarethaa929f272014-11-28 14:10:05 +000066 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000067 <!-- junit dependency -->
68 <dependency>
69 <groupId>junit</groupId>
70 <artifactId>junit</artifactId>
71 <version>4.11</version>
72 <scope>test</scope>
73 </dependency>
74
75 <!-- log4j dependency -->
76 <dependency>
77 <groupId>log4j</groupId>
78 <artifactId>log4j</artifactId>
79 <version>1.2.17</version>
80 </dependency>
81 <dependency>
82 <groupId>org.slf4j</groupId>
83 <artifactId>slf4j-log4j12</artifactId>
84 <version>1.7.5</version>
85 </dependency>
86
Nils Diewald6aa929e2014-09-17 13:30:34 +000087 <!-- SQLite for database connection tests -->
88 <dependency>
89 <groupId>org.xerial</groupId>
90 <artifactId>sqlite-jdbc</artifactId>
91 <version>3.7.2</version>
92 </dependency>
93
94 <!-- Database Connection Pool Manager -->
95 <dependency>
96 <groupId>c3p0</groupId>
97 <artifactId>c3p0</artifactId>
98 <version>0.9.1.2</version>
99 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000100
Nils Diewaldf399a672013-11-18 17:55:22 +0000101 <!-- Lucene core dependency -->
102 <dependency>
103 <artifactId>lucene-core</artifactId>
104 <groupId>org.apache.lucene</groupId>
105 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000106 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000107 </dependency>
108
109 <!-- Lucene queryparser dependency -->
110 <dependency>
111 <artifactId>lucene-queryparser</artifactId>
112 <groupId>org.apache.lucene</groupId>
113 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000114 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000115 </dependency>
116
117 <!-- Lucene analyzers dependency -->
118 <dependency>
119 <artifactId>lucene-analyzers-common</artifactId>
120 <groupId>org.apache.lucene</groupId>
121 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000122 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000123 </dependency>
124
Nils Diewald8a1fc012014-02-19 15:23:33 +0000125 <dependency>
126 <groupId>org.hamcrest</groupId>
127 <artifactId>hamcrest-core</artifactId>
128 <version>1.3</version>
129 </dependency>
130
Nils Diewaldf399a672013-11-18 17:55:22 +0000131 <!-- JCache -->
132 <dependency>
133 <groupId>net.sf.jsr107cache</groupId>
134 <artifactId>jsr107cache</artifactId>
135 <version>1.0</version>
136 </dependency>
137
Nils Diewald32030a62014-09-03 20:16:50 +0000138 <!-- Jersey -->
139 <dependency>
140 <groupId>org.glassfish.jersey.containers</groupId>
141 <artifactId>jersey-container-grizzly2-http</artifactId>
142 </dependency>
143
144 <dependency>
145 <groupId>com.sun.jersey.contribs</groupId>
146 <artifactId>jersey-freemarker</artifactId>
147 <version>1.13-b01</version>
148 </dependency>
149
Nils Diewald2f2b0672014-11-25 20:26:22 +0000150 <!-- JSON support in Jersey -->
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000151 <!--
152 <dependency>
153 <groupId>org.glassfish.jersey.media</groupId>
154 <artifactId>jersey-media-moxy</artifactId>
155 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000156 <dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000157 <groupId>com.sun.jersey</groupId>
158 <artifactId>jersey-json</artifactId>
159 <version>1.9</version>
160 </dependency>
161 -->
162 <!--
163 <dependency>
164 <groupId>org.glassfish.jersey.media</groupId>
165 <artifactId>jersey-media-json-jackson</artifactId>
166 <version>2.16</version>
167 </dependency>
168 -->
169 <dependency>
170 <groupId>com.fasterxml.jackson.jaxrs</groupId>
171 <artifactId>jackson-jaxrs-json-provider</artifactId>
172 <version>2.4.4</version>
Nils Diewald32030a62014-09-03 20:16:50 +0000173 </dependency>
174
Nils Diewald2f2b0672014-11-25 20:26:22 +0000175 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000176 <!-- see https://github.com/FasterXML/jackson-core -->
177 <!-- https://github.com/FasterXML/jackson-databind -->
178 <dependency>
179 <groupId>com.fasterxml.jackson.core</groupId>
180 <artifactId>jackson-databind</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000181 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000182 </dependency>
183 <dependency>
184 <groupId>com.fasterxml.jackson.core</groupId>
185 <artifactId>jackson-annotations</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-core</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000191 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000192 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000193
194 <!-- JSON-LD support -->
195 <!--
196 <dependency>
197 <groupId>com.github.jsonld-java</groupId>
198 <artifactId>jsonld-java</artifactId>
199 <version>0.5.2-SNAPSHOT</version>
200 </dependency>
201 -->
202
203 <!--
Nils Diewald5c63ab82014-12-04 22:53:20 +0000204 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000205 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000206 <groupId>KorapAnnotationProcessor</groupId>
207 <artifactId>KorapAnnotationProcessor</artifactId>
208 <version>0.0.1-SNAPSHOT</version>
209 <scope>compile</scope>
210 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000211 -->
212
Nils Diewaldf399a672013-11-18 17:55:22 +0000213 </dependencies>
214
215 <build>
216 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
217 <outputDirectory>${basedir}/bin</outputDirectory>
218 <plugins>
219 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000220 <artifactId>maven-compiler-plugin</artifactId>
221 <version>2.5.1</version>
222 <inherited>true</inherited>
223 <configuration>
224 <showWarnings>true</showWarnings>
225 <source>1.7</source>
226 <target>1.7</target>
227 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000228 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000229
Nils Diewaldaee45452013-11-27 22:35:55 +0000230 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-assembly-plugin</artifactId>
233 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000234 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000235 <archive>
236 <manifest>
237 <addClasspath>true</addClasspath>
Nils Diewald6535c522015-02-26 17:45:24 +0000238 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000239 </manifest>
240 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000241 <appendAssemblyId>false</appendAssemblyId>
242 <descriptorRefs>
243 <descriptorRef>jar-with-dependencies</descriptorRef>
244 </descriptorRefs>
245 </configuration>
246 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000247 <execution>
Nils Diewald6535c522015-02-26 17:45:24 +0000248 <id>Indexer</id>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000249 <phase>package</phase>
250 <goals>
251 <goal>single</goal>
252 </goals>
253 <configuration>
Nils Diewald6535c522015-02-26 17:45:24 +0000254 <finalName>Indexer</finalName>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000255 <archive>
256 <manifest>
Nils Diewald6535c522015-02-26 17:45:24 +0000257 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000258 </manifest>
259 </archive>
260 </configuration>
261 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000262 </executions>
263 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000264
Nils Diewaldf399a672013-11-18 17:55:22 +0000265 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000266 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000267 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000268 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000269 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000270 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000271 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000272 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000273 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000274 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000275 </configuration>
276 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000277
Nils Diewald2f2b0672014-11-25 20:26:22 +0000278 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000279 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000280 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000281 -->
282 <plugin>
283 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
284 <artifactId>maven-java-formatter-plugin</artifactId>
285 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000286 <configuration>
287 <configFile>${project.basedir}/korap-style.xml</configFile>
288 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
289 <compilerSource>1.7</compilerSource>
290 <compilerCompliance>1.7</compilerCompliance>
291 <compilerTargetPlatform>1.7</compilerTargetPlatform>
292 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000293 </plugin>
294
Nils Diewald32030a62014-09-03 20:16:50 +0000295 <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.KorapNode</mainClass>
308 </configuration>
309 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000310 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000311
312 <resources>
313 <resource>
314 <directory>src/main/resources</directory>
315 <filtering>true</filtering>
316 <includes>
317 <include>index.properties</include>
318 </includes>
319 </resource>
320 <resource>
321 <directory>src/main/resources</directory>
322 <filtering>false</filtering>
323 <excludes>
324 <exclude>index.properties</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>index.properties</include>
335 </includes>
336 </testResource>
337 <testResource>
338 <directory>src/test/resources</directory>
339 <filtering>false</filtering>
340 <excludes>
341 <exclude>index.properties</exclude>
342 </excludes>
343 </testResource>
344 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000345 </build>
346</project>