blob: 758f9fc5af60f5802228d9dbf688aa668cf4a7f0 [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"
Eliza Margarethaff416632016-11-03 15:08:07 +01002 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
Eliza Margarethaff416632016-11-03 15:08:07 +01005 <!-- ** Server
6
7 # Start the server with
8
9 $ mvn compile exec:java
10
11 # Or after packaging
12
13 $ mvn clean package
Nils Diewalde26f03f2014-06-04 17:48:53 +000014
Eliza Margarethaff416632016-11-03 15:08:07 +010015 # with
16
17 $ java -jar target/Krill-Server.jar
18
19 ** Formatter
20
21 # Format the code with $ mvn java-formatter:format
22
23 ** Indexer
24 # after packaging (see above)
25
26 $ java -jar target/Krill-Indexer.jar -c [configuration file]
27 -i [input directories] -o [output directory]
28
29 for example:
30
31 $ java -jar target/Krill-Indexer.jar -c src/test/resources/krill.properties
32 -i src/test/resources/bzk -o index/
33
34 -->
Nils Diewaldf399a672013-11-18 17:55:22 +000035
Eliza Margarethaff416632016-11-03 15:08:07 +010036 <groupId>de.ids_mannheim.korap</groupId>
37 <artifactId>Krill</artifactId>
Akrond8f88612017-02-15 19:26:54 +010038 <version>0.55.8</version>
Eliza Margarethaff416632016-11-03 15:08:07 +010039 <packaging>jar</packaging>
Nils Diewaldf399a672013-11-18 17:55:22 +000040
Eliza Margarethaff416632016-11-03 15:08:07 +010041 <name>Krill</name>
42 <url>http://www.ids-mannheim.de/</url>
Nils Diewaldf399a672013-11-18 17:55:22 +000043
Eliza Margarethaff416632016-11-03 15:08:07 +010044 <organization>
45 <name>IDS Mannheim</name>
46 <url>http://www.ids-mannheim.de/</url>
47 </organization>
Nils Diewald8a1fc012014-02-19 15:23:33 +000048
Eliza Margarethaff416632016-11-03 15:08:07 +010049 <developers>
50 <developer>
51 <name>Nils Diewald</name>
52 <email>diewald@ids-mannheim.de</email>
53 <url>http://nils-diewald.de</url>
54 </developer>
55 <developer>
56 <name>Eliza Margaretha</name>
57 <email>margaretha@ids-mannheim.de</email>
58 </developer>
59 </developers>
Nils Diewaldf399a672013-11-18 17:55:22 +000060
Eliza Margarethaff416632016-11-03 15:08:07 +010061 <properties>
62 <jersey.version>2.15</jersey.version>
63 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
64 </properties>
Nils Diewald32030a62014-09-03 20:16:50 +000065
Eliza Margarethaff416632016-11-03 15:08:07 +010066 <dependencyManagement>
67 <dependencies>
68 <dependency>
69 <groupId>org.glassfish.jersey</groupId>
70 <artifactId>jersey-bom</artifactId>
71 <version>${jersey.version}</version>
72 <type>pom</type>
73 <scope>import</scope>
74 </dependency>
75 </dependencies>
76 </dependencyManagement>
Nils Diewald32030a62014-09-03 20:16:50 +000077
Eliza Margarethaff416632016-11-03 15:08:07 +010078 <dependencies>
79 <!-- junit dependency -->
80 <dependency>
81 <groupId>junit</groupId>
82 <artifactId>junit</artifactId>
83 <version>4.11</version>
84 <scope>test</scope>
85 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +000086
Eliza Margarethaff416632016-11-03 15:08:07 +010087 <!-- log4j dependency -->
88 <dependency>
89 <groupId>log4j</groupId>
90 <artifactId>log4j</artifactId>
91 <version>1.2.17</version>
92 </dependency>
93 <dependency>
94 <groupId>org.slf4j</groupId>
95 <artifactId>slf4j-log4j12</artifactId>
96 <version>1.7.5</version>
97 </dependency>
98 <dependency>
99 <groupId>org.slf4j</groupId>
100 <artifactId>jul-to-slf4j</artifactId>
101 <version>1.7.5</version>
102 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000103
Eliza Margarethaff416632016-11-03 15:08:07 +0100104 <!-- SQLite for database connection tests -->
105 <dependency>
106 <groupId>org.xerial</groupId>
107 <artifactId>sqlite-jdbc</artifactId>
108 <version>3.7.2</version>
109 </dependency>
Nils Diewaldf5ab4b22015-02-25 20:55:16 +0000110
Eliza Margarethaff416632016-11-03 15:08:07 +0100111 <!-- Database Connection Pool Manager -->
112 <dependency>
113 <groupId>c3p0</groupId>
114 <artifactId>c3p0</artifactId>
115 <version>0.9.1.2</version>
116 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000117
Eliza Margarethaff416632016-11-03 15:08:07 +0100118 <!-- Lucene core dependency -->
119 <dependency>
120 <artifactId>lucene-core</artifactId>
121 <groupId>org.apache.lucene</groupId>
122 <type>jar</type>
123 <version>5.0.0</version>
124 </dependency>
Nils Diewaldaee45452013-11-27 22:35:55 +0000125
Eliza Margarethaff416632016-11-03 15:08:07 +0100126 <!-- Lucene queryparser dependency -->
127 <dependency>
128 <artifactId>lucene-queryparser</artifactId>
129 <groupId>org.apache.lucene</groupId>
130 <type>jar</type>
131 <version>5.0.0</version>
132 </dependency>
Akron09ae3732015-08-13 20:56:20 +0200133
Eliza Margarethaff416632016-11-03 15:08:07 +0100134 <!-- Lucene analyzers dependency -->
135 <dependency>
136 <artifactId>lucene-analyzers-common</artifactId>
137 <groupId>org.apache.lucene</groupId>
138 <type>jar</type>
139 <version>5.0.0</version>
140 </dependency>
Nils Diewald32030a62014-09-03 20:16:50 +0000141
Eliza Margarethaff416632016-11-03 15:08:07 +0100142 <dependency>
143 <groupId>org.hamcrest</groupId>
144 <artifactId>hamcrest-core</artifactId>
145 <version>1.3</version>
146 </dependency>
Nils Diewald2f2b0672014-11-25 20:26:22 +0000147
Eliza Margarethaff416632016-11-03 15:08:07 +0100148 <!-- JCache -->
149 <dependency>
150 <groupId>net.sf.jsr107cache</groupId>
151 <artifactId>jsr107cache</artifactId>
152 <version>1.0</version>
153 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000154
Eliza Margarethaff416632016-11-03 15:08:07 +0100155 <!-- Jersey -->
156 <dependency>
157 <groupId>org.glassfish.jersey.containers</groupId>
158 <artifactId>jersey-container-grizzly2-http</artifactId>
159 </dependency>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000160
Eliza Margarethaff416632016-11-03 15:08:07 +0100161 <!-- JSON support in Jersey -->
162 <dependency>
163 <groupId>com.fasterxml.jackson.jaxrs</groupId>
164 <artifactId>jackson-jaxrs-json-provider</artifactId>
165 <version>2.4.4</version>
166 </dependency>
167
168 <!-- JSON support using Jackson -->
169 <!-- see https://github.com/FasterXML/jackson-core -->
170 <!-- https://github.com/FasterXML/jackson-databind -->
171 <dependency>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-databind</artifactId>
174 <version>2.4.4</version>
175 </dependency>
176 <dependency>
177 <groupId>com.fasterxml.jackson.core</groupId>
178 <artifactId>jackson-annotations</artifactId>
179 <version>2.4.4</version>
180 </dependency>
181 <dependency>
182 <groupId>com.fasterxml.jackson.core</groupId>
183 <artifactId>jackson-core</artifactId>
184 <version>2.4.4</version>
185 </dependency>
186
187 <!-- JSON-LD support -->
188 <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId>
189 <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental
190 annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId>
191 <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> -->
192
193 <!-- Some language extensions like StringUtil -->
194 <dependency>
195 <groupId>commons-lang</groupId>
196 <artifactId>commons-lang</artifactId>
197 <version>2.3</version>
198 </dependency>
199
200 <dependency>
201 <groupId>commons-cli</groupId>
202 <artifactId>commons-cli</artifactId>
203 <version>1.3.1</version>
204 </dependency>
205 </dependencies>
206
207 <build>
208 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
209 <outputDirectory>${basedir}/bin</outputDirectory>
210 <plugins>
211 <plugin>
212 <artifactId>maven-compiler-plugin</artifactId>
213 <version>2.5.1</version>
214 <inherited>true</inherited>
215 <configuration>
216 <showWarnings>true</showWarnings>
217 <source>1.7</source>
218 <target>1.7</target>
219 </configuration>
220 </plugin>
221
222 <plugin>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-shade-plugin</artifactId>
225 <version>2.4.1</version>
226 <executions>
227 <execution>
228 <id>indexer</id>
229 <phase>package</phase>
230 <goals>
231 <goal>shade</goal>
232 </goals>
233 <configuration>
234 <transformers>
235 <transformer
236 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
237 <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass>
238 </transformer>
239 </transformers>
240 <finalName>${project.artifactId}-Indexer</finalName>
241 </configuration>
242 </execution>
243 <execution>
244 <id>server</id>
245 <phase>package</phase>
246 <goals>
247 <goal>shade</goal>
248 </goals>
249 <configuration>
250 <transformers>
251 <transformer
252 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
253 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
254 </transformer>
255 <transformer
256 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
257 <resource>krill.properties</resource>
258 </transformer>
259 </transformers>
260 <finalName>${project.name}-Server</finalName>
261 </configuration>
262 </execution>
263 </executions>
264 </plugin>
265
266 <plugin>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-surefire-plugin</artifactId>
269 <version>2.16</version>
270 <configuration>
271 <excludes>
272 <exclude>**/benchmark/*</exclude>
273 <exclude>**/TestWPDIndex.java</exclude>
274 <exclude>**/TestRealIndex.java</exclude>
margaretha3d811102017-09-06 14:20:42 +0200275 <exclude>**/TestSampleIndex.java</exclude>
Eliza Margarethaff416632016-11-03 15:08:07 +0100276 </excludes>
277 </configuration>
278 </plugin>
279
280 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
281 <plugin>
282 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
283 <artifactId>maven-java-formatter-plugin</artifactId>
284 <version>0.4</version>
285 <configuration>
286 <configFile>${project.basedir}/Format.xml</configFile>
287 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
288 <compilerSource>1.7</compilerSource>
289 <compilerCompliance>1.7</compilerCompliance>
290 <compilerTargetPlatform>1.7</compilerTargetPlatform>
291 </configuration>
292 </plugin>
293
294 <plugin>
295 <groupId>org.codehaus.mojo</groupId>
296 <artifactId>exec-maven-plugin</artifactId>
297 <version>1.2.1</version>
298 <executions>
299 <execution>
300 <goals>
301 <goal>java</goal>
302 </goals>
303 </execution>
304 </executions>
305 <configuration>
306 <mainClass>de.ids_mannheim.korap.server.Node</mainClass>
307 </configuration>
308 </plugin>
309 </plugins>
310
311 <resources>
312 <resource>
313 <directory>src/main/resources</directory>
314 <filtering>true</filtering>
315 <includes>
316 <include>krill.info</include>
317 </includes>
318 </resource>
319 <resource>
320 <directory>src/main/resources</directory>
321 <filtering>false</filtering>
322 <excludes>
323 <exclude>krill.info</exclude>
324 </excludes>
325 </resource>
326 </resources>
327
328 <testResources>
329 <testResource>
330 <directory>src/test/resources</directory>
331 <filtering>true</filtering>
332 <includes>
333 <include>krill.properties</include>
334 </includes>
335 </testResource>
336 <testResource>
337 <directory>src/test/resources</directory>
338 <filtering>false</filtering>
339 <excludes>
340 <exclude>krill.properties</exclude>
341 </excludes>
342 </testResource>
343 </testResources>
344 </build>
Nils Diewaldf399a672013-11-18 17:55:22 +0000345</project>