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" |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [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 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 5 | <!-- ** Server |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 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 | |
Akron | c65c943 | 2023-09-11 10:55:53 +0200 | [diff] [blame] | 36 | <groupId>de.ids-mannheim.korap.krill</groupId> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 37 | <artifactId>Krill</artifactId> |
Akron | 2dcbd93 | 2024-02-19 15:38:07 +0100 | [diff] [blame] | 38 | <version>0.62.2</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 39 | <packaging>jar</packaging> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 40 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 41 | <name>Krill</name> |
| 42 | <url>https://korap.ids-mannheim.de/</url> |
| 43 | |
| 44 | <organization> |
| 45 | <name>IDS Mannheim</name> |
| 46 | <url>https://www.ids-mannheim.de/</url> |
| 47 | </organization> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 48 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 49 | <developers> |
| 50 | <developer> |
| 51 | <name>Nils Diewald</name> |
| 52 | <email>diewald@ids-mannheim.de</email> |
| 53 | <url>https://www.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 | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 60 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 61 | <properties> |
Akron | e96f9fe | 2023-08-28 11:36:12 +0200 | [diff] [blame] | 62 | <java.version>17</java.version> |
dependabot[bot] | 3314df6 | 2024-01-26 00:04:25 +0000 | [diff] [blame] | 63 | <jersey.version>3.1.5</jersey.version> |
dependabot[bot] | d2c431c | 2024-03-14 00:40:30 +0000 | [diff] [blame] | 64 | <jackson.version>2.17.0</jackson.version> |
Marc Kupietz | 58e0aaa | 2024-03-17 18:44:41 +0100 | [diff] [blame] | 65 | <log4j.version>2.23.1</log4j.version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 66 | <lucene.version>5.0.0</lucene.version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 67 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 68 | </properties> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 69 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 70 | <dependencyManagement> |
| 71 | <dependencies> |
| 72 | <dependency> |
| 73 | <groupId>org.glassfish.jersey</groupId> |
| 74 | <artifactId>jersey-bom</artifactId> |
| 75 | <version>${jersey.version}</version> |
| 76 | <type>pom</type> |
| 77 | <scope>import</scope> |
| 78 | </dependency> |
| 79 | </dependencies> |
| 80 | </dependencyManagement> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 81 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 82 | <dependencies> |
| 83 | <!-- junit dependency --> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 84 | <dependency> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 85 | <groupId>junit</groupId> |
| 86 | <artifactId>junit</artifactId> |
| 87 | <version>4.13.2</version> |
| 88 | <scope>test</scope> |
| 89 | </dependency> |
| 90 | |
| 91 | <!-- https://mvnrepository.com/artifact/jakarta.ws.rs/jakarta.ws.rs-api --> |
| 92 | <dependency> |
| 93 | <groupId>jakarta.ws.rs</groupId> |
| 94 | <artifactId>jakarta.ws.rs-api</artifactId> |
Akron | ab711ff | 2022-11-16 10:53:15 +0100 | [diff] [blame] | 95 | <version>3.1.0</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 96 | </dependency> |
| 97 | |
| 98 | <!-- log4j dependency --> |
| 99 | <dependency> |
| 100 | <groupId>org.apache.logging.log4j</groupId> |
| 101 | <artifactId>log4j-api</artifactId> |
| 102 | <version>${log4j.version}</version> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>org.apache.logging.log4j</groupId> |
| 106 | <artifactId>log4j-core</artifactId> |
| 107 | <version>${log4j.version}</version> |
| 108 | </dependency> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 109 | <dependency> |
| 110 | <groupId>org.apache.logging.log4j</groupId> |
| 111 | <artifactId>log4j-slf4j-impl</artifactId> |
Akron | 9279806 | 2021-07-27 11:58:21 +0200 | [diff] [blame] | 112 | <version>${log4j.version}</version> |
Akron | ab2b3a5 | 2018-01-11 16:10:46 +0100 | [diff] [blame] | 113 | </dependency> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 114 | <dependency> |
| 115 | <groupId>org.slf4j</groupId> |
| 116 | <artifactId>jul-to-slf4j</artifactId> |
dependabot[bot] | f73f6a2 | 2024-02-08 00:17:18 +0000 | [diff] [blame] | 117 | <version>2.0.12</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 118 | </dependency> |
Akron | b17cc08 | 2022-11-16 11:16:31 +0100 | [diff] [blame] | 119 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 120 | <!-- SQLite for database connection tests --> |
| 121 | <dependency> |
| 122 | <groupId>org.xerial</groupId> |
| 123 | <artifactId>sqlite-jdbc</artifactId> |
dependabot[bot] | 476904f | 2024-03-14 00:40:23 +0000 | [diff] [blame] | 124 | <version>3.45.2.0</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 125 | </dependency> |
| 126 | |
| 127 | <!-- Database Connection Pool Manager --> |
| 128 | <dependency> |
| 129 | <groupId>com.mchange</groupId> |
| 130 | <artifactId>c3p0</artifactId> |
dependabot[bot] | 59aa1f0 | 2024-03-04 00:42:28 +0000 | [diff] [blame] | 131 | <version>0.10.0-pre7</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 132 | </dependency> |
| 133 | |
| 134 | <!-- Lucene core dependency --> |
| 135 | <dependency> |
| 136 | <artifactId>lucene-core</artifactId> |
| 137 | <groupId>org.apache.lucene</groupId> |
| 138 | <type>jar</type> |
| 139 | <version>${lucene.version}</version> |
| 140 | </dependency> |
| 141 | |
| 142 | <!-- Lucene queryparser dependency --> |
| 143 | <dependency> |
| 144 | <artifactId>lucene-queryparser</artifactId> |
| 145 | <groupId>org.apache.lucene</groupId> |
| 146 | <type>jar</type> |
| 147 | <version>${lucene.version}</version> |
| 148 | </dependency> |
| 149 | |
| 150 | <!-- Lucene analyzers dependency --> |
| 151 | <dependency> |
| 152 | <artifactId>lucene-analyzers-common</artifactId> |
| 153 | <groupId>org.apache.lucene</groupId> |
| 154 | <type>jar</type> |
| 155 | <version>${lucene.version}</version> |
| 156 | </dependency> |
| 157 | |
| 158 | <!-- JCache --> |
| 159 | <dependency> |
| 160 | <groupId>net.sf.jsr107cache</groupId> |
| 161 | <artifactId>jsr107cache</artifactId> |
| 162 | <version>1.1</version> |
| 163 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 164 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 165 | <!-- Jersey --> |
| 166 | <dependency> |
| 167 | <groupId>org.glassfish.jersey.containers</groupId> |
| 168 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 169 | </dependency> |
| 170 | |
| 171 | <!-- JSON support in Jersey --> |
| 172 | <dependency> |
| 173 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 174 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
Akron | d6c77b4 | 2022-10-05 12:34:15 +0200 | [diff] [blame] | 175 | <version>${jackson.version}</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 176 | </dependency> |
| 177 | |
| 178 | <dependency> |
| 179 | <groupId>org.glassfish.jersey.inject</groupId> |
| 180 | <artifactId>jersey-hk2</artifactId> |
| 181 | <version>${jersey.version}</version> |
| 182 | </dependency> |
| 183 | |
| 184 | <!-- JSON support using Jackson --> |
| 185 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 186 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 187 | <dependency> |
| 188 | <groupId>com.fasterxml.jackson.core</groupId> |
| 189 | <artifactId>jackson-databind</artifactId> |
Akron | ab711ff | 2022-11-16 10:53:15 +0100 | [diff] [blame] | 190 | <version>${jackson.version}</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>com.fasterxml.jackson.core</groupId> |
| 194 | <artifactId>jackson-annotations</artifactId> |
| 195 | <version>${jackson.version}</version> |
| 196 | </dependency> |
| 197 | <dependency> |
| 198 | <groupId>com.fasterxml.jackson.core</groupId> |
| 199 | <artifactId>jackson-core</artifactId> |
| 200 | <version>${jackson.version}</version> |
| 201 | </dependency> |
| 202 | |
| 203 | <!-- JSON-LD support --> |
| 204 | <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId> |
| 205 | <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental |
| 206 | annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId> |
| 207 | <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> --> |
| 208 | |
| 209 | <!-- Some language extensions like StringUtil, IOUtils ... --> |
| 210 | <dependency> |
| 211 | <groupId>org.apache.commons</groupId> |
| 212 | <artifactId>commons-lang3</artifactId> |
dependabot[bot] | 6452215 | 2024-01-24 12:37:59 +0000 | [diff] [blame] | 213 | <version>3.14.0</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 214 | </dependency> |
| 215 | |
| 216 | <dependency> |
| 217 | <groupId>commons-cli</groupId> |
| 218 | <artifactId>commons-cli</artifactId> |
dependabot[bot] | 62fb815 | 2024-01-26 00:04:32 +0000 | [diff] [blame] | 219 | <version>1.6.0</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 220 | </dependency> |
| 221 | <dependency> |
| 222 | <groupId>commons-io</groupId> |
| 223 | <artifactId>commons-io</artifactId> |
dependabot[bot] | dc0deab | 2024-02-08 00:17:18 +0000 | [diff] [blame] | 224 | <version>2.15.1</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 225 | </dependency> |
Akron | 22d319e | 2018-04-01 17:13:49 +0200 | [diff] [blame] | 226 | </dependencies> |
Marc Kupietz | 6d76d9d | 2022-11-13 07:29:31 +0100 | [diff] [blame] | 227 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 228 | <build> |
| 229 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 230 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 231 | <plugins> |
| 232 | <plugin> |
| 233 | <artifactId>maven-compiler-plugin</artifactId> |
dependabot[bot] | c385fe8 | 2024-03-19 00:59:07 +0000 | [diff] [blame] | 234 | <version>3.13.0</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 235 | <inherited>true</inherited> |
| 236 | <configuration> |
| 237 | <showWarnings>true</showWarnings> |
| 238 | <source>${java.version}</source> |
| 239 | <target>${java.version}</target> |
| 240 | </configuration> |
| 241 | </plugin> |
| 242 | |
| 243 | <plugin> |
| 244 | <groupId>org.apache.maven.plugins</groupId> |
| 245 | <artifactId>maven-shade-plugin</artifactId> |
dependabot[bot] | 71a65de | 2024-02-21 00:30:16 +0000 | [diff] [blame] | 246 | <version>3.5.2</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 247 | <executions> |
| 248 | <execution> |
| 249 | <id>indexer</id> |
| 250 | <phase>package</phase> |
| 251 | <goals> |
| 252 | <goal>shade</goal> |
| 253 | </goals> |
| 254 | <configuration> |
Marc Kupietz | c38dc9f | 2024-02-19 15:58:00 +0100 | [diff] [blame] | 255 | <createDependencyReducedPom>false</createDependencyReducedPom> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 256 | <transformers> |
| 257 | <transformer |
| 258 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 259 | <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass> |
| 260 | </transformer> |
| 261 | </transformers> |
| 262 | <finalName>${project.artifactId}-Indexer</finalName> |
| 263 | </configuration> |
| 264 | </execution> |
| 265 | <execution> |
| 266 | <id>server</id> |
| 267 | <phase>package</phase> |
| 268 | <goals> |
| 269 | <goal>shade</goal> |
| 270 | </goals> |
| 271 | <configuration> |
Marc Kupietz | c38dc9f | 2024-02-19 15:58:00 +0100 | [diff] [blame] | 272 | <createDependencyReducedPom>false</createDependencyReducedPom> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 273 | <transformers> |
| 274 | <transformer |
| 275 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 276 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 277 | </transformer> |
| 278 | <transformer |
| 279 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 280 | <resource>krill.properties</resource> |
| 281 | </transformer> |
| 282 | </transformers> |
| 283 | <finalName>${project.name}-Server</finalName> |
| 284 | </configuration> |
| 285 | </execution> |
| 286 | </executions> |
| 287 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 288 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 289 | <plugin> |
| 290 | <groupId>org.apache.maven.plugins</groupId> |
| 291 | <artifactId>maven-surefire-plugin</artifactId> |
dependabot[bot] | 9d70f69 | 2024-01-24 12:37:52 +0000 | [diff] [blame] | 292 | <version>3.2.5</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 293 | <configuration> |
| 294 | <useSystemClassLoader>false</useSystemClassLoader> |
| 295 | <argLine>-Xmx512m</argLine> |
| 296 | <excludes> |
| 297 | <exclude>**/benchmark/*</exclude> |
| 298 | <exclude>**/TestWPDIndex.java</exclude> |
| 299 | <exclude>**/TestRealIndex.java</exclude> |
| 300 | <exclude>**/TestSampleIndex.java</exclude> |
| 301 | <exclude>**/TestParallelIndex.java</exclude> |
| 302 | </excludes> |
| 303 | </configuration> |
| 304 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 305 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 306 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 307 | <plugin> |
| 308 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 309 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 310 | <version>0.4</version> |
| 311 | <configuration> |
| 312 | <configFile>${project.basedir}/Format.xml</configFile> |
| 313 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 314 | <compilerSource>${java.version}</compilerSource> |
| 315 | <compilerCompliance>${java.version}</compilerCompliance> |
| 316 | <compilerTargetPlatform>${java.version}</compilerTargetPlatform> |
| 317 | </configuration> |
| 318 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 319 | |
Marc Kupietz | 58e0aaa | 2024-03-17 18:44:41 +0100 | [diff] [blame] | 320 | <plugin> |
| 321 | <groupId>org.codehaus.mojo</groupId> |
| 322 | <artifactId>exec-maven-plugin</artifactId> |
| 323 | <version>3.2.0</version> |
| 324 | <executions> |
| 325 | <execution> |
| 326 | <goals> |
| 327 | <goal>java</goal> |
| 328 | </goals> |
| 329 | <configuration> |
| 330 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 331 | </configuration> |
| 332 | </execution> |
| 333 | <execution> |
| 334 | <id>run-krill-indexer-jar</id> |
| 335 | <phase>verify</phase> |
| 336 | <goals> |
| 337 | <goal>exec</goal> |
| 338 | </goals> |
| 339 | <configuration> |
| 340 | <executable>java</executable> |
| 341 | <arguments> |
| 342 | <argument>-jar</argument> |
| 343 | <argument>${project.build.directory}/Krill-Indexer.jar</argument> |
| 344 | </arguments> |
| 345 | </configuration> |
| 346 | </execution> |
| 347 | </executions> |
| 348 | </plugin> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 349 | </plugins> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 350 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 351 | <resources> |
| 352 | <resource> |
| 353 | <directory>src/main/resources</directory> |
| 354 | <filtering>true</filtering> |
| 355 | <includes> |
| 356 | <include>krill.info</include> |
| 357 | </includes> |
| 358 | </resource> |
| 359 | <resource> |
| 360 | <directory>src/main/resources</directory> |
| 361 | <filtering>false</filtering> |
| 362 | <excludes> |
| 363 | <exclude>krill.info</exclude> |
| 364 | </excludes> |
| 365 | </resource> |
| 366 | </resources> |
Marc Kupietz | 4369ed6 | 2020-11-12 10:05:44 +0100 | [diff] [blame] | 367 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 368 | <testResources> |
| 369 | <testResource> |
| 370 | <directory>src/test/resources</directory> |
| 371 | <filtering>true</filtering> |
| 372 | <includes> |
| 373 | <include>krill.properties</include> |
| 374 | </includes> |
| 375 | </testResource> |
| 376 | <testResource> |
| 377 | <directory>src/test/resources</directory> |
| 378 | <filtering>false</filtering> |
| 379 | <excludes> |
| 380 | <exclude>krill.properties</exclude> |
| 381 | </excludes> |
| 382 | </testResource> |
| 383 | </testResources> |
| 384 | </build> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 385 | </project> |