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 2156f072caSAdam HornáčekCopyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. 22431a6d7cSChris FrairePortions Copyright (c) 2017-2018, Chris Fraire <cfraire@me.com>. 2318446c8aSKnut Anders Hatlen 2418446c8aSKnut Anders Hatlen--> 250170aac5SAdam 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"> 2608a0c20eSJorgen Austvik <modelVersion>4.0.0</modelVersion> 2708a0c20eSJorgen Austvik 2808a0c20eSJorgen Austvik <parent> 2956f072caSAdam Hornáček <groupId>org.opengrok</groupId> 306ed99b2dSVladimir Kotal <artifactId>opengrok-top</artifactId> 31658703f9SVladimir Kotal <version>1.3.3</version> 3208a0c20eSJorgen Austvik </parent> 3308a0c20eSJorgen Austvik 34bb76b0b8SAdam Hornáček <artifactId>opengrok</artifactId> 35658703f9SVladimir Kotal <version>1.3.3</version> 360170aac5SAdam Hornáček <packaging>jar</packaging> 370170aac5SAdam Hornáček 380170aac5SAdam Hornáček <name>OpenGrok Indexer</name> 390170aac5SAdam Hornáček 40a99355ddSVladimir Kotal <properties> 41a99355ddSVladimir Kotal <version>${project.version}</version> 42a99355ddSVladimir Kotal </properties> 43a99355ddSVladimir Kotal 440170aac5SAdam Hornáček <dependencies> 450170aac5SAdam Hornáček <dependency> 460170aac5SAdam Hornáček <groupId>org.apache.bcel</groupId> 470170aac5SAdam Hornáček <artifactId>bcel</artifactId> 480170aac5SAdam Hornáček </dependency> 490170aac5SAdam Hornáček <dependency> 50*1e75da15SVladimir Kotal <groupId>org.apache.commons</groupId> 51*1e75da15SVladimir Kotal <artifactId>commons-lang3</artifactId> 52*1e75da15SVladimir Kotal <version>${apache-commons-lang3.version}</version> 53*1e75da15SVladimir Kotal </dependency> 54*1e75da15SVladimir Kotal <dependency> 550170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 560170aac5SAdam Hornáček <artifactId>lucene-core</artifactId> 570170aac5SAdam Hornáček </dependency> 580170aac5SAdam Hornáček <dependency> 590170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 600170aac5SAdam Hornáček <artifactId>lucene-analyzers-common</artifactId> 610170aac5SAdam Hornáček </dependency> 620170aac5SAdam Hornáček <dependency> 630170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 642cacd6e7SAdam Hornáček <artifactId>lucene-highlighter</artifactId> 652cacd6e7SAdam Hornáček </dependency> 662cacd6e7SAdam Hornáček <dependency> 672cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 682cacd6e7SAdam Hornáček <artifactId>lucene-join</artifactId> 692cacd6e7SAdam Hornáček </dependency> 702cacd6e7SAdam Hornáček <dependency> 712cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 722cacd6e7SAdam Hornáček <artifactId>lucene-memory</artifactId> 732cacd6e7SAdam Hornáček </dependency> 742cacd6e7SAdam Hornáček <dependency> 752cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 762cacd6e7SAdam Hornáček <artifactId>lucene-queries</artifactId> 772cacd6e7SAdam Hornáček </dependency> 782cacd6e7SAdam Hornáček <dependency> 792cacd6e7SAdam Hornáček <groupId>org.apache.lucene</groupId> 800170aac5SAdam Hornáček <artifactId>lucene-queryparser</artifactId> 810170aac5SAdam Hornáček </dependency> 820170aac5SAdam Hornáček <dependency> 830170aac5SAdam Hornáček <groupId>org.apache.lucene</groupId> 84f11f248bSAdam Hornáček <artifactId>lucene-backward-codecs</artifactId> 85f11f248bSAdam Hornáček <version>${lucene.version}</version> 86f11f248bSAdam Hornáček </dependency> 87f11f248bSAdam Hornáček <dependency> 88f11f248bSAdam Hornáček <groupId>org.apache.lucene</groupId> 890170aac5SAdam Hornáček <artifactId>lucene-suggest</artifactId> 900170aac5SAdam Hornáček </dependency> 910170aac5SAdam Hornáček <dependency> 920170aac5SAdam Hornáček <groupId>javax.servlet</groupId> 93e393cb49SAdam Hornáček <artifactId>javax.servlet-api</artifactId> 940170aac5SAdam Hornáček </dependency> 950170aac5SAdam Hornáček <dependency> 960170aac5SAdam Hornáček <groupId>org.apache.ant</groupId> 970170aac5SAdam Hornáček <artifactId>ant</artifactId> 980170aac5SAdam Hornáček </dependency> 991a2bb6b6SAdam Hornáček <dependency> <!-- TODO: remove! (moving Messages to web module) --> 1001a2bb6b6SAdam Hornáček <groupId>org.glassfish.jersey.ext</groupId> 1011a2bb6b6SAdam Hornáček <artifactId>jersey-bean-validation</artifactId> 1024ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 1034ce4e2b9SAdam Hornáček </dependency> 1044ce4e2b9SAdam Hornáček <dependency> 1054ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.media</groupId> 1064ce4e2b9SAdam Hornáček <artifactId>jersey-media-json-jackson</artifactId> 1074ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 1084ce4e2b9SAdam Hornáček </dependency> 1094ce4e2b9SAdam Hornáček <dependency> 1101a2bb6b6SAdam Hornáček <groupId>org.glassfish.jersey.core</groupId> 1111a2bb6b6SAdam Hornáček <artifactId>jersey-client</artifactId> 1124ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 1134ce4e2b9SAdam Hornáček </dependency> 1144ce4e2b9SAdam Hornáček <dependency> 1151a2bb6b6SAdam Hornáček <groupId>org.glassfish.jersey.inject</groupId> 1161a2bb6b6SAdam Hornáček <artifactId>jersey-hk2</artifactId> 1171a2bb6b6SAdam Hornáček <version>${jersey.version}</version> 1184ce4e2b9SAdam Hornáček </dependency> 1194ce4e2b9SAdam Hornáček <dependency> 1205f96ffbeSDalibor Skrobak <groupId>org.junit.jupiter</groupId> 1215f96ffbeSDalibor Skrobak <artifactId>junit-jupiter-engine</artifactId> 1225f96ffbeSDalibor Skrobak <scope>test</scope> 1235f96ffbeSDalibor Skrobak </dependency> 1245f96ffbeSDalibor Skrobak <dependency> 1255f96ffbeSDalibor Skrobak <groupId>org.junit.vintage</groupId> 1265f96ffbeSDalibor Skrobak <artifactId>junit-vintage-engine</artifactId> 1270170aac5SAdam Hornáček <scope>test</scope> 1280170aac5SAdam Hornáček </dependency> 1291a2bb6b6SAdam Hornáček <dependency> <!-- TODO: remove! (moving Messages to web module) --> 1304ce4e2b9SAdam Hornáček <groupId>org.awaitility</groupId> 1314ce4e2b9SAdam Hornáček <artifactId>awaitility</artifactId> 1320223f1b8SAdam Hornacek <version>3.1.6</version> 1334ce4e2b9SAdam Hornáček <scope>test</scope> 1344ce4e2b9SAdam Hornáček </dependency> 135911e8af0SAdam Hornáček <dependency> 136911e8af0SAdam Hornáček <groupId>org.glassfish.jersey.test-framework.providers</groupId> 137911e8af0SAdam Hornáček <artifactId>jersey-test-framework-provider-grizzly2</artifactId> 138911e8af0SAdam Hornáček <version>${jersey.version}</version> 139911e8af0SAdam Hornáček <scope>test</scope> 140911e8af0SAdam Hornáček </dependency> 141911e8af0SAdam Hornáček <dependency> 142911e8af0SAdam Hornáček <groupId>org.mockito</groupId> 143911e8af0SAdam Hornáček <artifactId>mockito-core</artifactId> 1440223f1b8SAdam Hornacek <version>2.28.2</version> 145911e8af0SAdam Hornáček <scope>test</scope> 146911e8af0SAdam Hornáček </dependency> 147a55b429eSAdam Hornáček <dependency> 148a55b429eSAdam Hornáček <groupId>com.cronutils</groupId> 149a55b429eSAdam Hornáček <artifactId>cron-utils</artifactId> 150a55b429eSAdam Hornáček <version>7.0.2</version> 151a55b429eSAdam Hornáček </dependency> 1523bd78204SVladimir Kotal <dependency> 1533bd78204SVladimir Kotal <groupId>org.jvnet.hudson</groupId> 1543bd78204SVladimir Kotal <artifactId>org.suigeneris.jrcs.diff</artifactId> 1553bd78204SVladimir Kotal <version>0.4.2</version> 1563bd78204SVladimir Kotal </dependency> 1573bd78204SVladimir Kotal <dependency> 1583bd78204SVladimir Kotal <groupId>org.jvnet.hudson</groupId> 1593bd78204SVladimir Kotal <artifactId>org.suigeneris.jrcs.rcs</artifactId> 1603bd78204SVladimir Kotal <version>0.4.2</version> 1613bd78204SVladimir Kotal </dependency> 162fd8f155eSVladimir Kotal <dependency> 163fd8f155eSVladimir Kotal <groupId>javax.xml.bind</groupId> 164fd8f155eSVladimir Kotal <artifactId>jaxb-api</artifactId> 165fd8f155eSVladimir Kotal <version>2.3.0</version> 166fd8f155eSVladimir Kotal </dependency> 167fd8f155eSVladimir Kotal <dependency> 168fd8f155eSVladimir Kotal <groupId>com.sun.xml.bind</groupId> 169fd8f155eSVladimir Kotal <artifactId>jaxb-core</artifactId> 170fd8f155eSVladimir Kotal <version>2.3.0</version> 171fd8f155eSVladimir Kotal </dependency> 172fd8f155eSVladimir Kotal <dependency> 173fd8f155eSVladimir Kotal <groupId>com.sun.xml.bind</groupId> 174fd8f155eSVladimir Kotal <artifactId>jaxb-impl</artifactId> 175fd8f155eSVladimir Kotal <version>2.3.0</version> 176fd8f155eSVladimir Kotal </dependency> 177fd8f155eSVladimir Kotal <dependency> 178fd8f155eSVladimir Kotal <groupId>javax.activation</groupId> 179fd8f155eSVladimir Kotal <artifactId>activation</artifactId> 180fd8f155eSVladimir Kotal <version>1.1.1</version> 181fd8f155eSVladimir Kotal </dependency> 1827eb5e2ffSVladimir Kotal <dependency> 1837eb5e2ffSVladimir Kotal <groupId>com.fasterxml.jackson.core</groupId> 1847eb5e2ffSVladimir Kotal <artifactId>jackson-databind</artifactId> 1857eb5e2ffSVladimir Kotal <version>${jackson.version}</version> 1867eb5e2ffSVladimir Kotal </dependency> 1877eb5e2ffSVladimir Kotal <dependency> 1887eb5e2ffSVladimir Kotal <groupId>com.fasterxml.jackson.core</groupId> 1897eb5e2ffSVladimir Kotal <artifactId>jackson-annotations</artifactId> 1907eb5e2ffSVladimir Kotal <version>${jackson.version}</version> 1917eb5e2ffSVladimir Kotal </dependency> 1920170aac5SAdam Hornáček </dependencies> 1930170aac5SAdam Hornáček 19408a0c20eSJorgen Austvik <build> 19508a0c20eSJorgen Austvik <plugins> 1963e49081eSLubos Kosco<!-- jflex:generate plugin HAS to be the first one which runs in generate-sources phase!!! --> 1973e49081eSLubos Kosco <plugin> 1983e49081eSLubos Kosco <groupId>de.jflex</groupId> 1993e49081eSLubos Kosco <artifactId>jflex-maven-plugin</artifactId> 2003e49081eSLubos Kosco <version>1.7.0</version> 2013e49081eSLubos Kosco <executions> 2023e49081eSLubos Kosco <execution> 2033e49081eSLubos Kosco <goals> 2043e49081eSLubos Kosco <goal>generate</goal> 2053e49081eSLubos Kosco </goals> 2063e49081eSLubos Kosco <configuration> 2073e49081eSLubos Kosco <lexDefinitions> 2083e49081eSLubos Kosco <lexDefinition>${basedir}/target/jflex-sources</lexDefinition> 2093e49081eSLubos Kosco </lexDefinitions> 2103e49081eSLubos Kosco </configuration> 2113e49081eSLubos Kosco </execution> 2123e49081eSLubos Kosco </executions> 2133e49081eSLubos Kosco </plugin> 2143e49081eSLubos Kosco 215a99355ddSVladimir Kotal <plugin> 216a99355ddSVladimir Kotal <groupId>pl.project13.maven</groupId> 217a99355ddSVladimir Kotal <artifactId>git-commit-id-plugin</artifactId> 218a99355ddSVladimir Kotal <version>2.2.4</version> 219a99355ddSVladimir Kotal <configuration> 220a99355ddSVladimir Kotal <includeOnlyProperties> 221ba73b440SKryštof Tulinger <includeOnlyProperty>^git.commit.id</includeOnlyProperty> 222a99355ddSVladimir Kotal </includeOnlyProperties> 223e5e4204aSVladimir Kotal <failOnNoGitDirectory>false</failOnNoGitDirectory> 224a99355ddSVladimir Kotal </configuration> 225a99355ddSVladimir Kotal <executions> 226a99355ddSVladimir Kotal <execution> 227a99355ddSVladimir Kotal <id>get-the-git-infos</id> 228a99355ddSVladimir Kotal <goals> 229a99355ddSVladimir Kotal <goal>revision</goal> 230a99355ddSVladimir Kotal </goals> 231a99355ddSVladimir Kotal <phase>initialize</phase> 232a99355ddSVladimir Kotal </execution> 233a99355ddSVladimir Kotal <execution> 234a99355ddSVladimir Kotal <id>validate-the-git-infos</id> 235a99355ddSVladimir Kotal <goals> 236a99355ddSVladimir Kotal <goal>validateRevision</goal> 237a99355ddSVladimir Kotal </goals> 238a99355ddSVladimir Kotal <phase>package</phase> 239a99355ddSVladimir Kotal </execution> 240a99355ddSVladimir Kotal </executions> 241a99355ddSVladimir Kotal </plugin> 242a99355ddSVladimir Kotal <plugin> 243a99355ddSVladimir Kotal <groupId>org.codehaus.mojo</groupId> 244a99355ddSVladimir Kotal <artifactId>properties-maven-plugin</artifactId> 245a99355ddSVladimir Kotal <version>1.0.0</version> 246a99355ddSVladimir Kotal <executions> 247a99355ddSVladimir Kotal <execution> 248a99355ddSVladimir Kotal <id>generate-info-properties</id> 249a99355ddSVladimir Kotal <phase>generate-resources</phase> 250a99355ddSVladimir Kotal <goals> 251a99355ddSVladimir Kotal <goal>write-project-properties</goal> 252a99355ddSVladimir Kotal </goals> 253a99355ddSVladimir Kotal <configuration> 254a99355ddSVladimir Kotal <outputFile> 255a99355ddSVladimir Kotal ${project.build.outputDirectory}/org/opengrok/indexer/info.properties 256a99355ddSVladimir Kotal </outputFile> 257a99355ddSVladimir Kotal </configuration> 258a99355ddSVladimir Kotal </execution> 259a99355ddSVladimir Kotal </executions> 260a99355ddSVladimir Kotal </plugin> 261a99355ddSVladimir Kotal <plugin> 262a99355ddSVladimir Kotal <groupId>com.google.code.maven-replacer-plugin</groupId> 263a99355ddSVladimir Kotal <artifactId>replacer</artifactId> 264a99355ddSVladimir Kotal <version>1.5.3</version> 265a99355ddSVladimir Kotal <executions> 266a99355ddSVladimir Kotal <execution> 267a99355ddSVladimir Kotal <id>perform-git-substitutions</id> 268a99355ddSVladimir Kotal <goals> 269a99355ddSVladimir Kotal <goal>replace</goal> 270a99355ddSVladimir Kotal </goals> 271a99355ddSVladimir Kotal <phase>process-resources</phase> 272a99355ddSVladimir Kotal <configuration> 273a99355ddSVladimir Kotal <filesToInclude> 274a99355ddSVladimir Kotal ${project.build.outputDirectory}/org/opengrok/indexer/info.properties 275a99355ddSVladimir Kotal </filesToInclude> 276a99355ddSVladimir Kotal <replacements> 277a99355ddSVladimir Kotal <replacement> 278ba73b440SKryštof Tulinger <token>git.commit.id.abbrev</token> 279ba73b440SKryštof Tulinger <value>changeset_short</value> 280ba73b440SKryštof Tulinger </replacement> 281ba73b440SKryštof Tulinger <replacement> 282a99355ddSVladimir Kotal <token>git.commit.id</token> 283a99355ddSVladimir Kotal <value>changeset</value> 284a99355ddSVladimir Kotal </replacement> 285a99355ddSVladimir Kotal </replacements> 286a99355ddSVladimir Kotal <quiet>false</quiet> 287a99355ddSVladimir Kotal </configuration> 288a99355ddSVladimir Kotal </execution> 289a329c371SVladimir Kotal <execution> 290a329c371SVladimir Kotal <!-- patches jflex generated files to stop increasing buffer beyond token size that lucene accepts 291a329c371SVladimir Kotal https://github.com/OpenGrok/OpenGrok/issues/1170 make parsers stop producing tokens > 32766 chars 292a329c371SVladimir Kotal at least for PlainFullTokenizer, PlainSymbolTokenizer, JavaScriptSymbolTokenizer, JavaSymbolTokenizer 293a329c371SVladimir Kotal use below 294a329c371SVladimir Kotal --> 295a329c371SVladimir Kotal <id>replace-in-jflex-sources</id> 296a329c371SVladimir Kotal <phase>generate-sources</phase> 297a329c371SVladimir Kotal <goals> 298a329c371SVladimir Kotal <goal>replace</goal> 299a329c371SVladimir Kotal </goals> 300a329c371SVladimir Kotal <configuration> 301a329c371SVladimir Kotal <filesToInclude> 3023e49081eSLubos 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 303a329c371SVladimir Kotal </filesToInclude> 304a329c371SVladimir Kotal <replacements> 3053db07792SVladimir Kotal <!-- 3063db07792SVladimir Kotal needed for HTML 5 compliance (javadoc in JDK 11) 3073db07792SVladimir Kotal workaround for https://github.com/jflex-de/jflex/issues/534 3083db07792SVladimir Kotal --> 3093db07792SVladimir Kotal <replacement> 3103db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt.txt</tokenFile> 3113db07792SVladimir Kotal <valueFile>${basedir}/jflex-code.txt</valueFile> 3123db07792SVladimir Kotal </replacement> 3133db07792SVladimir Kotal <replacement> 3143db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt-end.txt</tokenFile> 3153db07792SVladimir Kotal <valueFile>${basedir}/jflex-code-end.txt</valueFile> 3163db07792SVladimir Kotal </replacement> 3173db07792SVladimir Kotal 318a329c371SVladimir Kotal <replacement> 319a329c371SVladimir Kotal <token>private static final int ZZ_BUFFERSIZE =</token> 320a329c371SVladimir Kotal <value>private int ZZ_BUFFERSIZE =</value> 321a329c371SVladimir Kotal </replacement> 322a329c371SVladimir Kotal <replacement> 323a329c371SVladimir Kotal <token>int requested = zzBuffer\.length - zzEndRead;</token> 324a329c371SVladimir Kotal <value>int requested = zzBuffer.length - zzEndRead - zzFinalHighSurrogate;</value> 325a329c371SVladimir Kotal </replacement> 326a329c371SVladimir Kotal <replacement> 327a329c371SVladimir Kotal <token>(zzFinalHighSurrogate = 1;)(\r?\n)</token> 328a329c371SVladimir Kotal <value>$1$2 if (numRead == 1) { return true; }$2</value> 329a329c371SVladimir Kotal </replacement> 330a329c371SVladimir Kotal <replacement> 331a329c371SVladimir Kotal <token>[ \t]*/\* is the buffer big enough\? \*/\s+if \(zzCurrentPos >= zzBuffer\.length.*?\}[ \t]*\r?\n</token> 332a329c371SVladimir Kotal <value></value> 333a329c371SVladimir Kotal </replacement> 334a329c371SVladimir 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 --> 335a329c371SVladimir Kotal <replacement> 336a329c371SVladimir Kotal <token>[ \t]*/\* not supposed to occur according to specification of java\.io\.Reader \*/\s+if \(numRead == 0.*?\}[ \t]*\r?\n</token> 337a329c371SVladimir Kotal <value></value> 338a329c371SVladimir Kotal </replacement> 339a329c371SVladimir Kotal </replacements> 340a329c371SVladimir Kotal <regexFlags> 341a329c371SVladimir Kotal <regexFlag>DOTALL</regexFlag> 342a329c371SVladimir Kotal </regexFlags> 343a329c371SVladimir Kotal </configuration> 344a329c371SVladimir Kotal </execution> 3453db07792SVladimir Kotal 3463db07792SVladimir Kotal <execution> 3473db07792SVladimir Kotal <!-- 3483db07792SVladimir Kotal needed for HTML 5 compliance (javadoc in JDK 11) 3493db07792SVladimir Kotal workaround for https://github.com/jflex-de/jflex/issues/534 3503db07792SVladimir Kotal --> 3513db07792SVladimir Kotal <id>replace-tt-with-code-in-jflex-sources</id> 3523db07792SVladimir Kotal <phase>generate-sources</phase> 3533db07792SVladimir Kotal 3543db07792SVladimir Kotal <goals> 3553db07792SVladimir Kotal <goal>replace</goal> 3563db07792SVladimir Kotal </goals> 3573db07792SVladimir Kotal <configuration> 3583db07792SVladimir Kotal <filesToInclude> 3593db07792SVladimir Kotal ${basedir}/target/generated-sources/jflex/**/*.java 3603db07792SVladimir Kotal </filesToInclude> 3613db07792SVladimir Kotal <replacements> 3623db07792SVladimir Kotal <replacement> 3633db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt.txt</tokenFile> 3643db07792SVladimir Kotal <valueFile>${basedir}/jflex-code.txt</valueFile> 3653db07792SVladimir Kotal </replacement> 3663db07792SVladimir Kotal <replacement> 3673db07792SVladimir Kotal <tokenFile>${basedir}/jflex-tt-end.txt</tokenFile> 3683db07792SVladimir Kotal <valueFile>${basedir}/jflex-code-end.txt</valueFile> 3693db07792SVladimir Kotal </replacement> 3703db07792SVladimir Kotal </replacements> 3713db07792SVladimir Kotal </configuration> 3723db07792SVladimir Kotal </execution> 373a99355ddSVladimir Kotal </executions> 374a99355ddSVladimir Kotal </plugin> 375e0f7ec00SKnut Anders Hatlen <plugin> 376e0f7ec00SKnut Anders Hatlen <groupId>org.apache.maven.plugins</groupId> 377e0f7ec00SKnut Anders Hatlen <artifactId>maven-jar-plugin</artifactId> 3789f619df4SLubos Kosco <version>3.0.2</version> 379e0f7ec00SKnut Anders Hatlen <configuration> 380e0f7ec00SKnut Anders Hatlen <archive> 381e0f7ec00SKnut Anders Hatlen <manifest> 382686556f2SAdam Hornáček <mainClass>org.opengrok.indexer.index.Indexer</mainClass> 383e0f7ec00SKnut Anders Hatlen <addClasspath>true</addClasspath> 384e0f7ec00SKnut Anders Hatlen <classpathPrefix>lib/</classpathPrefix> 385e0f7ec00SKnut Anders Hatlen </manifest> 386e0f7ec00SKnut Anders Hatlen <manifestEntries> 387e0f7ec00SKnut Anders Hatlen </manifestEntries> 388e0f7ec00SKnut Anders Hatlen </archive> 389e0f7ec00SKnut Anders Hatlen </configuration> 3901a2bb6b6SAdam Hornáček <executions> <!-- so the web module can use test classes from indexer module --> 3911a2bb6b6SAdam Hornáček <execution> 3921a2bb6b6SAdam Hornáček <goals> 3931a2bb6b6SAdam Hornáček <goal>test-jar</goal> 3941a2bb6b6SAdam Hornáček </goals> 3951a2bb6b6SAdam Hornáček </execution> 3961a2bb6b6SAdam Hornáček </executions> 397e0f7ec00SKnut Anders Hatlen </plugin> 398e0f7ec00SKnut Anders Hatlen 39908a0c20eSJorgen Austvik <plugin> 40045ec3841SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 4012e3d7e6eSJorgen Austvik <artifactId>maven-antrun-plugin</artifactId> 4029f619df4SLubos Kosco <version>1.8</version> 4032e3d7e6eSJorgen Austvik <executions> 4042e3d7e6eSJorgen Austvik <execution> 40558f88ff1SChris Fraire <id>collect-lex-lexh</id> 40658f88ff1SChris Fraire <phase>initialize</phase> 40758f88ff1SChris Fraire <configuration> 40858f88ff1SChris Fraire <target> 409eeb7e5b3SAdam Hornáček <property name="src.dir" value="src/main/resources"/> 41058f88ff1SChris Fraire <property name="tgt.dir" value="${basedir}/target/jflex-sources"/> 41158f88ff1SChris Fraire <ant target="-collect-lex-lexh"/> 41258f88ff1SChris Fraire </target> 41358f88ff1SChris Fraire </configuration> 41458f88ff1SChris Fraire <goals> 41558f88ff1SChris Fraire <goal>run</goal> 41658f88ff1SChris Fraire </goals> 41758f88ff1SChris Fraire </execution> 41858f88ff1SChris Fraire <execution> 4192e3d7e6eSJorgen Austvik <id>build-config-files</id> 4202e3d7e6eSJorgen Austvik <phase>process-test-classes</phase> 4212e3d7e6eSJorgen Austvik <goals> 4222e3d7e6eSJorgen Austvik <goal>run</goal> 4232e3d7e6eSJorgen Austvik </goals> 4242e3d7e6eSJorgen Austvik <configuration> 42529fe9da1SChris Fraire <target unless="skipTests"> 42618446c8aSKnut Anders Hatlen <ant target="-post-compile-test"/> 42718446c8aSKnut Anders Hatlen </target> 4282e3d7e6eSJorgen Austvik </configuration> 4292e3d7e6eSJorgen Austvik </execution> 4302e3d7e6eSJorgen Austvik </executions> 4312e3d7e6eSJorgen Austvik </plugin> 4322e3d7e6eSJorgen Austvik 433aa4907e2SLubos Kosco <plugin> 434aa4907e2SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 4353db07792SVladimir Kotal <artifactId>maven-checkstyle-plugin</artifactId> 4363db07792SVladimir Kotal </plugin> 4373db07792SVladimir Kotal <plugin> 4383db07792SVladimir Kotal <groupId>org.apache.maven.plugins</groupId> 439aa4907e2SLubos Kosco <artifactId>maven-surefire-plugin</artifactId> 440aa4907e2SLubos Kosco <configuration> 441aa4907e2SLubos Kosco <excludes> 442aa4907e2SLubos Kosco <!-- Test helper class with name that confuses surefire --> 443aa4907e2SLubos Kosco <exclude>**/TestRepository.java</exclude> 444aa4907e2SLubos Kosco </excludes> 4453db07792SVladimir Kotal <argLine>@{surefireArgLine}</argLine> 446aa4907e2SLubos Kosco </configuration> 447aa4907e2SLubos Kosco </plugin> 44808a0c20eSJorgen Austvik </plugins> 44908a0c20eSJorgen Austvik </build> 45008a0c20eSJorgen Austvik 4513db07792SVladimir Kotal <profiles> 4523db07792SVladimir Kotal <profile> 4533db07792SVladimir Kotal <id>java9plus</id> 4543db07792SVladimir Kotal <activation> 4553db07792SVladimir Kotal <jdk>[9,18]</jdk> 4563db07792SVladimir Kotal </activation> 4573db07792SVladimir Kotal <build> 4583db07792SVladimir Kotal <plugins> 4593db07792SVladimir Kotal <plugin> 4603db07792SVladimir Kotal <groupId>org.apache.maven.plugins</groupId> 4613db07792SVladimir Kotal <artifactId>maven-surefire-plugin</artifactId> 4623db07792SVladimir Kotal <configuration> 4633db07792SVladimir Kotal <excludes> 4643db07792SVladimir Kotal <!-- Test helper class with name that confuses surefire --> 4653db07792SVladimir Kotal <exclude>**/TestRepository.java</exclude> 4663db07792SVladimir Kotal </excludes> 4673db07792SVladimir Kotal <argLine> 4683db07792SVladimir Kotal @{surefireArgLine} 4693db07792SVladimir Kotal --illegal-access=permit 4703db07792SVladimir Kotal </argLine> 4713db07792SVladimir Kotal </configuration> 4723db07792SVladimir Kotal </plugin> 4733db07792SVladimir Kotal </plugins> 4743db07792SVladimir Kotal </build> 4753db07792SVladimir Kotal </profile> 4763db07792SVladimir Kotal </profiles> 4773db07792SVladimir Kotal 47808a0c20eSJorgen Austvik</project> 479