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 | 92a8c29 | 2024-01-25 11:19:18 +0100 | [diff] [blame] | 38 | <version>0.62.1</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] | 6fa4705 | 2024-01-24 12:38:07 +0000 | [diff] [blame] | 64 | <jackson.version>2.16.1</jackson.version> |
Akron | ab711ff | 2022-11-16 10:53:15 +0100 | [diff] [blame] | 65 | <log4j.version>[2.19.0,)</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] | b72f171 | 2024-01-24 12:37:56 +0000 | [diff] [blame] | 124 | <version>3.45.0.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> |
| 131 | <version>0.9.5.5</version> |
| 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] | 1db2bcf | 2024-01-26 00:04:39 +0000 | [diff] [blame] | 234 | <version>3.12.1</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] | 0fa7df8 | 2024-01-26 00:04:35 +0000 | [diff] [blame] | 246 | <version>3.5.1</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> |
| 255 | <transformers> |
| 256 | <transformer |
| 257 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 258 | <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass> |
| 259 | </transformer> |
| 260 | </transformers> |
| 261 | <finalName>${project.artifactId}-Indexer</finalName> |
| 262 | </configuration> |
| 263 | </execution> |
| 264 | <execution> |
| 265 | <id>server</id> |
| 266 | <phase>package</phase> |
| 267 | <goals> |
| 268 | <goal>shade</goal> |
| 269 | </goals> |
| 270 | <configuration> |
| 271 | <transformers> |
| 272 | <transformer |
| 273 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 274 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 275 | </transformer> |
| 276 | <transformer |
| 277 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 278 | <resource>krill.properties</resource> |
| 279 | </transformer> |
| 280 | </transformers> |
| 281 | <finalName>${project.name}-Server</finalName> |
| 282 | </configuration> |
| 283 | </execution> |
| 284 | </executions> |
| 285 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 286 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 287 | <plugin> |
| 288 | <groupId>org.apache.maven.plugins</groupId> |
| 289 | <artifactId>maven-surefire-plugin</artifactId> |
dependabot[bot] | 9d70f69 | 2024-01-24 12:37:52 +0000 | [diff] [blame] | 290 | <version>3.2.5</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 291 | <configuration> |
| 292 | <useSystemClassLoader>false</useSystemClassLoader> |
| 293 | <argLine>-Xmx512m</argLine> |
| 294 | <excludes> |
| 295 | <exclude>**/benchmark/*</exclude> |
| 296 | <exclude>**/TestWPDIndex.java</exclude> |
| 297 | <exclude>**/TestRealIndex.java</exclude> |
| 298 | <exclude>**/TestSampleIndex.java</exclude> |
| 299 | <exclude>**/TestParallelIndex.java</exclude> |
| 300 | </excludes> |
| 301 | </configuration> |
| 302 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 303 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 304 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 305 | <plugin> |
| 306 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 307 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 308 | <version>0.4</version> |
| 309 | <configuration> |
| 310 | <configFile>${project.basedir}/Format.xml</configFile> |
| 311 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 312 | <compilerSource>${java.version}</compilerSource> |
| 313 | <compilerCompliance>${java.version}</compilerCompliance> |
| 314 | <compilerTargetPlatform>${java.version}</compilerTargetPlatform> |
| 315 | </configuration> |
| 316 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 317 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 318 | <plugin> |
| 319 | <groupId>org.codehaus.mojo</groupId> |
| 320 | <artifactId>exec-maven-plugin</artifactId> |
dependabot[bot] | dbd99bd | 2024-01-26 00:04:29 +0000 | [diff] [blame] | 321 | <version>3.1.1</version> |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 322 | <executions> |
| 323 | <execution> |
| 324 | <goals> |
| 325 | <goal>java</goal> |
| 326 | </goals> |
| 327 | </execution> |
| 328 | </executions> |
| 329 | <configuration> |
| 330 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 331 | </configuration> |
| 332 | </plugin> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 333 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 334 | </plugins> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 335 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 336 | <resources> |
| 337 | <resource> |
| 338 | <directory>src/main/resources</directory> |
| 339 | <filtering>true</filtering> |
| 340 | <includes> |
| 341 | <include>krill.info</include> |
| 342 | </includes> |
| 343 | </resource> |
| 344 | <resource> |
| 345 | <directory>src/main/resources</directory> |
| 346 | <filtering>false</filtering> |
| 347 | <excludes> |
| 348 | <exclude>krill.info</exclude> |
| 349 | </excludes> |
| 350 | </resource> |
| 351 | </resources> |
Marc Kupietz | 4369ed6 | 2020-11-12 10:05:44 +0100 | [diff] [blame] | 352 | |
Akron | e1befe0 | 2021-07-27 13:34:51 +0200 | [diff] [blame] | 353 | <testResources> |
| 354 | <testResource> |
| 355 | <directory>src/test/resources</directory> |
| 356 | <filtering>true</filtering> |
| 357 | <includes> |
| 358 | <include>krill.properties</include> |
| 359 | </includes> |
| 360 | </testResource> |
| 361 | <testResource> |
| 362 | <directory>src/test/resources</directory> |
| 363 | <filtering>false</filtering> |
| 364 | <excludes> |
| 365 | <exclude>krill.properties</exclude> |
| 366 | </excludes> |
| 367 | </testResource> |
| 368 | </testResources> |
| 369 | </build> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 370 | </project> |