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