blob: c0ff229ce9da403837dbaa937b9797f1dc0b4a93 [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.
Nils Diewald32912a62014-11-11 01:57:45 +000010 $ java -jar target/KorAP-lucene-index-X.XX.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000011
12 ** Server
13 Start the server with
14 $mvn clean compile exec:java
15 -->
16
Nils Diewald7c50e2d2013-11-18 19:20:22 +000017 <groupId>KorAP-modules</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +000018 <artifactId>KorAP-lucene-index</artifactId>
Nils Diewaldc471b182014-11-19 22:51:15 +000019 <version>0.49.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000020 <packaging>jar</packaging>
21
22 <name>KorAP-lucene-index</name>
23 <url>http://www.ids-mannheim.de/</url>
24
25 <organization>
26 <name>IDS Mannheim</name>
27 <url>http://www.ids-mannheim.de/</url>
28 </organization>
29
30 <developers>
31 <developer>
32 <name>Nils Diewald</name>
33 <email>diewald@ids-mannheim.de</email>
34 <url>http://nils-diewald.de</url>
35 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000036 <developer>
37 <name>Eliza Margaretha</name>
38 <email>margaretha@ids-mannheim.de</email>
39 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000040 </developers>
41
42 <properties>
Nils Diewald32030a62014-09-03 20:16:50 +000043 <jersey.version>2.4.1</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000044 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45 </properties>
46
Nils Diewald32030a62014-09-03 20:16:50 +000047 <dependencyManagement>
48 <dependencies>
49 <dependency>
50 <groupId>org.glassfish.jersey</groupId>
51 <artifactId>jersey-bom</artifactId>
52 <version>${jersey.version}</version>
53 <type>pom</type>
54 <scope>import</scope>
55 </dependency>
56 </dependencies>
57 </dependencyManagement>
58
Eliza Margarethaa929f272014-11-28 14:10:05 +000059 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000060 <!-- junit dependency -->
61 <dependency>
62 <groupId>junit</groupId>
63 <artifactId>junit</artifactId>
64 <version>4.11</version>
65 <scope>test</scope>
66 </dependency>
67
68 <!-- log4j dependency -->
69 <dependency>
70 <groupId>log4j</groupId>
71 <artifactId>log4j</artifactId>
72 <version>1.2.17</version>
73 </dependency>
74 <dependency>
75 <groupId>org.slf4j</groupId>
76 <artifactId>slf4j-log4j12</artifactId>
77 <version>1.7.5</version>
78 </dependency>
79
Nils Diewald6aa929e2014-09-17 13:30:34 +000080 <!-- SQLite for database connection tests -->
81 <dependency>
82 <groupId>org.xerial</groupId>
83 <artifactId>sqlite-jdbc</artifactId>
84 <version>3.7.2</version>
85 </dependency>
86
87 <!-- Database Connection Pool Manager -->
88 <dependency>
89 <groupId>c3p0</groupId>
90 <artifactId>c3p0</artifactId>
91 <version>0.9.1.2</version>
92 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +000093
Nils Diewaldf399a672013-11-18 17:55:22 +000094 <!-- Lucene core dependency -->
95 <dependency>
96 <artifactId>lucene-core</artifactId>
97 <groupId>org.apache.lucene</groupId>
98 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +000099 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000100 </dependency>
101
102 <!-- Lucene queryparser dependency -->
103 <dependency>
104 <artifactId>lucene-queryparser</artifactId>
105 <groupId>org.apache.lucene</groupId>
106 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +0000107 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 </dependency>
109
110 <!-- Lucene analyzers dependency -->
111 <dependency>
112 <artifactId>lucene-analyzers-common</artifactId>
113 <groupId>org.apache.lucene</groupId>
114 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000115 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000116 </dependency>
117
Nils Diewald8a1fc012014-02-19 15:23:33 +0000118 <dependency>
119 <groupId>org.hamcrest</groupId>
120 <artifactId>hamcrest-core</artifactId>
121 <version>1.3</version>
122 </dependency>
123
Nils Diewaldf399a672013-11-18 17:55:22 +0000124 <!-- JCache -->
125 <dependency>
126 <groupId>net.sf.jsr107cache</groupId>
127 <artifactId>jsr107cache</artifactId>
128 <version>1.0</version>
129 </dependency>
130
Nils Diewald32030a62014-09-03 20:16:50 +0000131 <!-- Jersey -->
132 <dependency>
133 <groupId>org.glassfish.jersey.containers</groupId>
134 <artifactId>jersey-container-grizzly2-http</artifactId>
135 </dependency>
136
137 <dependency>
138 <groupId>com.sun.jersey.contribs</groupId>
139 <artifactId>jersey-freemarker</artifactId>
140 <version>1.13-b01</version>
141 </dependency>
142
Nils Diewald2f2b0672014-11-25 20:26:22 +0000143 <!-- JSON support in Jersey -->
Nils Diewald32030a62014-09-03 20:16:50 +0000144 <dependency>
145 <groupId>org.glassfish.jersey.media</groupId>
146 <artifactId>jersey-media-moxy</artifactId>
147 </dependency>
148
Nils Diewald2f2b0672014-11-25 20:26:22 +0000149 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000150 <!-- see https://github.com/FasterXML/jackson-core -->
151 <!-- https://github.com/FasterXML/jackson-databind -->
152 <dependency>
153 <groupId>com.fasterxml.jackson.core</groupId>
154 <artifactId>jackson-databind</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000155 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000156 </dependency>
157 <dependency>
158 <groupId>com.fasterxml.jackson.core</groupId>
159 <artifactId>jackson-annotations</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000160 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000161 </dependency>
162 <dependency>
163 <groupId>com.fasterxml.jackson.core</groupId>
164 <artifactId>jackson-core</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000165 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000166 </dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000167<!--
168 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000169 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000170 <groupId>KorapAnnotationProcessor</groupId>
171 <artifactId>KorapAnnotationProcessor</artifactId>
172 <version>0.0.1-SNAPSHOT</version>
173 <scope>compile</scope>
174 </dependency>
175-->
Nils Diewaldf399a672013-11-18 17:55:22 +0000176 </dependencies>
177
178 <build>
179 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
180 <outputDirectory>${basedir}/bin</outputDirectory>
181 <plugins>
182 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000183 <artifactId>maven-compiler-plugin</artifactId>
184 <version>2.5.1</version>
185 <inherited>true</inherited>
186 <configuration>
187 <showWarnings>true</showWarnings>
188 <source>1.7</source>
189 <target>1.7</target>
190 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000191 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000192
Nils Diewaldaee45452013-11-27 22:35:55 +0000193 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-assembly-plugin</artifactId>
196 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000197 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000198 <archive>
199 <manifest>
200 <addClasspath>true</addClasspath>
201 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
202 </manifest>
203 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000204 <appendAssemblyId>false</appendAssemblyId>
205 <descriptorRefs>
206 <descriptorRef>jar-with-dependencies</descriptorRef>
207 </descriptorRefs>
208 </configuration>
209 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000210 <execution>
211 <id>KorapIndexer</id>
212 <phase>package</phase>
213 <goals>
214 <goal>single</goal>
215 </goals>
216 <configuration>
217 <finalName>KorapIndexer</finalName>
218 <archive>
219 <manifest>
220 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
221 </manifest>
222 </archive>
223 </configuration>
224 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000225 </executions>
226 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000227
Nils Diewaldf399a672013-11-18 17:55:22 +0000228 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000229 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000230 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000231 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000232 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000233 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000234 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000235 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000236 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000237 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000238 </configuration>
239 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000240
Nils Diewald2f2b0672014-11-25 20:26:22 +0000241 <!-- Formatter plugin for Eclipse based coding conventions -->
242 <!--
243 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
244 Call: mvn java-formatter:format
245 -->
246 <plugin>
247 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
248 <artifactId>maven-java-formatter-plugin</artifactId>
249 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000250 <configuration>
251 <configFile>${project.basedir}/korap-style.xml</configFile>
252 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
253 <compilerSource>1.7</compilerSource>
254 <compilerCompliance>1.7</compilerCompliance>
255 <compilerTargetPlatform>1.7</compilerTargetPlatform>
256 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000257 <!--
258 <executions>
259 <execution>
260 <goals>
261 <goal>format</goal>
262 </goals>
263 </execution>
264 </executions>
265 -->
266 </plugin>
267
Nils Diewald32030a62014-09-03 20:16:50 +0000268 <plugin>
269 <groupId>org.codehaus.mojo</groupId>
270 <artifactId>exec-maven-plugin</artifactId>
271 <version>1.2.1</version>
272 <executions>
273 <execution>
274 <goals>
275 <goal>java</goal>
276 </goals>
277 </execution>
278 </executions>
279 <configuration>
280 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
281 </configuration>
282 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000283 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000284
285 <resources>
286 <resource>
287 <directory>src/main/resources</directory>
288 <filtering>true</filtering>
289 <includes>
290 <include>index.properties</include>
291 </includes>
292 </resource>
293 <resource>
294 <directory>src/main/resources</directory>
295 <filtering>false</filtering>
296 <excludes>
297 <exclude>index.properties</exclude>
298 </excludes>
299 </resource>
300 </resources>
301
302 <testResources>
303 <testResource>
304 <directory>src/test/resources</directory>
305 <filtering>true</filtering>
306 <includes>
307 <include>index.properties</include>
308 </includes>
309 </testResource>
310 <testResource>
311 <directory>src/test/resources</directory>
312 <filtering>false</filtering>
313 <excludes>
314 <exclude>index.properties</exclude>
315 </excludes>
316 </testResource>
317 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000318 </build>
319</project>