blob: 5398b8f3b9928087e581568b1ec9a73c956be463 [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>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000104
Nils Diewaldf399a672013-11-18 17:55:22 +0000105 <!-- Lucene core dependency -->
106 <dependency>
107 <artifactId>lucene-core</artifactId>
108 <groupId>org.apache.lucene</groupId>
109 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +0000110 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000111 </dependency>
112
113 <!-- Lucene queryparser dependency -->
114 <dependency>
115 <artifactId>lucene-queryparser</artifactId>
116 <groupId>org.apache.lucene</groupId>
117 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +0000118 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000119 </dependency>
120
121 <!-- Lucene analyzers dependency -->
122 <dependency>
123 <artifactId>lucene-analyzers-common</artifactId>
124 <groupId>org.apache.lucene</groupId>
125 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000126 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000127 </dependency>
128
Nils Diewald8a1fc012014-02-19 15:23:33 +0000129 <dependency>
130 <groupId>org.hamcrest</groupId>
131 <artifactId>hamcrest-core</artifactId>
132 <version>1.3</version>
133 </dependency>
134
Nils Diewaldf399a672013-11-18 17:55:22 +0000135 <!-- JCache -->
136 <dependency>
137 <groupId>net.sf.jsr107cache</groupId>
138 <artifactId>jsr107cache</artifactId>
139 <version>1.0</version>
140 </dependency>
141
Nils Diewald32030a62014-09-03 20:16:50 +0000142 <!-- Jersey -->
143 <dependency>
144 <groupId>org.glassfish.jersey.containers</groupId>
145 <artifactId>jersey-container-grizzly2-http</artifactId>
146 </dependency>
147
148 <dependency>
149 <groupId>com.sun.jersey.contribs</groupId>
150 <artifactId>jersey-freemarker</artifactId>
151 <version>1.13-b01</version>
152 </dependency>
153
154 <!-- JSON support -->
155 <dependency>
156 <groupId>org.glassfish.jersey.media</groupId>
157 <artifactId>jersey-media-moxy</artifactId>
158 </dependency>
159
Nils Diewaldf399a672013-11-18 17:55:22 +0000160 <!-- Jackson -->
161 <!-- see https://github.com/FasterXML/jackson-core -->
162 <!-- https://github.com/FasterXML/jackson-databind -->
163 <dependency>
164 <groupId>com.fasterxml.jackson.core</groupId>
165 <artifactId>jackson-databind</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000166 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000167 </dependency>
168 <dependency>
169 <groupId>com.fasterxml.jackson.core</groupId>
170 <artifactId>jackson-annotations</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000171 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000172 </dependency>
173 <dependency>
174 <groupId>com.fasterxml.jackson.core</groupId>
175 <artifactId>jackson-core</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000176 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000177 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000178 </dependencies>
179
180 <build>
181 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
182 <outputDirectory>${basedir}/bin</outputDirectory>
183 <plugins>
184 <plugin>
185 <artifactId>maven-compiler-plugin</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +0000186 <version>2.5.1</version>
187 <inherited>true</inherited>
Nils Diewaldf399a672013-11-18 17:55:22 +0000188 <configuration>
189 <source>1.7</source>
190 <target>1.7</target>
191 </configuration>
192 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000193
Nils Diewaldaee45452013-11-27 22:35:55 +0000194 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-assembly-plugin</artifactId>
197 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000198 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000199 <archive>
200 <manifest>
201 <addClasspath>true</addClasspath>
202 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
203 </manifest>
204 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000205 <appendAssemblyId>false</appendAssemblyId>
206 <descriptorRefs>
207 <descriptorRef>jar-with-dependencies</descriptorRef>
208 </descriptorRefs>
209 </configuration>
210 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000211 <execution>
212 <id>KorapIndexer</id>
213 <phase>package</phase>
214 <goals>
215 <goal>single</goal>
216 </goals>
217 <configuration>
218 <finalName>KorapIndexer</finalName>
219 <archive>
220 <manifest>
221 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
222 </manifest>
223 </archive>
224 </configuration>
225 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000226 </executions>
227 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000228
Nils Diewaldf399a672013-11-18 17:55:22 +0000229 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000230 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000231 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000232 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000233 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000234 <excludes>
235 <exclude>**/TestRealIndex.java</exclude>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000236 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000237 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000238 <exclude>**/TestKorapSolr.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000239 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000240 </configuration>
241 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000242
243 <plugin>
244 <groupId>org.codehaus.mojo</groupId>
245 <artifactId>exec-maven-plugin</artifactId>
246 <version>1.2.1</version>
247 <executions>
248 <execution>
249 <goals>
250 <goal>java</goal>
251 </goals>
252 </execution>
253 </executions>
254 <configuration>
255 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
256 </configuration>
257 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000258 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000259
260 <resources>
261 <resource>
262 <directory>src/main/resources</directory>
263 <filtering>true</filtering>
264 <includes>
265 <include>index.properties</include>
266 </includes>
267 </resource>
268 <resource>
269 <directory>src/main/resources</directory>
270 <filtering>false</filtering>
271 <excludes>
272 <exclude>index.properties</exclude>
273 </excludes>
274 </resource>
275 </resources>
276
277 <testResources>
278 <testResource>
279 <directory>src/test/resources</directory>
280 <filtering>true</filtering>
281 <includes>
282 <include>index.properties</include>
283 </includes>
284 </testResource>
285 <testResource>
286 <directory>src/test/resources</directory>
287 <filtering>false</filtering>
288 <excludes>
289 <exclude>index.properties</exclude>
290 </excludes>
291 </testResource>
292 </testResources>
293
Nils Diewaldf399a672013-11-18 17:55:22 +0000294 </build>
295</project>