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 | <!-- |
Nils Diewald | f6b351c | 2014-09-04 21:34:05 +0000 | [diff] [blame] | 6 | ** Server |
Nils Diewald | d86c068 | 2014-12-05 20:46:26 +0000 | [diff] [blame] | 7 | # Start the server with |
| 8 | $ mvn clean compile exec:java |
| 9 | |
| 10 | ** Formatter |
| 11 | # Format the code with |
| 12 | $ mvn java-formatter:format |
| 13 | |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 14 | ** Indexer |
| 15 | (This is not the preferred way to index new data!) |
| 16 | # install the indexer |
| 17 | $ mvn clean compile assembly:single |
| 18 | # Then run e.g. |
| 19 | $ java -jar target/Krill-X.XX.jar |
| 20 | src/main/resources/korap.conf |
| 21 | /data/hdd/lucene-new/WPD/ |
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 | bbd39a5 | 2015-02-23 19:56:57 +0000 | [diff] [blame] | 25 | <artifactId>Krill</artifactId> |
| 26 | <version>0.50.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 27 | <packaging>jar</packaging> |
| 28 | |
Nils Diewald | bbd39a5 | 2015-02-23 19:56:57 +0000 | [diff] [blame] | 29 | <name>Krill</name> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 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 | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 50 | <jersey.version>2.15</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 | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 106 | <version>4.10.3</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 | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 114 | <version>4.10.3</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 | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 122 | <version>4.10.3</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 | bbd39a5 | 2015-02-23 19:56:57 +0000 | [diff] [blame] | 151 | <!-- |
| 152 | <dependency> |
| 153 | <groupId>org.glassfish.jersey.media</groupId> |
| 154 | <artifactId>jersey-media-moxy</artifactId> |
| 155 | </dependency> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 156 | <dependency> |
Nils Diewald | bbd39a5 | 2015-02-23 19:56:57 +0000 | [diff] [blame] | 157 | <groupId>com.sun.jersey</groupId> |
| 158 | <artifactId>jersey-json</artifactId> |
| 159 | <version>1.9</version> |
| 160 | </dependency> |
| 161 | --> |
| 162 | <!-- |
| 163 | <dependency> |
| 164 | <groupId>org.glassfish.jersey.media</groupId> |
| 165 | <artifactId>jersey-media-json-jackson</artifactId> |
| 166 | <version>2.16</version> |
| 167 | </dependency> |
| 168 | --> |
| 169 | <dependency> |
| 170 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 171 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 172 | <version>2.4.4</version> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 173 | </dependency> |
| 174 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 175 | <!-- JSON support using Jackson --> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 176 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 177 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 178 | <dependency> |
| 179 | <groupId>com.fasterxml.jackson.core</groupId> |
| 180 | <artifactId>jackson-databind</artifactId> |
Nils Diewald | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 181 | <version>2.4.4</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>com.fasterxml.jackson.core</groupId> |
| 185 | <artifactId>jackson-annotations</artifactId> |
Nils Diewald | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 186 | <version>2.4.4</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>com.fasterxml.jackson.core</groupId> |
| 190 | <artifactId>jackson-core</artifactId> |
Nils Diewald | cb8afb3 | 2015-02-04 21:12:37 +0000 | [diff] [blame] | 191 | <version>2.4.4</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 192 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 193 | |
| 194 | <!-- JSON-LD support --> |
| 195 | <!-- |
| 196 | <dependency> |
| 197 | <groupId>com.github.jsonld-java</groupId> |
| 198 | <artifactId>jsonld-java</artifactId> |
| 199 | <version>0.5.2-SNAPSHOT</version> |
| 200 | </dependency> |
| 201 | --> |
| 202 | |
| 203 | <!-- |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame] | 204 | Temporarily disable @Experimental annotation |
Eliza Margaretha | a929f27 | 2014-11-28 14:10:05 +0000 | [diff] [blame] | 205 | <dependency> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame] | 206 | <groupId>KorapAnnotationProcessor</groupId> |
| 207 | <artifactId>KorapAnnotationProcessor</artifactId> |
| 208 | <version>0.0.1-SNAPSHOT</version> |
| 209 | <scope>compile</scope> |
| 210 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 211 | --> |
| 212 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 213 | </dependencies> |
| 214 | |
| 215 | <build> |
| 216 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 217 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 218 | <plugins> |
| 219 | <plugin> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame] | 220 | <artifactId>maven-compiler-plugin</artifactId> |
| 221 | <version>2.5.1</version> |
| 222 | <inherited>true</inherited> |
| 223 | <configuration> |
| 224 | <showWarnings>true</showWarnings> |
| 225 | <source>1.7</source> |
| 226 | <target>1.7</target> |
| 227 | </configuration> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 228 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 229 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 230 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 231 | <groupId>org.apache.maven.plugins</groupId> |
| 232 | <artifactId>maven-assembly-plugin</artifactId> |
| 233 | <version>2.2-beta-5</version> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 234 | <configuration> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 235 | <archive> |
| 236 | <manifest> |
| 237 | <addClasspath>true</addClasspath> |
| 238 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 239 | </manifest> |
| 240 | </archive> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 241 | <appendAssemblyId>false</appendAssemblyId> |
| 242 | <descriptorRefs> |
| 243 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 244 | </descriptorRefs> |
| 245 | </configuration> |
| 246 | <executions> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 247 | <execution> |
| 248 | <id>KorapIndexer</id> |
| 249 | <phase>package</phase> |
| 250 | <goals> |
| 251 | <goal>single</goal> |
| 252 | </goals> |
| 253 | <configuration> |
| 254 | <finalName>KorapIndexer</finalName> |
| 255 | <archive> |
| 256 | <manifest> |
| 257 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 258 | </manifest> |
| 259 | </archive> |
| 260 | </configuration> |
| 261 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 262 | </executions> |
| 263 | </plugin> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 264 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 265 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 266 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 267 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 268 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 269 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 270 | <excludes> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 271 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 272 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | 32912a6 | 2014-11-11 01:57:45 +0000 | [diff] [blame] | 273 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 274 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 275 | </configuration> |
| 276 | </plugin> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 277 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 278 | <!-- |
Nils Diewald | d86c068 | 2014-12-05 20:46:26 +0000 | [diff] [blame] | 279 | Formatter plugin for Eclipse based coding conventions |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 280 | 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] | 281 | --> |
| 282 | <plugin> |
| 283 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 284 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 285 | <version>0.4</version> |
Nils Diewald | 5c63ab8 | 2014-12-04 22:53:20 +0000 | [diff] [blame] | 286 | <configuration> |
| 287 | <configFile>${project.basedir}/korap-style.xml</configFile> |
| 288 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 289 | <compilerSource>1.7</compilerSource> |
| 290 | <compilerCompliance>1.7</compilerCompliance> |
| 291 | <compilerTargetPlatform>1.7</compilerTargetPlatform> |
| 292 | </configuration> |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 293 | </plugin> |
| 294 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 295 | <plugin> |
| 296 | <groupId>org.codehaus.mojo</groupId> |
| 297 | <artifactId>exec-maven-plugin</artifactId> |
| 298 | <version>1.2.1</version> |
| 299 | <executions> |
| 300 | <execution> |
| 301 | <goals> |
| 302 | <goal>java</goal> |
| 303 | </goals> |
| 304 | </execution> |
| 305 | </executions> |
| 306 | <configuration> |
| 307 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 308 | </configuration> |
| 309 | </plugin> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 310 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 311 | |
| 312 | <resources> |
| 313 | <resource> |
| 314 | <directory>src/main/resources</directory> |
| 315 | <filtering>true</filtering> |
| 316 | <includes> |
| 317 | <include>index.properties</include> |
| 318 | </includes> |
| 319 | </resource> |
| 320 | <resource> |
| 321 | <directory>src/main/resources</directory> |
| 322 | <filtering>false</filtering> |
| 323 | <excludes> |
| 324 | <exclude>index.properties</exclude> |
| 325 | </excludes> |
| 326 | </resource> |
| 327 | </resources> |
| 328 | |
| 329 | <testResources> |
| 330 | <testResource> |
| 331 | <directory>src/test/resources</directory> |
| 332 | <filtering>true</filtering> |
| 333 | <includes> |
| 334 | <include>index.properties</include> |
| 335 | </includes> |
| 336 | </testResource> |
| 337 | <testResource> |
| 338 | <directory>src/test/resources</directory> |
| 339 | <filtering>false</filtering> |
| 340 | <excludes> |
| 341 | <exclude>index.properties</exclude> |
| 342 | </excludes> |
| 343 | </testResource> |
| 344 | </testResources> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 345 | </build> |
| 346 | </project> |