blob: 2659c8631edb8b5083251b4229c1b74fef843547 [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 <!--
6 ** Indexer
Nils Diewaldd86c0682014-12-05 20:46:26 +00007 # install the indexer
Nils Diewaldf6b351c2014-09-04 21:34:05 +00008 $ mvn clean compile assembly:single
Nils Diewaldd86c0682014-12-05 20:46:26 +00009 # Then run e.g.
Nils Diewaldbbd39a52015-02-23 19:56:57 +000010 $ java -jar target/Krill-X.XX.jar
Nils Diewaldd86c0682014-12-05 20:46:26 +000011 src/main/resources/korap.conf
12 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000013
14 ** Server
Nils Diewaldd86c0682014-12-05 20:46:26 +000015 # Start the server with
16 $ mvn clean compile exec:java
17
18 ** Formatter
19 # Format the code with
20 $ mvn java-formatter:format
21
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 Diewald5c63ab82014-12-04 22:53:20 +0000193<!--
194 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000195 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000196 <groupId>KorapAnnotationProcessor</groupId>
197 <artifactId>KorapAnnotationProcessor</artifactId>
198 <version>0.0.1-SNAPSHOT</version>
199 <scope>compile</scope>
200 </dependency>
201-->
Nils Diewaldf399a672013-11-18 17:55:22 +0000202 </dependencies>
203
204 <build>
205 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
206 <outputDirectory>${basedir}/bin</outputDirectory>
207 <plugins>
208 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000209 <artifactId>maven-compiler-plugin</artifactId>
210 <version>2.5.1</version>
211 <inherited>true</inherited>
212 <configuration>
213 <showWarnings>true</showWarnings>
214 <source>1.7</source>
215 <target>1.7</target>
216 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000217 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000218
Nils Diewaldaee45452013-11-27 22:35:55 +0000219 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-assembly-plugin</artifactId>
222 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000223 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000224 <archive>
225 <manifest>
226 <addClasspath>true</addClasspath>
227 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
228 </manifest>
229 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000230 <appendAssemblyId>false</appendAssemblyId>
231 <descriptorRefs>
232 <descriptorRef>jar-with-dependencies</descriptorRef>
233 </descriptorRefs>
234 </configuration>
235 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000236 <execution>
237 <id>KorapIndexer</id>
238 <phase>package</phase>
239 <goals>
240 <goal>single</goal>
241 </goals>
242 <configuration>
243 <finalName>KorapIndexer</finalName>
244 <archive>
245 <manifest>
246 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
247 </manifest>
248 </archive>
249 </configuration>
250 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000251 </executions>
252 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000253
Nils Diewaldf399a672013-11-18 17:55:22 +0000254 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000255 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000256 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000257 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000258 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000259 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000260 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000261 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000262 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000263 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000264 </configuration>
265 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000266
Nils Diewald2f2b0672014-11-25 20:26:22 +0000267 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000268 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000269 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000270 -->
271 <plugin>
272 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
273 <artifactId>maven-java-formatter-plugin</artifactId>
274 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000275 <configuration>
276 <configFile>${project.basedir}/korap-style.xml</configFile>
277 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
278 <compilerSource>1.7</compilerSource>
279 <compilerCompliance>1.7</compilerCompliance>
280 <compilerTargetPlatform>1.7</compilerTargetPlatform>
281 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000282 </plugin>
283
Nils Diewald32030a62014-09-03 20:16:50 +0000284 <plugin>
285 <groupId>org.codehaus.mojo</groupId>
286 <artifactId>exec-maven-plugin</artifactId>
287 <version>1.2.1</version>
288 <executions>
289 <execution>
290 <goals>
291 <goal>java</goal>
292 </goals>
293 </execution>
294 </executions>
295 <configuration>
296 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
297 </configuration>
298 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000299 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000300
301 <resources>
302 <resource>
303 <directory>src/main/resources</directory>
304 <filtering>true</filtering>
305 <includes>
306 <include>index.properties</include>
307 </includes>
308 </resource>
309 <resource>
310 <directory>src/main/resources</directory>
311 <filtering>false</filtering>
312 <excludes>
313 <exclude>index.properties</exclude>
314 </excludes>
315 </resource>
316 </resources>
317
318 <testResources>
319 <testResource>
320 <directory>src/test/resources</directory>
321 <filtering>true</filtering>
322 <includes>
323 <include>index.properties</include>
324 </includes>
325 </testResource>
326 <testResource>
327 <directory>src/test/resources</directory>
328 <filtering>false</filtering>
329 <excludes>
330 <exclude>index.properties</exclude>
331 </excludes>
332 </testResource>
333 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000334 </build>
335</project>