xref: /OpenGrok/opengrok-indexer/pom.xml (revision fd8f155e74a65d233c5e99ff020d4d2f1c8ba445)
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>
31069b2c77SVladimir Kotal        <version>1.1-rc60</version>
3208a0c20eSJorgen Austvik    </parent>
3308a0c20eSJorgen Austvik
34bb76b0b8SAdam Hornáček    <artifactId>opengrok</artifactId>
35069b2c77SVladimir Kotal    <version>1.1-rc60</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>com.googlecode.json-simple</groupId>
920170aac5SAdam Hornáček            <artifactId>json-simple</artifactId>
930170aac5SAdam Hornáček        </dependency>
940170aac5SAdam Hornáček        <dependency>
950170aac5SAdam Hornáček            <groupId>org.apache.ant</groupId>
960170aac5SAdam Hornáček            <artifactId>ant</artifactId>
970170aac5SAdam Hornáček        </dependency>
981a2bb6b6SAdam Hornáček        <dependency> <!-- TODO: remove! (moving Messages to web module) -->
991a2bb6b6SAdam Hornáček            <groupId>org.glassfish.jersey.ext</groupId>
1001a2bb6b6SAdam Hornáček            <artifactId>jersey-bean-validation</artifactId>
1014ce4e2b9SAdam Hornáček            <version>${jersey.version}</version>
1024ce4e2b9SAdam Hornáček        </dependency>
1034ce4e2b9SAdam Hornáček        <dependency>
1044ce4e2b9SAdam Hornáček            <groupId>org.glassfish.jersey.media</groupId>
1054ce4e2b9SAdam Hornáček            <artifactId>jersey-media-json-jackson</artifactId>
1064ce4e2b9SAdam Hornáček            <version>${jersey.version}</version>
1074ce4e2b9SAdam Hornáček        </dependency>
1084ce4e2b9SAdam Hornáček        <dependency>
1091a2bb6b6SAdam Hornáček            <groupId>org.glassfish.jersey.core</groupId>
1101a2bb6b6SAdam Hornáček            <artifactId>jersey-client</artifactId>
1114ce4e2b9SAdam Hornáček            <version>${jersey.version}</version>
1124ce4e2b9SAdam Hornáček        </dependency>
1134ce4e2b9SAdam Hornáček        <dependency>
1141a2bb6b6SAdam Hornáček            <groupId>org.glassfish.jersey.inject</groupId>
1151a2bb6b6SAdam Hornáček            <artifactId>jersey-hk2</artifactId>
1161a2bb6b6SAdam Hornáček            <version>${jersey.version}</version>
1174ce4e2b9SAdam Hornáček        </dependency>
1184ce4e2b9SAdam Hornáček        <dependency>
1190170aac5SAdam Hornáček            <groupId>junit</groupId>
1200170aac5SAdam Hornáček            <artifactId>junit</artifactId>
1210170aac5SAdam Hornáček            <scope>test</scope>
1220170aac5SAdam Hornáček        </dependency>
1231a2bb6b6SAdam Hornáček        <dependency> <!-- TODO: remove! (moving Messages to web module) -->
1244ce4e2b9SAdam Hornáček            <groupId>org.awaitility</groupId>
1254ce4e2b9SAdam Hornáček            <artifactId>awaitility</artifactId>
1264ce4e2b9SAdam Hornáček            <version>3.1.0</version>
1274ce4e2b9SAdam Hornáček            <scope>test</scope>
1284ce4e2b9SAdam Hornáček        </dependency>
129911e8af0SAdam Hornáček        <dependency>
130911e8af0SAdam Hornáček            <groupId>org.glassfish.jersey.test-framework.providers</groupId>
131911e8af0SAdam Hornáček            <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
132911e8af0SAdam Hornáček            <version>${jersey.version}</version>
133911e8af0SAdam Hornáček            <scope>test</scope>
134911e8af0SAdam Hornáček        </dependency>
135911e8af0SAdam Hornáček        <dependency>
136911e8af0SAdam Hornáček            <groupId>org.mockito</groupId>
137911e8af0SAdam Hornáček            <artifactId>mockito-core</artifactId>
138911e8af0SAdam Hornáček            <version>2.19.0</version>
139911e8af0SAdam Hornáček            <scope>test</scope>
140911e8af0SAdam Hornáček        </dependency>
141a55b429eSAdam Hornáček        <dependency>
142a55b429eSAdam Hornáček            <groupId>com.cronutils</groupId>
143a55b429eSAdam Hornáček            <artifactId>cron-utils</artifactId>
144a55b429eSAdam Hornáček            <version>7.0.2</version>
145a55b429eSAdam Hornáček        </dependency>
1463bd78204SVladimir Kotal        <dependency>
1473bd78204SVladimir Kotal            <groupId>org.jvnet.hudson</groupId>
1483bd78204SVladimir Kotal            <artifactId>org.suigeneris.jrcs.diff</artifactId>
1493bd78204SVladimir Kotal            <version>0.4.2</version>
1503bd78204SVladimir Kotal        </dependency>
1513bd78204SVladimir Kotal        <dependency>
1523bd78204SVladimir Kotal            <groupId>org.jvnet.hudson</groupId>
1533bd78204SVladimir Kotal            <artifactId>org.suigeneris.jrcs.rcs</artifactId>
1543bd78204SVladimir Kotal            <version>0.4.2</version>
1553bd78204SVladimir Kotal        </dependency>
156*fd8f155eSVladimir Kotal        <dependency>
157*fd8f155eSVladimir Kotal            <groupId>javax.xml.bind</groupId>
158*fd8f155eSVladimir Kotal            <artifactId>jaxb-api</artifactId>
159*fd8f155eSVladimir Kotal            <version>2.3.0</version>
160*fd8f155eSVladimir Kotal        </dependency>
161*fd8f155eSVladimir Kotal        <dependency>
162*fd8f155eSVladimir Kotal            <groupId>com.sun.xml.bind</groupId>
163*fd8f155eSVladimir Kotal            <artifactId>jaxb-core</artifactId>
164*fd8f155eSVladimir Kotal            <version>2.3.0</version>
165*fd8f155eSVladimir Kotal        </dependency>
166*fd8f155eSVladimir Kotal        <dependency>
167*fd8f155eSVladimir Kotal            <groupId>com.sun.xml.bind</groupId>
168*fd8f155eSVladimir Kotal            <artifactId>jaxb-impl</artifactId>
169*fd8f155eSVladimir Kotal            <version>2.3.0</version>
170*fd8f155eSVladimir Kotal        </dependency>
171*fd8f155eSVladimir Kotal        <dependency>
172*fd8f155eSVladimir Kotal            <groupId>javax.activation</groupId>
173*fd8f155eSVladimir Kotal            <artifactId>activation</artifactId>
174*fd8f155eSVladimir Kotal            <version>1.1.1</version>
175*fd8f155eSVladimir Kotal        </dependency>
1760170aac5SAdam Hornáček    </dependencies>
1770170aac5SAdam Hornáček
17808a0c20eSJorgen Austvik    <build>
17908a0c20eSJorgen Austvik        <plugins>
180a99355ddSVladimir Kotal            <plugin>
181a99355ddSVladimir Kotal                <groupId>pl.project13.maven</groupId>
182a99355ddSVladimir Kotal                <artifactId>git-commit-id-plugin</artifactId>
183a99355ddSVladimir Kotal                <version>2.2.4</version>
184a99355ddSVladimir Kotal                <configuration>
185a99355ddSVladimir Kotal                    <includeOnlyProperties>
186a99355ddSVladimir Kotal                        <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
187a99355ddSVladimir Kotal                    </includeOnlyProperties>
188a99355ddSVladimir Kotal                </configuration>
189a99355ddSVladimir Kotal                <executions>
190a99355ddSVladimir Kotal                    <execution>
191a99355ddSVladimir Kotal                        <id>get-the-git-infos</id>
192a99355ddSVladimir Kotal                        <goals>
193a99355ddSVladimir Kotal                            <goal>revision</goal>
194a99355ddSVladimir Kotal                        </goals>
195a99355ddSVladimir Kotal                        <phase>initialize</phase>
196a99355ddSVladimir Kotal                    </execution>
197a99355ddSVladimir Kotal                    <execution>
198a99355ddSVladimir Kotal                        <id>validate-the-git-infos</id>
199a99355ddSVladimir Kotal                        <goals>
200a99355ddSVladimir Kotal                            <goal>validateRevision</goal>
201a99355ddSVladimir Kotal                        </goals>
202a99355ddSVladimir Kotal                        <phase>package</phase>
203a99355ddSVladimir Kotal                    </execution>
204a99355ddSVladimir Kotal                </executions>
205a99355ddSVladimir Kotal            </plugin>
206a99355ddSVladimir Kotal            <plugin>
207a99355ddSVladimir Kotal                <groupId>org.codehaus.mojo</groupId>
208a99355ddSVladimir Kotal                <artifactId>properties-maven-plugin</artifactId>
209a99355ddSVladimir Kotal                <version>1.0.0</version>
210a99355ddSVladimir Kotal                <executions>
211a99355ddSVladimir Kotal                    <execution>
212a99355ddSVladimir Kotal                        <id>generate-info-properties</id>
213a99355ddSVladimir Kotal                        <phase>generate-resources</phase>
214a99355ddSVladimir Kotal                        <goals>
215a99355ddSVladimir Kotal                            <goal>write-project-properties</goal>
216a99355ddSVladimir Kotal                        </goals>
217a99355ddSVladimir Kotal                        <configuration>
218a99355ddSVladimir Kotal                            <outputFile>
219a99355ddSVladimir Kotal                                ${project.build.outputDirectory}/org/opengrok/indexer/info.properties
220a99355ddSVladimir Kotal                            </outputFile>
221a99355ddSVladimir Kotal                        </configuration>
222a99355ddSVladimir Kotal                    </execution>
223a99355ddSVladimir Kotal                </executions>
224a99355ddSVladimir Kotal            </plugin>
225a99355ddSVladimir Kotal            <plugin>
226a99355ddSVladimir Kotal                <groupId>com.google.code.maven-replacer-plugin</groupId>
227a99355ddSVladimir Kotal                <artifactId>replacer</artifactId>
228a99355ddSVladimir Kotal                <version>1.5.3</version>
229a99355ddSVladimir Kotal                <executions>
230a99355ddSVladimir Kotal                    <execution>
231a99355ddSVladimir Kotal                        <id>perform-git-substitutions</id>
232a99355ddSVladimir Kotal                        <goals>
233a99355ddSVladimir Kotal                            <goal>replace</goal>
234a99355ddSVladimir Kotal                        </goals>
235a99355ddSVladimir Kotal                        <phase>process-resources</phase>
236a99355ddSVladimir Kotal                        <configuration>
237a99355ddSVladimir Kotal                            <filesToInclude>
238a99355ddSVladimir Kotal                                ${project.build.outputDirectory}/org/opengrok/indexer/info.properties
239a99355ddSVladimir Kotal                            </filesToInclude>
240a99355ddSVladimir Kotal                            <replacements>
241a99355ddSVladimir Kotal                                <replacement>
242a99355ddSVladimir Kotal                                    <token>git.commit.id</token>
243a99355ddSVladimir Kotal                                    <value>changeset</value>
244a99355ddSVladimir Kotal                                </replacement>
245a99355ddSVladimir Kotal                            </replacements>
246a99355ddSVladimir Kotal                            <quiet>false</quiet>
247a99355ddSVladimir Kotal                        </configuration>
248a99355ddSVladimir Kotal                    </execution>
249a329c371SVladimir Kotal                    <execution>
250a329c371SVladimir Kotal                        <!-- patches jflex generated files to stop increasing buffer beyond token size that lucene accepts
251a329c371SVladimir Kotal                        https://github.com/OpenGrok/OpenGrok/issues/1170 make parsers stop producing tokens > 32766 chars
252a329c371SVladimir Kotal                        at least for PlainFullTokenizer, PlainSymbolTokenizer, JavaScriptSymbolTokenizer, JavaSymbolTokenizer
253a329c371SVladimir Kotal                        use below
254a329c371SVladimir Kotal                        -->
255a329c371SVladimir Kotal                        <id>replace-in-jflex-sources</id>
256a329c371SVladimir Kotal                        <phase>generate-sources</phase>
257a329c371SVladimir Kotal                        <goals>
258a329c371SVladimir Kotal                            <goal>replace</goal>
259a329c371SVladimir Kotal                        </goals>
260a329c371SVladimir Kotal                        <configuration>
261a329c371SVladimir Kotal                          <filesToInclude>
262a329c371SVladimir Kotal                              ${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/plain/PlainFullTokenizer.java,${basedir}/target/generated-sources/jflex/org/opengrok/indexer/analysis/plain/PlainSymbolTokenizer.java
263a329c371SVladimir Kotal                          </filesToInclude>
264a329c371SVladimir Kotal                          <replacements>
265a329c371SVladimir Kotal                              <replacement>
266a329c371SVladimir Kotal                                  <token>private static final int ZZ_BUFFERSIZE =</token>
267a329c371SVladimir Kotal                                  <value>private int ZZ_BUFFERSIZE =</value>
268a329c371SVladimir Kotal                              </replacement>
269a329c371SVladimir Kotal                              <replacement>
270a329c371SVladimir Kotal                                  <token>int requested = zzBuffer\.length - zzEndRead;</token>
271a329c371SVladimir Kotal                                  <value>int requested = zzBuffer.length - zzEndRead - zzFinalHighSurrogate;</value>
272a329c371SVladimir Kotal                              </replacement>
273a329c371SVladimir Kotal                              <replacement>
274a329c371SVladimir Kotal                                  <token>(zzFinalHighSurrogate = 1;)(\r?\n)</token>
275a329c371SVladimir Kotal                                  <value>$1$2          if (numRead == 1) { return true; }$2</value>
276a329c371SVladimir Kotal                              </replacement>
277a329c371SVladimir Kotal                              <replacement>
278a329c371SVladimir Kotal                                  <token>[ \t]*/\* is the buffer big enough\? \*/\s+if \(zzCurrentPos >= zzBuffer\.length.*?\}[ \t]*\r?\n</token>
279a329c371SVladimir Kotal                                  <value></value>
280a329c371SVladimir Kotal                              </replacement>
281a329c371SVladimir 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 -->
282a329c371SVladimir Kotal                              <replacement>
283a329c371SVladimir Kotal                                  <token>[ \t]*/\* not supposed to occur according to specification of java\.io\.Reader \*/\s+if \(numRead == 0.*?\}[ \t]*\r?\n</token>
284a329c371SVladimir Kotal                                  <value></value>
285a329c371SVladimir Kotal                              </replacement>
286a329c371SVladimir Kotal                          </replacements>
287a329c371SVladimir Kotal                          <regexFlags>
288a329c371SVladimir Kotal                              <regexFlag>DOTALL</regexFlag>
289a329c371SVladimir Kotal                          </regexFlags>
290a329c371SVladimir Kotal                       </configuration>
291a329c371SVladimir Kotal                    </execution>
292a99355ddSVladimir Kotal                </executions>
293a99355ddSVladimir Kotal            </plugin>
294e0f7ec00SKnut Anders Hatlen            <plugin>
295e0f7ec00SKnut Anders Hatlen                <groupId>org.apache.maven.plugins</groupId>
296e0f7ec00SKnut Anders Hatlen                <artifactId>maven-jar-plugin</artifactId>
2979f619df4SLubos Kosco                <version>3.0.2</version>
298e0f7ec00SKnut Anders Hatlen                <configuration>
299e0f7ec00SKnut Anders Hatlen                    <archive>
300e0f7ec00SKnut Anders Hatlen                        <manifest>
301686556f2SAdam Hornáček                            <mainClass>org.opengrok.indexer.index.Indexer</mainClass>
302e0f7ec00SKnut Anders Hatlen                            <addClasspath>true</addClasspath>
303e0f7ec00SKnut Anders Hatlen                            <classpathPrefix>lib/</classpathPrefix>
304e0f7ec00SKnut Anders Hatlen                        </manifest>
305e0f7ec00SKnut Anders Hatlen                        <manifestEntries>
306e0f7ec00SKnut Anders Hatlen                        </manifestEntries>
307e0f7ec00SKnut Anders Hatlen                    </archive>
308e0f7ec00SKnut Anders Hatlen                </configuration>
3091a2bb6b6SAdam Hornáček                <executions> <!-- so the web module can use test classes from indexer module -->
3101a2bb6b6SAdam Hornáček                    <execution>
3111a2bb6b6SAdam Hornáček                        <goals>
3121a2bb6b6SAdam Hornáček                            <goal>test-jar</goal>
3131a2bb6b6SAdam Hornáček                        </goals>
3141a2bb6b6SAdam Hornáček                    </execution>
3151a2bb6b6SAdam Hornáček                </executions>
316e0f7ec00SKnut Anders Hatlen            </plugin>
317e0f7ec00SKnut Anders Hatlen
31808a0c20eSJorgen Austvik            <plugin>
31908a0c20eSJorgen Austvik                <groupId>de.jflex</groupId>
32045ec3841SLubos Kosco                <artifactId>jflex-maven-plugin</artifactId>
3214e6518cbSLubos Kosco                <version>1.6.1</version>
32208a0c20eSJorgen Austvik                <executions>
32308a0c20eSJorgen Austvik                    <execution>
32408a0c20eSJorgen Austvik                        <goals>
32508a0c20eSJorgen Austvik                            <goal>generate</goal>
32608a0c20eSJorgen Austvik                        </goals>
32708a0c20eSJorgen Austvik                        <configuration>
32808a0c20eSJorgen Austvik                            <lexDefinitions>
32958f88ff1SChris Fraire                                <lexDefinition>${basedir}/target/jflex-sources</lexDefinition>
33008a0c20eSJorgen Austvik                            </lexDefinitions>
33145ec3841SLubos Kosco                            <inputStreamCtor>false</inputStreamCtor>
33208a0c20eSJorgen Austvik                        </configuration>
33308a0c20eSJorgen Austvik                    </execution>
33408a0c20eSJorgen Austvik                </executions>
33508a0c20eSJorgen Austvik            </plugin>
3369182cd30SLubos Kosco
3372e3d7e6eSJorgen Austvik           <plugin>
33845ec3841SLubos Kosco                <groupId>org.apache.maven.plugins</groupId>
3392e3d7e6eSJorgen Austvik                <artifactId>maven-antrun-plugin</artifactId>
3409f619df4SLubos Kosco                <version>1.8</version>
3412e3d7e6eSJorgen Austvik                <executions>
3422e3d7e6eSJorgen Austvik                    <execution>
34358f88ff1SChris Fraire                        <id>collect-lex-lexh</id>
34458f88ff1SChris Fraire                        <phase>initialize</phase>
34558f88ff1SChris Fraire                        <configuration>
34658f88ff1SChris Fraire                            <target>
347eeb7e5b3SAdam Hornáček                                <property name="src.dir" value="src/main/resources"/>
34858f88ff1SChris Fraire                                <property name="tgt.dir" value="${basedir}/target/jflex-sources"/>
34958f88ff1SChris Fraire                                <ant target="-collect-lex-lexh"/>
35058f88ff1SChris Fraire                            </target>
35158f88ff1SChris Fraire                        </configuration>
35258f88ff1SChris Fraire                        <goals>
35358f88ff1SChris Fraire                            <goal>run</goal>
35458f88ff1SChris Fraire                        </goals>
35558f88ff1SChris Fraire                    </execution>
35658f88ff1SChris Fraire                    <execution>
3572e3d7e6eSJorgen Austvik                        <id>build-config-files</id>
3582e3d7e6eSJorgen Austvik                        <phase>process-test-classes</phase>
3592e3d7e6eSJorgen Austvik                        <goals>
3602e3d7e6eSJorgen Austvik                            <goal>run</goal>
3612e3d7e6eSJorgen Austvik                        </goals>
3622e3d7e6eSJorgen Austvik                        <configuration>
36318446c8aSKnut Anders Hatlen                            <target unless="maven.test.skip">
36418446c8aSKnut Anders Hatlen                                <ant target="-post-compile-test"/>
36518446c8aSKnut Anders Hatlen                            </target>
3662e3d7e6eSJorgen Austvik                        </configuration>
3672e3d7e6eSJorgen Austvik                    </execution>
3682e3d7e6eSJorgen Austvik                </executions>
3692e3d7e6eSJorgen Austvik            </plugin>
3702e3d7e6eSJorgen Austvik
371aa4907e2SLubos Kosco            <plugin>
372aa4907e2SLubos Kosco                <groupId>org.apache.maven.plugins</groupId>
373aa4907e2SLubos Kosco                <artifactId>maven-surefire-plugin</artifactId>
374aa4907e2SLubos Kosco                <configuration>
375aa4907e2SLubos Kosco                    <excludes>
376aa4907e2SLubos Kosco                        <!-- Test helper class with name that confuses surefire -->
377aa4907e2SLubos Kosco                        <exclude>**/TestRepository.java</exclude>
378aa4907e2SLubos Kosco                    </excludes>
37934684d40SVladimir Kotal                    <argLine>${surefireArgLine}</argLine>
380aa4907e2SLubos Kosco                </configuration>
381aa4907e2SLubos Kosco            </plugin>
382aa4907e2SLubos Kosco
383bc6c8375SVladimir Kotal            <plugin>
38430c7e457SAdam Hornáček                <groupId>org.apache.maven.plugins</groupId>
38530c7e457SAdam Hornáček                <artifactId>maven-checkstyle-plugin</artifactId>
38630c7e457SAdam Hornáček            </plugin>
38708a0c20eSJorgen Austvik        </plugins>
38808a0c20eSJorgen Austvik    </build>
38908a0c20eSJorgen Austvik
390d47db168SAdam Hornáček    <profiles>
391d47db168SAdam Hornáček        <profile>
392d47db168SAdam Hornáček            <id>java9plus</id>
393d47db168SAdam Hornáček            <activation>
394d47db168SAdam Hornáček                <jdk>[9,10]</jdk>
395d47db168SAdam Hornáček            </activation>
396d47db168SAdam Hornáček            <build>
397d47db168SAdam Hornáček                <plugins>
398d47db168SAdam Hornáček                    <plugin>
399d47db168SAdam Hornáček                        <groupId>org.apache.maven.plugins</groupId>
400d47db168SAdam Hornáček                        <artifactId>maven-surefire-plugin</artifactId>
401d47db168SAdam Hornáček                        <configuration>
402d47db168SAdam Hornáček                            <argLine>
403d47db168SAdam Hornáček                                --add-exports java.base/jdk.internal.ref=ALL-UNNAMED
404d47db168SAdam Hornáček                                --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
405d47db168SAdam Hornáček                                --add-exports java.base/sun.nio.ch=ALL-UNNAMED
406d47db168SAdam Hornáček                            </argLine>
407d47db168SAdam Hornáček                        </configuration>
408d47db168SAdam Hornáček                    </plugin>
409d47db168SAdam Hornáček                </plugins>
410d47db168SAdam Hornáček            </build>
411d47db168SAdam Hornáček        </profile>
412d47db168SAdam Hornáček    </profiles>
413d47db168SAdam Hornáček
41408a0c20eSJorgen Austvik</project>
415