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