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 | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 27 | <version>0.40</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 | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 91 | <!-- solr dependency --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 92 | <!-- |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 93 | <dependency> |
| 94 | <artifactId>solr-core</artifactId> |
| 95 | <groupId>org.apache.solr</groupId> |
| 96 | <version>4.3.1</version> |
| 97 | <type>jar</type> |
| 98 | <scope>compile</scope> |
| 99 | </dependency> |
| 100 | |
| 101 | <dependency> |
| 102 | <artifactId>solr-test-framework</artifactId> |
| 103 | <groupId>org.apache.solr</groupId> |
| 104 | <version>4.3.1</version> |
| 105 | </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 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 108 | <!-- Lucene core dependency --> |
| 109 | <dependency> |
| 110 | <artifactId>lucene-core</artifactId> |
| 111 | <groupId>org.apache.lucene</groupId> |
| 112 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 113 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 114 | </dependency> |
| 115 | |
| 116 | <!-- Lucene queryparser dependency --> |
| 117 | <dependency> |
| 118 | <artifactId>lucene-queryparser</artifactId> |
| 119 | <groupId>org.apache.lucene</groupId> |
| 120 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 121 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 122 | </dependency> |
| 123 | |
| 124 | <!-- Lucene analyzers dependency --> |
| 125 | <dependency> |
| 126 | <artifactId>lucene-analyzers-common</artifactId> |
| 127 | <groupId>org.apache.lucene</groupId> |
| 128 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 129 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 130 | </dependency> |
| 131 | |
Nils Diewald | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 132 | <dependency> |
| 133 | <groupId>org.hamcrest</groupId> |
| 134 | <artifactId>hamcrest-core</artifactId> |
| 135 | <version>1.3</version> |
| 136 | </dependency> |
| 137 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 138 | <!-- JCache --> |
| 139 | <dependency> |
| 140 | <groupId>net.sf.jsr107cache</groupId> |
| 141 | <artifactId>jsr107cache</artifactId> |
| 142 | <version>1.0</version> |
| 143 | </dependency> |
| 144 | |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 145 | <!-- servlet dependency --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 146 | <!-- |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 147 | <dependency> |
| 148 | <artifactId>servlet-api</artifactId> |
| 149 | <groupId>javax.servlet</groupId> |
| 150 | <version>2.5</version> |
| 151 | </dependency> |
Nils Diewald | 2cd1c3d | 2014-01-08 22:53:08 +0000 | [diff] [blame] | 152 | --> |
| 153 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 154 | <!-- Jersey --> |
| 155 | <dependency> |
| 156 | <groupId>org.glassfish.jersey.containers</groupId> |
| 157 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 158 | </dependency> |
| 159 | |
| 160 | <dependency> |
| 161 | <groupId>com.sun.jersey.contribs</groupId> |
| 162 | <artifactId>jersey-freemarker</artifactId> |
| 163 | <version>1.13-b01</version> |
| 164 | </dependency> |
| 165 | |
| 166 | <!-- JSON support --> |
| 167 | <dependency> |
| 168 | <groupId>org.glassfish.jersey.media</groupId> |
| 169 | <artifactId>jersey-media-moxy</artifactId> |
| 170 | </dependency> |
| 171 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 172 | <!-- Jackson --> |
| 173 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 174 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 175 | <dependency> |
| 176 | <groupId>com.fasterxml.jackson.core</groupId> |
| 177 | <artifactId>jackson-databind</artifactId> |
| 178 | <version>2.2.2</version> |
| 179 | </dependency> |
| 180 | <dependency> |
| 181 | <groupId>com.fasterxml.jackson.core</groupId> |
| 182 | <artifactId>jackson-annotations</artifactId> |
| 183 | <version>2.2.2</version> |
| 184 | </dependency> |
| 185 | <dependency> |
| 186 | <groupId>com.fasterxml.jackson.core</groupId> |
| 187 | <artifactId>jackson-core</artifactId> |
| 188 | <version>2.2.2</version> |
| 189 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 190 | </dependencies> |
| 191 | |
| 192 | <build> |
| 193 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 194 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 195 | <plugins> |
| 196 | <plugin> |
| 197 | <artifactId>maven-compiler-plugin</artifactId> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 198 | <version>2.5.1</version> |
| 199 | <inherited>true</inherited> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 200 | <configuration> |
| 201 | <source>1.7</source> |
| 202 | <target>1.7</target> |
| 203 | </configuration> |
| 204 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 205 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 206 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 207 | <groupId>org.apache.maven.plugins</groupId> |
| 208 | <artifactId>maven-assembly-plugin</artifactId> |
| 209 | <version>2.2-beta-5</version> |
| 210 | <configuration> |
| 211 | <!-- |
| 212 | <finalName>KorapTools</finalName> |
| 213 | --> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 214 | |
| 215 | <archive> |
| 216 | <manifest> |
| 217 | <addClasspath>true</addClasspath> |
| 218 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 219 | </manifest> |
| 220 | </archive> |
| 221 | |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 222 | <appendAssemblyId>false</appendAssemblyId> |
| 223 | <descriptorRefs> |
| 224 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 225 | </descriptorRefs> |
| 226 | </configuration> |
| 227 | <executions> |
| 228 | |
| 229 | <execution> |
| 230 | <id>KorapIndexer</id> |
| 231 | <phase>package</phase> |
| 232 | <goals> |
| 233 | <goal>single</goal> |
| 234 | </goals> |
| 235 | <configuration> |
| 236 | <finalName>KorapIndexer</finalName> |
| 237 | <archive> |
| 238 | <manifest> |
| 239 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 240 | </manifest> |
| 241 | </archive> |
| 242 | </configuration> |
| 243 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 244 | </executions> |
| 245 | </plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 246 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 247 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 248 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 249 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 250 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 251 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 252 | <excludes> |
| 253 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 254 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 255 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 256 | <exclude>**/TestKorapSolr.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 257 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 258 | </configuration> |
| 259 | </plugin> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 260 | |
| 261 | <plugin> |
| 262 | <groupId>org.codehaus.mojo</groupId> |
| 263 | <artifactId>exec-maven-plugin</artifactId> |
| 264 | <version>1.2.1</version> |
| 265 | <executions> |
| 266 | <execution> |
| 267 | <goals> |
| 268 | <goal>java</goal> |
| 269 | </goals> |
| 270 | </execution> |
| 271 | </executions> |
| 272 | <configuration> |
| 273 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 274 | </configuration> |
| 275 | </plugin> |
| 276 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 277 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 278 | |
| 279 | <resources> |
| 280 | <resource> |
| 281 | <directory>src/main/resources</directory> |
| 282 | <filtering>true</filtering> |
| 283 | <includes> |
| 284 | <include>index.properties</include> |
| 285 | </includes> |
| 286 | </resource> |
| 287 | <resource> |
| 288 | <directory>src/main/resources</directory> |
| 289 | <filtering>false</filtering> |
| 290 | <excludes> |
| 291 | <exclude>index.properties</exclude> |
| 292 | </excludes> |
| 293 | </resource> |
| 294 | </resources> |
| 295 | |
| 296 | <testResources> |
| 297 | <testResource> |
| 298 | <directory>src/test/resources</directory> |
| 299 | <filtering>true</filtering> |
| 300 | <includes> |
| 301 | <include>index.properties</include> |
| 302 | </includes> |
| 303 | </testResource> |
| 304 | <testResource> |
| 305 | <directory>src/test/resources</directory> |
| 306 | <filtering>false</filtering> |
| 307 | <excludes> |
| 308 | <exclude>index.properties</exclude> |
| 309 | </excludes> |
| 310 | </testResource> |
| 311 | </testResources> |
| 312 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 313 | </build> |
| 314 | </project> |