blob: 8a3a06f67a6247ddf372aa9a46d994a0b786687d [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 Diewald79f6c4d2014-09-17 17:34:01 +000027 <version>0.42</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
180 <!-- JSON support -->
181 <dependency>
182 <groupId>org.glassfish.jersey.media</groupId>
183 <artifactId>jersey-media-moxy</artifactId>
184 </dependency>
185
Nils Diewaldf399a672013-11-18 17:55:22 +0000186 <!-- Jackson -->
187 <!-- see https://github.com/FasterXML/jackson-core -->
188 <!-- https://github.com/FasterXML/jackson-databind -->
189 <dependency>
190 <groupId>com.fasterxml.jackson.core</groupId>
191 <artifactId>jackson-databind</artifactId>
192 <version>2.2.2</version>
193 </dependency>
194 <dependency>
195 <groupId>com.fasterxml.jackson.core</groupId>
196 <artifactId>jackson-annotations</artifactId>
197 <version>2.2.2</version>
198 </dependency>
199 <dependency>
200 <groupId>com.fasterxml.jackson.core</groupId>
201 <artifactId>jackson-core</artifactId>
202 <version>2.2.2</version>
203 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000204 </dependencies>
205
206 <build>
207 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
208 <outputDirectory>${basedir}/bin</outputDirectory>
209 <plugins>
210 <plugin>
211 <artifactId>maven-compiler-plugin</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +0000212 <version>2.5.1</version>
213 <inherited>true</inherited>
Nils Diewaldf399a672013-11-18 17:55:22 +0000214 <configuration>
215 <source>1.7</source>
216 <target>1.7</target>
217 </configuration>
218 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000219
Nils Diewaldaee45452013-11-27 22:35:55 +0000220 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-assembly-plugin</artifactId>
223 <version>2.2-beta-5</version>
224 <configuration>
225 <!--
226 <finalName>KorapTools</finalName>
227 -->
Eliza Margarethad28469f2014-03-10 12:42:21 +0000228
229 <archive>
230 <manifest>
231 <addClasspath>true</addClasspath>
232 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
233 </manifest>
234 </archive>
235
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000236 <appendAssemblyId>false</appendAssemblyId>
237 <descriptorRefs>
238 <descriptorRef>jar-with-dependencies</descriptorRef>
239 </descriptorRefs>
240 </configuration>
241 <executions>
242
243 <execution>
244 <id>KorapIndexer</id>
245 <phase>package</phase>
246 <goals>
247 <goal>single</goal>
248 </goals>
249 <configuration>
250 <finalName>KorapIndexer</finalName>
251 <archive>
252 <manifest>
253 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
254 </manifest>
255 </archive>
256 </configuration>
257 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000258 </executions>
259 </plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000260
Nils Diewaldf399a672013-11-18 17:55:22 +0000261 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000262 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000263 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000264 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000265 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000266 <excludes>
267 <exclude>**/TestRealIndex.java</exclude>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000268 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000269 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000270 <exclude>**/TestKorapSolr.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000271 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000272 </configuration>
273 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000274
275 <plugin>
276 <groupId>org.codehaus.mojo</groupId>
277 <artifactId>exec-maven-plugin</artifactId>
278 <version>1.2.1</version>
279 <executions>
280 <execution>
281 <goals>
282 <goal>java</goal>
283 </goals>
284 </execution>
285 </executions>
286 <configuration>
287 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
288 </configuration>
289 </plugin>
290
Nils Diewaldf399a672013-11-18 17:55:22 +0000291 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000292
293 <resources>
294 <resource>
295 <directory>src/main/resources</directory>
296 <filtering>true</filtering>
297 <includes>
298 <include>index.properties</include>
299 </includes>
300 </resource>
301 <resource>
302 <directory>src/main/resources</directory>
303 <filtering>false</filtering>
304 <excludes>
305 <exclude>index.properties</exclude>
306 </excludes>
307 </resource>
308 </resources>
309
310 <testResources>
311 <testResource>
312 <directory>src/test/resources</directory>
313 <filtering>true</filtering>
314 <includes>
315 <include>index.properties</include>
316 </includes>
317 </testResource>
318 <testResource>
319 <directory>src/test/resources</directory>
320 <filtering>false</filtering>
321 <excludes>
322 <exclude>index.properties</exclude>
323 </excludes>
324 </testResource>
325 </testResources>
326
Nils Diewaldf399a672013-11-18 17:55:22 +0000327 </build>
328</project>