blob: 5cb1c2f66f1c1abcb493169f500446e11c93a0ba [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
Eliza Margarethaa929f272014-11-28 14:10:05 +000059 <dependencies>
Nils Diewaldf399a672013-11-18 17:55:22 +000060 <!-- junit dependency -->
61 <dependency>
62 <groupId>junit</groupId>
63 <artifactId>junit</artifactId>
64 <version>4.11</version>
65 <scope>test</scope>
66 </dependency>
67
68 <!-- log4j dependency -->
69 <dependency>
70 <groupId>log4j</groupId>
71 <artifactId>log4j</artifactId>
72 <version>1.2.17</version>
73 </dependency>
74 <dependency>
75 <groupId>org.slf4j</groupId>
76 <artifactId>slf4j-log4j12</artifactId>
77 <version>1.7.5</version>
78 </dependency>
79
Nils Diewald6aa929e2014-09-17 13:30:34 +000080 <!-- SQLite for database connection tests -->
81 <dependency>
82 <groupId>org.xerial</groupId>
83 <artifactId>sqlite-jdbc</artifactId>
84 <version>3.7.2</version>
85 </dependency>
86
87 <!-- Database Connection Pool Manager -->
88 <dependency>
89 <groupId>c3p0</groupId>
90 <artifactId>c3p0</artifactId>
91 <version>0.9.1.2</version>
92 </dependency>
Nils Diewalde26f03f2014-06-04 17:48:53 +000093
Nils Diewaldf399a672013-11-18 17:55:22 +000094 <!-- Lucene core dependency -->
95 <dependency>
96 <artifactId>lucene-core</artifactId>
97 <groupId>org.apache.lucene</groupId>
98 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +000099 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000100 </dependency>
101
102 <!-- Lucene queryparser dependency -->
103 <dependency>
104 <artifactId>lucene-queryparser</artifactId>
105 <groupId>org.apache.lucene</groupId>
106 <type>jar</type>
Nils Diewald67f54042014-09-27 14:53:38 +0000107 <version>4.5.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000108 </dependency>
109
110 <!-- Lucene analyzers dependency -->
111 <dependency>
112 <artifactId>lucene-analyzers-common</artifactId>
113 <groupId>org.apache.lucene</groupId>
114 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +0000115 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000116 </dependency>
117
Nils Diewald8a1fc012014-02-19 15:23:33 +0000118 <dependency>
119 <groupId>org.hamcrest</groupId>
120 <artifactId>hamcrest-core</artifactId>
121 <version>1.3</version>
122 </dependency>
123
Nils Diewaldf399a672013-11-18 17:55:22 +0000124 <!-- JCache -->
125 <dependency>
126 <groupId>net.sf.jsr107cache</groupId>
127 <artifactId>jsr107cache</artifactId>
128 <version>1.0</version>
129 </dependency>
130
Nils Diewald32030a62014-09-03 20:16:50 +0000131 <!-- Jersey -->
132 <dependency>
133 <groupId>org.glassfish.jersey.containers</groupId>
134 <artifactId>jersey-container-grizzly2-http</artifactId>
135 </dependency>
136
137 <dependency>
138 <groupId>com.sun.jersey.contribs</groupId>
139 <artifactId>jersey-freemarker</artifactId>
140 <version>1.13-b01</version>
141 </dependency>
142
Nils Diewald2f2b0672014-11-25 20:26:22 +0000143 <!-- JSON support in Jersey -->
Nils Diewald32030a62014-09-03 20:16:50 +0000144 <dependency>
145 <groupId>org.glassfish.jersey.media</groupId>
146 <artifactId>jersey-media-moxy</artifactId>
147 </dependency>
148
Nils Diewald2f2b0672014-11-25 20:26:22 +0000149 <!-- JSON support using Jackson -->
Nils Diewaldf399a672013-11-18 17:55:22 +0000150 <!-- see https://github.com/FasterXML/jackson-core -->
151 <!-- https://github.com/FasterXML/jackson-databind -->
152 <dependency>
153 <groupId>com.fasterxml.jackson.core</groupId>
154 <artifactId>jackson-databind</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000155 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000156 </dependency>
157 <dependency>
158 <groupId>com.fasterxml.jackson.core</groupId>
159 <artifactId>jackson-annotations</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000160 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000161 </dependency>
162 <dependency>
163 <groupId>com.fasterxml.jackson.core</groupId>
164 <artifactId>jackson-core</artifactId>
Nils Diewald67f54042014-09-27 14:53:38 +0000165 <version>2.4.0</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000166 </dependency>
Eliza Margarethaa929f272014-11-28 14:10:05 +0000167 <dependency>
168 <groupId>KorapAnnotationProcessor</groupId>
169 <artifactId>KorapAnnotationProcessor</artifactId>
170 <version>0.0.1-SNAPSHOT</version>
171 <scope>compile</scope>
172 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000173 </dependencies>
174
175 <build>
176 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
177 <outputDirectory>${basedir}/bin</outputDirectory>
178 <plugins>
179 <plugin>
Eliza Margarethaa929f272014-11-28 14:10:05 +0000180 <artifactId>maven-compiler-plugin</artifactId>
181 <version>2.5.1</version>
182 <inherited>true</inherited>
183 <configuration>
184 <showWarnings>true</showWarnings>
185 <source>1.7</source>
186 <target>1.7</target>
187 </configuration>
Nils Diewaldf399a672013-11-18 17:55:22 +0000188 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000189
Nils Diewaldaee45452013-11-27 22:35:55 +0000190 <plugin>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-assembly-plugin</artifactId>
193 <version>2.2-beta-5</version>
Nils Diewald67f54042014-09-27 14:53:38 +0000194 <configuration>
Eliza Margarethad28469f2014-03-10 12:42:21 +0000195 <archive>
196 <manifest>
197 <addClasspath>true</addClasspath>
198 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
199 </manifest>
200 </archive>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000201 <appendAssemblyId>false</appendAssemblyId>
202 <descriptorRefs>
203 <descriptorRef>jar-with-dependencies</descriptorRef>
204 </descriptorRefs>
205 </configuration>
206 <executions>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000207 <execution>
208 <id>KorapIndexer</id>
209 <phase>package</phase>
210 <goals>
211 <goal>single</goal>
212 </goals>
213 <configuration>
214 <finalName>KorapIndexer</finalName>
215 <archive>
216 <manifest>
217 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
218 </manifest>
219 </archive>
220 </configuration>
221 </execution>
Nils Diewaldaee45452013-11-27 22:35:55 +0000222 </executions>
223 </plugin>
Nils Diewald67f54042014-09-27 14:53:38 +0000224
Nils Diewaldf399a672013-11-18 17:55:22 +0000225 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000226 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000227 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000228 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000229 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000230 <excludes>
Nils Diewaldefb9c9a2014-02-20 15:05:18 +0000231 <exclude>**/benchmark/*</exclude>
Eliza Margaretha78d2cd12014-03-10 12:44:40 +0000232 <exclude>**/TestWPDIndex.java</exclude>
Nils Diewald32912a62014-11-11 01:57:45 +0000233 <exclude>**/TestRealIndex.java</exclude>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000234 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000235 </configuration>
236 </plugin>
Nils Diewald32030a62014-09-03 20:16:50 +0000237
Nils Diewald2f2b0672014-11-25 20:26:22 +0000238 <!-- Formatter plugin for Eclipse based coding conventions -->
239 <!--
240 http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html
241 Call: mvn java-formatter:format
242 -->
243 <plugin>
244 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
245 <artifactId>maven-java-formatter-plugin</artifactId>
246 <version>0.4</version>
247 <!--
248 <executions>
249 <execution>
250 <goals>
251 <goal>format</goal>
252 </goals>
253 </execution>
254 </executions>
255 -->
256 </plugin>
257
Nils Diewald32030a62014-09-03 20:16:50 +0000258 <plugin>
259 <groupId>org.codehaus.mojo</groupId>
260 <artifactId>exec-maven-plugin</artifactId>
261 <version>1.2.1</version>
262 <executions>
263 <execution>
264 <goals>
265 <goal>java</goal>
266 </goals>
267 </execution>
268 </executions>
269 <configuration>
270 <mainClass>de.ids_mannheim.korap.KorapNode</mainClass>
271 </configuration>
272 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000273 </plugins>
Nils Diewaldcdd465b2014-02-24 18:47:38 +0000274
275 <resources>
276 <resource>
277 <directory>src/main/resources</directory>
278 <filtering>true</filtering>
279 <includes>
280 <include>index.properties</include>
281 </includes>
282 </resource>
283 <resource>
284 <directory>src/main/resources</directory>
285 <filtering>false</filtering>
286 <excludes>
287 <exclude>index.properties</exclude>
288 </excludes>
289 </resource>
290 </resources>
291
292 <testResources>
293 <testResource>
294 <directory>src/test/resources</directory>
295 <filtering>true</filtering>
296 <includes>
297 <include>index.properties</include>
298 </includes>
299 </testResource>
300 <testResource>
301 <directory>src/test/resources</directory>
302 <filtering>false</filtering>
303 <excludes>
304 <exclude>index.properties</exclude>
305 </excludes>
306 </testResource>
307 </testResources>
308
Nils Diewaldf399a672013-11-18 17:55:22 +0000309 </build>
310</project>