blob: 83dcd54264ccabd775d9881f11c8bf27afb3ec6d [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 <!--
Nils Diewaldf6b351c2014-09-04 21:34:05 +00006 ** Server
Nils Diewaldd86c0682014-12-05 20:46:26 +00007 # Start the server with
8 $ mvn clean compile exec:java
9
10 ** Formatter
11 # Format the code with
12 $ mvn java-formatter:format
13
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000014 ** Indexer
15 (This is not the preferred way to index new data!)
16 # install the indexer
17 $ mvn clean compile assembly:single
Nils Diewald392bcf32015-02-26 20:01:17 +000018
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000019 # Then run e.g.
20 $ java -jar target/Krill-X.XX.jar
21 src/main/resources/korap.conf
22 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000023 -->
24
Nils Diewalde50bae02015-03-03 22:08:30 +000025 <groupId>de.ids_mannheim.korap</groupId>
Nils Diewaldbbd39a52015-02-23 19:56:57 +000026 <artifactId>Krill</artifactId>
Nils Diewalde50bae02015-03-03 22:08:30 +000027 <version>0.51</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000028 <packaging>jar</packaging>
29
Nils Diewaldbbd39a52015-02-23 19:56:57 +000030 <name>Krill</name>
Nils Diewaldf399a672013-11-18 17:55:22 +000031 <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 <developer>
45 <name>Eliza Margaretha</name>
46 <email>margaretha@ids-mannheim.de</email>
47 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000048 </developers>
49
50 <properties>
Nils Diewaldcb8afb32015-02-04 21:12:37 +000051 <jersey.version>2.15</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000052 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53 </properties>
54
Nils Diewald32030a62014-09-03 20:16:50 +000055 <dependencyManagement>
56 <dependencies>
57 <dependency>
58 <groupId>org.glassfish.jersey</groupId>
59 <artifactId>jersey-bom</artifactId>
60 <version>${jersey.version}</version>
61 <type>pom</type>
62 <scope>import</scope>
63 </dependency>
64 </dependencies>
65 </dependencyManagement>
66
Eliza Margarethaa929f272014-11-28 14:10:05 +000067 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000068 <!-- junit dependency -->
69 <dependency>
70 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
72 <version>4.11</version>
73 <scope>test</scope>
74 </dependency>
75
76 <!-- log4j dependency -->
77 <dependency>
78 <groupId>log4j</groupId>
79 <artifactId>log4j</artifactId>
80 <version>1.2.17</version>
81 </dependency>
82 <dependency>
83 <groupId>org.slf4j</groupId>
84 <artifactId>slf4j-log4j12</artifactId>
85 <version>1.7.5</version>
86 </dependency>
87
Nils Diewald6aa929e2014-09-17 13:30:34 +000088 <!-- SQLite for database connection tests -->
89 <dependency>
90 <groupId>org.xerial</groupId>
91 <artifactId>sqlite-jdbc</artifactId>
92 <version>3.7.2</version>
93 </dependency>
94
95 <!-- Database Connection Pool Manager -->
96 <dependency>
97 <groupId>c3p0</groupId>
98 <artifactId>c3p0</artifactId>
99 <version>0.9.1.2</version>
100 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000101
Nils Diewaldf399a672013-11-18 17:55:22 +0000102 <!-- Lucene core dependency -->
103 <dependency>
104 <artifactId>lucene-core</artifactId>
105 <groupId>org.apache.lucene</groupId>
106 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000107 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 </dependency>
109
110 <!-- Lucene queryparser dependency -->
111 <dependency>
112 <artifactId>lucene-queryparser</artifactId>
113 <groupId>org.apache.lucene</groupId>
114 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000115 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000116 </dependency>
117
118 <!-- Lucene analyzers dependency -->
119 <dependency>
120 <artifactId>lucene-analyzers-common</artifactId>
121 <groupId>org.apache.lucene</groupId>
122 <type>jar</type>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000123 <version>4.10.3</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000124 </dependency>
125
Nils Diewald8a1fc012014-02-19 15:23:33 +0000126 <dependency>
127 <groupId>org.hamcrest</groupId>
128 <artifactId>hamcrest-core</artifactId>
129 <version>1.3</version>
130 </dependency>
131
Nils Diewaldf399a672013-11-18 17:55:22 +0000132 <!-- JCache -->
133 <dependency>
134 <groupId>net.sf.jsr107cache</groupId>
135 <artifactId>jsr107cache</artifactId>
136 <version>1.0</version>
137 </dependency>
138
Nils Diewald32030a62014-09-03 20:16:50 +0000139 <!-- Jersey -->
140 <dependency>
141 <groupId>org.glassfish.jersey.containers</groupId>
142 <artifactId>jersey-container-grizzly2-http</artifactId>
143 </dependency>
144
145 <dependency>
146 <groupId>com.sun.jersey.contribs</groupId>
147 <artifactId>jersey-freemarker</artifactId>
148 <version>1.13-b01</version>
149 </dependency>
150
Nils Diewald2f2b0672014-11-25 20:26:22 +0000151 <!-- JSON support in Jersey -->
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000152 <!--
Nils Diewalde50bae02015-03-03 22:08:30 +0000153 <dependency>
154 <groupId>org.glassfish.jersey.media</groupId>
155 <artifactId>jersey-media-moxy</artifactId>
156 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000157 <dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000158 <groupId>com.sun.jersey</groupId>
159 <artifactId>jersey-json</artifactId>
160 <version>1.9</version>
161 </dependency>
Nils Diewalde50bae02015-03-03 22:08:30 +0000162 <dependency>
163 <groupId>org.glassfish.jersey.media</groupId>
164 <artifactId>jersey-media-json-jackson</artifactId>
165 <version>2.16</version>
166 </dependency>
Nils Diewaldbbd39a52015-02-23 19:56:57 +0000167 -->
168 <dependency>
169 <groupId>com.fasterxml.jackson.jaxrs</groupId>
170 <artifactId>jackson-jaxrs-json-provider</artifactId>
171 <version>2.4.4</version>
Nils Diewald32030a62014-09-03 20:16:50 +0000172 </dependency>
173
Nils Diewald2f2b0672014-11-25 20:26:22 +0000174 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000175 <!-- see https://github.com/FasterXML/jackson-core -->
176 <!-- https://github.com/FasterXML/jackson-databind -->
177 <dependency>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-databind</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000180 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000181 </dependency>
182 <dependency>
183 <groupId>com.fasterxml.jackson.core</groupId>
184 <artifactId>jackson-annotations</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000185 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000186 </dependency>
187 <dependency>
188 <groupId>com.fasterxml.jackson.core</groupId>
189 <artifactId>jackson-core</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000190 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000191 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000192
193 <!-- JSON-LD support -->
194 <!--
195 <dependency>
196 <groupId>com.github.jsonld-java</groupId>
197 <artifactId>jsonld-java</artifactId>
198 <version>0.5.2-SNAPSHOT</version>
199 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000200
Nils Diewald5c63ab82014-12-04 22:53:20 +0000201 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000202 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000203 <groupId>KorapAnnotationProcessor</groupId>
204 <artifactId>KorapAnnotationProcessor</artifactId>
205 <version>0.0.1-SNAPSHOT</version>
206 <scope>compile</scope>
207 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000208 -->
209
Nils Diewaldf399a672013-11-18 17:55:22 +0000210 </dependencies>
211
212 <build>
213 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
214 <outputDirectory>${basedir}/bin</outputDirectory>
215 <plugins>
216 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000217 <artifactId>maven-compiler-plugin</artifactId>
218 <version>2.5.1</version>
219 <inherited>true</inherited>
220 <configuration>
221 <showWarnings>true</showWarnings>
222 <source>1.7</source>
223 <target>1.7</target>
224 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000225 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000226
Nils Diewaldaee45452013-11-27 22:35:55 +0000227 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-assembly-plugin</artifactId>
230 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000231 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000232 <archive>
233 <manifest>
234 <addClasspath>true</addClasspath>
Nils Diewald6535c522015-02-26 17:45:24 +0000235 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000236 </manifest>
237 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000238 <appendAssemblyId>false</appendAssemblyId>
239 <descriptorRefs>
240 <descriptorRef>jar-with-dependencies</descriptorRef>
241 </descriptorRefs>
242 </configuration>
243 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000244 <execution>
Nils Diewald6535c522015-02-26 17:45:24 +0000245 <id>Indexer</id>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000246 <phase>package</phase>
247 <goals>
248 <goal>single</goal>
249 </goals>
250 <configuration>
Nils Diewald6535c522015-02-26 17:45:24 +0000251 <finalName>Indexer</finalName>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000252 <archive>
253 <manifest>
Nils Diewald6535c522015-02-26 17:45:24 +0000254 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000255 </manifest>
256 </archive>
257 </configuration>
258 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000259 </executions>
260 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000261
Nils Diewaldf399a672013-11-18 17:55:22 +0000262 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000263 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000264 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000265 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000266 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000267 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000268 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000269 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000270 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000271 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000272 </configuration>
273 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000274
Nils Diewald2f2b0672014-11-25 20:26:22 +0000275 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000276 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000277 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000278 -->
279 <plugin>
280 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
281 <artifactId>maven-java-formatter-plugin</artifactId>
282 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000283 <configuration>
Nils Diewald857c9582015-03-03 21:16:14 +0000284 <configFile>${project.basedir}/Format.xml</configFile>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000285 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
286 <compilerSource>1.7</compilerSource>
287 <compilerCompliance>1.7</compilerCompliance>
288 <compilerTargetPlatform>1.7</compilerTargetPlatform>
289 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000290 </plugin>
291
Nils Diewald32030a62014-09-03 20:16:50 +0000292 <plugin>
293 <groupId>org.codehaus.mojo</groupId>
294 <artifactId>exec-maven-plugin</artifactId>
295 <version>1.2.1</version>
296 <executions>
297 <execution>
298 <goals>
299 <goal>java</goal>
300 </goals>
301 </execution>
302 </executions>
303 <configuration>
Nils Diewalde50bae02015-03-03 22:08:30 +0000304 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
Nils Diewald32030a62014-09-03 20:16:50 +0000305 </configuration>
306 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000307 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000308
309 <resources>
310 <resource>
311 <directory>src/main/resources</directory>
312 <filtering>true</filtering>
313 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000314 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000315 </includes>
316 </resource>
317 <resource>
318 <directory>src/main/resources</directory>
319 <filtering>false</filtering>
320 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000321 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000322 </excludes>
323 </resource>
324 </resources>
325
326 <testResources>
327 <testResource>
328 <directory>src/test/resources</directory>
329 <filtering>true</filtering>
330 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000331 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000332 </includes>
333 </testResource>
334 <testResource>
335 <directory>src/test/resources</directory>
336 <filtering>false</filtering>
337 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000338 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000339 </excludes>
340 </testResource>
341 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000342 </build>
343</project>