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" |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 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 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 5 | <!-- ** Server |
| 6 | |
| 7 | # Start the server with |
| 8 | |
| 9 | $ mvn compile exec:java |
| 10 | |
| 11 | # Or after packaging |
| 12 | |
| 13 | $ mvn clean package |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 14 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 15 | # with |
| 16 | |
| 17 | $ java -jar target/Krill-Server.jar |
| 18 | |
| 19 | ** Formatter |
| 20 | |
| 21 | # Format the code with $ mvn java-formatter:format |
| 22 | |
| 23 | ** Indexer |
| 24 | # after packaging (see above) |
| 25 | |
| 26 | $ java -jar target/Krill-Indexer.jar -c [configuration file] |
| 27 | -i [input directories] -o [output directory] |
| 28 | |
| 29 | for example: |
| 30 | |
| 31 | $ java -jar target/Krill-Indexer.jar -c src/test/resources/krill.properties |
| 32 | -i src/test/resources/bzk -o index/ |
| 33 | |
| 34 | --> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 35 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 36 | <groupId>de.ids_mannheim.korap</groupId> |
| 37 | <artifactId>Krill</artifactId> |
margaretha | 8efa375 | 2018-07-24 17:46:43 +0200 | [diff] [blame^] | 38 | <version>0.58.0</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 39 | <packaging>jar</packaging> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 40 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 41 | <name>Krill</name> |
| 42 | <url>http://www.ids-mannheim.de/</url> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 43 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 44 | <organization> |
| 45 | <name>IDS Mannheim</name> |
| 46 | <url>http://www.ids-mannheim.de/</url> |
| 47 | </organization> |
Nils Diewald | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 48 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 49 | <developers> |
| 50 | <developer> |
| 51 | <name>Nils Diewald</name> |
| 52 | <email>diewald@ids-mannheim.de</email> |
| 53 | <url>http://nils-diewald.de</url> |
| 54 | </developer> |
| 55 | <developer> |
| 56 | <name>Eliza Margaretha</name> |
| 57 | <email>margaretha@ids-mannheim.de</email> |
| 58 | </developer> |
| 59 | </developers> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 60 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 61 | <properties> |
| 62 | <jersey.version>2.15</jersey.version> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 63 | <jackson.version>2.9.1</jackson.version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 64 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 65 | </properties> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 66 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 67 | <dependencyManagement> |
| 68 | <dependencies> |
| 69 | <dependency> |
| 70 | <groupId>org.glassfish.jersey</groupId> |
| 71 | <artifactId>jersey-bom</artifactId> |
| 72 | <version>${jersey.version}</version> |
| 73 | <type>pom</type> |
| 74 | <scope>import</scope> |
| 75 | </dependency> |
| 76 | </dependencies> |
| 77 | </dependencyManagement> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 78 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 79 | <dependencies> |
| 80 | <!-- junit dependency --> |
| 81 | <dependency> |
| 82 | <groupId>junit</groupId> |
| 83 | <artifactId>junit</artifactId> |
| 84 | <version>4.11</version> |
| 85 | <scope>test</scope> |
| 86 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 87 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 88 | <!-- log4j dependency --> |
| 89 | <dependency> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 90 | <groupId>org.apache.logging.log4j</groupId> |
| 91 | <artifactId>log4j-api</artifactId> |
| 92 | <version>2.10.0</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 93 | </dependency> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 94 | <dependency> |
| 95 | <groupId>org.apache.logging.log4j</groupId> |
| 96 | <artifactId>log4j-core</artifactId> |
| 97 | <version>2.10.0</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 98 | </dependency> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 99 | <dependency> |
| 100 | <groupId>org.apache.logging.log4j</groupId> |
| 101 | <artifactId>log4j-slf4j-impl</artifactId> |
| 102 | <version>2.10.0</version> |
| 103 | </dependency> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 104 | <dependency> |
| 105 | <groupId>org.slf4j</groupId> |
| 106 | <artifactId>jul-to-slf4j</artifactId> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 107 | <version>1.7.25</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 108 | </dependency> |
margaretha | 8efa375 | 2018-07-24 17:46:43 +0200 | [diff] [blame^] | 109 | |
| 110 | <dependency> |
| 111 | <groupId>net.sf.ehcache</groupId> |
| 112 | <artifactId>ehcache</artifactId> |
| 113 | <version>2.10.5</version> |
| 114 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 115 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 116 | <!-- SQLite for database connection tests --> |
| 117 | <dependency> |
| 118 | <groupId>org.xerial</groupId> |
| 119 | <artifactId>sqlite-jdbc</artifactId> |
| 120 | <version>3.7.2</version> |
| 121 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 122 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 123 | <!-- Database Connection Pool Manager --> |
| 124 | <dependency> |
| 125 | <groupId>c3p0</groupId> |
| 126 | <artifactId>c3p0</artifactId> |
| 127 | <version>0.9.1.2</version> |
| 128 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 129 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 130 | <!-- Lucene core dependency --> |
| 131 | <dependency> |
| 132 | <artifactId>lucene-core</artifactId> |
| 133 | <groupId>org.apache.lucene</groupId> |
| 134 | <type>jar</type> |
| 135 | <version>5.0.0</version> |
| 136 | </dependency> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 137 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 138 | <!-- Lucene queryparser dependency --> |
| 139 | <dependency> |
| 140 | <artifactId>lucene-queryparser</artifactId> |
| 141 | <groupId>org.apache.lucene</groupId> |
| 142 | <type>jar</type> |
| 143 | <version>5.0.0</version> |
| 144 | </dependency> |
Akron | 09ae373 | 2015-08-13 20:56:20 +0200 | [diff] [blame] | 145 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 146 | <!-- Lucene analyzers dependency --> |
| 147 | <dependency> |
| 148 | <artifactId>lucene-analyzers-common</artifactId> |
| 149 | <groupId>org.apache.lucene</groupId> |
| 150 | <type>jar</type> |
| 151 | <version>5.0.0</version> |
| 152 | </dependency> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 153 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 154 | <dependency> |
| 155 | <groupId>org.hamcrest</groupId> |
| 156 | <artifactId>hamcrest-core</artifactId> |
| 157 | <version>1.3</version> |
| 158 | </dependency> |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 159 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 160 | <!-- JCache --> |
| 161 | <dependency> |
| 162 | <groupId>net.sf.jsr107cache</groupId> |
| 163 | <artifactId>jsr107cache</artifactId> |
| 164 | <version>1.0</version> |
| 165 | </dependency> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 166 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 167 | <!-- Jersey --> |
| 168 | <dependency> |
| 169 | <groupId>org.glassfish.jersey.containers</groupId> |
| 170 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 171 | </dependency> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 172 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 173 | <!-- JSON support in Jersey --> |
| 174 | <dependency> |
| 175 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 176 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 177 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 178 | </dependency> |
| 179 | |
| 180 | <!-- JSON support using Jackson --> |
| 181 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 182 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 183 | <dependency> |
| 184 | <groupId>com.fasterxml.jackson.core</groupId> |
| 185 | <artifactId>jackson-databind</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 186 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>com.fasterxml.jackson.core</groupId> |
| 190 | <artifactId>jackson-annotations</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 191 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>com.fasterxml.jackson.core</groupId> |
| 195 | <artifactId>jackson-core</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 196 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 197 | </dependency> |
| 198 | |
| 199 | <!-- JSON-LD support --> |
| 200 | <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId> |
| 201 | <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental |
| 202 | annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId> |
| 203 | <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> --> |
| 204 | |
Akron | 22d319e | 2018-04-01 17:13:49 +0200 | [diff] [blame] | 205 | <!-- Some language extensions like StringUtil, IOUtils ... --> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 206 | <dependency> |
| 207 | <groupId>commons-lang</groupId> |
| 208 | <artifactId>commons-lang</artifactId> |
| 209 | <version>2.3</version> |
| 210 | </dependency> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 211 | <dependency> |
| 212 | <groupId>commons-cli</groupId> |
| 213 | <artifactId>commons-cli</artifactId> |
| 214 | <version>1.3.1</version> |
| 215 | </dependency> |
Akron | 22d319e | 2018-04-01 17:13:49 +0200 | [diff] [blame] | 216 | <dependency> |
| 217 | <groupId>org.apache.commons</groupId> |
| 218 | <artifactId>commons-io</artifactId> |
| 219 | <version>1.3.2</version> |
| 220 | </dependency> |
| 221 | </dependencies> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 222 | |
| 223 | <build> |
| 224 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 225 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 226 | <plugins> |
| 227 | <plugin> |
| 228 | <artifactId>maven-compiler-plugin</artifactId> |
| 229 | <version>2.5.1</version> |
| 230 | <inherited>true</inherited> |
| 231 | <configuration> |
| 232 | <showWarnings>true</showWarnings> |
| 233 | <source>1.7</source> |
| 234 | <target>1.7</target> |
| 235 | </configuration> |
| 236 | </plugin> |
| 237 | |
| 238 | <plugin> |
| 239 | <groupId>org.apache.maven.plugins</groupId> |
| 240 | <artifactId>maven-shade-plugin</artifactId> |
| 241 | <version>2.4.1</version> |
| 242 | <executions> |
| 243 | <execution> |
| 244 | <id>indexer</id> |
| 245 | <phase>package</phase> |
| 246 | <goals> |
| 247 | <goal>shade</goal> |
| 248 | </goals> |
| 249 | <configuration> |
| 250 | <transformers> |
| 251 | <transformer |
| 252 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 253 | <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass> |
| 254 | </transformer> |
| 255 | </transformers> |
| 256 | <finalName>${project.artifactId}-Indexer</finalName> |
| 257 | </configuration> |
| 258 | </execution> |
| 259 | <execution> |
| 260 | <id>server</id> |
| 261 | <phase>package</phase> |
| 262 | <goals> |
| 263 | <goal>shade</goal> |
| 264 | </goals> |
| 265 | <configuration> |
| 266 | <transformers> |
| 267 | <transformer |
| 268 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 269 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 270 | </transformer> |
| 271 | <transformer |
| 272 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 273 | <resource>krill.properties</resource> |
| 274 | </transformer> |
| 275 | </transformers> |
| 276 | <finalName>${project.name}-Server</finalName> |
| 277 | </configuration> |
| 278 | </execution> |
| 279 | </executions> |
| 280 | </plugin> |
| 281 | |
| 282 | <plugin> |
| 283 | <groupId>org.apache.maven.plugins</groupId> |
| 284 | <artifactId>maven-surefire-plugin</artifactId> |
| 285 | <version>2.16</version> |
| 286 | <configuration> |
| 287 | <excludes> |
| 288 | <exclude>**/benchmark/*</exclude> |
| 289 | <exclude>**/TestWPDIndex.java</exclude> |
| 290 | <exclude>**/TestRealIndex.java</exclude> |
margaretha | 3d81110 | 2017-09-06 14:20:42 +0200 | [diff] [blame] | 291 | <exclude>**/TestSampleIndex.java</exclude> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 292 | </excludes> |
| 293 | </configuration> |
| 294 | </plugin> |
| 295 | |
| 296 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 297 | <plugin> |
| 298 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 299 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 300 | <version>0.4</version> |
| 301 | <configuration> |
| 302 | <configFile>${project.basedir}/Format.xml</configFile> |
| 303 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 304 | <compilerSource>1.7</compilerSource> |
| 305 | <compilerCompliance>1.7</compilerCompliance> |
| 306 | <compilerTargetPlatform>1.7</compilerTargetPlatform> |
| 307 | </configuration> |
| 308 | </plugin> |
| 309 | |
| 310 | <plugin> |
| 311 | <groupId>org.codehaus.mojo</groupId> |
| 312 | <artifactId>exec-maven-plugin</artifactId> |
| 313 | <version>1.2.1</version> |
| 314 | <executions> |
| 315 | <execution> |
| 316 | <goals> |
| 317 | <goal>java</goal> |
| 318 | </goals> |
| 319 | </execution> |
| 320 | </executions> |
| 321 | <configuration> |
| 322 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 323 | </configuration> |
| 324 | </plugin> |
| 325 | </plugins> |
| 326 | |
| 327 | <resources> |
| 328 | <resource> |
| 329 | <directory>src/main/resources</directory> |
| 330 | <filtering>true</filtering> |
| 331 | <includes> |
| 332 | <include>krill.info</include> |
| 333 | </includes> |
| 334 | </resource> |
| 335 | <resource> |
| 336 | <directory>src/main/resources</directory> |
| 337 | <filtering>false</filtering> |
| 338 | <excludes> |
| 339 | <exclude>krill.info</exclude> |
| 340 | </excludes> |
| 341 | </resource> |
| 342 | </resources> |
| 343 | |
| 344 | <testResources> |
| 345 | <testResource> |
| 346 | <directory>src/test/resources</directory> |
| 347 | <filtering>true</filtering> |
| 348 | <includes> |
| 349 | <include>krill.properties</include> |
| 350 | </includes> |
| 351 | </testResource> |
| 352 | <testResource> |
| 353 | <directory>src/test/resources</directory> |
| 354 | <filtering>false</filtering> |
| 355 | <excludes> |
| 356 | <exclude>krill.properties</exclude> |
| 357 | </excludes> |
| 358 | </testResource> |
| 359 | </testResources> |
| 360 | </build> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 361 | </project> |