blob: 4b2b844037ed58576d8aef8664f87115ecce59dd [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
Akroncb165f52015-08-24 16:20:48 +02008 $ mvn compile exec:java
Nils Diewaldd86c0682014-12-05 20:46:26 +00009
Akron09ae3732015-08-13 20:56:20 +020010 # Or after packaging
11 $ mvn clean package
12 # with
13 $ java -jar target/Krill-Server.jar
14
15
Nils Diewaldd86c0682014-12-05 20:46:26 +000016 ** Formatter
17 # Format the code with
18 $ mvn java-formatter:format
19
Akron09ae3732015-08-13 20:56:20 +020020 ** Indexer after packaging (see above)
21 $ java -jar target/Krill-Indexer.jar
Akronc5e73b82016-01-14 17:01:18 +010022 -cfg src/main/resources/krill.properties
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000023 /data/hdd/lucene-new/WPD/
Nils Diewaldf6b351c2014-09-04 21:34:05 +000024 -->
25
Nils Diewalde50bae02015-03-03 22:08:30 +000026 <groupId>de.ids_mannheim.korap</groupId>
Nils Diewaldbbd39a52015-02-23 19:56:57 +000027 <artifactId>Krill</artifactId>
Akronc7469132016-06-03 00:40:52 +020028 <version>0.55.6</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000029 <packaging>jar</packaging>
30
Nils Diewaldbbd39a52015-02-23 19:56:57 +000031 <name>Krill</name>
Nils Diewaldf399a672013-11-18 17:55:22 +000032 <url>http://www.ids-mannheim.de/</url>
33
34 <organization>
35 <name>IDS Mannheim</name>
36 <url>http://www.ids-mannheim.de/</url>
37 </organization>
38
39 <developers>
40 <developer>
41 <name>Nils Diewald</name>
42 <email>diewald@ids-mannheim.de</email>
43 <url>http://nils-diewald.de</url>
44 </developer>
Nils Diewald32030a62014-09-03 20:16:50 +000045 <developer>
46 <name>Eliza Margaretha</name>
47 <email>margaretha@ids-mannheim.de</email>
48 </developer>
Nils Diewaldf399a672013-11-18 17:55:22 +000049 </developers>
50
51 <properties>
Nils Diewaldcb8afb32015-02-04 21:12:37 +000052 <jersey.version>2.15</jersey.version>
Nils Diewaldf399a672013-11-18 17:55:22 +000053 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54 </properties>
55
Nils Diewald32030a62014-09-03 20:16:50 +000056 <dependencyManagement>
57 <dependencies>
58 <dependency>
59 <groupId>org.glassfish.jersey</groupId>
60 <artifactId>jersey-bom</artifactId>
61 <version>${jersey.version}</version>
62 <type>pom</type>
63 <scope>import</scope>
64 </dependency>
65 </dependencies>
66 </dependencyManagement>
67
Eliza Margarethaa929f272014-11-28 14:10:05 +000068 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000069 <!-- junit dependency -->
70 <dependency>
71 <groupId>junit</groupId>
72 <artifactId>junit</artifactId>
73 <version>4.11</version>
74 <scope>test</scope>
75 </dependency>
76
77 <!-- log4j dependency -->
78 <dependency>
79 <groupId>log4j</groupId>
80 <artifactId>log4j</artifactId>
81 <version>1.2.17</version>
82 </dependency>
83 <dependency>
84 <groupId>org.slf4j</groupId>
85 <artifactId>slf4j-log4j12</artifactId>
86 <version>1.7.5</version>
87 </dependency>
Marc Kupietza61d2ba2015-03-20 16:30:26 +010088 <dependency>
89 <groupId>org.slf4j</groupId>
90 <artifactId>jul-to-slf4j</artifactId>
91 <version>1.7.5</version>
92 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +000093
Nils Diewald6aa929e2014-09-17 13:30:34 +000094 <!-- SQLite for database connection tests -->
95 <dependency>
96 <groupId>org.xerial</groupId>
97 <artifactId>sqlite-jdbc</artifactId>
98 <version>3.7.2</version>
99 </dependency>
100
101 <!-- Database Connection Pool Manager -->
102 <dependency>
103 <groupId>c3p0</groupId>
104 <artifactId>c3p0</artifactId>
105 <version>0.9.1.2</version>
106 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +0000107
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 <!-- Lucene core dependency -->
109 <dependency>
110 <artifactId>lucene-core</artifactId>
111 <groupId>org.apache.lucene</groupId>
112 <type>jar</type>
Akron700c1eb2015-09-25 16:57:30 +0200113 <version>5.0.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000114 </dependency>
115
116 <!-- Lucene queryparser dependency -->
117 <dependency>
118 <artifactId>lucene-queryparser</artifactId>
119 <groupId>org.apache.lucene</groupId>
120 <type>jar</type>
Akron700c1eb2015-09-25 16:57:30 +0200121 <version>5.0.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000122 </dependency>
123
124 <!-- Lucene analyzers dependency -->
125 <dependency>
126 <artifactId>lucene-analyzers-common</artifactId>
127 <groupId>org.apache.lucene</groupId>
128 <type>jar</type>
Akron700c1eb2015-09-25 16:57:30 +0200129 <version>5.0.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000130 </dependency>
131
Nils Diewald8a1fc012014-02-19 15:23:33 +0000132 <dependency>
133 <groupId>org.hamcrest</groupId>
134 <artifactId>hamcrest-core</artifactId>
135 <version>1.3</version>
136 </dependency>
137
Nils Diewaldf399a672013-11-18 17:55:22 +0000138 <!-- JCache -->
139 <dependency>
140 <groupId>net.sf.jsr107cache</groupId>
141 <artifactId>jsr107cache</artifactId>
142 <version>1.0</version>
143 </dependency>
144
Nils Diewald32030a62014-09-03 20:16:50 +0000145 <!-- Jersey -->
146 <dependency>
147 <groupId>org.glassfish.jersey.containers</groupId>
148 <artifactId>jersey-container-grizzly2-http</artifactId>
149 </dependency>
150
Nils Diewald2f2b0672014-11-25 20:26:22 +0000151 <!-- JSON support in Jersey -->
Marc Kupietza61d2ba2015-03-20 16:30:26 +0100152 <dependency>
153 <groupId>com.fasterxml.jackson.jaxrs</groupId>
154 <artifactId>jackson-jaxrs-json-provider</artifactId>
155 <version>2.4.4</version>
156 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000157
Nils Diewald2f2b0672014-11-25 20:26:22 +0000158 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000159 <!-- see https://github.com/FasterXML/jackson-core -->
160 <!-- https://github.com/FasterXML/jackson-databind -->
161 <dependency>
162 <groupId>com.fasterxml.jackson.core</groupId>
163 <artifactId>jackson-databind</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000164 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000165 </dependency>
166 <dependency>
167 <groupId>com.fasterxml.jackson.core</groupId>
168 <artifactId>jackson-annotations</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000169 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000170 </dependency>
171 <dependency>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-core</artifactId>
Nils Diewaldcb8afb32015-02-04 21:12:37 +0000174 <version>2.4.4</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000175 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000176
177 <!-- JSON-LD support -->
178 <!--
179 <dependency>
180 <groupId>com.github.jsonld-java</groupId>
181 <artifactId>jsonld-java</artifactId>
182 <version>0.5.2-SNAPSHOT</version>
183 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000184
Nils Diewald5c63ab82014-12-04 22:53:20 +0000185 Temporarily disable @Experimental annotation
Eliza Margarethaa929f272014-11-28 14:10:05 +0000186 <dependency>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000187 <groupId>KorapAnnotationProcessor</groupId>
188 <artifactId>KorapAnnotationProcessor</artifactId>
189 <version>0.0.1-SNAPSHOT</version>
190 <scope>compile</scope>
191 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000192 -->
193
Akron484c3c12015-07-07 20:25:44 +0200194 <!-- Some language extensions like StringUtil -->
195 <dependency>
196 <groupId>commons-lang</groupId>
197 <artifactId>commons-lang</artifactId>
198 <version>2.3</version>
199 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000200 </dependencies>
201
202 <build>
203 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
204 <outputDirectory>${basedir}/bin</outputDirectory>
205 <plugins>
206 <plugin>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000207 <artifactId>maven-compiler-plugin</artifactId>
208 <version>2.5.1</version>
209 <inherited>true</inherited>
210 <configuration>
211 <showWarnings>true</showWarnings>
212 <source>1.7</source>
213 <target>1.7</target>
214 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000215 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000216
Nils Diewaldaee45452013-11-27 22:35:55 +0000217 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000218 <groupId>org.apache.maven.plugins</groupId>
Akron09ae3732015-08-13 20:56:20 +0200219 <artifactId>maven-shade-plugin</artifactId>
220 <version>2.4.1</version>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000221 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000222 <execution>
Akron09ae3732015-08-13 20:56:20 +0200223 <id>indexer</id>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000224 <phase>package</phase>
225 <goals>
Akron09ae3732015-08-13 20:56:20 +0200226 <goal>shade</goal>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000227 </goals>
228 <configuration>
Akron09ae3732015-08-13 20:56:20 +0200229 <transformers>
230 <transformer
231 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
232 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
233 </transformer>
234 </transformers>
235 <finalName>${project.artifactId}-Indexer</finalName>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000236 </configuration>
237 </execution>
Akron09ae3732015-08-13 20:56:20 +0200238 <execution>
239 <id>server</id>
240 <phase>package</phase>
241 <goals>
242 <goal>shade</goal>
243 </goals>
244 <configuration>
245 <transformers>
246 <transformer
247 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
248 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
249 </transformer>
250 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
251 <resource>krill.properties</resource>
252 </transformer>
253 </transformers>
254 <finalName>${project.name}-Server</finalName>
255 </configuration>
256 </execution>
257 </executions>
Nils Diewaldaee45452013-11-27 22:35:55 +0000258 </plugin>
Akron09ae3732015-08-13 20:56:20 +0200259
Nils Diewaldf399a672013-11-18 17:55:22 +0000260 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000261 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000262 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000263 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000264 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000265 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000266 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000267 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000268 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000269 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000270 </configuration>
271 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000272
Nils Diewald2f2b0672014-11-25 20:26:22 +0000273 <!--
Nils Diewaldd86c0682014-12-05 20:46:26 +0000274 Formatter plugin for Eclipse based coding conventions
Nils Diewald2f2b0672014-11-25 20:26:22 +0000275 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
Nils Diewald2f2b0672014-11-25 20:26:22 +0000276 -->
277 <plugin>
278 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
279 <artifactId>maven-java-formatter-plugin</artifactId>
280 <version>0.4</version>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000281 <configuration>
Nils Diewald857c9582015-03-03 21:16:14 +0000282 <configFile>${project.basedir}/Format.xml</configFile>
Nils Diewald5c63ab82014-12-04 22:53:20 +0000283 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
284 <compilerSource>1.7</compilerSource>
285 <compilerCompliance>1.7</compilerCompliance>
286 <compilerTargetPlatform>1.7</compilerTargetPlatform>
287 </configuration>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000288 </plugin>
289
Nils Diewald32030a62014-09-03 20:16:50 +0000290 <plugin>
291 <groupId>org.codehaus.mojo</groupId>
292 <artifactId>exec-maven-plugin</artifactId>
293 <version>1.2.1</version>
294 <executions>
295 <execution>
296 <goals>
297 <goal>java</goal>
298 </goals>
299 </execution>
300 </executions>
301 <configuration>
Nils Diewalde50bae02015-03-03 22:08:30 +0000302 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
Nils Diewald32030a62014-09-03 20:16:50 +0000303 </configuration>
304 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000305 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000306
307 <resources>
308 <resource>
309 <directory>src/main/resources</directory>
310 <filtering>true</filtering>
311 <includes>
Akron2018e132016-04-28 17:09:49 +0200312 <include>krill.info</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000313 </includes>
314 </resource>
315 <resource>
316 <directory>src/main/resources</directory>
317 <filtering>false</filtering>
318 <excludes>
Akron2018e132016-04-28 17:09:49 +0200319 <exclude>krill.info</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000320 </excludes>
321 </resource>
322 </resources>
323
324 <testResources>
325 <testResource>
326 <directory>src/test/resources</directory>
327 <filtering>true</filtering>
328 <includes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000329 <include>krill.properties</include>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000330 </includes>
331 </testResource>
332 <testResource>
333 <directory>src/test/resources</directory>
334 <filtering>false</filtering>
335 <excludes>
Nils Diewalde50bae02015-03-03 22:08:30 +0000336 <exclude>krill.properties</exclude>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000337 </excludes>
338 </testResource>
339 </testResources>
Nils Diewaldf399a672013-11-18 17:55:22 +0000340 </build>
341</project>