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> |
Akron | d578930 | 2018-01-31 09:18:14 +0100 | [diff] [blame^] | 38 | <version>0.56.1</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> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 109 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 110 | <!-- SQLite for database connection tests --> |
| 111 | <dependency> |
| 112 | <groupId>org.xerial</groupId> |
| 113 | <artifactId>sqlite-jdbc</artifactId> |
| 114 | <version>3.7.2</version> |
| 115 | </dependency> |
Nils Diewald | f5ab4b2 | 2015-02-25 20:55:16 +0000 | [diff] [blame] | 116 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 117 | <!-- Database Connection Pool Manager --> |
| 118 | <dependency> |
| 119 | <groupId>c3p0</groupId> |
| 120 | <artifactId>c3p0</artifactId> |
| 121 | <version>0.9.1.2</version> |
| 122 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 123 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 124 | <!-- Lucene core dependency --> |
| 125 | <dependency> |
| 126 | <artifactId>lucene-core</artifactId> |
| 127 | <groupId>org.apache.lucene</groupId> |
| 128 | <type>jar</type> |
| 129 | <version>5.0.0</version> |
| 130 | </dependency> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 131 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 132 | <!-- Lucene queryparser dependency --> |
| 133 | <dependency> |
| 134 | <artifactId>lucene-queryparser</artifactId> |
| 135 | <groupId>org.apache.lucene</groupId> |
| 136 | <type>jar</type> |
| 137 | <version>5.0.0</version> |
| 138 | </dependency> |
Akron | 09ae373 | 2015-08-13 20:56:20 +0200 | [diff] [blame] | 139 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 140 | <!-- Lucene analyzers dependency --> |
| 141 | <dependency> |
| 142 | <artifactId>lucene-analyzers-common</artifactId> |
| 143 | <groupId>org.apache.lucene</groupId> |
| 144 | <type>jar</type> |
| 145 | <version>5.0.0</version> |
| 146 | </dependency> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 147 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 148 | <dependency> |
| 149 | <groupId>org.hamcrest</groupId> |
| 150 | <artifactId>hamcrest-core</artifactId> |
| 151 | <version>1.3</version> |
| 152 | </dependency> |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 153 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 154 | <!-- JCache --> |
| 155 | <dependency> |
| 156 | <groupId>net.sf.jsr107cache</groupId> |
| 157 | <artifactId>jsr107cache</artifactId> |
| 158 | <version>1.0</version> |
| 159 | </dependency> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 160 | |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 161 | <!-- Jersey --> |
| 162 | <dependency> |
| 163 | <groupId>org.glassfish.jersey.containers</groupId> |
| 164 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 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 | <!-- JSON support in Jersey --> |
| 168 | <dependency> |
| 169 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 170 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 171 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 172 | </dependency> |
| 173 | |
| 174 | <!-- JSON support using Jackson --> |
| 175 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 176 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 177 | <dependency> |
| 178 | <groupId>com.fasterxml.jackson.core</groupId> |
| 179 | <artifactId>jackson-databind</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 180 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 181 | </dependency> |
| 182 | <dependency> |
| 183 | <groupId>com.fasterxml.jackson.core</groupId> |
| 184 | <artifactId>jackson-annotations</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 185 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 186 | </dependency> |
| 187 | <dependency> |
| 188 | <groupId>com.fasterxml.jackson.core</groupId> |
| 189 | <artifactId>jackson-core</artifactId> |
margaretha | 3b2c351 | 2017-11-17 14:42:12 +0100 | [diff] [blame] | 190 | <version>${jackson.version}</version> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 191 | </dependency> |
| 192 | |
| 193 | <!-- JSON-LD support --> |
| 194 | <!-- <dependency> <groupId>com.github.jsonld-java</groupId> <artifactId>jsonld-java</artifactId> |
| 195 | <version>0.5.2-SNAPSHOT</version> </dependency> Temporarily disable @Experimental |
| 196 | annotation <dependency> <groupId>KorapAnnotationProcessor</groupId> <artifactId>KorapAnnotationProcessor</artifactId> |
| 197 | <version>0.0.1-SNAPSHOT</version> <scope>compile</scope> </dependency> --> |
| 198 | |
| 199 | <!-- Some language extensions like StringUtil --> |
| 200 | <dependency> |
| 201 | <groupId>commons-lang</groupId> |
| 202 | <artifactId>commons-lang</artifactId> |
| 203 | <version>2.3</version> |
| 204 | </dependency> |
| 205 | |
| 206 | <dependency> |
| 207 | <groupId>commons-cli</groupId> |
| 208 | <artifactId>commons-cli</artifactId> |
| 209 | <version>1.3.1</version> |
| 210 | </dependency> |
| 211 | </dependencies> |
| 212 | |
| 213 | <build> |
| 214 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 215 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 216 | <plugins> |
| 217 | <plugin> |
| 218 | <artifactId>maven-compiler-plugin</artifactId> |
| 219 | <version>2.5.1</version> |
| 220 | <inherited>true</inherited> |
| 221 | <configuration> |
| 222 | <showWarnings>true</showWarnings> |
| 223 | <source>1.7</source> |
| 224 | <target>1.7</target> |
| 225 | </configuration> |
| 226 | </plugin> |
| 227 | |
| 228 | <plugin> |
| 229 | <groupId>org.apache.maven.plugins</groupId> |
| 230 | <artifactId>maven-shade-plugin</artifactId> |
| 231 | <version>2.4.1</version> |
| 232 | <executions> |
| 233 | <execution> |
| 234 | <id>indexer</id> |
| 235 | <phase>package</phase> |
| 236 | <goals> |
| 237 | <goal>shade</goal> |
| 238 | </goals> |
| 239 | <configuration> |
| 240 | <transformers> |
| 241 | <transformer |
| 242 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 243 | <mainClass>de.ids_mannheim.korap.index.Indexer</mainClass> |
| 244 | </transformer> |
| 245 | </transformers> |
| 246 | <finalName>${project.artifactId}-Indexer</finalName> |
| 247 | </configuration> |
| 248 | </execution> |
| 249 | <execution> |
| 250 | <id>server</id> |
| 251 | <phase>package</phase> |
| 252 | <goals> |
| 253 | <goal>shade</goal> |
| 254 | </goals> |
| 255 | <configuration> |
| 256 | <transformers> |
| 257 | <transformer |
| 258 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 259 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 260 | </transformer> |
| 261 | <transformer |
| 262 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 263 | <resource>krill.properties</resource> |
| 264 | </transformer> |
| 265 | </transformers> |
| 266 | <finalName>${project.name}-Server</finalName> |
| 267 | </configuration> |
| 268 | </execution> |
| 269 | </executions> |
| 270 | </plugin> |
| 271 | |
| 272 | <plugin> |
| 273 | <groupId>org.apache.maven.plugins</groupId> |
| 274 | <artifactId>maven-surefire-plugin</artifactId> |
| 275 | <version>2.16</version> |
| 276 | <configuration> |
| 277 | <excludes> |
| 278 | <exclude>**/benchmark/*</exclude> |
| 279 | <exclude>**/TestWPDIndex.java</exclude> |
| 280 | <exclude>**/TestRealIndex.java</exclude> |
margaretha | 3d81110 | 2017-09-06 14:20:42 +0200 | [diff] [blame] | 281 | <exclude>**/TestSampleIndex.java</exclude> |
Eliza Margaretha | ff41663 | 2016-11-03 15:08:07 +0100 | [diff] [blame] | 282 | </excludes> |
| 283 | </configuration> |
| 284 | </plugin> |
| 285 | |
| 286 | <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html --> |
| 287 | <plugin> |
| 288 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 289 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 290 | <version>0.4</version> |
| 291 | <configuration> |
| 292 | <configFile>${project.basedir}/Format.xml</configFile> |
| 293 | <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion> |
| 294 | <compilerSource>1.7</compilerSource> |
| 295 | <compilerCompliance>1.7</compilerCompliance> |
| 296 | <compilerTargetPlatform>1.7</compilerTargetPlatform> |
| 297 | </configuration> |
| 298 | </plugin> |
| 299 | |
| 300 | <plugin> |
| 301 | <groupId>org.codehaus.mojo</groupId> |
| 302 | <artifactId>exec-maven-plugin</artifactId> |
| 303 | <version>1.2.1</version> |
| 304 | <executions> |
| 305 | <execution> |
| 306 | <goals> |
| 307 | <goal>java</goal> |
| 308 | </goals> |
| 309 | </execution> |
| 310 | </executions> |
| 311 | <configuration> |
| 312 | <mainClass>de.ids_mannheim.korap.server.Node</mainClass> |
| 313 | </configuration> |
| 314 | </plugin> |
| 315 | </plugins> |
| 316 | |
| 317 | <resources> |
| 318 | <resource> |
| 319 | <directory>src/main/resources</directory> |
| 320 | <filtering>true</filtering> |
| 321 | <includes> |
| 322 | <include>krill.info</include> |
| 323 | </includes> |
| 324 | </resource> |
| 325 | <resource> |
| 326 | <directory>src/main/resources</directory> |
| 327 | <filtering>false</filtering> |
| 328 | <excludes> |
| 329 | <exclude>krill.info</exclude> |
| 330 | </excludes> |
| 331 | </resource> |
| 332 | </resources> |
| 333 | |
| 334 | <testResources> |
| 335 | <testResource> |
| 336 | <directory>src/test/resources</directory> |
| 337 | <filtering>true</filtering> |
| 338 | <includes> |
| 339 | <include>krill.properties</include> |
| 340 | </includes> |
| 341 | </testResource> |
| 342 | <testResource> |
| 343 | <directory>src/test/resources</directory> |
| 344 | <filtering>false</filtering> |
| 345 | <excludes> |
| 346 | <exclude>krill.properties</exclude> |
| 347 | </excludes> |
| 348 | </testResource> |
| 349 | </testResources> |
| 350 | </build> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 351 | </project> |