blob: 5b718d82a4db1054227cbf55bb1145f5e8da0eca [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 Diewald32030a62014-09-03 20:16:50 +000027 <version>0.40</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 Diewalde26f03f2014-06-04 17:48:53 +000091 <!-- solr dependency -->
Nils Diewald32030a62014-09-03 20:16:50 +000092 <!--
Nils Diewalde26f03f2014-06-04 17:48:53 +000093 <dependency>
94 <artifactId>solr-core</artifactId>
95 <groupId>org.apache.solr</groupId>
96 <version>4.3.1</version>
97 <type>jar</type>
98 <scope>compile</scope>
99 </dependency>
100
101 <dependency>
102 <artifactId>solr-test-framework</artifactId>
103 <groupId>org.apache.solr</groupId>
104 <version>4.3.1</version>
105 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000106 -->
Nils Diewalde26f03f2014-06-04 17:48:53 +0000107
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 <!-- Lucene core dependency -->
109 <dependency>
110 <artifactId>lucene-core</artifactId>
111 <groupId>org.apache.lucene</groupId>
112 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000113 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000114 </dependency>
115
116 <!-- Lucene queryparser dependency -->
117 <dependency>
118 <artifactId>lucene-queryparser</artifactId>
119 <groupId>org.apache.lucene</groupId>
120 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000121 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000122 </dependency>
123
124 <!-- Lucene analyzers dependency -->
125 <dependency>
126 <artifactId>lucene-analyzers-common</artifactId>
127 <groupId>org.apache.lucene</groupId>
128 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000129 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000130 </dependency>
131
Nils Diewald8a1fc012014-02-19 15:23:33 +0000132 <dependency>
133 <groupId>org.hamcrest</groupId>
134 <artifactId>hamcrest-core</artifactId>
135 <version>1.3</version>
136 </dependency>
137
Nils Diewaldf399a672013-11-18 17:55:22 +0000138 <!-- JCache -->
139 <dependency>
140 <groupId>net.sf.jsr107cache</groupId>
141 <artifactId>jsr107cache</artifactId>
142 <version>1.0</version>
143 </dependency>
144
Nils Diewalde26f03f2014-06-04 17:48:53 +0000145 <!-- servlet dependency -->
Nils Diewald32030a62014-09-03 20:16:50 +0000146 <!--
Nils Diewalde26f03f2014-06-04 17:48:53 +0000147 <dependency>
148 <artifactId>servlet-api</artifactId>
149 <groupId>javax.servlet</groupId>
150 <version>2.5</version>
151 </dependency>
Nils Diewald2cd1c3d2014-01-08 22:53:08 +0000152 -->
153
Nils Diewald32030a62014-09-03 20:16:50 +0000154 <!-- Jersey -->
155 <dependency>
156 <groupId>org.glassfish.jersey.containers</groupId>
157 <artifactId>jersey-container-grizzly2-http</artifactId>
158 </dependency>
159
160 <dependency>
161 <groupId>com.sun.jersey.contribs</groupId>
162 <artifactId>jersey-freemarker</artifactId>
163 <version>1.13-b01</version>
164 </dependency>
165
166 <!-- JSON support -->
167 <dependency>
168 <groupId>org.glassfish.jersey.media</groupId>
169 <artifactId>jersey-media-moxy</artifactId>
170 </dependency>
171
Nils Diewaldf399a672013-11-18 17:55:22 +0000172 <!-- Jackson -->
173 <!-- see https://github.com/FasterXML/jackson-core -->
174 <!-- https://github.com/FasterXML/jackson-databind -->
175 <dependency>
176 <groupId>com.fasterxml.jackson.core</groupId>
177 <artifactId>jackson-databind</artifactId>
178 <version>2.2.2</version>
179 </dependency>
180 <dependency>
181 <groupId>com.fasterxml.jackson.core</groupId>
182 <artifactId>jackson-annotations</artifactId>
183 <version>2.2.2</version>
184 </dependency>
185 <dependency>
186 <groupId>com.fasterxml.jackson.core</groupId>
187 <artifactId>jackson-core</artifactId>
188 <version>2.2.2</version>
189 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000190 </dependencies>
191
192 <build>
193 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
194 <outputDirectory>${basedir}/bin</outputDirectory>
195 <plugins>
196 <plugin>
197 <artifactId>maven-compiler-plugin</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +0000198 <version>2.5.1</version>
199 <inherited>true</inherited>
Nils Diewaldf399a672013-11-18 17:55:22 +0000200 <configuration>
201 <source>1.7</source>
202 <target>1.7</target>
203 </configuration>
204 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000205
Nils Diewaldaee45452013-11-27 22:35:55 +0000206 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-assembly-plugin</artifactId>
209 <version>2.2-beta-5</version>
210 <configuration>
211 <!--
212 <finalName>KorapTools</finalName>
213 -->
Eliza Margarethad28469f2014-03-10 12:42:21 +0000214
215 <archive>
216 <manifest>
217 <addClasspath>true</addClasspath>
218 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
219 </manifest>
220 </archive>
221
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000222 <appendAssemblyId>false</appendAssemblyId>
223 <descriptorRefs>
224 <descriptorRef>jar-with-dependencies</descriptorRef>
225 </descriptorRefs>
226 </configuration>
227 <executions>
228
229 <execution>
230 <id>KorapIndexer</id>
231 <phase>package</phase>
232 <goals>
233 <goal>single</goal>
234 </goals>
235 <configuration>
236 <finalName>KorapIndexer</finalName>
237 <archive>
238 <manifest>
239 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
240 </manifest>
241 </archive>
242 </configuration>
243 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000244 </executions>
245 </plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000246
Nils Diewaldf399a672013-11-18 17:55:22 +0000247 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000248 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000249 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000250 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000251 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000252 <excludes>
253 <exclude>**/TestRealIndex.java</exclude>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000254 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000255 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000256 <exclude>**/TestKorapSolr.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000257 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000258 </configuration>
259 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000260
261 <plugin>
262 <groupId>org.codehaus.mojo</groupId>
263 <artifactId>exec-maven-plugin</artifactId>
264 <version>1.2.1</version>
265 <executions>
266 <execution>
267 <goals>
268 <goal>java</goal>
269 </goals>
270 </execution>
271 </executions>
272 <configuration>
273 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
274 </configuration>
275 </plugin>
276
Nils Diewaldf399a672013-11-18 17:55:22 +0000277 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000278
279 <resources>
280 <resource>
281 <directory>src/main/resources</directory>
282 <filtering>true</filtering>
283 <includes>
284 <include>index.properties</include>
285 </includes>
286 </resource>
287 <resource>
288 <directory>src/main/resources</directory>
289 <filtering>false</filtering>
290 <excludes>
291 <exclude>index.properties</exclude>
292 </excludes>
293 </resource>
294 </resources>
295
296 <testResources>
297 <testResource>
298 <directory>src/test/resources</directory>
299 <filtering>true</filtering>
300 <includes>
301 <include>index.properties</include>
302 </includes>
303 </testResource>
304 <testResource>
305 <directory>src/test/resources</directory>
306 <filtering>false</filtering>
307 <excludes>
308 <exclude>index.properties</exclude>
309 </excludes>
310 </testResource>
311 </testResources>
312
Nils Diewaldf399a672013-11-18 17:55:22 +0000313 </build>
314</project>