blob: 9dc1e35a6ae58e1b4e59a568f852b39faa139d00 [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
Nils Diewaldf399a672013-11-18 17:55:22 +000059 <dependencies>
60
61 <!-- junit dependency -->
62 <dependency>
63 <groupId>junit</groupId>
64 <artifactId>junit</artifactId>
65 <version>4.11</version>
66 <scope>test</scope>
67 </dependency>
68
69 <!-- log4j dependency -->
70 <dependency>
71 <groupId>log4j</groupId>
72 <artifactId>log4j</artifactId>
73 <version>1.2.17</version>
74 </dependency>
75 <dependency>
76 <groupId>org.slf4j</groupId>
77 <artifactId>slf4j-log4j12</artifactId>
78 <version>1.7.5</version>
79 </dependency>
80
Nils Diewald6aa929e2014-09-17 13:30:34 +000081 <!-- SQLite for database connection tests -->
82 <dependency>
83 <groupId>org.xerial</groupId>
84 <artifactId>sqlite-jdbc</artifactId>
85 <version>3.7.2</version>
86 </dependency>
87
88 <!-- Database Connection Pool Manager -->
89 <dependency>
90 <groupId>c3p0</groupId>
91 <artifactId>c3p0</artifactId>
92 <version>0.9.1.2</version>
93 </dependency>
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 Diewald67f54042014-09-27 14:53:38 +0000100 <version>4.5.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 Diewald67f54042014-09-27 14:53:38 +0000108 <version>4.5.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 Diewald32030a62014-09-03 20:16:50 +0000132 <!-- Jersey -->
133 <dependency>
134 <groupId>org.glassfish.jersey.containers</groupId>
135 <artifactId>jersey-container-grizzly2-http</artifactId>
136 </dependency>
137
138 <dependency>
139 <groupId>com.sun.jersey.contribs</groupId>
140 <artifactId>jersey-freemarker</artifactId>
141 <version>1.13-b01</version>
142 </dependency>
143
Nils Diewald2f2b0672014-11-25 20:26:22 +0000144 <!-- JSON support in Jersey -->
Nils Diewald32030a62014-09-03 20:16:50 +0000145 <dependency>
146 <groupId>org.glassfish.jersey.media</groupId>
147 <artifactId>jersey-media-moxy</artifactId>
148 </dependency>
149
Nils Diewald2f2b0672014-11-25 20:26:22 +0000150 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000151 <!-- see https://github.com/FasterXML/jackson-core -->
152 <!-- https://github.com/FasterXML/jackson-databind -->
153 <dependency>
154 <groupId>com.fasterxml.jackson.core</groupId>
155 <artifactId>jackson-databind</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000156 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000157 </dependency>
158 <dependency>
159 <groupId>com.fasterxml.jackson.core</groupId>
160 <artifactId>jackson-annotations</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000161 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000162 </dependency>
163 <dependency>
164 <groupId>com.fasterxml.jackson.core</groupId>
165 <artifactId>jackson-core</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000166 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000167 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000168 </dependencies>
169
170 <build>
171 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
172 <outputDirectory>${basedir}/bin</outputDirectory>
173 <plugins>
174 <plugin>
175 <artifactId>maven-compiler-plugin</artifactId>
Nils Diewald32030a62014-09-03 20:16:50 +0000176 <version>2.5.1</version>
177 <inherited>true</inherited>
Nils Diewaldf399a672013-11-18 17:55:22 +0000178 <configuration>
179 <source>1.7</source>
180 <target>1.7</target>
181 </configuration>
182 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000183
Nils Diewaldaee45452013-11-27 22:35:55 +0000184 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000185 <groupId>org.apache.maven.plugins</groupId>
186 <artifactId>maven-assembly-plugin</artifactId>
187 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000188 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000189 <archive>
190 <manifest>
191 <addClasspath>true</addClasspath>
192 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
193 </manifest>
194 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000195 <appendAssemblyId>false</appendAssemblyId>
196 <descriptorRefs>
197 <descriptorRef>jar-with-dependencies</descriptorRef>
198 </descriptorRefs>
199 </configuration>
200 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000201 <execution>
202 <id>KorapIndexer</id>
203 <phase>package</phase>
204 <goals>
205 <goal>single</goal>
206 </goals>
207 <configuration>
208 <finalName>KorapIndexer</finalName>
209 <archive>
210 <manifest>
211 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
212 </manifest>
213 </archive>
214 </configuration>
215 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000216 </executions>
217 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000218
Nils Diewaldf399a672013-11-18 17:55:22 +0000219 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000220 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000221 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000222 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000223 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000224 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000225 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000226 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000227 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000228 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000229 </configuration>
230 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000231
Nils Diewald2f2b0672014-11-25 20:26:22 +0000232 <!-- Formatter plugin for Eclipse based coding conventions -->
233 <!--
234 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
235 Call: mvn java-formatter:format
236 -->
237 <plugin>
238 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
239 <artifactId>maven-java-formatter-plugin</artifactId>
240 <version>0.4</version>
241 <!--
242 <executions>
243 <execution>
244 <goals>
245 <goal>format</goal>
246 </goals>
247 </execution>
248 </executions>
249 -->
250 </plugin>
251
Nils Diewald32030a62014-09-03 20:16:50 +0000252 <plugin>
253 <groupId>org.codehaus.mojo</groupId>
254 <artifactId>exec-maven-plugin</artifactId>
255 <version>1.2.1</version>
256 <executions>
257 <execution>
258 <goals>
259 <goal>java</goal>
260 </goals>
261 </execution>
262 </executions>
263 <configuration>
264 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
265 </configuration>
266 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000267 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000268
269 <resources>
270 <resource>
271 <directory>src/main/resources</directory>
272 <filtering>true</filtering>
273 <includes>
274 <include>index.properties</include>
275 </includes>
276 </resource>
277 <resource>
278 <directory>src/main/resources</directory>
279 <filtering>false</filtering>
280 <excludes>
281 <exclude>index.properties</exclude>
282 </excludes>
283 </resource>
284 </resources>
285
286 <testResources>
287 <testResource>
288 <directory>src/test/resources</directory>
289 <filtering>true</filtering>
290 <includes>
291 <include>index.properties</include>
292 </includes>
293 </testResource>
294 <testResource>
295 <directory>src/test/resources</directory>
296 <filtering>false</filtering>
297 <excludes>
298 <exclude>index.properties</exclude>
299 </excludes>
300 </testResource>
301 </testResources>
302
Nils Diewaldf399a672013-11-18 17:55:22 +0000303 </build>
304</project>