blob: 8bf1d63413d1f3bd6b12fe23d3c8221f848def24 [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
Nils Diewaldd86c0682014-12-05 20:46:26 +00007 # install the indexer
Nils Diewaldf6b351c2014-09-04 21:34:05 +00008 $ mvn clean compile assembly:single
Nils Diewaldd86c0682014-12-05 20:46:26 +00009 # Then run e.g.
10 $ java -jar target/KorAP-lucene-index-X.XX.jar
11 src/main/resources/korap.conf
12 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000013
14 ** Server
Nils Diewaldd86c0682014-12-05 20:46:26 +000015 # Start the server with
16 $ mvn clean compile exec:java
17
18 ** Formatter
19 # Format the code with
20 $ mvn java-formatter:format
21
Nils Diewaldf6b351c2014-09-04 21:34:05 +000022 -->
23
Nils Diewald7c50e2d2013-11-18 19:20:22 +000024 <groupId>KorAP-modules</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +000025 <artifactId>KorAP-lucene-index</artifactId>
Nils Diewaldd86c0682014-12-05 20:46:26 +000026 <version>0.49.2</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000027 <packaging>jar</packaging>
28
29 <name>KorAP-lucene-index</name>
30 <url>http://www.ids-mannheim.de/</url>
31
32 <organization>
33 <name>IDS Mannheim</name>
34 <url>http://www.ids-mannheim.de/</url>
35 </organization>
36
37 <developers>
38 <developer>
39 <name>Nils Diewald</name>
40 <email>diewald@ids-mannheim.de</email>
41 <url>http://nils-diewald.de</url>
42 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000043 <developer>
44 <name>Eliza Margaretha</name>
45 <email>margaretha@ids-mannheim.de</email>
46 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000047 </developers>
48
49 <properties>
Nils Diewald32030a62014-09-03 20:16:50 +000050 <jersey.version>2.4.1</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000051 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
52 </properties>
53
Nils Diewald32030a62014-09-03 20:16:50 +000054 <dependencyManagement>
55 <dependencies>
56 <dependency>
57 <groupId>org.glassfish.jersey</groupId>
58 <artifactId>jersey-bom</artifactId>
59 <version>${jersey.version}</version>
60 <type>pom</type>
61 <scope>import</scope>
62 </dependency>
63 </dependencies>
64 </dependencyManagement>
65
Eliza Margarethaa929f272014-11-28 14:10:05 +000066 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000067 <!-- junit dependency -->
68 <dependency>
69 <groupId>junit</groupId>
70 <artifactId>junit</artifactId>
71 <version>4.11</version>
72 <scope>test</scope>
73 </dependency>
74
75 <!-- log4j dependency -->
76 <dependency>
77 <groupId>log4j</groupId>
78 <artifactId>log4j</artifactId>
79 <version>1.2.17</version>
80 </dependency>
81 <dependency>
82 <groupId>org.slf4j</groupId>
83 <artifactId>slf4j-log4j12</artifactId>
84 <version>1.7.5</version>
85 </dependency>
86
Nils Diewald6aa929e2014-09-17 13:30:34 +000087 <!-- SQLite for database connection tests -->
88 <dependency>
89 <groupId>org.xerial</groupId>
90 <artifactId>sqlite-jdbc</artifactId>
91 <version>3.7.2</version>
92 </dependency>
93
94 <!-- Database Connection Pool Manager -->
95 <dependency>
96 <groupId>c3p0</groupId>
97 <artifactId>c3p0</artifactId>
98 <version>0.9.1.2</version>
99 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000100
Nils Diewaldf399a672013-11-18 17:55:22 +0000101 <!-- Lucene core dependency -->
102 <dependency>
103 <artifactId>lucene-core</artifactId>
104 <groupId>org.apache.lucene</groupId>
105 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +0000106 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000107 </dependency>
108
109 <!-- Lucene queryparser dependency -->
110 <dependency>
111 <artifactId>lucene-queryparser</artifactId>
112 <groupId>org.apache.lucene</groupId>
113 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +0000114 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000115 </dependency>
116
117 <!-- Lucene analyzers dependency -->
118 <dependency>
119 <artifactId>lucene-analyzers-common</artifactId>
120 <groupId>org.apache.lucene</groupId>
121 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000122 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000123 </dependency>
124
Nils Diewald8a1fc012014-02-19 15:23:33 +0000125 <dependency>
126 <groupId>org.hamcrest</groupId>
127 <artifactId>hamcrest-core</artifactId>
128 <version>1.3</version>
129 </dependency>
130
Nils Diewaldf399a672013-11-18 17:55:22 +0000131 <!-- JCache -->
132 <dependency>
133 <groupId>net.sf.jsr107cache</groupId>
134 <artifactId>jsr107cache</artifactId>
135 <version>1.0</version>
136 </dependency>
137
Nils Diewald32030a62014-09-03 20:16:50 +0000138 <!-- Jersey -->
139 <dependency>
140 <groupId>org.glassfish.jersey.containers</groupId>
141 <artifactId>jersey-container-grizzly2-http</artifactId>
142 </dependency>
143
144 <dependency>
145 <groupId>com.sun.jersey.contribs</groupId>
146 <artifactId>jersey-freemarker</artifactId>
147 <version>1.13-b01</version>
148 </dependency>
149
Nils Diewald2f2b0672014-11-25 20:26:22 +0000150 <!-- JSON support in Jersey -->
Nils Diewald32030a62014-09-03 20:16:50 +0000151 <dependency>
152 <groupId>org.glassfish.jersey.media</groupId>
153 <artifactId>jersey-media-moxy</artifactId>
154 </dependency>
155
Nils Diewald2f2b0672014-11-25 20:26:22 +0000156 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000157 <!-- see https://github.com/FasterXML/jackson-core -->
158 <!-- https://github.com/FasterXML/jackson-databind -->
159 <dependency>
160 <groupId>com.fasterxml.jackson.core</groupId>
161 <artifactId>jackson-databind</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000162 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000163 </dependency>
164 <dependency>
165 <groupId>com.fasterxml.jackson.core</groupId>
166 <artifactId>jackson-annotations</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000167 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000168 </dependency>
169 <dependency>
170 <groupId>com.fasterxml.jackson.core</groupId>
171 <artifactId>jackson-core</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000172 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000173 </dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000174<!--
175 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000176 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000177 <groupId>KorapAnnotationProcessor</groupId>
178 <artifactId>KorapAnnotationProcessor</artifactId>
179 <version>0.0.1-SNAPSHOT</version>
180 <scope>compile</scope>
181 </dependency>
182-->
Nils Diewaldf399a672013-11-18 17:55:22 +0000183 </dependencies>
184
185 <build>
186 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
187 <outputDirectory>${basedir}/bin</outputDirectory>
188 <plugins>
189 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000190 <artifactId>maven-compiler-plugin</artifactId>
191 <version>2.5.1</version>
192 <inherited>true</inherited>
193 <configuration>
194 <showWarnings>true</showWarnings>
195 <source>1.7</source>
196 <target>1.7</target>
197 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000198 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +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>
Nils Diewald67f54042014-09-27 14:53:38 +0000204 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000205 <archive>
206 <manifest>
207 <addClasspath>true</addClasspath>
208 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
209 </manifest>
210 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000211 <appendAssemblyId>false</appendAssemblyId>
212 <descriptorRefs>
213 <descriptorRef>jar-with-dependencies</descriptorRef>
214 </descriptorRefs>
215 </configuration>
216 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000217 <execution>
218 <id>KorapIndexer</id>
219 <phase>package</phase>
220 <goals>
221 <goal>single</goal>
222 </goals>
223 <configuration>
224 <finalName>KorapIndexer</finalName>
225 <archive>
226 <manifest>
227 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
228 </manifest>
229 </archive>
230 </configuration>
231 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000232 </executions>
233 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000234
Nils Diewaldf399a672013-11-18 17:55:22 +0000235 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000236 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000237 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000238 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000239 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000240 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000241 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000242 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000243 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000244 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000245 </configuration>
246 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000247
Nils Diewald2f2b0672014-11-25 20:26:22 +0000248 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000249 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000250 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000251 -->
252 <plugin>
253 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
254 <artifactId>maven-java-formatter-plugin</artifactId>
255 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000256 <configuration>
257 <configFile>${project.basedir}/korap-style.xml</configFile>
258 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
259 <compilerSource>1.7</compilerSource>
260 <compilerCompliance>1.7</compilerCompliance>
261 <compilerTargetPlatform>1.7</compilerTargetPlatform>
262 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000263 </plugin>
264
Nils Diewald32030a62014-09-03 20:16:50 +0000265 <plugin>
266 <groupId>org.codehaus.mojo</groupId>
267 <artifactId>exec-maven-plugin</artifactId>
268 <version>1.2.1</version>
269 <executions>
270 <execution>
271 <goals>
272 <goal>java</goal>
273 </goals>
274 </execution>
275 </executions>
276 <configuration>
277 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
278 </configuration>
279 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000280 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000281
282 <resources>
283 <resource>
284 <directory>src/main/resources</directory>
285 <filtering>true</filtering>
286 <includes>
287 <include>index.properties</include>
288 </includes>
289 </resource>
290 <resource>
291 <directory>src/main/resources</directory>
292 <filtering>false</filtering>
293 <excludes>
294 <exclude>index.properties</exclude>
295 </excludes>
296 </resource>
297 </resources>
298
299 <testResources>
300 <testResource>
301 <directory>src/test/resources</directory>
302 <filtering>true</filtering>
303 <includes>
304 <include>index.properties</include>
305 </includes>
306 </testResource>
307 <testResource>
308 <directory>src/test/resources</directory>
309 <filtering>false</filtering>
310 <excludes>
311 <exclude>index.properties</exclude>
312 </excludes>
313 </testResource>
314 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000315 </build>
316</project>