1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 4CDDL HEADER START 5 6The contents of this file are subject to the terms of the 7Common Development and Distribution License (the "License"). 8You may not use this file except in compliance with the License. 9 10See LICENSE.txt included in this distribution for the specific 11language governing permissions and limitations under the License. 12 13When distributing Covered Code, include this CDDL HEADER in each 14file and include the License file at LICENSE.txt. 15If applicable, add the following below this CDDL HEADER, with the 16fields enclosed by brackets "[]" replaced with your own identifying 17information: Portions Copyright [yyyy] [name of copyright owner] 18 19CDDL HEADER END 20 21Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved. 22Portions Copyright (c) 2017-2020, Chris Fraire <cfraire@me.com>. 23Portions Copyright (c) 2020-2020, Lubos Kosco <tarzanek@gmail.com>. 24 25--> 26<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 27 <modelVersion>4.0.0</modelVersion> 28 29 <parent> 30 <groupId>org.opengrok</groupId> 31 <artifactId>opengrok-top</artifactId> 32 <version>1.7.32</version> 33 </parent> 34 35 <artifactId>opengrok</artifactId> 36 <version>1.7.32</version> 37 <packaging>jar</packaging> 38 39 <name>OpenGrok Indexer</name> 40 41 <properties> 42 <version>${project.version}</version> 43 </properties> 44 45 <dependencies> 46 <dependency> 47 <groupId>org.apache.bcel</groupId> 48 <artifactId>bcel</artifactId> 49 </dependency> 50 <dependency> 51 <groupId>org.apache.commons</groupId> 52 <artifactId>commons-lang3</artifactId> 53 <version>${apache-commons-lang3.version}</version> 54 </dependency> 55 <dependency> 56 <groupId>org.apache.commons</groupId> 57 <artifactId>commons-compress</artifactId> 58 <version>1.21</version> 59 </dependency> 60 <dependency> 61 <groupId>org.apache.lucene</groupId> 62 <artifactId>lucene-core</artifactId> 63 </dependency> 64 <dependency> 65 <groupId>org.apache.lucene</groupId> 66 <artifactId>lucene-analyzers-common</artifactId> 67 </dependency> 68 <dependency> 69 <groupId>org.apache.lucene</groupId> 70 <artifactId>lucene-highlighter</artifactId> 71 </dependency> 72 <dependency> 73 <groupId>org.apache.lucene</groupId> 74 <artifactId>lucene-join</artifactId> 75 </dependency> 76 <dependency> 77 <groupId>org.apache.lucene</groupId> 78 <artifactId>lucene-memory</artifactId> 79 </dependency> 80 <dependency> 81 <groupId>org.apache.lucene</groupId> 82 <artifactId>lucene-queries</artifactId> 83 </dependency> 84 <dependency> 85 <groupId>org.apache.lucene</groupId> 86 <artifactId>lucene-queryparser</artifactId> 87 </dependency> 88 <dependency> 89 <groupId>org.apache.lucene</groupId> 90 <artifactId>lucene-backward-codecs</artifactId> 91 <version>${lucene.version}</version> 92 </dependency> 93 <dependency> 94 <groupId>org.apache.lucene</groupId> 95 <artifactId>lucene-suggest</artifactId> 96 </dependency> 97 <dependency> 98 <groupId>jakarta.servlet</groupId> 99 <artifactId>jakarta.servlet-api</artifactId> 100 </dependency> 101 <dependency> 102 <groupId>org.apache.ant</groupId> 103 <artifactId>ant</artifactId> 104 </dependency> 105 <dependency> <!-- TODO: remove! (moving Messages to web module) --> 106 <groupId>org.glassfish.jersey.ext</groupId> 107 <artifactId>jersey-bean-validation</artifactId> 108 <version>${jersey.version}</version> 109 </dependency> 110 <dependency> 111 <groupId>org.glassfish.jersey.media</groupId> 112 <artifactId>jersey-media-json-jackson</artifactId> 113 <version>${jersey.version}</version> 114 </dependency> 115 <dependency> 116 <groupId>org.glassfish.jersey.core</groupId> 117 <artifactId>jersey-client</artifactId> 118 <version>${jersey.version}</version> 119 </dependency> 120 <dependency> 121 <groupId>org.glassfish.jersey.inject</groupId> 122 <artifactId>jersey-hk2</artifactId> 123 <version>${jersey.version}</version> 124 </dependency> 125 <dependency> 126 <groupId>org.webjars</groupId> 127 <artifactId>webjars-locator-core</artifactId> 128 <version>0.47</version> 129 </dependency> 130 <dependency> 131 <groupId>org.junit.jupiter</groupId> 132 <artifactId>junit-jupiter-engine</artifactId> 133 <scope>test</scope> 134 </dependency> 135 <dependency> 136 <groupId>org.junit.jupiter</groupId> 137 <artifactId>junit-jupiter-params</artifactId> 138 <scope>test</scope> 139 </dependency> 140 <dependency> 141 <groupId>org.hamcrest</groupId> 142 <artifactId>hamcrest-library</artifactId> 143 <version>${hamcrest.version}</version> 144 <scope>test</scope> 145 </dependency> 146 <dependency> <!-- TODO: remove! (moving Messages to web module) --> 147 <groupId>org.awaitility</groupId> 148 <artifactId>awaitility</artifactId> 149 <scope>test</scope> 150 </dependency> 151 <dependency> 152 <groupId>org.mockito</groupId> 153 <artifactId>mockito-core</artifactId> 154 <scope>test</scope> 155 </dependency> 156 <dependency> 157 <groupId>com.google.jimfs</groupId> 158 <artifactId>jimfs</artifactId> 159 <version>1.2</version> 160 <scope>test</scope> 161 </dependency> 162 <dependency> 163 <groupId>com.cronutils</groupId> 164 <artifactId>cron-utils</artifactId> 165 <version>9.1.6</version> 166 <exclusions> 167 <exclusion> 168 <groupId>org.glassfish</groupId> 169 <artifactId>javax.el</artifactId> 170 </exclusion> 171 </exclusions> 172 </dependency> 173 <dependency> 174 <groupId>org.jvnet.hudson</groupId> 175 <artifactId>org.suigeneris.jrcs.diff</artifactId> 176 <version>0.4.2</version> 177 </dependency> 178 <dependency> 179 <groupId>org.jvnet.hudson</groupId> 180 <artifactId>org.suigeneris.jrcs.rcs</artifactId> 181 <version>0.4.2</version> 182 </dependency> 183 <dependency> 184 <groupId>org.glassfish.jaxb</groupId> 185 <artifactId>jaxb-runtime</artifactId> 186 </dependency> 187 <dependency> 188 <groupId>jakarta.activation</groupId> 189 <artifactId>jakarta.activation-api</artifactId> 190 <version>2.0.1</version> 191 </dependency> 192 <dependency> 193 <groupId>com.fasterxml.jackson.core</groupId> 194 <artifactId>jackson-databind</artifactId> 195 <version>${jackson.version}</version> 196 </dependency> 197 <dependency> 198 <groupId>com.fasterxml.jackson.core</groupId> 199 <artifactId>jackson-annotations</artifactId> 200 <version>${jackson.version}</version> 201 </dependency> 202 <dependency> 203 <groupId>io.micrometer</groupId> 204 <artifactId>micrometer-core</artifactId> 205 <version>${micrometer.version}</version> 206 </dependency> 207 <dependency> 208 <groupId>io.micrometer</groupId> 209 <artifactId>micrometer-registry-prometheus</artifactId> 210 <version>${micrometer.version}</version> 211 </dependency> 212 <dependency> 213 <groupId>io.micrometer</groupId> 214 <artifactId>micrometer-registry-statsd</artifactId> 215 <version>${micrometer.version}</version> 216 </dependency> 217 <dependency> 218 <groupId>org.jetbrains</groupId> 219 <artifactId>annotations</artifactId> 220 </dependency> 221 <dependency> 222 <groupId>org.eclipse.jgit</groupId> 223 <artifactId>org.eclipse.jgit</artifactId> 224 <version>5.12.0.202106070339-r</version> 225 </dependency> 226 <dependency> 227 <groupId>io.github.g00fy2</groupId> 228 <artifactId>versioncompare</artifactId> 229 <version>1.5.0</version> 230 </dependency> 231 </dependencies> 232 233 <build> 234 <plugins> 235<!-- jflex:generate plugin HAS to be the first one which runs in generate-sources phase!!! --> 236 <plugin> 237 <groupId>de.jflex</groupId> 238 <artifactId>jflex-maven-plugin</artifactId> 239 <version>1.8.2</version> 240 <executions> 241 <execution> 242 <goals> 243 <goal>generate</goal> 244 </goals> 245 <configuration> 246 <encodingName>${project.build.sourceEncoding}</encodingName> 247 </configuration> 248 </execution> 249 </executions> 250 </plugin> 251 252 <plugin> 253 <groupId>pl.project13.maven</groupId> 254 <artifactId>git-commit-id-plugin</artifactId> 255 <version>2.2.4</version> 256 <configuration> 257 <includeOnlyProperties> 258 <includeOnlyProperty>^git.commit.id</includeOnlyProperty> 259 </includeOnlyProperties> 260 <failOnNoGitDirectory>false</failOnNoGitDirectory> 261 </configuration> 262 <executions> 263 <execution> 264 <id>get-the-git-infos</id> 265 <goals> 266 <goal>revision</goal> 267 </goals> 268 <phase>initialize</phase> 269 </execution> 270 <execution> 271 <id>validate-the-git-infos</id> 272 <goals> 273 <goal>validateRevision</goal> 274 </goals> 275 <phase>package</phase> 276 </execution> 277 </executions> 278 </plugin> 279 <plugin> 280 <groupId>org.codehaus.mojo</groupId> 281 <artifactId>properties-maven-plugin</artifactId> 282 <version>1.0.0</version> 283 <executions> 284 <execution> 285 <id>generate-info-properties</id> 286 <phase>generate-resources</phase> 287 <goals> 288 <goal>write-project-properties</goal> 289 </goals> 290 <configuration> 291 <outputFile> 292 ${project.build.outputDirectory}/org/opengrok/indexer/info.properties 293 </outputFile> 294 </configuration> 295 </execution> 296 </executions> 297 </plugin> 298 <plugin> 299 <groupId>com.google.code.maven-replacer-plugin</groupId> 300 <artifactId>replacer</artifactId> 301 <version>1.5.3</version> 302 <executions> 303 <execution> 304 <id>perform-git-substitutions</id> 305 <goals> 306 <goal>replace</goal> 307 </goals> 308 <phase>process-resources</phase> 309 <configuration> 310 <filesToInclude> 311 ${project.build.outputDirectory}/org/opengrok/indexer/info.properties 312 </filesToInclude> 313 <replacements> 314 <replacement> 315 <token>git.commit.id.abbrev</token> 316 <value>changeset_short</value> 317 </replacement> 318 <replacement> 319 <token>git.commit.id</token> 320 <value>changeset</value> 321 </replacement> 322 </replacements> 323 <quiet>false</quiet> 324 </configuration> 325 </execution> 326 </executions> 327 </plugin> 328 <plugin> 329 <groupId>org.apache.maven.plugins</groupId> 330 <artifactId>maven-jar-plugin</artifactId> 331 <version>3.2.0</version> 332 <configuration> 333 <archive> 334 <manifest> 335 <mainClass>org.opengrok.indexer.index.Indexer</mainClass> 336 <addClasspath>true</addClasspath> 337 </manifest> 338 <manifestEntries> 339 </manifestEntries> 340 </archive> 341 </configuration> 342 <executions> <!-- so the web module can use test classes from indexer module --> 343 <execution> 344 <goals> 345 <goal>test-jar</goal> 346 </goals> 347 </execution> 348 </executions> 349 </plugin> 350 351 <plugin> 352 <groupId>org.apache.maven.plugins</groupId> 353 <artifactId>maven-checkstyle-plugin</artifactId> 354 </plugin> 355 <plugin> 356 <groupId>org.apache.maven.plugins</groupId> 357 <artifactId>maven-surefire-plugin</artifactId> 358 <configuration> 359 <excludes> 360 <!-- Test helper class with name that confuses surefire --> 361 <exclude>**/TestRepository.java</exclude> 362 </excludes> 363 <argLine> 364 @{surefireArgLine} 365 --illegal-access=permit 366 </argLine> 367 </configuration> 368 </plugin> 369 </plugins> 370 </build> 371 372 <profiles> 373 <profile> 374 <id>Windows environment</id> 375 <activation> 376 <os> 377 <family>Windows</family> 378 </os> 379 </activation> 380 <build> 381 <plugins> 382 <plugin> 383 <groupId>org.apache.maven.plugins</groupId> 384 <artifactId>maven-surefire-plugin</artifactId> 385 <configuration> 386 <excludes> 387 <exclude>**/*XrefTest.java</exclude> 388 <exclude>**/HistoryGuruTest.java</exclude> 389 <!-- times out when running 'hg update mybranch' --> 390 <exclude>**/MercurialRepositoryTest.java</exclude> 391 <!-- testSymlink fails due to path difference --> 392 <exclude>**/IndexerRepoTest.java</exclude> 393 </excludes> 394 </configuration> 395 </plugin> 396 </plugins> 397 </build> 398 </profile> 399 </profiles> 400 401</project> 402