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 | |
Eliza Margaretha | a929f27 | 2014-11-28 14:10:05 +0000 | [diff] [blame] | 59 | <dependencies> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 60 | <!-- junit dependency --> |
| 61 | <dependency> |
| 62 | <groupId>junit</groupId> |
| 63 | <artifactId>junit</artifactId> |
| 64 | <version>4.11</version> |
| 65 | <scope>test</scope> |
| 66 | </dependency> |
| 67 | |
| 68 | <!-- log4j dependency --> |
| 69 | <dependency> |
| 70 | <groupId>log4j</groupId> |
| 71 | <artifactId>log4j</artifactId> |
| 72 | <version>1.2.17</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.slf4j</groupId> |
| 76 | <artifactId>slf4j-log4j12</artifactId> |
| 77 | <version>1.7.5</version> |
| 78 | </dependency> |
| 79 | |
Nils Diewald | 6aa929e | 2014-09-17 13:30:34 +0000 | [diff] [blame] | 80 | <!-- SQLite for database connection tests --> |
| 81 | <dependency> |
| 82 | <groupId>org.xerial</groupId> |
| 83 | <artifactId>sqlite-jdbc</artifactId> |
| 84 | <version>3.7.2</version> |
| 85 | </dependency> |
| 86 | |
| 87 | <!-- Database Connection Pool Manager --> |
| 88 | <dependency> |
| 89 | <groupId>c3p0</groupId> |
| 90 | <artifactId>c3p0</artifactId> |
| 91 | <version>0.9.1.2</version> |
| 92 | </dependency> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 93 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 94 | <!-- Lucene core dependency --> |
| 95 | <dependency> |
| 96 | <artifactId>lucene-core</artifactId> |
| 97 | <groupId>org.apache.lucene</groupId> |
| 98 | <type>jar</type> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 99 | <version>4.5.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 100 | </dependency> |
| 101 | |
| 102 | <!-- Lucene queryparser dependency --> |
| 103 | <dependency> |
| 104 | <artifactId>lucene-queryparser</artifactId> |
| 105 | <groupId>org.apache.lucene</groupId> |
| 106 | <type>jar</type> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 107 | <version>4.5.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 108 | </dependency> |
| 109 | |
| 110 | <!-- Lucene analyzers dependency --> |
| 111 | <dependency> |
| 112 | <artifactId>lucene-analyzers-common</artifactId> |
| 113 | <groupId>org.apache.lucene</groupId> |
| 114 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 115 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 116 | </dependency> |
| 117 | |
Nils Diewald | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 118 | <dependency> |
| 119 | <groupId>org.hamcrest</groupId> |
| 120 | <artifactId>hamcrest-core</artifactId> |
| 121 | <version>1.3</version> |
| 122 | </dependency> |
| 123 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 124 | <!-- JCache --> |
| 125 | <dependency> |
| 126 | <groupId>net.sf.jsr107cache</groupId> |
| 127 | <artifactId>jsr107cache</artifactId> |
| 128 | <version>1.0</version> |
| 129 | </dependency> |
| 130 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 131 | <!-- Jersey --> |
| 132 | <dependency> |
| 133 | <groupId>org.glassfish.jersey.containers</groupId> |
| 134 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 135 | </dependency> |
| 136 | |
| 137 | <dependency> |
| 138 | <groupId>com.sun.jersey.contribs</groupId> |
| 139 | <artifactId>jersey-freemarker</artifactId> |
| 140 | <version>1.13-b01</version> |
| 141 | </dependency> |
| 142 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 143 | <!-- JSON support in Jersey --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 144 | <dependency> |
| 145 | <groupId>org.glassfish.jersey.media</groupId> |
| 146 | <artifactId>jersey-media-moxy</artifactId> |
| 147 | </dependency> |
| 148 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 149 | <!-- JSON support using Jackson --> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 150 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 151 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 152 | <dependency> |
| 153 | <groupId>com.fasterxml.jackson.core</groupId> |
| 154 | <artifactId>jackson-databind</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 155 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>com.fasterxml.jackson.core</groupId> |
| 159 | <artifactId>jackson-annotations</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 160 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 161 | </dependency> |
| 162 | <dependency> |
| 163 | <groupId>com.fasterxml.jackson.core</groupId> |
| 164 | <artifactId>jackson-core</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 165 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 166 | </dependency> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame^] | 167 | <!-- |
| 168 | Temporarily disable @Experimental annotation |
Eliza Margaretha | a929f27 | 2014-11-28 14:10:05 +0000 | [diff] [blame] | 169 | <dependency> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame^] | 170 | <groupId>KorapAnnotationProcessor</groupId> |
| 171 | <artifactId>KorapAnnotationProcessor</artifactId> |
| 172 | <version>0.0.1-SNAPSHOT</version> |
| 173 | <scope>compile</scope> |
| 174 | </dependency> |
| 175 | --> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 176 | </dependencies> |
| 177 | |
| 178 | <build> |
| 179 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 180 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 181 | <plugins> |
| 182 | <plugin> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame^] | 183 | <artifactId>maven-compiler-plugin</artifactId> |
| 184 | <version>2.5.1</version> |
| 185 | <inherited>true</inherited> |
| 186 | <configuration> |
| 187 | <showWarnings>true</showWarnings> |
| 188 | <source>1.7</source> |
| 189 | <target>1.7</target> |
| 190 | </configuration> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 191 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 192 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 193 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 194 | <groupId>org.apache.maven.plugins</groupId> |
| 195 | <artifactId>maven-assembly-plugin</artifactId> |
| 196 | <version>2.2-beta-5</version> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 197 | <configuration> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 198 | <archive> |
| 199 | <manifest> |
| 200 | <addClasspath>true</addClasspath> |
| 201 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 202 | </manifest> |
| 203 | </archive> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 204 | <appendAssemblyId>false</appendAssemblyId> |
| 205 | <descriptorRefs> |
| 206 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 207 | </descriptorRefs> |
| 208 | </configuration> |
| 209 | <executions> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 210 | <execution> |
| 211 | <id>KorapIndexer</id> |
| 212 | <phase>package</phase> |
| 213 | <goals> |
| 214 | <goal>single</goal> |
| 215 | </goals> |
| 216 | <configuration> |
| 217 | <finalName>KorapIndexer</finalName> |
| 218 | <archive> |
| 219 | <manifest> |
| 220 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 221 | </manifest> |
| 222 | </archive> |
| 223 | </configuration> |
| 224 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 225 | </executions> |
| 226 | </plugin> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 227 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 228 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 229 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 230 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 231 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 232 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 233 | <excludes> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 234 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 235 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | 32912a6 | 2014-11-11 01:57:45 +0000 | [diff] [blame] | 236 | <exclude>**/TestRealIndex.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 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 241 | <!-- Formatter plugin for Eclipse based coding conventions --> |
| 242 | <!-- |
| 243 | http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html |
| 244 | Call: mvn java-formatter:format |
| 245 | --> |
| 246 | <plugin> |
| 247 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 248 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 249 | <version>0.4</version> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame^] | 250 | <configuration> |
| 251 | <configFile>${project.basedir}/korap-style.xml</configFile> |
| 252 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 253 | <compilerSource>1.7</compilerSource> |
| 254 | <compilerCompliance>1.7</compilerCompliance> |
| 255 | <compilerTargetPlatform>1.7</compilerTargetPlatform> |
| 256 | </configuration> |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 257 | <!-- |
| 258 | <executions> |
| 259 | <execution> |
| 260 | <goals> |
| 261 | <goal>format</goal> |
| 262 | </goals> |
| 263 | </execution> |
| 264 | </executions> |
| 265 | --> |
| 266 | </plugin> |
| 267 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 268 | <plugin> |
| 269 | <groupId>org.codehaus.mojo</groupId> |
| 270 | <artifactId>exec-maven-plugin</artifactId> |
| 271 | <version>1.2.1</version> |
| 272 | <executions> |
| 273 | <execution> |
| 274 | <goals> |
| 275 | <goal>java</goal> |
| 276 | </goals> |
| 277 | </execution> |
| 278 | </executions> |
| 279 | <configuration> |
| 280 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 281 | </configuration> |
| 282 | </plugin> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 283 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 284 | |
| 285 | <resources> |
| 286 | <resource> |
| 287 | <directory>src/main/resources</directory> |
| 288 | <filtering>true</filtering> |
| 289 | <includes> |
| 290 | <include>index.properties</include> |
| 291 | </includes> |
| 292 | </resource> |
| 293 | <resource> |
| 294 | <directory>src/main/resources</directory> |
| 295 | <filtering>false</filtering> |
| 296 | <excludes> |
| 297 | <exclude>index.properties</exclude> |
| 298 | </excludes> |
| 299 | </resource> |
| 300 | </resources> |
| 301 | |
| 302 | <testResources> |
| 303 | <testResource> |
| 304 | <directory>src/test/resources</directory> |
| 305 | <filtering>true</filtering> |
| 306 | <includes> |
| 307 | <include>index.properties</include> |
| 308 | </includes> |
| 309 | </testResource> |
| 310 | <testResource> |
| 311 | <directory>src/test/resources</directory> |
| 312 | <filtering>false</filtering> |
| 313 | <excludes> |
| 314 | <exclude>index.properties</exclude> |
| 315 | </excludes> |
| 316 | </testResource> |
| 317 | </testResources> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 318 | </build> |
| 319 | </project> |