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