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. |
Nils Diewald | 32912a6 | 2014-11-11 01:57:45 +0000 | [diff] [blame] | 10 | $ java -jar target/KorAP-lucene-index-X.XX.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/ |
Nils Diewald | f6b351c | 2014-09-04 21:34:05 +0000 | [diff] [blame] | 11 | |
| 12 | ** Server |
| 13 | Start the server with |
| 14 | $mvn clean compile exec:java |
| 15 | --> |
| 16 | |
Nils Diewald | 7c50e2d | 2013-11-18 19:20:22 +0000 | [diff] [blame] | 17 | <groupId>KorAP-modules</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 18 | <artifactId>KorAP-lucene-index</artifactId> |
Nils Diewald | c471b18 | 2014-11-19 22:51:15 +0000 | [diff] [blame] | 19 | <version>0.49.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 20 | <packaging>jar</packaging> |
| 21 | |
| 22 | <name>KorAP-lucene-index</name> |
| 23 | <url>http://www.ids-mannheim.de/</url> |
| 24 | |
| 25 | <organization> |
| 26 | <name>IDS Mannheim</name> |
| 27 | <url>http://www.ids-mannheim.de/</url> |
| 28 | </organization> |
| 29 | |
| 30 | <developers> |
| 31 | <developer> |
| 32 | <name>Nils Diewald</name> |
| 33 | <email>diewald@ids-mannheim.de</email> |
| 34 | <url>http://nils-diewald.de</url> |
| 35 | </developer> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 36 | <developer> |
| 37 | <name>Eliza Margaretha</name> |
| 38 | <email>margaretha@ids-mannheim.de</email> |
| 39 | </developer> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 40 | </developers> |
| 41 | |
| 42 | <properties> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 43 | <jersey.version>2.4.1</jersey.version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | </properties> |
| 46 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 47 | <dependencyManagement> |
| 48 | <dependencies> |
| 49 | <dependency> |
| 50 | <groupId>org.glassfish.jersey</groupId> |
| 51 | <artifactId>jersey-bom</artifactId> |
| 52 | <version>${jersey.version}</version> |
| 53 | <type>pom</type> |
| 54 | <scope>import</scope> |
| 55 | </dependency> |
| 56 | </dependencies> |
| 57 | </dependencyManagement> |
| 58 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 59 | <dependencies> |
| 60 | |
| 61 | <!-- junit dependency --> |
| 62 | <dependency> |
| 63 | <groupId>junit</groupId> |
| 64 | <artifactId>junit</artifactId> |
| 65 | <version>4.11</version> |
| 66 | <scope>test</scope> |
| 67 | </dependency> |
| 68 | |
| 69 | <!-- log4j dependency --> |
| 70 | <dependency> |
| 71 | <groupId>log4j</groupId> |
| 72 | <artifactId>log4j</artifactId> |
| 73 | <version>1.2.17</version> |
| 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>org.slf4j</groupId> |
| 77 | <artifactId>slf4j-log4j12</artifactId> |
| 78 | <version>1.7.5</version> |
| 79 | </dependency> |
| 80 | |
Nils Diewald | 6aa929e | 2014-09-17 13:30:34 +0000 | [diff] [blame] | 81 | <!-- SQLite for database connection tests --> |
| 82 | <dependency> |
| 83 | <groupId>org.xerial</groupId> |
| 84 | <artifactId>sqlite-jdbc</artifactId> |
| 85 | <version>3.7.2</version> |
| 86 | </dependency> |
| 87 | |
| 88 | <!-- Database Connection Pool Manager --> |
| 89 | <dependency> |
| 90 | <groupId>c3p0</groupId> |
| 91 | <artifactId>c3p0</artifactId> |
| 92 | <version>0.9.1.2</version> |
| 93 | </dependency> |
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 | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 100 | <version>4.5.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 | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 108 | <version>4.5.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 | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 132 | <!-- Jersey --> |
| 133 | <dependency> |
| 134 | <groupId>org.glassfish.jersey.containers</groupId> |
| 135 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 136 | </dependency> |
| 137 | |
| 138 | <dependency> |
| 139 | <groupId>com.sun.jersey.contribs</groupId> |
| 140 | <artifactId>jersey-freemarker</artifactId> |
| 141 | <version>1.13-b01</version> |
| 142 | </dependency> |
| 143 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 144 | <!-- JSON support in Jersey --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 145 | <dependency> |
| 146 | <groupId>org.glassfish.jersey.media</groupId> |
| 147 | <artifactId>jersey-media-moxy</artifactId> |
| 148 | </dependency> |
| 149 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 150 | <!-- JSON support using Jackson --> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 151 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 152 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 153 | <dependency> |
| 154 | <groupId>com.fasterxml.jackson.core</groupId> |
| 155 | <artifactId>jackson-databind</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 156 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 157 | </dependency> |
| 158 | <dependency> |
| 159 | <groupId>com.fasterxml.jackson.core</groupId> |
| 160 | <artifactId>jackson-annotations</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 161 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>com.fasterxml.jackson.core</groupId> |
| 165 | <artifactId>jackson-core</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> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 168 | </dependencies> |
| 169 | |
| 170 | <build> |
| 171 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 172 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 173 | <plugins> |
| 174 | <plugin> |
| 175 | <artifactId>maven-compiler-plugin</artifactId> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 176 | <version>2.5.1</version> |
| 177 | <inherited>true</inherited> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 178 | <configuration> |
| 179 | <source>1.7</source> |
| 180 | <target>1.7</target> |
| 181 | </configuration> |
| 182 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 183 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 184 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 185 | <groupId>org.apache.maven.plugins</groupId> |
| 186 | <artifactId>maven-assembly-plugin</artifactId> |
| 187 | <version>2.2-beta-5</version> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 188 | <configuration> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 189 | <archive> |
| 190 | <manifest> |
| 191 | <addClasspath>true</addClasspath> |
| 192 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 193 | </manifest> |
| 194 | </archive> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 195 | <appendAssemblyId>false</appendAssemblyId> |
| 196 | <descriptorRefs> |
| 197 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 198 | </descriptorRefs> |
| 199 | </configuration> |
| 200 | <executions> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 201 | <execution> |
| 202 | <id>KorapIndexer</id> |
| 203 | <phase>package</phase> |
| 204 | <goals> |
| 205 | <goal>single</goal> |
| 206 | </goals> |
| 207 | <configuration> |
| 208 | <finalName>KorapIndexer</finalName> |
| 209 | <archive> |
| 210 | <manifest> |
| 211 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 212 | </manifest> |
| 213 | </archive> |
| 214 | </configuration> |
| 215 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 216 | </executions> |
| 217 | </plugin> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 218 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 219 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 220 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 221 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 222 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 223 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 224 | <excludes> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 225 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 226 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | 32912a6 | 2014-11-11 01:57:45 +0000 | [diff] [blame] | 227 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 228 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 229 | </configuration> |
| 230 | </plugin> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 231 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 232 | <!-- Formatter plugin for Eclipse based coding conventions --> |
| 233 | <!-- |
| 234 | http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html |
| 235 | Call: mvn java-formatter:format |
| 236 | --> |
| 237 | <plugin> |
| 238 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 239 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 240 | <version>0.4</version> |
| 241 | <!-- |
| 242 | <executions> |
| 243 | <execution> |
| 244 | <goals> |
| 245 | <goal>format</goal> |
| 246 | </goals> |
| 247 | </execution> |
| 248 | </executions> |
| 249 | --> |
| 250 | </plugin> |
| 251 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 252 | <plugin> |
| 253 | <groupId>org.codehaus.mojo</groupId> |
| 254 | <artifactId>exec-maven-plugin</artifactId> |
| 255 | <version>1.2.1</version> |
| 256 | <executions> |
| 257 | <execution> |
| 258 | <goals> |
| 259 | <goal>java</goal> |
| 260 | </goals> |
| 261 | </execution> |
| 262 | </executions> |
| 263 | <configuration> |
| 264 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 265 | </configuration> |
| 266 | </plugin> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 267 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 268 | |
| 269 | <resources> |
| 270 | <resource> |
| 271 | <directory>src/main/resources</directory> |
| 272 | <filtering>true</filtering> |
| 273 | <includes> |
| 274 | <include>index.properties</include> |
| 275 | </includes> |
| 276 | </resource> |
| 277 | <resource> |
| 278 | <directory>src/main/resources</directory> |
| 279 | <filtering>false</filtering> |
| 280 | <excludes> |
| 281 | <exclude>index.properties</exclude> |
| 282 | </excludes> |
| 283 | </resource> |
| 284 | </resources> |
| 285 | |
| 286 | <testResources> |
| 287 | <testResource> |
| 288 | <directory>src/test/resources</directory> |
| 289 | <filtering>true</filtering> |
| 290 | <includes> |
| 291 | <include>index.properties</include> |
| 292 | </includes> |
| 293 | </testResource> |
| 294 | <testResource> |
| 295 | <directory>src/test/resources</directory> |
| 296 | <filtering>false</filtering> |
| 297 | <excludes> |
| 298 | <exclude>index.properties</exclude> |
| 299 | </excludes> |
| 300 | </testResource> |
| 301 | </testResources> |
| 302 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 303 | </build> |
| 304 | </project> |