xref: /OpenGrok/opengrok-indexer/pom.xml (revision e5e4204ae11287ad776776d89b65a3042cf36452)
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>
310bbba985SVladimir Kotal        <version>1.2.8</version>
3208a0c20eSJorgen Austvik    </parent>
3308a0c20eSJorgen Austvik
34bb76b0b8SAdam Hornáček    <artifactId>opengrok</artifactId>
350bbba985SVladimir Kotal    <version>1.2.8</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>
500170aac5SAdam Hornáček            <groupId>org.apache.lucene</groupId>
510170aac5SAdam Hornáček            <artifactId>lucene-core</artifactId>
520170aac5SAdam Hornáček        </dependency>
530170aac5SAdam Hornáček        <dependency>
540170aac5SAdam Hornáček            <groupId>org.apache.lucene</groupId>
550170aac5SAdam Hornáček            <artifactId>lucene-analyzers-common</artifactId>
560170aac5SAdam Hornáček        </dependency>
570170aac5SAdam Hornáček        <dependency>
580170aac5SAdam Hornáček            <groupId>org.apache.lucene</groupId>
592cacd6e7SAdam Hornáček            <artifactId>lucene-highlighter</artifactId>
602cacd6e7SAdam Hornáček        </dependency>
612cacd6e7SAdam Hornáček        <dependency>
622cacd6e7SAdam Hornáček            <groupId>org.apache.lucene</groupId>
632cacd6e7SAdam Hornáček            <artifactId>lucene-join</artifactId>
642cacd6e7SAdam Hornáček        </dependency>
652cacd6e7SAdam Hornáček        <dependency>
662cacd6e7SAdam Hornáček            <groupId>org.apache.lucene</groupId>
672cacd6e7SAdam Hornáček            <artifactId>lucene-memory</artifactId>
682cacd6e7SAdam Hornáček        </dependency>
692cacd6e7SAdam Hornáček        <dependency>
702cacd6e7SAdam Hornáček            <groupId>org.apache.lucene</groupId>
712cacd6e7SAdam Hornáček            <artifactId>lucene-queries</artifactId>
722cacd6e7SAdam Hornáček        </dependency>
732cacd6e7SAdam Hornáček        <dependency>
742cacd6e7SAdam Hornáček            <groupId>org.apache.lucene</groupId>
750170aac5SAdam Hornáček            <artifactId>lucene-queryparser</artifactId>
760170aac5SAdam Hornáček        </dependency>
770170aac5SAdam Hornáček        <dependency>
780170aac5SAdam Hornáček            <groupId>org.apache.lucene</groupId>
79f11f248bSAdam Hornáček            <artifactId>lucene-backward-codecs</artifactId>
80f11f248bSAdam Hornáček            <version>${lucene.version}</version>
81f11f248bSAdam Hornáček        </dependency>
82f11f248bSAdam Hornáček        <dependency>
83f11f248bSAdam Hornáček            <groupId>org.apache.lucene</groupId>
840170aac5SAdam Hornáček            <artifactId>lucene-suggest</artifactId>
850170aac5SAdam Hornáček        </dependency>
860170aac5SAdam Hornáček        <dependency>
870170aac5SAdam Hornáček            <groupId>javax.servlet</groupId>
88e393cb49SAdam Hornáček            <artifactId>javax.servlet-api</artifactId>
890170aac5SAdam Hornáček        </dependency>
900170aac5SAdam Hornáček        <dependency>
910170aac5SAdam Hornáček            <groupId>org.apache.ant</groupId>
920170aac5SAdam Hornáček            <artifactId>ant</artifactId>
930170aac5SAdam Hornáček        </dependency>
941a2bb6b6SAdam Hornáček        <dependency> <!-- TODO: remove! (moving Messages to web module) -->
951a2bb6b6SAdam Hornáček            <groupId>org.glassfish.jersey.ext</groupId>
961a2bb6b6SAdam Hornáček            <artifactId>jersey-bean-validation</artifactId>
974ce4e2b9SAdam Hornáček            <version>${jersey.version}</version>
984ce4e2b9SAdam Hornáček        </dependency>
994ce4e2b9SAdam Hornáček        <dependency>
1004ce4e2b9SAdam Hornáček            <groupId>org.glassfish.jersey.media</groupId>
1014ce4e2b9SAdam Hornáček            <artifactId>jersey-media-json-jackson</artifactId>
1024ce4e2b9SAdam Hornáček            <version>${jersey.version}</version>
1034ce4e2b9SAdam Hornáček        </dependency>
1044ce4e2b9SAdam Hornáček        <dependency>
1051a2bb6b6SAdam Hornáček            <groupId>org.glassfish.jersey.core</groupId>
1061a2bb6b6SAdam Hornáček            <artifactId>jersey-client</artifactId>
1074ce4e2b9SAdam Hornáček            <version>${jersey.version}</version>
1084ce4e2b9SAdam Hornáček        </dependency>
1094ce4e2b9SAdam Hornáček        <dependency>
1101a2bb6b6SAdam Hornáček            <groupId>org.glassfish.jersey.inject</groupId>
1111a2bb6b6SAdam Hornáček            <artifactId>jersey-hk2</artifactId>
1121a2bb6b6SAdam Hornáček            <version>${jersey.version}</version>
1134ce4e2b9SAdam Hornáček        </dependency>
1144ce4e2b9SAdam Hornáček        <dependency>
1150170aac5SAdam Hornáček            <groupId>junit</groupId>
1160170aac5SAdam Hornáček            <artifactId>junit</artifactId>
1170170aac5SAdam Hornáček            <scope>test</scope>
1180170aac5SAdam Hornáček        </dependency>
1191a2bb6b6SAdam Hornáček        <dependency> <!-- TODO: remove! (moving Messages to web module) -->
1204ce4e2b9SAdam Hornáček            <groupId>org.awaitility</groupId>
1214ce4e2b9SAdam Hornáček            <artifactId>awaitility</artifactId>
1224ce4e2b9SAdam Hornáček            <version>3.1.0</version>
1234ce4e2b9SAdam Hornáček            <scope>test</scope>
1244ce4e2b9SAdam Hornáček        </dependency>
125911e8af0SAdam Hornáček        <dependency>
126911e8af0SAdam Hornáček            <groupId>org.glassfish.jersey.test-framework.providers</groupId>
127911e8af0SAdam Hornáček            <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
128911e8af0SAdam Hornáček            <version>${jersey.version}</version>
129911e8af0SAdam Hornáček            <scope>test</scope>
130911e8af0SAdam Hornáček        </dependency>
131911e8af0SAdam Hornáček        <dependency>
132911e8af0SAdam Hornáček            <groupId>org.mockito</groupId>
133911e8af0SAdam Hornáček            <artifactId>mockito-core</artifactId>
134911e8af0SAdam Hornáček            <version>2.19.0</version>
135911e8af0SAdam Hornáček            <scope>test</scope>
136911e8af0SAdam Hornáček        </dependency>
137a55b429eSAdam Hornáček        <dependency>
138a55b429eSAdam Hornáček            <groupId>com.cronutils</groupId>
139a55b429eSAdam Hornáček            <artifactId>cron-utils</artifactId>
140a55b429eSAdam Hornáček            <version>7.0.2</version>
141a55b429eSAdam Hornáček        </dependency>
1423bd78204SVladimir Kotal        <dependency>
1433bd78204SVladimir Kotal            <groupId>org.jvnet.hudson</groupId>
1443bd78204SVladimir Kotal            <artifactId>org.suigeneris.jrcs.diff</artifactId>
1453bd78204SVladimir Kotal            <version>0.4.2</version>
1463bd78204SVladimir Kotal        </dependency>
1473bd78204SVladimir Kotal        <dependency>
1483bd78204SVladimir Kotal            <groupId>org.jvnet.hudson</groupId>
1493bd78204SVladimir Kotal            <artifactId>org.suigeneris.jrcs.rcs</artifactId>
1503bd78204SVladimir Kotal            <version>0.4.2</version>
1513bd78204SVladimir Kotal        </dependency>
152fd8f155eSVladimir Kotal        <dependency>
153fd8f155eSVladimir Kotal            <groupId>javax.xml.bind</groupId>
154fd8f155eSVladimir Kotal            <artifactId>jaxb-api</artifactId>
155fd8f155eSVladimir Kotal            <version>2.3.0</version>
156fd8f155eSVladimir Kotal        </dependency>
157fd8f155eSVladimir Kotal        <dependency>
158fd8f155eSVladimir Kotal            <groupId>com.sun.xml.bind</groupId>
159fd8f155eSVladimir Kotal            <artifactId>jaxb-core</artifactId>
160fd8f155eSVladimir Kotal            <version>2.3.0</version>
161fd8f155eSVladimir Kotal        </dependency>
162fd8f155eSVladimir Kotal        <dependency>
163fd8f155eSVladimir Kotal            <groupId>com.sun.xml.bind</groupId>
164fd8f155eSVladimir Kotal            <artifactId>jaxb-impl</artifactId>
165fd8f155eSVladimir Kotal            <version>2.3.0</version>
166fd8f155eSVladimir Kotal        </dependency>
167fd8f155eSVladimir Kotal        <dependency>
168fd8f155eSVladimir Kotal            <groupId>javax.activation</groupId>
169fd8f155eSVladimir Kotal            <artifactId>activation</artifactId>
170fd8f155eSVladimir Kotal            <version>1.1.1</version>
171fd8f155eSVladimir Kotal        </dependency>
1727eb5e2ffSVladimir Kotal        <dependency>
1737eb5e2ffSVladimir Kotal            <groupId>com.fasterxml.jackson.core</groupId>
1747eb5e2ffSVladimir Kotal            <artifactId>jackson-databind</artifactId>
1757eb5e2ffSVladimir Kotal            <version>${jackson.version}</version>
1767eb5e2ffSVladimir Kotal        </dependency>
1777eb5e2ffSVladimir Kotal        <dependency>
1787eb5e2ffSVladimir Kotal            <groupId>com.fasterxml.jackson.core</groupId>
1797eb5e2ffSVladimir Kotal            <artifactId>jackson-annotations</artifactId>
1807eb5e2ffSVladimir Kotal            <version>${jackson.version}</version>
1817eb5e2ffSVladimir Kotal        </dependency>
1820170aac5SAdam Hornáček    </dependencies>
1830170aac5SAdam Hornáček
18408a0c20eSJorgen Austvik    <build>
18508a0c20eSJorgen Austvik        <plugins>
1863e49081eSLubos Kosco<!-- jflex:generate plugin HAS to be the first one which runs in generate-sources phase!!! -->
1873e49081eSLubos Kosco            <plugin>
1883e49081eSLubos Kosco                <groupId>de.jflex</groupId>
1893e49081eSLubos Kosco                <artifactId>jflex-maven-plugin</artifactId>
1903e49081eSLubos Kosco                <version>1.7.0</version>
1913e49081eSLubos Kosco                <executions>
1923e49081eSLubos Kosco                    <execution>
1933e49081eSLubos Kosco                        <goals>
1943e49081eSLubos Kosco                            <goal>generate</goal>
1953e49081eSLubos Kosco                        </goals>
1963e49081eSLubos Kosco                        <configuration>
1973e49081eSLubos Kosco                            <lexDefinitions>
1983e49081eSLubos Kosco                                <lexDefinition>${basedir}/target/jflex-sources</lexDefinition>
1993e49081eSLubos Kosco                            </lexDefinitions>
2003e49081eSLubos Kosco                        </configuration>
2013e49081eSLubos Kosco                    </execution>
2023e49081eSLubos Kosco                </executions>
2033e49081eSLubos Kosco            </plugin>
2043e49081eSLubos Kosco
205a99355ddSVladimir Kotal            <plugin>
206a99355ddSVladimir Kotal                <groupId>pl.project13.maven</groupId>
207a99355ddSVladimir Kotal                <artifactId>git-commit-id-plugin</artifactId>
208a99355ddSVladimir Kotal                <version>2.2.4</version>
209a99355ddSVladimir Kotal                <configuration>
210a99355ddSVladimir Kotal                    <includeOnlyProperties>
211ba73b440SKryštof Tulinger                        <includeOnlyProperty>^git.commit.id</includeOnlyProperty>
212a99355ddSVladimir Kotal                    </includeOnlyProperties>
213*e5e4204aSVladimir Kotal		    <failOnNoGitDirectory>false</failOnNoGitDirectory>
214a99355ddSVladimir Kotal                </configuration>
215a99355ddSVladimir Kotal                <executions>
216a99355ddSVladimir Kotal                    <execution>
217a99355ddSVladimir Kotal                        <id>get-the-git-infos</id>
218a99355ddSVladimir Kotal                        <goals>
219a99355ddSVladimir Kotal                            <goal>revision</goal>
220a99355ddSVladimir Kotal                        </goals>
221a99355ddSVladimir Kotal                        <phase>initialize</phase>
222a99355ddSVladimir Kotal                    </execution>
223a99355ddSVladimir Kotal                    <execution>
224a99355ddSVladimir Kotal                        <id>validate-the-git-infos</id>
225a99355ddSVladimir Kotal                        <goals>
226a99355ddSVladimir Kotal                            <goal>validateRevision</goal>
227a99355ddSVladimir Kotal                        </goals>
228a99355ddSVladimir Kotal                        <phase>package</phase>
229a99355ddSVladimir Kotal                    </execution>
230a99355ddSVladimir Kotal                </executions>
231a99355ddSVladimir Kotal            </plugin>
232a99355ddSVladimir Kotal            <plugin>
233a99355ddSVladimir Kotal                <groupId>org.codehaus.mojo</groupId>
234a99355ddSVladimir Kotal                <artifactId>properties-maven-plugin</artifactId>
235a99355ddSVladimir Kotal                <version>1.0.0</version>
236a99355ddSVladimir Kotal                <executions>
237a99355ddSVladimir Kotal                    <execution>
238a99355ddSVladimir Kotal                        <id>generate-info-properties</id>
239a99355ddSVladimir Kotal                        <phase>generate-resources</phase>
240a99355ddSVladimir Kotal                        <goals>
241a99355ddSVladimir Kotal                            <goal>write-project-properties</goal>
242a99355ddSVladimir Kotal                        </goals>
243a99355ddSVladimir Kotal                        <configuration>
244a99355ddSVladimir Kotal                            <outputFile>
245a99355ddSVladimir Kotal                                ${project.build.outputDirectory}/org/opengrok/indexer/info.properties
246a99355ddSVladimir Kotal                            </outputFile>
247a99355ddSVladimir Kotal                        </configuration>
248a99355ddSVladimir Kotal                    </execution>
249a99355ddSVladimir Kotal                </executions>
250a99355ddSVladimir Kotal            </plugin>
251a99355ddSVladimir Kotal            <plugin>
252a99355ddSVladimir Kotal                <groupId>com.google.code.maven-replacer-plugin</groupId>
253a99355ddSVladimir Kotal                <artifactId>replacer</artifactId>
254a99355ddSVladimir Kotal                <version>1.5.3</version>
255a99355ddSVladimir Kotal                <executions>
256a99355ddSVladimir Kotal                    <execution>
257a99355ddSVladimir Kotal                        <id>perform-git-substitutions</id>
258a99355ddSVladimir Kotal                        <goals>
259a99355ddSVladimir Kotal                            <goal>replace</goal>
260a99355ddSVladimir Kotal                        </goals>
261a99355ddSVladimir Kotal                        <phase>process-resources</phase>
262a99355ddSVladimir Kotal                        <configuration>
263a99355ddSVladimir Kotal                            <filesToInclude>
264a99355ddSVladimir Kotal                                ${project.build.outputDirectory}/org/opengrok/indexer/info.properties
265a99355ddSVladimir Kotal                            </filesToInclude>
266a99355ddSVladimir Kotal                            <replacements>
267a99355ddSVladimir Kotal                                <replacement>
268ba73b440SKryštof Tulinger                                    <token>git.commit.id.abbrev</token>
269ba73b440SKryštof Tulinger                                    <value>changeset_short</value>
270ba73b440SKryštof Tulinger                                </replacement>
271ba73b440SKryštof Tulinger                                <replacement>
272a99355ddSVladimir Kotal                                    <token>git.commit.id</token>
273a99355ddSVladimir Kotal                                    <value>changeset</value>
274a99355ddSVladimir Kotal                                </replacement>
275a99355ddSVladimir Kotal                            </replacements>
276a99355ddSVladimir Kotal                            <quiet>false</quiet>
277a99355ddSVladimir Kotal                        </configuration>
278a99355ddSVladimir Kotal                    </execution>
279a329c371SVladimir Kotal                    <execution>
280a329c371SVladimir Kotal                        <!-- patches jflex generated files to stop increasing buffer beyond token size that lucene accepts
281a329c371SVladimir Kotal                        https://github.com/OpenGrok/OpenGrok/issues/1170 make parsers stop producing tokens > 32766 chars
282a329c371SVladimir Kotal                        at least for PlainFullTokenizer, PlainSymbolTokenizer, JavaScriptSymbolTokenizer, JavaSymbolTokenizer
283a329c371SVladimir Kotal                        use below
284a329c371SVladimir Kotal                        -->
285a329c371SVladimir Kotal                        <id>replace-in-jflex-sources</id>
286a329c371SVladimir Kotal                        <phase>generate-sources</phase>
287a329c371SVladimir Kotal                        <goals>
288a329c371SVladimir Kotal                            <goal>replace</goal>
289a329c371SVladimir Kotal                        </goals>
290a329c371SVladimir Kotal                        <configuration>
291a329c371SVladimir Kotal                          <filesToInclude>
2923e49081eSLubos 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
293a329c371SVladimir Kotal                          </filesToInclude>
294a329c371SVladimir Kotal                          <replacements>
2953db07792SVladimir Kotal                              <!--
2963db07792SVladimir Kotal                              needed for HTML 5 compliance (javadoc in JDK 11)
2973db07792SVladimir Kotal                              workaround for https://github.com/jflex-de/jflex/issues/534
2983db07792SVladimir Kotal                              -->
2993db07792SVladimir Kotal                              <replacement>
3003db07792SVladimir Kotal                                  <tokenFile>${basedir}/jflex-tt.txt</tokenFile>
3013db07792SVladimir Kotal                                  <valueFile>${basedir}/jflex-code.txt</valueFile>
3023db07792SVladimir Kotal                              </replacement>
3033db07792SVladimir Kotal                              <replacement>
3043db07792SVladimir Kotal                                  <tokenFile>${basedir}/jflex-tt-end.txt</tokenFile>
3053db07792SVladimir Kotal                                  <valueFile>${basedir}/jflex-code-end.txt</valueFile>
3063db07792SVladimir Kotal                              </replacement>
3073db07792SVladimir Kotal
308a329c371SVladimir Kotal                              <replacement>
309a329c371SVladimir Kotal                                  <token>private static final int ZZ_BUFFERSIZE =</token>
310a329c371SVladimir Kotal                                  <value>private int ZZ_BUFFERSIZE =</value>
311a329c371SVladimir Kotal                              </replacement>
312a329c371SVladimir Kotal                              <replacement>
313a329c371SVladimir Kotal                                  <token>int requested = zzBuffer\.length - zzEndRead;</token>
314a329c371SVladimir Kotal                                  <value>int requested = zzBuffer.length - zzEndRead - zzFinalHighSurrogate;</value>
315a329c371SVladimir Kotal                              </replacement>
316a329c371SVladimir Kotal                              <replacement>
317a329c371SVladimir Kotal                                  <token>(zzFinalHighSurrogate = 1;)(\r?\n)</token>
318a329c371SVladimir Kotal                                  <value>$1$2          if (numRead == 1) { return true; }$2</value>
319a329c371SVladimir Kotal                              </replacement>
320a329c371SVladimir Kotal                              <replacement>
321a329c371SVladimir Kotal                                  <token>[ \t]*/\* is the buffer big enough\? \*/\s+if \(zzCurrentPos >= zzBuffer\.length.*?\}[ \t]*\r?\n</token>
322a329c371SVladimir Kotal                                  <value></value>
323a329c371SVladimir Kotal                              </replacement>
324a329c371SVladimir 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 -->
325a329c371SVladimir Kotal                              <replacement>
326a329c371SVladimir Kotal                                  <token>[ \t]*/\* not supposed to occur according to specification of java\.io\.Reader \*/\s+if \(numRead == 0.*?\}[ \t]*\r?\n</token>
327a329c371SVladimir Kotal                                  <value></value>
328a329c371SVladimir Kotal                              </replacement>
329a329c371SVladimir Kotal                          </replacements>
330a329c371SVladimir Kotal                          <regexFlags>
331a329c371SVladimir Kotal                              <regexFlag>DOTALL</regexFlag>
332a329c371SVladimir Kotal                          </regexFlags>
333a329c371SVladimir Kotal                       </configuration>
334a329c371SVladimir Kotal                    </execution>
3353db07792SVladimir Kotal
3363db07792SVladimir Kotal                    <execution>
3373db07792SVladimir Kotal                        <!--
3383db07792SVladimir Kotal                        needed for HTML 5 compliance (javadoc in JDK 11)
3393db07792SVladimir Kotal                        workaround for https://github.com/jflex-de/jflex/issues/534
3403db07792SVladimir Kotal                        -->
3413db07792SVladimir Kotal                        <id>replace-tt-with-code-in-jflex-sources</id>
3423db07792SVladimir Kotal                        <phase>generate-sources</phase>
3433db07792SVladimir Kotal
3443db07792SVladimir Kotal                        <goals>
3453db07792SVladimir Kotal                            <goal>replace</goal>
3463db07792SVladimir Kotal                        </goals>
3473db07792SVladimir Kotal                        <configuration>
3483db07792SVladimir Kotal                            <filesToInclude>
3493db07792SVladimir Kotal                                ${basedir}/target/generated-sources/jflex/**/*.java
3503db07792SVladimir Kotal                            </filesToInclude>
3513db07792SVladimir Kotal                            <replacements>
3523db07792SVladimir Kotal                                <replacement>
3533db07792SVladimir Kotal                                    <tokenFile>${basedir}/jflex-tt.txt</tokenFile>
3543db07792SVladimir Kotal                                    <valueFile>${basedir}/jflex-code.txt</valueFile>
3553db07792SVladimir Kotal                                </replacement>
3563db07792SVladimir Kotal                                <replacement>
3573db07792SVladimir Kotal                                    <tokenFile>${basedir}/jflex-tt-end.txt</tokenFile>
3583db07792SVladimir Kotal                                    <valueFile>${basedir}/jflex-code-end.txt</valueFile>
3593db07792SVladimir Kotal                                </replacement>
3603db07792SVladimir Kotal                            </replacements>
3613db07792SVladimir Kotal                        </configuration>
3623db07792SVladimir Kotal                    </execution>
363a99355ddSVladimir Kotal                </executions>
364a99355ddSVladimir Kotal            </plugin>
365e0f7ec00SKnut Anders Hatlen            <plugin>
366e0f7ec00SKnut Anders Hatlen                <groupId>org.apache.maven.plugins</groupId>
367e0f7ec00SKnut Anders Hatlen                <artifactId>maven-jar-plugin</artifactId>
3689f619df4SLubos Kosco                <version>3.0.2</version>
369e0f7ec00SKnut Anders Hatlen                <configuration>
370e0f7ec00SKnut Anders Hatlen                    <archive>
371e0f7ec00SKnut Anders Hatlen                        <manifest>
372686556f2SAdam Hornáček                            <mainClass>org.opengrok.indexer.index.Indexer</mainClass>
373e0f7ec00SKnut Anders Hatlen                            <addClasspath>true</addClasspath>
374e0f7ec00SKnut Anders Hatlen                            <classpathPrefix>lib/</classpathPrefix>
375e0f7ec00SKnut Anders Hatlen                        </manifest>
376e0f7ec00SKnut Anders Hatlen                        <manifestEntries>
377e0f7ec00SKnut Anders Hatlen                        </manifestEntries>
378e0f7ec00SKnut Anders Hatlen                    </archive>
379e0f7ec00SKnut Anders Hatlen                </configuration>
3801a2bb6b6SAdam Hornáček                <executions> <!-- so the web module can use test classes from indexer module -->
3811a2bb6b6SAdam Hornáček                    <execution>
3821a2bb6b6SAdam Hornáček                        <goals>
3831a2bb6b6SAdam Hornáček                            <goal>test-jar</goal>
3841a2bb6b6SAdam Hornáček                        </goals>
3851a2bb6b6SAdam Hornáček                    </execution>
3861a2bb6b6SAdam Hornáček                </executions>
387e0f7ec00SKnut Anders Hatlen            </plugin>
388e0f7ec00SKnut Anders Hatlen
38908a0c20eSJorgen Austvik           <plugin>
39045ec3841SLubos Kosco                <groupId>org.apache.maven.plugins</groupId>
3912e3d7e6eSJorgen Austvik                <artifactId>maven-antrun-plugin</artifactId>
3929f619df4SLubos Kosco                <version>1.8</version>
3932e3d7e6eSJorgen Austvik                <executions>
3942e3d7e6eSJorgen Austvik                    <execution>
39558f88ff1SChris Fraire                        <id>collect-lex-lexh</id>
39658f88ff1SChris Fraire                        <phase>initialize</phase>
39758f88ff1SChris Fraire                        <configuration>
39858f88ff1SChris Fraire                            <target>
399eeb7e5b3SAdam Hornáček                                <property name="src.dir" value="src/main/resources"/>
40058f88ff1SChris Fraire                                <property name="tgt.dir" value="${basedir}/target/jflex-sources"/>
40158f88ff1SChris Fraire                                <ant target="-collect-lex-lexh"/>
40258f88ff1SChris Fraire                            </target>
40358f88ff1SChris Fraire                        </configuration>
40458f88ff1SChris Fraire                        <goals>
40558f88ff1SChris Fraire                            <goal>run</goal>
40658f88ff1SChris Fraire                        </goals>
40758f88ff1SChris Fraire                    </execution>
40858f88ff1SChris Fraire                    <execution>
4092e3d7e6eSJorgen Austvik                        <id>build-config-files</id>
4102e3d7e6eSJorgen Austvik                        <phase>process-test-classes</phase>
4112e3d7e6eSJorgen Austvik                        <goals>
4122e3d7e6eSJorgen Austvik                            <goal>run</goal>
4132e3d7e6eSJorgen Austvik                        </goals>
4142e3d7e6eSJorgen Austvik                        <configuration>
41529fe9da1SChris Fraire                            <target unless="skipTests">
41618446c8aSKnut Anders Hatlen                                <ant target="-post-compile-test"/>
41718446c8aSKnut Anders Hatlen                            </target>
4182e3d7e6eSJorgen Austvik                        </configuration>
4192e3d7e6eSJorgen Austvik                    </execution>
4202e3d7e6eSJorgen Austvik                </executions>
4212e3d7e6eSJorgen Austvik            </plugin>
4222e3d7e6eSJorgen Austvik
423aa4907e2SLubos Kosco            <plugin>
424aa4907e2SLubos Kosco                <groupId>org.apache.maven.plugins</groupId>
4253db07792SVladimir Kotal                <artifactId>maven-checkstyle-plugin</artifactId>
4263db07792SVladimir Kotal            </plugin>
4273db07792SVladimir Kotal            <plugin>
4283db07792SVladimir Kotal                <groupId>org.apache.maven.plugins</groupId>
429aa4907e2SLubos Kosco                <artifactId>maven-surefire-plugin</artifactId>
430aa4907e2SLubos Kosco                <configuration>
431aa4907e2SLubos Kosco                    <excludes>
432aa4907e2SLubos Kosco                        <!-- Test helper class with name that confuses surefire -->
433aa4907e2SLubos Kosco                        <exclude>**/TestRepository.java</exclude>
434aa4907e2SLubos Kosco                    </excludes>
4353db07792SVladimir Kotal                    <argLine>@{surefireArgLine}</argLine>
436aa4907e2SLubos Kosco                </configuration>
437aa4907e2SLubos Kosco            </plugin>
43808a0c20eSJorgen Austvik        </plugins>
43908a0c20eSJorgen Austvik    </build>
44008a0c20eSJorgen Austvik
4413db07792SVladimir Kotal    <profiles>
4423db07792SVladimir Kotal        <profile>
4433db07792SVladimir Kotal            <id>java9plus</id>
4443db07792SVladimir Kotal            <activation>
4453db07792SVladimir Kotal                <jdk>[9,18]</jdk>
4463db07792SVladimir Kotal            </activation>
4473db07792SVladimir Kotal            <build>
4483db07792SVladimir Kotal                <plugins>
4493db07792SVladimir Kotal                    <plugin>
4503db07792SVladimir Kotal                        <groupId>org.apache.maven.plugins</groupId>
4513db07792SVladimir Kotal                        <artifactId>maven-surefire-plugin</artifactId>
4523db07792SVladimir Kotal                        <configuration>
4533db07792SVladimir Kotal                            <excludes>
4543db07792SVladimir Kotal                                <!-- Test helper class with name that confuses surefire -->
4553db07792SVladimir Kotal                                <exclude>**/TestRepository.java</exclude>
4563db07792SVladimir Kotal                            </excludes>
4573db07792SVladimir Kotal                            <argLine>
4583db07792SVladimir Kotal                                @{surefireArgLine}
4593db07792SVladimir Kotal                                --illegal-access=permit
4603db07792SVladimir Kotal                            </argLine>
4613db07792SVladimir Kotal                        </configuration>
4623db07792SVladimir Kotal                    </plugin>
4633db07792SVladimir Kotal                </plugins>
4643db07792SVladimir Kotal            </build>
4653db07792SVladimir Kotal        </profile>
4663db07792SVladimir Kotal    </profiles>
4673db07792SVladimir Kotal
46808a0c20eSJorgen Austvik</project>
469