Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 1 | <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 Diewald | 97b6638 | 2014-02-11 00:32:23 +0000 | [diff] [blame] | 4 | |
Nils Diewald | f6b351c | 2014-09-04 21:34:05 +0000 | [diff] [blame] | 5 | <!-- |
| 6 | ** Indexer |
| 7 | install the indexer and the performancetests |
| 8 | $ mvn clean compile assembly:single |
| 9 | Then run e.g. |
| 10 | $ java -jar target/KorAP-lucene-index-???-jar-with-dependencies.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/ |
| 11 | |
| 12 | ** Server |
| 13 | Start the server with |
| 14 | $mvn clean compile exec:java |
| 15 | --> |
| 16 | |
| 17 | <!-- |
| 18 | <parent> |
| 19 | <groupId>KorAP-modules</groupId> |
| 20 | <artifactId>KorAP-core-modules</artifactId> |
| 21 | <version>LATEST</version> |
| 22 | </parent> |
| 23 | --> |
| 24 | |
Nils Diewald | 7c50e2d | 2013-11-18 19:20:22 +0000 | [diff] [blame] | 25 | <groupId>KorAP-modules</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 26 | <artifactId>KorAP-lucene-index</artifactId> |
Nils Diewald | 79f6c4d | 2014-09-17 17:34:01 +0000 | [diff] [blame] | 27 | <version>0.42</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 28 | <packaging>jar</packaging> |
| 29 | |
| 30 | <name>KorAP-lucene-index</name> |
| 31 | <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 Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 44 | |
| 45 | <developer> |
| 46 | <name>Eliza Margaretha</name> |
| 47 | <email>margaretha@ids-mannheim.de</email> |
| 48 | </developer> |
| 49 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 50 | </developers> |
| 51 | |
| 52 | <properties> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 53 | <jersey.version>2.4.1</jersey.version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 54 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 55 | </properties> |
| 56 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 57 | <dependencyManagement> |
| 58 | <dependencies> |
| 59 | <dependency> |
| 60 | <groupId>org.glassfish.jersey</groupId> |
| 61 | <artifactId>jersey-bom</artifactId> |
| 62 | <version>${jersey.version}</version> |
| 63 | <type>pom</type> |
| 64 | <scope>import</scope> |
| 65 | </dependency> |
| 66 | </dependencies> |
| 67 | </dependencyManagement> |
| 68 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 69 | <dependencies> |
| 70 | |
| 71 | <!-- junit dependency --> |
| 72 | <dependency> |
| 73 | <groupId>junit</groupId> |
| 74 | <artifactId>junit</artifactId> |
| 75 | <version>4.11</version> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
| 78 | |
| 79 | <!-- log4j dependency --> |
| 80 | <dependency> |
| 81 | <groupId>log4j</groupId> |
| 82 | <artifactId>log4j</artifactId> |
| 83 | <version>1.2.17</version> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.slf4j</groupId> |
| 87 | <artifactId>slf4j-log4j12</artifactId> |
| 88 | <version>1.7.5</version> |
| 89 | </dependency> |
| 90 | |
Nils Diewald | 6aa929e | 2014-09-17 13:30:34 +0000 | [diff] [blame] | 91 | <!-- SQLite for database connection tests --> |
| 92 | <dependency> |
| 93 | <groupId>org.xerial</groupId> |
| 94 | <artifactId>sqlite-jdbc</artifactId> |
| 95 | <version>3.7.2</version> |
| 96 | </dependency> |
| 97 | |
| 98 | <!-- Database Connection Pool Manager --> |
| 99 | <dependency> |
| 100 | <groupId>c3p0</groupId> |
| 101 | <artifactId>c3p0</artifactId> |
| 102 | <version>0.9.1.2</version> |
| 103 | </dependency> |
| 104 | |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 105 | <!-- solr dependency --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 106 | <!-- |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 107 | <dependency> |
| 108 | <artifactId>solr-core</artifactId> |
| 109 | <groupId>org.apache.solr</groupId> |
| 110 | <version>4.3.1</version> |
| 111 | <type>jar</type> |
| 112 | <scope>compile</scope> |
| 113 | </dependency> |
| 114 | |
| 115 | <dependency> |
| 116 | <artifactId>solr-test-framework</artifactId> |
| 117 | <groupId>org.apache.solr</groupId> |
| 118 | <version>4.3.1</version> |
| 119 | </dependency> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 120 | --> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 121 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 122 | <!-- Lucene core dependency --> |
| 123 | <dependency> |
| 124 | <artifactId>lucene-core</artifactId> |
| 125 | <groupId>org.apache.lucene</groupId> |
| 126 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 127 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 128 | </dependency> |
| 129 | |
| 130 | <!-- Lucene queryparser dependency --> |
| 131 | <dependency> |
| 132 | <artifactId>lucene-queryparser</artifactId> |
| 133 | <groupId>org.apache.lucene</groupId> |
| 134 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 135 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 136 | </dependency> |
| 137 | |
| 138 | <!-- Lucene analyzers dependency --> |
| 139 | <dependency> |
| 140 | <artifactId>lucene-analyzers-common</artifactId> |
| 141 | <groupId>org.apache.lucene</groupId> |
| 142 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 143 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 144 | </dependency> |
| 145 | |
Nils Diewald | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 146 | <dependency> |
| 147 | <groupId>org.hamcrest</groupId> |
| 148 | <artifactId>hamcrest-core</artifactId> |
| 149 | <version>1.3</version> |
| 150 | </dependency> |
| 151 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 152 | <!-- JCache --> |
| 153 | <dependency> |
| 154 | <groupId>net.sf.jsr107cache</groupId> |
| 155 | <artifactId>jsr107cache</artifactId> |
| 156 | <version>1.0</version> |
| 157 | </dependency> |
| 158 | |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 159 | <!-- servlet dependency --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 160 | <!-- |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 161 | <dependency> |
| 162 | <artifactId>servlet-api</artifactId> |
| 163 | <groupId>javax.servlet</groupId> |
| 164 | <version>2.5</version> |
| 165 | </dependency> |
Nils Diewald | 2cd1c3d | 2014-01-08 22:53:08 +0000 | [diff] [blame] | 166 | --> |
| 167 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 168 | <!-- Jersey --> |
| 169 | <dependency> |
| 170 | <groupId>org.glassfish.jersey.containers</groupId> |
| 171 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 172 | </dependency> |
| 173 | |
| 174 | <dependency> |
| 175 | <groupId>com.sun.jersey.contribs</groupId> |
| 176 | <artifactId>jersey-freemarker</artifactId> |
| 177 | <version>1.13-b01</version> |
| 178 | </dependency> |
| 179 | |
Nils Diewald | ff6f766 | 2014-09-21 15:08:52 +0000 | [diff] [blame^] | 180 | <!-- Multipart support for Jersey --> |
| 181 | <!-- |
| 182 | See |
| 183 | http://www.mkyong.com/webservices/jax-rs/file-upload-example-in-jersey/ |
| 184 | <dependency> |
| 185 | <groupId>com.sun.jersey.contribs</groupId> |
| 186 | <artifactId>jersey-multipart</artifactId> |
| 187 | <version>1.13</version> |
| 188 | </dependency> |
| 189 | --> |
| 190 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 191 | <!-- JSON support --> |
| 192 | <dependency> |
| 193 | <groupId>org.glassfish.jersey.media</groupId> |
| 194 | <artifactId>jersey-media-moxy</artifactId> |
| 195 | </dependency> |
| 196 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 197 | <!-- Jackson --> |
| 198 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 199 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 200 | <dependency> |
| 201 | <groupId>com.fasterxml.jackson.core</groupId> |
| 202 | <artifactId>jackson-databind</artifactId> |
| 203 | <version>2.2.2</version> |
| 204 | </dependency> |
| 205 | <dependency> |
| 206 | <groupId>com.fasterxml.jackson.core</groupId> |
| 207 | <artifactId>jackson-annotations</artifactId> |
| 208 | <version>2.2.2</version> |
| 209 | </dependency> |
| 210 | <dependency> |
| 211 | <groupId>com.fasterxml.jackson.core</groupId> |
| 212 | <artifactId>jackson-core</artifactId> |
| 213 | <version>2.2.2</version> |
| 214 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 215 | </dependencies> |
| 216 | |
| 217 | <build> |
| 218 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 219 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 220 | <plugins> |
| 221 | <plugin> |
| 222 | <artifactId>maven-compiler-plugin</artifactId> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 223 | <version>2.5.1</version> |
| 224 | <inherited>true</inherited> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 225 | <configuration> |
| 226 | <source>1.7</source> |
| 227 | <target>1.7</target> |
| 228 | </configuration> |
| 229 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 230 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 231 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 232 | <groupId>org.apache.maven.plugins</groupId> |
| 233 | <artifactId>maven-assembly-plugin</artifactId> |
| 234 | <version>2.2-beta-5</version> |
| 235 | <configuration> |
| 236 | <!-- |
| 237 | <finalName>KorapTools</finalName> |
| 238 | --> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 239 | |
| 240 | <archive> |
| 241 | <manifest> |
| 242 | <addClasspath>true</addClasspath> |
| 243 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 244 | </manifest> |
| 245 | </archive> |
| 246 | |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 247 | <appendAssemblyId>false</appendAssemblyId> |
| 248 | <descriptorRefs> |
| 249 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 250 | </descriptorRefs> |
| 251 | </configuration> |
| 252 | <executions> |
| 253 | |
| 254 | <execution> |
| 255 | <id>KorapIndexer</id> |
| 256 | <phase>package</phase> |
| 257 | <goals> |
| 258 | <goal>single</goal> |
| 259 | </goals> |
| 260 | <configuration> |
| 261 | <finalName>KorapIndexer</finalName> |
| 262 | <archive> |
| 263 | <manifest> |
| 264 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 265 | </manifest> |
| 266 | </archive> |
| 267 | </configuration> |
| 268 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 269 | </executions> |
| 270 | </plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 271 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 272 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 273 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 274 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 275 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 276 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 277 | <excludes> |
| 278 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 279 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 280 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 281 | <exclude>**/TestKorapSolr.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 282 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 283 | </configuration> |
| 284 | </plugin> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 285 | |
| 286 | <plugin> |
| 287 | <groupId>org.codehaus.mojo</groupId> |
| 288 | <artifactId>exec-maven-plugin</artifactId> |
| 289 | <version>1.2.1</version> |
| 290 | <executions> |
| 291 | <execution> |
| 292 | <goals> |
| 293 | <goal>java</goal> |
| 294 | </goals> |
| 295 | </execution> |
| 296 | </executions> |
| 297 | <configuration> |
| 298 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 299 | </configuration> |
| 300 | </plugin> |
| 301 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 302 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 303 | |
| 304 | <resources> |
| 305 | <resource> |
| 306 | <directory>src/main/resources</directory> |
| 307 | <filtering>true</filtering> |
| 308 | <includes> |
| 309 | <include>index.properties</include> |
| 310 | </includes> |
| 311 | </resource> |
| 312 | <resource> |
| 313 | <directory>src/main/resources</directory> |
| 314 | <filtering>false</filtering> |
| 315 | <excludes> |
| 316 | <exclude>index.properties</exclude> |
| 317 | </excludes> |
| 318 | </resource> |
| 319 | </resources> |
| 320 | |
| 321 | <testResources> |
| 322 | <testResource> |
| 323 | <directory>src/test/resources</directory> |
| 324 | <filtering>true</filtering> |
| 325 | <includes> |
| 326 | <include>index.properties</include> |
| 327 | </includes> |
| 328 | </testResource> |
| 329 | <testResource> |
| 330 | <directory>src/test/resources</directory> |
| 331 | <filtering>false</filtering> |
| 332 | <excludes> |
| 333 | <exclude>index.properties</exclude> |
| 334 | </excludes> |
| 335 | </testResource> |
| 336 | </testResources> |
| 337 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 338 | </build> |
| 339 | </project> |