108a0c20eSJorgen Austvik<?xml version="1.0" encoding="UTF-8"?> 218446c8aSKnut Anders Hatlen<!-- 318446c8aSKnut Anders Hatlen 418446c8aSKnut Anders HatlenCDDL HEADER START 518446c8aSKnut Anders Hatlen 618446c8aSKnut Anders HatlenThe contents of this file are subject to the terms of the 718446c8aSKnut Anders HatlenCommon Development and Distribution License (the "License"). 818446c8aSKnut Anders HatlenYou may not use this file except in compliance with the License. 918446c8aSKnut Anders Hatlen 1018446c8aSKnut Anders HatlenSee LICENSE.txt included in this distribution for the specific 1118446c8aSKnut Anders Hatlenlanguage governing permissions and limitations under the License. 1218446c8aSKnut Anders Hatlen 1318446c8aSKnut Anders HatlenWhen distributing Covered Code, include this CDDL HEADER in each 1418446c8aSKnut Anders Hatlenfile and include the License file at LICENSE.txt. 1518446c8aSKnut Anders HatlenIf applicable, add the following below this CDDL HEADER, with the 1618446c8aSKnut Anders Hatlenfields enclosed by brackets "[]" replaced with your own identifying 1718446c8aSKnut Anders Hatleninformation: Portions Copyright [yyyy] [name of copyright owner] 1818446c8aSKnut Anders Hatlen 1918446c8aSKnut Anders HatlenCDDL HEADER END 2018446c8aSKnut Anders Hatlen 219f2d396bSVladimir KotalCopyright (c) 2010, 2020, Oracle and/or its affiliates. All rights reserved. 228ba3bf89SChris FrairePortions Copyright (c) 2017-2019, Chris Fraire <cfraire@me.com>. 23*298ce67fSLubos KoscoPortions Copyright (c) 2020-2020, Lubos Kosco <tarzanek@gmail.com>. 2418446c8aSKnut Anders Hatlen 2518446c8aSKnut Anders Hatlen--> 260170aac5SAdam Hornáček<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"> 2708a0c20eSJorgen Austvik <modelVersion>4.0.0</modelVersion> 2808a0c20eSJorgen Austvik 2908a0c20eSJorgen Austvik <parent> 3056f072caSAdam Hornáček <groupId>org.opengrok</groupId> 316ed99b2dSVladimir Kotal <artifactId>opengrok-top</artifactId> 3273e2f8d1SVladimir Kotal <version>1.3.9</version> 3308a0c20eSJorgen Austvik </parent> 3408a0c20eSJorgen Austvik 35bb76b0b8SAdam Hornáček <artifactId>opengrok</artifactId> 3673e2f8d1SVladimir Kotal <version>1.3.9</version> 370170aac5SAdam Hornáček <packaging>jar</packaging> 380170aac5SAdam Hornáček 390170aac5SAdam Hornáček <name>OpenGrok Indexer</name> 400170aac5SAdam Hornáček 41a99355ddSVladimir Kotal <properties> 42a99355ddSVladimir Kotal <version>${project.version}</version> 43a99355ddSVladimir Kotal </properties> 44a99355ddSVladimir Kotal 450170aac5SAdam Hornáček <dependencies> 460170aac5SAdam Hornáček <dependency> 470170aac5SAdam Hornáček <groupId>org.apache.bcel</groupId> 480170aac5SAdam Hornáček <artifactId>bcel</artifactId> 490170aac5SAdam Hornáček </dependency> 500170aac5SAdam Hornáček <dependency> 511e75da15SVladimir Kotal <groupId>org.apache.commons</groupId> 521e75da15SVladimir Kotal <artifactId>commons-lang3</artifactId> 531e75da15SVladimir Kotal <version>${apache-commons-lang3.version}</version> 541e75da15SVladimir Kotal </dependency> 551e75da15SVladimir Kotal <dependency> 568ba3bf89SChris Fraire <groupId>org.apache.commons</groupId> 578ba3bf89SChris Fraire <artifactId>commons-compress</artifactId> 588ba3bf89SChris Fraire <version>1.19</version> 598ba3bf89SChris Fraire </dependency> 608ba3bf89SChris Fraire <dependency> 610170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 620170aac5SAdam Hornáček <artifactId>lucene-core</artifactId> 630170aac5SAdam Hornáček </dependency> 640170aac5SAdam Hornáček <dependency> 650170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 660170aac5SAdam Hornáček <artifactId>lucene-analyzers-common</artifactId> 670170aac5SAdam Hornáček </dependency> 680170aac5SAdam Hornáček <dependency> 690170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 702cacd6e7SAdam Hornáček <artifactId>lucene-highlighter</artifactId> 712cacd6e7SAdam Hornáček </dependency> 722cacd6e7SAdam Hornáček <dependency> 732cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 742cacd6e7SAdam Hornáček <artifactId>lucene-join</artifactId> 752cacd6e7SAdam Hornáček </dependency> 762cacd6e7SAdam Hornáček <dependency> 772cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 782cacd6e7SAdam Hornáček <artifactId>lucene-memory</artifactId> 792cacd6e7SAdam Hornáček </dependency> 802cacd6e7SAdam Hornáček <dependency> 812cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 822cacd6e7SAdam Hornáček <artifactId>lucene-queries</artifactId> 832cacd6e7SAdam Hornáček </dependency> 842cacd6e7SAdam Hornáček <dependency> 852cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 860170aac5SAdam Hornáček <artifactId>lucene-queryparser</artifactId> 870170aac5SAdam Hornáček </dependency> 880170aac5SAdam Hornáček <dependency> 890170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 90f11f248bSAdam Hornáček <artifactId>lucene-backward-codecs</artifactId> 91f11f248bSAdam Hornáček <version>${lucene.version}</version> 92f11f248bSAdam Hornáček </dependency> 93f11f248bSAdam Hornáček <dependency> 94f11f248bSAdam Hornáček <groupId>org.apache.lucene</groupId> 950170aac5SAdam Hornáček <artifactId>lucene-suggest</artifactId> 960170aac5SAdam Hornáček </dependency> 970170aac5SAdam Hornáček <dependency> 980170aac5SAdam Hornáček <groupId>javax.servlet</groupId> 99e393cb49SAdam Hornáček <artifactId>javax.servlet-api</artifactId> 1000170aac5SAdam Hornáček </dependency> 1010170aac5SAdam Hornáček <dependency> 1020170aac5SAdam Hornáček <groupId>org.apache.ant</groupId> 1030170aac5SAdam Hornáček <artifactId>ant</artifactId> 1040170aac5SAdam Hornáček </dependency> 1051a2bb6b6SAdam Hornáček <dependency> <!-- TODO: remove! (moving Messages to web module) --> 1061a2bb6b6SAdam Hornáček <groupId>org.glassfish.jersey.ext</groupId> 1071a2bb6b6SAdam Hornáček <artifactId>jersey-bean-validation</artifactId> 1084ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 1094ce4e2b9SAdam Hornáček </dependency> 1104ce4e2b9SAdam Hornáček <dependency> 1114ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.media</groupId> 1124ce4e2b9SAdam Hornáček <artifactId>jersey-media-json-jackson</artifactId> 1134ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 1144ce4e2b9SAdam Hornáček </dependency> 1154ce4e2b9SAdam Hornáček <dependency> 1161a2bb6b6SAdam Hornáček <groupId>org.glassfish.jersey.core</groupId> 1171a2bb6b6SAdam Hornáček <artifactId>jersey-client</artifactId> 1184ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 1194ce4e2b9SAdam Hornáček </dependency> 1204ce4e2b9SAdam Hornáček <dependency> 1211a2bb6b6SAdam Hornáček <groupId>org.glassfish.jersey.inject</groupId> 1221a2bb6b6SAdam Hornáček <artifactId>jersey-hk2</artifactId> 1231a2bb6b6SAdam Hornáček <version>${jersey.version}</version> 1244ce4e2b9SAdam Hornáček </dependency> 1254ce4e2b9SAdam Hornáček <dependency> 1265f96ffbeSDalibor Skrobak <groupId>org.junit.jupiter</groupId> 1275f96ffbeSDalibor Skrobak <artifactId>junit-jupiter-engine</artifactId> 1285f96ffbeSDalibor Skrobak <scope>test</scope> 1295f96ffbeSDalibor Skrobak </dependency> 1305f96ffbeSDalibor Skrobak <dependency> 1315f96ffbeSDalibor Skrobak <groupId>org.junit.vintage</groupId> 1325f96ffbeSDalibor Skrobak <artifactId>junit-vintage-engine</artifactId> 1330170aac5SAdam Hornáček <scope>test</scope> 1340170aac5SAdam Hornáček </dependency> 1351a2bb6b6SAdam Hornáček <dependency> <!-- TODO: remove! (moving Messages to web module) --> 1364ce4e2b9SAdam Hornáček <groupId>org.awaitility</groupId> 1374ce4e2b9SAdam Hornáček <artifactId>awaitility</artifactId> 1380223f1b8SAdam Hornacek <version>3.1.6</version> 1394ce4e2b9SAdam Hornáček <scope>test</scope> 1404ce4e2b9SAdam Hornáček </dependency> 141911e8af0SAdam Hornáček <dependency> 142911e8af0SAdam Hornáček <groupId>org.glassfish.jersey.test-framework.providers</groupId> 143911e8af0SAdam Hornáček <artifactId>jersey-test-framework-provider-grizzly2</artifactId> 144911e8af0SAdam Hornáček <version>${jersey.version}</version> 145911e8af0SAdam Hornáček <scope>test</scope> 146911e8af0SAdam Hornáček </dependency> 147911e8af0SAdam Hornáček <dependency> 148911e8af0SAdam Hornáček <groupId>org.mockito</groupId> 149911e8af0SAdam Hornáček <artifactId>mockito-core</artifactId> 1500223f1b8SAdam Hornacek <version>2.28.2</version> 151911e8af0SAdam Hornáček <scope>test</scope> 152911e8af0SAdam Hornáček </dependency> 153a55b429eSAdam Hornáček <dependency> 154a55b429eSAdam Hornáček <groupId>com.cronutils</groupId> 155a55b429eSAdam Hornáček <artifactId>cron-utils</artifactId> 156a55b429eSAdam Hornáček <version>7.0.2</version> 157a55b429eSAdam Hornáček </dependency> 1583bd78204SVladimir Kotal <dependency> 1593bd78204SVladimir Kotal <groupId>org.jvnet.hudson</groupId> 1603bd78204SVladimir Kotal <artifactId>org.suigeneris.jrcs.diff</artifactId> 1613bd78204SVladimir Kotal <version>0.4.2</version> 1623bd78204SVladimir Kotal </dependency> 1633bd78204SVladimir Kotal <dependency> 1643bd78204SVladimir Kotal <groupId>org.jvnet.hudson</groupId> 1653bd78204SVladimir Kotal <artifactId>org.suigeneris.jrcs.rcs</artifactId> 1663bd78204SVladimir Kotal <version>0.4.2</version> 1673bd78204SVladimir Kotal </dependency> 168fd8f155eSVladimir Kotal <dependency> 169fd8f155eSVladimir Kotal <groupId>javax.xml.bind</groupId> 170fd8f155eSVladimir Kotal <artifactId>jaxb-api</artifactId> 171fd8f155eSVladimir Kotal <version>2.3.0</version> 172fd8f155eSVladimir Kotal </dependency> 173fd8f155eSVladimir Kotal <dependency> 174fd8f155eSVladimir Kotal <groupId>com.sun.xml.bind</groupId> 175fd8f155eSVladimir Kotal <artifactId>jaxb-core</artifactId> 176fd8f155eSVladimir Kotal <version>2.3.0</version> 177fd8f155eSVladimir Kotal </dependency> 178fd8f155eSVladimir Kotal <dependency> 179fd8f155eSVladimir Kotal <groupId>com.sun.xml.bind</groupId> 180fd8f155eSVladimir Kotal <artifactId>jaxb-impl</artifactId> 181fd8f155eSVladimir Kotal <version>2.3.0</version> 182fd8f155eSVladimir Kotal </dependency> 183fd8f155eSVladimir Kotal <dependency> 184fd8f155eSVladimir Kotal <groupId>javax.activation</groupId> 185fd8f155eSVladimir Kotal <artifactId>activation</artifactId> 186fd8f155eSVladimir Kotal <version>1.1.1</version> 187fd8f155eSVladimir Kotal </dependency> 1887eb5e2ffSVladimir Kotal <dependency> 1897eb5e2ffSVladimir Kotal <groupId>com.fasterxml.jackson.core</groupId> 1907eb5e2ffSVladimir Kotal <artifactId>jackson-databind</artifactId> 1917eb5e2ffSVladimir Kotal <version>${jackson.version}</version> 1927eb5e2ffSVladimir Kotal </dependency> 1937eb5e2ffSVladimir Kotal <dependency> 1947eb5e2ffSVladimir Kotal <groupId>com.fasterxml.jackson.core</groupId> 1957eb5e2ffSVladimir Kotal <artifactId>jackson-annotations</artifactId> 1967eb5e2ffSVladimir Kotal <version>${jackson.version}</version> 1977eb5e2ffSVladimir Kotal </dependency> 1980170aac5SAdam Hornáček </dependencies> 1990170aac5SAdam Hornáček 20008a0c20eSJorgen Austvik <build> 20108a0c20eSJorgen Austvik <plugins> 2023e49081eSLubos Kosco<!-- jflex:generate plugin HAS to be the first one which runs in generate-sources phase!!! --> 2033e49081eSLubos Kosco <plugin> 2043e49081eSLubos Kosco <groupId>de.jflex</groupId> 2053e49081eSLubos Kosco <artifactId>jflex-maven-plugin</artifactId> 2063e49081eSLubos Kosco <version>1.7.0</version> 2073e49081eSLubos Kosco <executions> 2083e49081eSLubos Kosco <execution> 2093e49081eSLubos Kosco <goals> 2103e49081eSLubos Kosco <goal>generate</goal> 2113e49081eSLubos Kosco </goals> 2123e49081eSLubos Kosco <configuration> 2133e49081eSLubos Kosco <lexDefinitions> 2143e49081eSLubos Kosco <lexDefinition>${basedir}/target/jflex-sources</lexDefinition> 2153e49081eSLubos Kosco </lexDefinitions> 2163e49081eSLubos Kosco </configuration> 2173e49081eSLubos Kosco </execution> 2183e49081eSLubos Kosco </executions> 2193e49081eSLubos Kosco </plugin> 2203e49081eSLubos Kosco 221a99355ddSVladimir Kotal <plugin> 222a99355ddSVladimir Kotal <groupId>pl.project13.maven</groupId> 223a99355ddSVladimir Kotal <artifactId>git-commit-id-plugin</artifactId> 224a99355ddSVladimir Kotal <version>2.2.4</version> 225a99355ddSVladimir Kotal <configuration> 226a99355ddSVladimir Kotal <includeOnlyProperties> 227ba73b440SKryštof Tulinger <includeOnlyProperty>^git.commit.id</includeOnlyProperty> 228a99355ddSVladimir Kotal </includeOnlyProperties> 229e5e4204aSVladimir Kotal <failOnNoGitDirectory>false</failOnNoGitDirectory> 230a99355ddSVladimir Kotal </configuration> 231a99355ddSVladimir Kotal <executions> 232a99355ddSVladimir Kotal <execution> 233a99355ddSVladimir Kotal <id>get-the-git-infos</id> 234a99355ddSVladimir Kotal <goals> 235a99355ddSVladimir Kotal <goal>revision</goal> 236a99355ddSVladimir Kotal </goals> 237a99355ddSVladimir Kotal <phase>initialize</phase> 238a99355ddSVladimir Kotal </execution> 239a99355ddSVladimir Kotal <execution> 240a99355ddSVladimir Kotal <id>validate-the-git-infos</id> 241a99355ddSVladimir Kotal <goals> 242a99355ddSVladimir Kotal <goal>validateRevision</goal> 243a99355ddSVladimir Kotal </goals> 244a99355ddSVladimir Kotal <phase>package</phase> 245a99355ddSVladimir Kotal </execution> 246a99355ddSVladimir Kotal </executions> 247a99355ddSVladimir Kotal </plugin> 248a99355ddSVladimir Kotal <plugin> 249a99355ddSVladimir Kotal <groupId>org.codehaus.mojo</groupId> 250a99355ddSVladimir Kotal <artifactId>properties-maven-plugin</artifactId> 251a99355ddSVladimir Kotal <version>1.0.0</version> 252a99355ddSVladimir Kotal <executions> 253a99355ddSVladimir Kotal <execution> 254a99355ddSVladimir Kotal <id>generate-info-properties</id> 255a99355ddSVladimir Kotal <phase>generate-resources</phase> 256a99355ddSVladimir Kotal <goals> 257a99355ddSVladimir Kotal <goal>write-project-properties</goal> 258a99355ddSVladimir Kotal </goals> 259a99355ddSVladimir Kotal <configuration> 260a99355ddSVladimir Kotal <outputFile> 261a99355ddSVladimir Kotal ${project.build.outputDirectory}/org/opengrok/indexer/info.properties 262a99355ddSVladimir Kotal </outputFile> 263a99355ddSVladimir Kotal </configuration> 264a99355ddSVladimir Kotal </execution> 265a99355ddSVladimir Kotal </executions> 266a99355ddSVladimir Kotal </plugin> 267a99355ddSVladimir Kotal <plugin> 268a99355ddSVladimir Kotal <groupId>com.google.code.maven-replacer-plugin</groupId> 269a99355ddSVladimir Kotal <artifactId>replacer</artifactId> 270a99355ddSVladimir Kotal <version>1.5.3</version> 271a99355ddSVladimir Kotal <executions> 272a99355ddSVladimir Kotal <execution> 273a99355ddSVladimir Kotal <id>perform-git-substitutions</id> 274a99355ddSVladimir Kotal <goals> 275a99355ddSVladimir Kotal <goal>replace</goal> 276a99355ddSVladimir Kotal </goals> 277a99355ddSVladimir Kotal <phase>process-resources</phase> 278a99355ddSVladimir Kotal <configuration> 279a99355ddSVladimir Kotal <filesToInclude> 280a99355ddSVladimir Kotal ${project.build.outputDirectory}/org/opengrok/indexer/info.properties 281a99355ddSVladimir Kotal </filesToInclude> 282a99355ddSVladimir Kotal <replacements> 283a99355ddSVladimir Kotal <replacement> 284ba73b440SKryštof Tulinger <token>git.commit.id.abbrev</token> 285ba73b440SKryštof Tulinger <value>changeset_short</value> 286ba73b440SKryštof Tulinger </replacement> 287ba73b440SKryštof Tulinger <replacement> 288a99355ddSVladimir Kotal <token>git.commit.id</token> 289a99355ddSVladimir Kotal <value>changeset</value> 290a99355ddSVladimir Kotal </replacement> 291a99355ddSVladimir Kotal </replacements> 292a99355ddSVladimir Kotal <quiet>false</quiet> 293a99355ddSVladimir Kotal </configuration> 294a99355ddSVladimir Kotal </execution> 295a329c371SVladimir Kotal <execution> 296a329c371SVladimir Kotal <!-- patches jflex generated files to stop increasing buffer beyond token size that lucene accepts 297a329c371SVladimir Kotal https://github.com/OpenGrok/OpenGrok/issues/1170 make parsers stop producing tokens > 32766 chars 298a329c371SVladimir Kotal at least for PlainFullTokenizer, PlainSymbolTokenizer, JavaScriptSymbolTokenizer, JavaSymbolTokenizer 299a329c371SVladimir Kotal use below 300a329c371SVladimir Kotal --> 301a329c371SVladimir Kotal <id>replace-in-jflex-sources</id> 302a329c371SVladimir Kotal <phase>generate-sources</phase> 303a329c371SVladimir Kotal <goals> 304a329c371SVladimir Kotal <goal>replace</goal> 305a329c371SVladimir Kotal </goals> 306a329c371SVladimir Kotal <configuration> 307a329c371SVladimir Kotal <filesToInclude> 3083e49081eSLubos Kosco ${basedir}/target/generated-sources/jflex/org/opengrok/indexer/analysis/java/JavaSymbolTokenizer.java,${basedir}/target/generated-sources/jflex/org/opengrok/indexer/analysis/javascript/JavaScriptSymbolTokenizer.java,${basedir}/target/generated-sources/jflex/org/opengrok/indexer/analysis/json/JsonSymbolTokenizer.java,${basedir}/target/generated-sources/jflex/org/opengrok/indexer/analysis/plain/PlainFullTokenizer.java,${basedir}/target/generated-sources/jflex/org/opengrok/indexer/analysis/plain/PlainSymbolTokenizer.java 309a329c371SVladimir Kotal </filesToInclude> 310a329c371SVladimir Kotal <replacements> 3113db07792SVladimir Kotal <!-- 3123db07792SVladimir Kotal needed for HTML 5 compliance (javadoc in JDK 11) 3133db07792SVladimir Kotal workaround for https://github.com/jflex-de/jflex/issues/534 3143db07792SVladimir Kotal --> 3153db07792SVladimir Kotal <replacement> 3163db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt.txt</tokenFile> 3173db07792SVladimir Kotal <valueFile>${basedir}/jflex-code.txt</valueFile> 3183db07792SVladimir Kotal </replacement> 3193db07792SVladimir Kotal <replacement> 3203db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt-end.txt</tokenFile> 3213db07792SVladimir Kotal <valueFile>${basedir}/jflex-code-end.txt</valueFile> 3223db07792SVladimir Kotal </replacement> 3233db07792SVladimir Kotal 324a329c371SVladimir Kotal <replacement> 325a329c371SVladimir Kotal <token>private static final int ZZ_BUFFERSIZE =</token> 326a329c371SVladimir Kotal <value>private int ZZ_BUFFERSIZE =</value> 327a329c371SVladimir Kotal </replacement> 328a329c371SVladimir Kotal <replacement> 329a329c371SVladimir Kotal <token>int requested = zzBuffer\.length - zzEndRead;</token> 330a329c371SVladimir Kotal <value>int requested = zzBuffer.length - zzEndRead - zzFinalHighSurrogate;</value> 331a329c371SVladimir Kotal </replacement> 332a329c371SVladimir Kotal <replacement> 333a329c371SVladimir Kotal <token>(zzFinalHighSurrogate = 1;)(\r?\n)</token> 334a329c371SVladimir Kotal <value>$1$2 if (numRead == 1) { return true; }$2</value> 335a329c371SVladimir Kotal </replacement> 336a329c371SVladimir Kotal <replacement> 337a329c371SVladimir Kotal <token>[ \t]*/\* is the buffer big enough\? \*/\s+if \(zzCurrentPos >= zzBuffer\.length.*?\}[ \t]*\r?\n</token> 338a329c371SVladimir Kotal <value></value> 339a329c371SVladimir Kotal </replacement> 340a329c371SVladimir Kotal <!-- also revert 0 character check that got in with 1.6.1 : https://github.com/jflex-de/jflex/blob/master/jflex/examples/zero-reader/README.md --> 341a329c371SVladimir Kotal <replacement> 342a329c371SVladimir Kotal <token>[ \t]*/\* not supposed to occur according to specification of java\.io\.Reader \*/\s+if \(numRead == 0.*?\}[ \t]*\r?\n</token> 343a329c371SVladimir Kotal <value></value> 344a329c371SVladimir Kotal </replacement> 345a329c371SVladimir Kotal </replacements> 346a329c371SVladimir Kotal <regexFlags> 347a329c371SVladimir Kotal <regexFlag>DOTALL</regexFlag> 348a329c371SVladimir Kotal </regexFlags> 349a329c371SVladimir Kotal </configuration> 350a329c371SVladimir Kotal </execution> 3513db07792SVladimir Kotal 3523db07792SVladimir Kotal <execution> 3533db07792SVladimir Kotal <!-- 3543db07792SVladimir Kotal needed for HTML 5 compliance (javadoc in JDK 11) 3553db07792SVladimir Kotal workaround for https://github.com/jflex-de/jflex/issues/534 3563db07792SVladimir Kotal --> 3573db07792SVladimir Kotal <id>replace-tt-with-code-in-jflex-sources</id> 3583db07792SVladimir Kotal <phase>generate-sources</phase> 3593db07792SVladimir Kotal 3603db07792SVladimir Kotal <goals> 3613db07792SVladimir Kotal <goal>replace</goal> 3623db07792SVladimir Kotal </goals> 3633db07792SVladimir Kotal <configuration> 3643db07792SVladimir Kotal <filesToInclude> 3653db07792SVladimir Kotal ${basedir}/target/generated-sources/jflex/**/*.java 3663db07792SVladimir Kotal </filesToInclude> 3673db07792SVladimir Kotal <replacements> 3683db07792SVladimir Kotal <replacement> 3693db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt.txt</tokenFile> 3703db07792SVladimir Kotal <valueFile>${basedir}/jflex-code.txt</valueFile> 3713db07792SVladimir Kotal </replacement> 3723db07792SVladimir Kotal <replacement> 3733db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt-end.txt</tokenFile> 3743db07792SVladimir Kotal <valueFile>${basedir}/jflex-code-end.txt</valueFile> 3753db07792SVladimir Kotal </replacement> 3763db07792SVladimir Kotal </replacements> 3773db07792SVladimir Kotal </configuration> 3783db07792SVladimir Kotal </execution> 379a99355ddSVladimir Kotal </executions> 380a99355ddSVladimir Kotal </plugin> 381e0f7ec00SKnut Anders Hatlen <plugin> 382e0f7ec00SKnut Anders Hatlen <groupId>org.apache.maven.plugins</groupId> 383e0f7ec00SKnut Anders Hatlen <artifactId>maven-jar-plugin</artifactId> 3849f619df4SLubos Kosco <version>3.0.2</version> 385e0f7ec00SKnut Anders Hatlen <configuration> 386e0f7ec00SKnut Anders Hatlen <archive> 387e0f7ec00SKnut Anders Hatlen <manifest> 388686556f2SAdam Hornáček <mainClass>org.opengrok.indexer.index.Indexer</mainClass> 389e0f7ec00SKnut Anders Hatlen <addClasspath>true</addClasspath> 390e0f7ec00SKnut Anders Hatlen <classpathPrefix>lib/</classpathPrefix> 391e0f7ec00SKnut Anders Hatlen </manifest> 392e0f7ec00SKnut Anders Hatlen <manifestEntries> 393e0f7ec00SKnut Anders Hatlen </manifestEntries> 394e0f7ec00SKnut Anders Hatlen </archive> 395e0f7ec00SKnut Anders Hatlen </configuration> 3961a2bb6b6SAdam Hornáček <executions> <!-- so the web module can use test classes from indexer module --> 3971a2bb6b6SAdam Hornáček <execution> 3981a2bb6b6SAdam Hornáček <goals> 3991a2bb6b6SAdam Hornáček <goal>test-jar</goal> 4001a2bb6b6SAdam Hornáček </goals> 4011a2bb6b6SAdam Hornáček </execution> 4021a2bb6b6SAdam Hornáček </executions> 403e0f7ec00SKnut Anders Hatlen </plugin> 404e0f7ec00SKnut Anders Hatlen 40508a0c20eSJorgen Austvik <plugin> 40645ec3841SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 4072e3d7e6eSJorgen Austvik <artifactId>maven-antrun-plugin</artifactId> 4089f619df4SLubos Kosco <version>1.8</version> 4092e3d7e6eSJorgen Austvik <executions> 4102e3d7e6eSJorgen Austvik <execution> 41158f88ff1SChris Fraire <id>collect-lex-lexh</id> 41258f88ff1SChris Fraire <phase>initialize</phase> 41358f88ff1SChris Fraire <configuration> 41458f88ff1SChris Fraire <target> 415eeb7e5b3SAdam Hornáček <property name="src.dir" value="src/main/resources"/> 41658f88ff1SChris Fraire <property name="tgt.dir" value="${basedir}/target/jflex-sources"/> 41758f88ff1SChris Fraire <ant target="-collect-lex-lexh"/> 41858f88ff1SChris Fraire </target> 41958f88ff1SChris Fraire </configuration> 42058f88ff1SChris Fraire <goals> 42158f88ff1SChris Fraire <goal>run</goal> 42258f88ff1SChris Fraire </goals> 42358f88ff1SChris Fraire </execution> 42458f88ff1SChris Fraire <execution> 4252e3d7e6eSJorgen Austvik <id>build-config-files</id> 4262e3d7e6eSJorgen Austvik <phase>process-test-classes</phase> 4272e3d7e6eSJorgen Austvik <goals> 4282e3d7e6eSJorgen Austvik <goal>run</goal> 4292e3d7e6eSJorgen Austvik </goals> 4302e3d7e6eSJorgen Austvik <configuration> 43129fe9da1SChris Fraire <target unless="skipTests"> 43218446c8aSKnut Anders Hatlen <ant target="-post-compile-test"/> 43318446c8aSKnut Anders Hatlen </target> 4342e3d7e6eSJorgen Austvik </configuration> 4352e3d7e6eSJorgen Austvik </execution> 4362e3d7e6eSJorgen Austvik </executions> 4372e3d7e6eSJorgen Austvik </plugin> 4382e3d7e6eSJorgen Austvik 439aa4907e2SLubos Kosco <plugin> 440aa4907e2SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 4413db07792SVladimir Kotal <artifactId>maven-checkstyle-plugin</artifactId> 4423db07792SVladimir Kotal </plugin> 4433db07792SVladimir Kotal <plugin> 4443db07792SVladimir Kotal <groupId>org.apache.maven.plugins</groupId> 445aa4907e2SLubos Kosco <artifactId>maven-surefire-plugin</artifactId> 446aa4907e2SLubos Kosco <configuration> 447aa4907e2SLubos Kosco <excludes> 448aa4907e2SLubos Kosco <!-- Test helper class with name that confuses surefire --> 449aa4907e2SLubos Kosco <exclude>**/TestRepository.java</exclude> 450aa4907e2SLubos Kosco </excludes> 4513db07792SVladimir Kotal <argLine>@{surefireArgLine}</argLine> 452aa4907e2SLubos Kosco </configuration> 453aa4907e2SLubos Kosco </plugin> 45408a0c20eSJorgen Austvik </plugins> 45508a0c20eSJorgen Austvik </build> 45608a0c20eSJorgen Austvik 4573db07792SVladimir Kotal <profiles> 4583db07792SVladimir Kotal <profile> 4593db07792SVladimir Kotal <id>java9plus</id> 4603db07792SVladimir Kotal <activation> 4613db07792SVladimir Kotal <jdk>[9,18]</jdk> 4623db07792SVladimir Kotal </activation> 4633db07792SVladimir Kotal <build> 4643db07792SVladimir Kotal <plugins> 4653db07792SVladimir Kotal <plugin> 4663db07792SVladimir Kotal <groupId>org.apache.maven.plugins</groupId> 4673db07792SVladimir Kotal <artifactId>maven-surefire-plugin</artifactId> 4683db07792SVladimir Kotal <configuration> 4693db07792SVladimir Kotal <excludes> 4703db07792SVladimir Kotal <!-- Test helper class with name that confuses surefire --> 4713db07792SVladimir Kotal <exclude>**/TestRepository.java</exclude> 4723db07792SVladimir Kotal </excludes> 4733db07792SVladimir Kotal <argLine> 4743db07792SVladimir Kotal @{surefireArgLine} 4753db07792SVladimir Kotal --illegal-access=permit 4763db07792SVladimir Kotal </argLine> 4773db07792SVladimir Kotal </configuration> 4783db07792SVladimir Kotal </plugin> 4793db07792SVladimir Kotal </plugins> 4803db07792SVladimir Kotal </build> 4813db07792SVladimir Kotal </profile> 4829f2d396bSVladimir Kotal 4839f2d396bSVladimir Kotal <profile> 4849f2d396bSVladimir Kotal <id>Windows environment</id> 4859f2d396bSVladimir Kotal <activation> 4869f2d396bSVladimir Kotal <os> 4879f2d396bSVladimir Kotal <family>Windows</family> 4889f2d396bSVladimir Kotal </os> 4899f2d396bSVladimir Kotal </activation> 4909f2d396bSVladimir Kotal <build> 4919f2d396bSVladimir Kotal <plugins> 4929f2d396bSVladimir Kotal <plugin> 4939f2d396bSVladimir Kotal <groupId>org.apache.maven.plugins</groupId> 4949f2d396bSVladimir Kotal <artifactId>maven-surefire-plugin</artifactId> 4959f2d396bSVladimir Kotal <configuration> 4969f2d396bSVladimir Kotal <excludes> 4979f2d396bSVladimir Kotal <exclude>**/*XrefTest.java</exclude> 4989f2d396bSVladimir Kotal <exclude>**/HistoryGuruTest.java</exclude> 4999f2d396bSVladimir Kotal </excludes> 5009f2d396bSVladimir Kotal </configuration> 5019f2d396bSVladimir Kotal </plugin> 5029f2d396bSVladimir Kotal </plugins> 5039f2d396bSVladimir Kotal </build> 5049f2d396bSVladimir Kotal </profile> 5053db07792SVladimir Kotal </profiles> 5063db07792SVladimir Kotal 50708a0c20eSJorgen Austvik</project> 508