blob: 879d385b062b04688e62d6c8b7c5339ea5ca5730 [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
7 install the indexer and the performancetests
8 $ mvn clean compile assembly:single
9 Then run e.g.
10 $ java -jar target/KorAP-lucene-index-???-jar-with-dependencies.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/
11
12 ** Server
13 Start the server with
14 $mvn clean compile exec:java
15 -->
16
17 <!--
18 <parent>
19 <groupId>KorAP-modules</groupId>
20 <artifactId>KorAP-core-modules</artifactId>
21 <version>LATEST</version>
22 </parent>
23 -->
24
Nils Diewald7c50e2d2013-11-18 19:20:22 +000025 <groupId>KorAP-modules</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +000026 <artifactId>KorAP-lucene-index</artifactId>
Nils Diewald52d34d22014-09-25 00:50:13 +000027 <version>0.44</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000028 <packaging>jar</packaging>
29
30 <name>KorAP-lucene-index</name>
31 <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
45 <developer>
46 <name>Eliza Margaretha</name>
47 <email>margaretha@ids-mannheim.de</email>
48 </developer>
49
Nils Diewaldf399a672013-11-18 17:55:22 +000050 </developers>
51
52 <properties>
Nils Diewald32030a62014-09-03 20:16:50 +000053 <jersey.version>2.4.1</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000054 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55 </properties>
56
Nils Diewald32030a62014-09-03 20:16:50 +000057 <dependencyManagement>
58 <dependencies>
59 <dependency>
60 <groupId>org.glassfish.jersey</groupId>
61 <artifactId>jersey-bom</artifactId>
62 <version>${jersey.version}</version>
63 <type>pom</type>
64 <scope>import</scope>
65 </dependency>
66 </dependencies>
67 </dependencyManagement>
68
Nils Diewaldf399a672013-11-18 17:55:22 +000069 <dependencies>
70
71 <!-- junit dependency -->
72 <dependency>
73 <groupId>junit</groupId>
74 <artifactId>junit</artifactId>
75 <version>4.11</version>
76 <scope>test</scope>
77 </dependency>
78
79 <!-- log4j dependency -->
80 <dependency>
81 <groupId>log4j</groupId>
82 <artifactId>log4j</artifactId>
83 <version>1.2.17</version>
84 </dependency>
85 <dependency>
86 <groupId>org.slf4j</groupId>
87 <artifactId>slf4j-log4j12</artifactId>
88 <version>1.7.5</version>
89 </dependency>
90
Nils Diewald6aa929e2014-09-17 13:30:34 +000091 <!-- SQLite for database connection tests -->
92 <dependency>
93 <groupId>org.xerial</groupId>
94 <artifactId>sqlite-jdbc</artifactId>
95 <version>3.7.2</version>
96 </dependency>
97
98 <!-- Database Connection Pool Manager -->
99 <dependency>
100 <groupId>c3p0</groupId>
101 <artifactId>c3p0</artifactId>
102 <version>0.9.1.2</version>
103 </dependency>
104
Nils Diewalde26f03f2014-06-04 17:48:53 +0000105 <!-- solr dependency -->
Nils Diewald32030a62014-09-03 20:16:50 +0000106 <!--
Nils Diewalde26f03f2014-06-04 17:48:53 +0000107 <dependency>
108 <artifactId>solr-core</artifactId>
109 <groupId>org.apache.solr</groupId>
110 <version>4.3.1</version>
111 <type>jar</type>
112 <scope>compile</scope>
113 </dependency>
114
115 <dependency>
116 <artifactId>solr-test-framework</artifactId>
117 <groupId>org.apache.solr</groupId>
118 <version>4.3.1</version>
119 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000120 -->
Nils Diewalde26f03f2014-06-04 17:48:53 +0000121
Nils Diewaldf399a672013-11-18 17:55:22 +0000122 <!-- Lucene core dependency -->
123 <dependency>
124 <artifactId>lucene-core</artifactId>
125 <groupId>org.apache.lucene</groupId>
126 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000127 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000128 </dependency>
129
130 <!-- Lucene queryparser dependency -->
131 <dependency>
132 <artifactId>lucene-queryparser</artifactId>
133 <groupId>org.apache.lucene</groupId>
134 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000135 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000136 </dependency>
137
138 <!-- Lucene analyzers dependency -->
139 <dependency>
140 <artifactId>lucene-analyzers-common</artifactId>
141 <groupId>org.apache.lucene</groupId>
142 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000143 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000144 </dependency>
145
Nils Diewald8a1fc012014-02-19 15:23:33 +0000146 <dependency>
147 <groupId>org.hamcrest</groupId>
148 <artifactId>hamcrest-core</artifactId>
149 <version>1.3</version>
150 </dependency>
151
Nils Diewaldf399a672013-11-18 17:55:22 +0000152 <!-- JCache -->
153 <dependency>
154 <groupId>net.sf.jsr107cache</groupId>
155 <artifactId>jsr107cache</artifactId>
156 <version>1.0</version>
157 </dependency>
158
Nils Diewalde26f03f2014-06-04 17:48:53 +0000159 <!-- servlet dependency -->
Nils Diewald32030a62014-09-03 20:16:50 +0000160 <!--
Nils Diewalde26f03f2014-06-04 17:48:53 +0000161 <dependency>
162 <artifactId>servlet-api</artifactId>
163 <groupId>javax.servlet</groupId>
164 <version>2.5</version>
165 </dependency>
Nils Diewald2cd1c3d2014-01-08 22:53:08 +0000166 -->
167
Nils Diewald32030a62014-09-03 20:16:50 +0000168 <!-- Jersey -->
169 <dependency>
170 <groupId>org.glassfish.jersey.containers</groupId>
171 <artifactId>jersey-container-grizzly2-http</artifactId>
172 </dependency>
173
174 <dependency>
175 <groupId>com.sun.jersey.contribs</groupId>
176 <artifactId>jersey-freemarker</artifactId>
177 <version>1.13-b01</version>
178 </dependency>
179
Nils Diewaldff6f7662014-09-21 15:08:52 +0000180 <!-- Multipart support for Jersey -->
181 <!--
182 See
183 http://www.mkyong.com/webservices/jax-rs/file-upload-example-in-jersey/
184 <dependency>
185 <groupId>com.sun.jersey.contribs</groupId>
186 <artifactId>jersey-multipart</artifactId>
187 <version>1.13</version>
188 </dependency>
189 -->
190
Nils Diewald32030a62014-09-03 20:16:50 +0000191 <!-- JSON support -->
192 <dependency>
193 <groupId>org.glassfish.jersey.media</groupId>
194 <artifactId>jersey-media-moxy</artifactId>
195 </dependency>
196
Nils Diewaldf399a672013-11-18 17:55:22 +0000197 <!-- Jackson -->
198 <!-- see https://github.com/FasterXML/jackson-core -->
199 <!-- https://github.com/FasterXML/jackson-databind -->
200 <dependency>
201 <groupId>com.fasterxml.jackson.core</groupId>
202 <artifactId>jackson-databind</artifactId>
203 <version>2.2.2</version>
204 </dependency>
205 <dependency>
206 <groupId>com.fasterxml.jackson.core</groupId>
207 <artifactId>jackson-annotations</artifactId>
208 <version>2.2.2</version>
209 </dependency>
210 <dependency>
211 <groupId>com.fasterxml.jackson.core</groupId>
212 <artifactId>jackson-core</artifactId>
213 <version>2.2.2</version>
214 </dependency>
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>
222 <artifactId>maven-compiler-plugin</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +0000223 <version>2.5.1</version>
224 <inherited>true</inherited>
Nils Diewaldf399a672013-11-18 17:55:22 +0000225 <configuration>
226 <source>1.7</source>
227 <target>1.7</target>
228 </configuration>
229 </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>
235 <configuration>
236 <!--
237 <finalName>KorapTools</finalName>
238 -->
Eliza Margarethad28469f2014-03-10 12:42:21 +0000239
240 <archive>
241 <manifest>
242 <addClasspath>true</addClasspath>
243 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
244 </manifest>
245 </archive>
246
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000247 <appendAssemblyId>false</appendAssemblyId>
248 <descriptorRefs>
249 <descriptorRef>jar-with-dependencies</descriptorRef>
250 </descriptorRefs>
251 </configuration>
252 <executions>
253
254 <execution>
255 <id>KorapIndexer</id>
256 <phase>package</phase>
257 <goals>
258 <goal>single</goal>
259 </goals>
260 <configuration>
261 <finalName>KorapIndexer</finalName>
262 <archive>
263 <manifest>
264 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
265 </manifest>
266 </archive>
267 </configuration>
268 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000269 </executions>
270 </plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000271
Nils Diewaldf399a672013-11-18 17:55:22 +0000272 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000273 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000274 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000275 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000276 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000277 <excludes>
278 <exclude>**/TestRealIndex.java</exclude>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000279 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000280 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000281 <exclude>**/TestKorapSolr.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000282 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000283 </configuration>
284 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000285
286 <plugin>
287 <groupId>org.codehaus.mojo</groupId>
288 <artifactId>exec-maven-plugin</artifactId>
289 <version>1.2.1</version>
290 <executions>
291 <execution>
292 <goals>
293 <goal>java</goal>
294 </goals>
295 </execution>
296 </executions>
297 <configuration>
298 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
299 </configuration>
300 </plugin>
301
Nils Diewaldf399a672013-11-18 17:55:22 +0000302 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000303
304 <resources>
305 <resource>
306 <directory>src/main/resources</directory>
307 <filtering>true</filtering>
308 <includes>
309 <include>index.properties</include>
310 </includes>
311 </resource>
312 <resource>
313 <directory>src/main/resources</directory>
314 <filtering>false</filtering>
315 <excludes>
316 <exclude>index.properties</exclude>
317 </excludes>
318 </resource>
319 </resources>
320
321 <testResources>
322 <testResource>
323 <directory>src/test/resources</directory>
324 <filtering>true</filtering>
325 <includes>
326 <include>index.properties</include>
327 </includes>
328 </testResource>
329 <testResource>
330 <directory>src/test/resources</directory>
331 <filtering>false</filtering>
332 <excludes>
333 <exclude>index.properties</exclude>
334 </excludes>
335 </testResource>
336 </testResources>
337
Nils Diewaldf399a672013-11-18 17:55:22 +0000338 </build>
339</project>