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 | c7b6063 | 2014-09-05 19:59:01 +0000 | [diff] [blame] | 27 | <version>0.41</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 | |
| 180 | <!-- JSON support --> |
| 181 | <dependency> |
| 182 | <groupId>org.glassfish.jersey.media</groupId> |
| 183 | <artifactId>jersey-media-moxy</artifactId> |
| 184 | </dependency> |
| 185 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 186 | <!-- Jackson --> |
| 187 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 188 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 189 | <dependency> |
| 190 | <groupId>com.fasterxml.jackson.core</groupId> |
| 191 | <artifactId>jackson-databind</artifactId> |
| 192 | <version>2.2.2</version> |
| 193 | </dependency> |
| 194 | <dependency> |
| 195 | <groupId>com.fasterxml.jackson.core</groupId> |
| 196 | <artifactId>jackson-annotations</artifactId> |
| 197 | <version>2.2.2</version> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>com.fasterxml.jackson.core</groupId> |
| 201 | <artifactId>jackson-core</artifactId> |
| 202 | <version>2.2.2</version> |
| 203 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 204 | </dependencies> |
| 205 | |
| 206 | <build> |
| 207 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 208 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 209 | <plugins> |
| 210 | <plugin> |
| 211 | <artifactId>maven-compiler-plugin</artifactId> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 212 | <version>2.5.1</version> |
| 213 | <inherited>true</inherited> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 214 | <configuration> |
| 215 | <source>1.7</source> |
| 216 | <target>1.7</target> |
| 217 | </configuration> |
| 218 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 219 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 220 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 221 | <groupId>org.apache.maven.plugins</groupId> |
| 222 | <artifactId>maven-assembly-plugin</artifactId> |
| 223 | <version>2.2-beta-5</version> |
| 224 | <configuration> |
| 225 | <!-- |
| 226 | <finalName>KorapTools</finalName> |
| 227 | --> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 228 | |
| 229 | <archive> |
| 230 | <manifest> |
| 231 | <addClasspath>true</addClasspath> |
| 232 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 233 | </manifest> |
| 234 | </archive> |
| 235 | |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 236 | <appendAssemblyId>false</appendAssemblyId> |
| 237 | <descriptorRefs> |
| 238 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 239 | </descriptorRefs> |
| 240 | </configuration> |
| 241 | <executions> |
| 242 | |
| 243 | <execution> |
| 244 | <id>KorapIndexer</id> |
| 245 | <phase>package</phase> |
| 246 | <goals> |
| 247 | <goal>single</goal> |
| 248 | </goals> |
| 249 | <configuration> |
| 250 | <finalName>KorapIndexer</finalName> |
| 251 | <archive> |
| 252 | <manifest> |
| 253 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 254 | </manifest> |
| 255 | </archive> |
| 256 | </configuration> |
| 257 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 258 | </executions> |
| 259 | </plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 260 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 261 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 262 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 263 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 264 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 265 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 266 | <excludes> |
| 267 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 268 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 269 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 270 | <exclude>**/TestKorapSolr.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 271 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 272 | </configuration> |
| 273 | </plugin> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 274 | |
| 275 | <plugin> |
| 276 | <groupId>org.codehaus.mojo</groupId> |
| 277 | <artifactId>exec-maven-plugin</artifactId> |
| 278 | <version>1.2.1</version> |
| 279 | <executions> |
| 280 | <execution> |
| 281 | <goals> |
| 282 | <goal>java</goal> |
| 283 | </goals> |
| 284 | </execution> |
| 285 | </executions> |
| 286 | <configuration> |
| 287 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 288 | </configuration> |
| 289 | </plugin> |
| 290 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 291 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 292 | |
| 293 | <resources> |
| 294 | <resource> |
| 295 | <directory>src/main/resources</directory> |
| 296 | <filtering>true</filtering> |
| 297 | <includes> |
| 298 | <include>index.properties</include> |
| 299 | </includes> |
| 300 | </resource> |
| 301 | <resource> |
| 302 | <directory>src/main/resources</directory> |
| 303 | <filtering>false</filtering> |
| 304 | <excludes> |
| 305 | <exclude>index.properties</exclude> |
| 306 | </excludes> |
| 307 | </resource> |
| 308 | </resources> |
| 309 | |
| 310 | <testResources> |
| 311 | <testResource> |
| 312 | <directory>src/test/resources</directory> |
| 313 | <filtering>true</filtering> |
| 314 | <includes> |
| 315 | <include>index.properties</include> |
| 316 | </includes> |
| 317 | </testResource> |
| 318 | <testResource> |
| 319 | <directory>src/test/resources</directory> |
| 320 | <filtering>false</filtering> |
| 321 | <excludes> |
| 322 | <exclude>index.properties</exclude> |
| 323 | </excludes> |
| 324 | </testResource> |
| 325 | </testResources> |
| 326 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 327 | </build> |
| 328 | </project> |