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