blob: 65588874d9bf796c4b51dad7ff19f152fd97f72a [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
5<!--
Nils Diewald7c50e2d2013-11-18 19:20:22 +00006 <parent>
7 <groupId>KorAP-modules</groupId>
8 <artifactId>KorAP-core-modules</artifactId>
Nils Diewald345bdc02014-01-21 21:48:57 +00009 <version>LATEST</version>
Nils Diewald7c50e2d2013-11-18 19:20:22 +000010 </parent>
Nils Diewald97b66382014-02-11 00:32:23 +000011-->
Nils Diewald7c50e2d2013-11-18 19:20:22 +000012 <groupId>KorAP-modules</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +000013 <artifactId>KorAP-lucene-index</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +000014 <version>0.40</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000015 <packaging>jar</packaging>
16
17 <name>KorAP-lucene-index</name>
18 <url>http://www.ids-mannheim.de/</url>
19
20 <organization>
21 <name>IDS Mannheim</name>
22 <url>http://www.ids-mannheim.de/</url>
23 </organization>
24
25 <developers>
26 <developer>
27 <name>Nils Diewald</name>
28 <email>diewald@ids-mannheim.de</email>
29 <url>http://nils-diewald.de</url>
30 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000031
32 <developer>
33 <name>Eliza Margaretha</name>
34 <email>margaretha@ids-mannheim.de</email>
35 </developer>
36
Nils Diewaldf399a672013-11-18 17:55:22 +000037 </developers>
38
39 <properties>
Nils Diewald32030a62014-09-03 20:16:50 +000040 <jersey.version>2.4.1</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000041 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 </properties>
43
Nils Diewald32030a62014-09-03 20:16:50 +000044 <dependencyManagement>
45 <dependencies>
46 <dependency>
47 <groupId>org.glassfish.jersey</groupId>
48 <artifactId>jersey-bom</artifactId>
49 <version>${jersey.version}</version>
50 <type>pom</type>
51 <scope>import</scope>
52 </dependency>
53 </dependencies>
54 </dependencyManagement>
55
Nils Diewaldf399a672013-11-18 17:55:22 +000056 <dependencies>
57
58 <!-- junit dependency -->
59 <dependency>
60 <groupId>junit</groupId>
61 <artifactId>junit</artifactId>
62 <version>4.11</version>
63 <scope>test</scope>
64 </dependency>
65
66 <!-- log4j dependency -->
67 <dependency>
68 <groupId>log4j</groupId>
69 <artifactId>log4j</artifactId>
70 <version>1.2.17</version>
71 </dependency>
72 <dependency>
73 <groupId>org.slf4j</groupId>
74 <artifactId>slf4j-log4j12</artifactId>
75 <version>1.7.5</version>
76 </dependency>
77
Nils Diewalde26f03f2014-06-04 17:48:53 +000078 <!-- solr dependency -->
Nils Diewald32030a62014-09-03 20:16:50 +000079 <!--
Nils Diewalde26f03f2014-06-04 17:48:53 +000080 <dependency>
81 <artifactId>solr-core</artifactId>
82 <groupId>org.apache.solr</groupId>
83 <version>4.3.1</version>
84 <type>jar</type>
85 <scope>compile</scope>
86 </dependency>
87
88 <dependency>
89 <artifactId>solr-test-framework</artifactId>
90 <groupId>org.apache.solr</groupId>
91 <version>4.3.1</version>
92 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +000093 -->
Nils Diewalde26f03f2014-06-04 17:48:53 +000094
Nils Diewaldf399a672013-11-18 17:55:22 +000095 <!-- Lucene core dependency -->
96 <dependency>
97 <artifactId>lucene-core</artifactId>
98 <groupId>org.apache.lucene</groupId>
99 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000100 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000101 </dependency>
102
103 <!-- Lucene queryparser dependency -->
104 <dependency>
105 <artifactId>lucene-queryparser</artifactId>
106 <groupId>org.apache.lucene</groupId>
107 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000108 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000109 </dependency>
110
111 <!-- Lucene analyzers dependency -->
112 <dependency>
113 <artifactId>lucene-analyzers-common</artifactId>
114 <groupId>org.apache.lucene</groupId>
115 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000116 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000117 </dependency>
118
Nils Diewald8a1fc012014-02-19 15:23:33 +0000119 <dependency>
120 <groupId>org.hamcrest</groupId>
121 <artifactId>hamcrest-core</artifactId>
122 <version>1.3</version>
123 </dependency>
124
Nils Diewaldf399a672013-11-18 17:55:22 +0000125 <!-- JCache -->
126 <dependency>
127 <groupId>net.sf.jsr107cache</groupId>
128 <artifactId>jsr107cache</artifactId>
129 <version>1.0</version>
130 </dependency>
131
Nils Diewalde26f03f2014-06-04 17:48:53 +0000132 <!-- servlet dependency -->
Nils Diewald32030a62014-09-03 20:16:50 +0000133 <!--
Nils Diewalde26f03f2014-06-04 17:48:53 +0000134 <dependency>
135 <artifactId>servlet-api</artifactId>
136 <groupId>javax.servlet</groupId>
137 <version>2.5</version>
138 </dependency>
Nils Diewald2cd1c3d2014-01-08 22:53:08 +0000139 -->
140
Nils Diewald32030a62014-09-03 20:16:50 +0000141 <!-- Jersey -->
142 <dependency>
143 <groupId>org.glassfish.jersey.containers</groupId>
144 <artifactId>jersey-container-grizzly2-http</artifactId>
145 </dependency>
146
147 <dependency>
148 <groupId>com.sun.jersey.contribs</groupId>
149 <artifactId>jersey-freemarker</artifactId>
150 <version>1.13-b01</version>
151 </dependency>
152
153 <!-- JSON support -->
154 <dependency>
155 <groupId>org.glassfish.jersey.media</groupId>
156 <artifactId>jersey-media-moxy</artifactId>
157 </dependency>
158
Nils Diewaldf399a672013-11-18 17:55:22 +0000159 <!-- Jackson -->
160 <!-- see https://github.com/FasterXML/jackson-core -->
161 <!-- https://github.com/FasterXML/jackson-databind -->
162 <dependency>
163 <groupId>com.fasterxml.jackson.core</groupId>
164 <artifactId>jackson-databind</artifactId>
165 <version>2.2.2</version>
166 </dependency>
167 <dependency>
168 <groupId>com.fasterxml.jackson.core</groupId>
169 <artifactId>jackson-annotations</artifactId>
170 <version>2.2.2</version>
171 </dependency>
172 <dependency>
173 <groupId>com.fasterxml.jackson.core</groupId>
174 <artifactId>jackson-core</artifactId>
175 <version>2.2.2</version>
176 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000177 </dependencies>
178
179 <build>
180 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
181 <outputDirectory>${basedir}/bin</outputDirectory>
182 <plugins>
183 <plugin>
184 <artifactId>maven-compiler-plugin</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +0000185 <version>2.5.1</version>
186 <inherited>true</inherited>
Nils Diewaldf399a672013-11-18 17:55:22 +0000187 <configuration>
188 <source>1.7</source>
189 <target>1.7</target>
190 </configuration>
191 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000192
193 <!--
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000194 install the indexer and the performancetests
Nils Diewaldaee45452013-11-27 22:35:55 +0000195 $ mvn clean compile assembly:single
196 Then run e.g.
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000197 $ java -jar target/KorAP-lucene-index-0.30.2-jar-with-dependencies.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/
Nils Diewaldaee45452013-11-27 22:35:55 +0000198 -->
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000199
Nils Diewaldaee45452013-11-27 22:35:55 +0000200 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-assembly-plugin</artifactId>
203 <version>2.2-beta-5</version>
204 <configuration>
205 <!--
206 <finalName>KorapTools</finalName>
207 -->
Eliza Margarethad28469f2014-03-10 12:42:21 +0000208
209 <archive>
210 <manifest>
211 <addClasspath>true</addClasspath>
212 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
213 </manifest>
214 </archive>
215
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000216 <appendAssemblyId>false</appendAssemblyId>
217 <descriptorRefs>
218 <descriptorRef>jar-with-dependencies</descriptorRef>
219 </descriptorRefs>
220 </configuration>
221 <executions>
222
223 <execution>
224 <id>KorapIndexer</id>
225 <phase>package</phase>
226 <goals>
227 <goal>single</goal>
228 </goals>
229 <configuration>
230 <finalName>KorapIndexer</finalName>
231 <archive>
232 <manifest>
233 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
234 </manifest>
235 </archive>
236 </configuration>
237 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000238 </executions>
239 </plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000240
Nils Diewaldf399a672013-11-18 17:55:22 +0000241 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000242 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000243 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000244 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000245 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000246 <excludes>
247 <exclude>**/TestRealIndex.java</exclude>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000248 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000249 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000250 <exclude>**/TestKorapSolr.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000251 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000252 </configuration>
253 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000254
255 <plugin>
256 <groupId>org.codehaus.mojo</groupId>
257 <artifactId>exec-maven-plugin</artifactId>
258 <version>1.2.1</version>
259 <executions>
260 <execution>
261 <goals>
262 <goal>java</goal>
263 </goals>
264 </execution>
265 </executions>
266 <configuration>
267 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
268 </configuration>
269 </plugin>
270
Nils Diewaldf399a672013-11-18 17:55:22 +0000271 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000272
273 <resources>
274 <resource>
275 <directory>src/main/resources</directory>
276 <filtering>true</filtering>
277 <includes>
278 <include>index.properties</include>
279 </includes>
280 </resource>
281 <resource>
282 <directory>src/main/resources</directory>
283 <filtering>false</filtering>
284 <excludes>
285 <exclude>index.properties</exclude>
286 </excludes>
287 </resource>
288 </resources>
289
290 <testResources>
291 <testResource>
292 <directory>src/test/resources</directory>
293 <filtering>true</filtering>
294 <includes>
295 <include>index.properties</include>
296 </includes>
297 </testResource>
298 <testResource>
299 <directory>src/test/resources</directory>
300 <filtering>false</filtering>
301 <excludes>
302 <exclude>index.properties</exclude>
303 </excludes>
304 </testResource>
305 </testResources>
306
Nils Diewaldf399a672013-11-18 17:55:22 +0000307 </build>
308</project>