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> 314b01e6e7SVladimir Kotal <version>1.1-rc30</version> 3208a0c20eSJorgen Austvik </parent> 3308a0c20eSJorgen Austvik 34bb76b0b8SAdam Hornáček <artifactId>opengrok</artifactId> 35a03922c4SAdam Hornáček <version>1.1-rc30</version> 360170aac5SAdam Hornáček <packaging>jar</packaging> 370170aac5SAdam Hornáček 380170aac5SAdam Hornáček <name>OpenGrok Indexer</name> 390170aac5SAdam Hornáček 40c1a21bc0SAdam Hornáček <properties> 41c1a21bc0SAdam Hornáček <jersey.version>2.27</jersey.version> 42c1a21bc0SAdam Hornáček </properties> 43c1a21bc0SAdam Hornáček 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> 9556f072caSAdam Hornáček <groupId>org.opengrok</groupId> 960170aac5SAdam Hornáček <artifactId>jrcs</artifactId> 970170aac5SAdam Hornáček <version>${project.version}</version> 980170aac5SAdam Hornáček </dependency> 990170aac5SAdam Hornáček <dependency> 1000170aac5SAdam Hornáček <groupId>org.apache.ant</groupId> 1010170aac5SAdam Hornáček <artifactId>ant</artifactId> 1020170aac5SAdam Hornáček </dependency> 1030170aac5SAdam Hornáček <dependency> 104*4ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.containers</groupId> 105*4ce4e2b9SAdam Hornáček <artifactId>jersey-container-servlet</artifactId> 106*4ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 107*4ce4e2b9SAdam Hornáček </dependency> 108*4ce4e2b9SAdam Hornáček <dependency> 109*4ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.inject</groupId> 110*4ce4e2b9SAdam Hornáček <artifactId>jersey-hk2</artifactId> 111*4ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 112*4ce4e2b9SAdam Hornáček </dependency> 113*4ce4e2b9SAdam Hornáček <dependency> 114*4ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.media</groupId> 115*4ce4e2b9SAdam Hornáček <artifactId>jersey-media-json-jackson</artifactId> 116*4ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 117*4ce4e2b9SAdam Hornáček </dependency> 118*4ce4e2b9SAdam Hornáček <dependency> 119*4ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.ext</groupId> 120*4ce4e2b9SAdam Hornáček <artifactId>jersey-bean-validation</artifactId> 121*4ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 122*4ce4e2b9SAdam Hornáček </dependency> 123*4ce4e2b9SAdam Hornáček <dependency> 124*4ce4e2b9SAdam Hornáček <groupId>javax.xml.bind</groupId> 125*4ce4e2b9SAdam Hornáček <artifactId>jaxb-api</artifactId> 126*4ce4e2b9SAdam Hornáček <version>2.3.0</version> 127*4ce4e2b9SAdam Hornáček </dependency> 128*4ce4e2b9SAdam Hornáček <dependency> 129*4ce4e2b9SAdam Hornáček <groupId>javax.activation</groupId> 130*4ce4e2b9SAdam Hornáček <artifactId>activation</artifactId> 131*4ce4e2b9SAdam Hornáček <version>1.1</version> 132*4ce4e2b9SAdam Hornáček </dependency> 133*4ce4e2b9SAdam Hornáček <dependency> 1340170aac5SAdam Hornáček <groupId>junit</groupId> 1350170aac5SAdam Hornáček <artifactId>junit</artifactId> 1360170aac5SAdam Hornáček <scope>test</scope> 1370170aac5SAdam Hornáček </dependency> 138*4ce4e2b9SAdam Hornáček <dependency> 139*4ce4e2b9SAdam Hornáček <groupId>org.awaitility</groupId> 140*4ce4e2b9SAdam Hornáček <artifactId>awaitility</artifactId> 141*4ce4e2b9SAdam Hornáček <version>3.1.0</version> 142*4ce4e2b9SAdam Hornáček <scope>test</scope> 143*4ce4e2b9SAdam Hornáček </dependency> 144*4ce4e2b9SAdam Hornáček <dependency> 145*4ce4e2b9SAdam Hornáček <groupId>org.glassfish.jersey.test-framework.providers</groupId> 146*4ce4e2b9SAdam Hornáček <artifactId>jersey-test-framework-provider-grizzly2</artifactId> 147*4ce4e2b9SAdam Hornáček <version>${jersey.version}</version> 148*4ce4e2b9SAdam Hornáček <scope>test</scope> 149*4ce4e2b9SAdam Hornáček </dependency> 150*4ce4e2b9SAdam Hornáček <dependency> 151*4ce4e2b9SAdam Hornáček <groupId>org.mockito</groupId> 152*4ce4e2b9SAdam Hornáček <artifactId>mockito-core</artifactId> 153*4ce4e2b9SAdam Hornáček <version>2.19.0</version> 154*4ce4e2b9SAdam Hornáček <scope>test</scope> 1550170aac5SAdam Hornáček </dependencies> 1560170aac5SAdam Hornáček 15708a0c20eSJorgen Austvik <build> 158aa4907e2SLubos Kosco 15908a0c20eSJorgen Austvik <plugins> 160e0f7ec00SKnut Anders Hatlen 161e0f7ec00SKnut Anders Hatlen <plugin> 162e0f7ec00SKnut Anders Hatlen <groupId>org.apache.maven.plugins</groupId> 163e0f7ec00SKnut Anders Hatlen <artifactId>maven-jar-plugin</artifactId> 1649f619df4SLubos Kosco <version>3.0.2</version> 165e0f7ec00SKnut Anders Hatlen <configuration> 166e0f7ec00SKnut Anders Hatlen <archive> 167e0f7ec00SKnut Anders Hatlen <manifest> 168686556f2SAdam Hornáček <mainClass>org.opengrok.indexer.index.Indexer</mainClass> 169e0f7ec00SKnut Anders Hatlen <addClasspath>true</addClasspath> 170e0f7ec00SKnut Anders Hatlen <classpathPrefix>lib/</classpathPrefix> 171e0f7ec00SKnut Anders Hatlen </manifest> 172e0f7ec00SKnut Anders Hatlen <manifestEntries> 173e0f7ec00SKnut Anders Hatlen </manifestEntries> 174e0f7ec00SKnut Anders Hatlen </archive> 175e0f7ec00SKnut Anders Hatlen </configuration> 176e0f7ec00SKnut Anders Hatlen </plugin> 177e0f7ec00SKnut Anders Hatlen 17808a0c20eSJorgen Austvik <plugin> 17908a0c20eSJorgen Austvik <groupId>de.jflex</groupId> 18045ec3841SLubos Kosco <artifactId>jflex-maven-plugin</artifactId> 1814e6518cbSLubos Kosco <version>1.6.1</version> 18208a0c20eSJorgen Austvik <executions> 18308a0c20eSJorgen Austvik <execution> 18408a0c20eSJorgen Austvik <goals> 18508a0c20eSJorgen Austvik <goal>generate</goal> 18608a0c20eSJorgen Austvik </goals> 18708a0c20eSJorgen Austvik <configuration> 18808a0c20eSJorgen Austvik <lexDefinitions> 18958f88ff1SChris Fraire <lexDefinition>${basedir}/target/jflex-sources</lexDefinition> 19008a0c20eSJorgen Austvik </lexDefinitions> 19145ec3841SLubos Kosco <inputStreamCtor>false</inputStreamCtor> 19208a0c20eSJorgen Austvik </configuration> 19308a0c20eSJorgen Austvik </execution> 19408a0c20eSJorgen Austvik </executions> 19508a0c20eSJorgen Austvik </plugin> 1969182cd30SLubos Kosco 197eeb7e5b3SAdam Hornáček <!-- patches jflex generated files to stop increasing buffer beyond token size that lucene accepts 198ff70ede8SLubos Kosco https://github.com/OpenGrok/OpenGrok/issues/1170 make parsers stop producing tokens > 32766 chars 199ba14bbd8SLubos Kosco at least for PlainFullTokenizer, PlainSymbolTokenizer, JavaScriptSymbolTokenizer, JavaSymbolTokenizer 2009182cd30SLubos Kosco use below 2019182cd30SLubos Kosco --> 2029182cd30SLubos Kosco 203ff70ede8SLubos Kosco <plugin> 204ff70ede8SLubos Kosco <groupId>com.google.code.maven-replacer-plugin</groupId> 205ff70ede8SLubos Kosco <artifactId>replacer</artifactId> 2069182cd30SLubos Kosco <version>1.5.3</version> 207ff70ede8SLubos Kosco <executions> 208ff70ede8SLubos Kosco <execution> 2099182cd30SLubos Kosco <phase>generate-sources</phase> 210ff70ede8SLubos Kosco <goals> 211ff70ede8SLubos Kosco <goal>replace</goal> 212ff70ede8SLubos Kosco </goals> 213ff70ede8SLubos Kosco </execution> 214ff70ede8SLubos Kosco </executions> 215ff70ede8SLubos Kosco <configuration> 2169182cd30SLubos Kosco <filesToInclude> 2179805b761SAdam Hornáček ${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 2189182cd30SLubos Kosco </filesToInclude> 2199182cd30SLubos Kosco <replacements> 2209182cd30SLubos Kosco <replacement> 2219182cd30SLubos Kosco <token>private static final int ZZ_BUFFERSIZE =</token> 2229182cd30SLubos Kosco <value>private int ZZ_BUFFERSIZE =</value> 2239182cd30SLubos Kosco </replacement> 2249182cd30SLubos Kosco <replacement> 2259182cd30SLubos Kosco <token>int requested = zzBuffer\.length - zzEndRead;</token> 2269182cd30SLubos Kosco <value>int requested = zzBuffer.length - zzEndRead - zzFinalHighSurrogate;</value> 2279182cd30SLubos Kosco </replacement> 2289182cd30SLubos Kosco <replacement> 2299182cd30SLubos Kosco <token>(zzFinalHighSurrogate = 1;)(\r?\n)</token> 2309182cd30SLubos Kosco <value>$1$2 if (numRead == 1) { return true; }$2</value> 2319182cd30SLubos Kosco </replacement> 2329182cd30SLubos Kosco 2339182cd30SLubos Kosco <replacement> 2349182cd30SLubos Kosco <token>[ \t]*/\* is the buffer big enough\? \*/\s+if \(zzCurrentPos >= zzBuffer\.length.*?\}[ \t]*\r?\n</token> 2359182cd30SLubos Kosco <value></value> 2369182cd30SLubos Kosco </replacement> 2379182cd30SLubos Kosco <!-- 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 --> 2389182cd30SLubos Kosco <replacement> 2399182cd30SLubos Kosco <token>[ \t]*/\* not supposed to occur according to specification of java\.io\.Reader \*/\s+if \(numRead == 0.*?\}[ \t]*\r?\n</token> 2409182cd30SLubos Kosco <value></value> 2419182cd30SLubos Kosco </replacement> 2429182cd30SLubos Kosco 2439182cd30SLubos Kosco </replacements> 244ff70ede8SLubos Kosco <regexFlags> 2459182cd30SLubos Kosco <regexFlag>DOTALL</regexFlag> 246ff70ede8SLubos Kosco </regexFlags> 247ff70ede8SLubos Kosco </configuration> 2489182cd30SLubos Kosco </plugin> 2492e3d7e6eSJorgen Austvik 2502e3d7e6eSJorgen Austvik <plugin> 25145ec3841SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 2522e3d7e6eSJorgen Austvik <artifactId>maven-antrun-plugin</artifactId> 2539f619df4SLubos Kosco <version>1.8</version> 2542e3d7e6eSJorgen Austvik <executions> 2552e3d7e6eSJorgen Austvik <execution> 25658f88ff1SChris Fraire <id>collect-lex-lexh</id> 25758f88ff1SChris Fraire <phase>initialize</phase> 25858f88ff1SChris Fraire <configuration> 25958f88ff1SChris Fraire <target> 260eeb7e5b3SAdam Hornáček <property name="src.dir" value="src/main/resources"/> 26158f88ff1SChris Fraire <property name="tgt.dir" value="${basedir}/target/jflex-sources"/> 26258f88ff1SChris Fraire <ant target="-collect-lex-lexh"/> 26358f88ff1SChris Fraire </target> 26458f88ff1SChris Fraire </configuration> 26558f88ff1SChris Fraire <goals> 26658f88ff1SChris Fraire <goal>run</goal> 26758f88ff1SChris Fraire </goals> 26858f88ff1SChris Fraire </execution> 26958f88ff1SChris Fraire <execution> 27058f88ff1SChris Fraire <id>update-build-info</id> 27118446c8aSKnut Anders Hatlen <phase>generate-resources</phase> 27218446c8aSKnut Anders Hatlen <configuration> 27318446c8aSKnut Anders Hatlen <target> 27445ec3841SLubos Kosco <property name="version" value="${project.version}"/> 27518446c8aSKnut Anders Hatlen <ant target="-update-build-info"/> 27618446c8aSKnut Anders Hatlen </target> 27718446c8aSKnut Anders Hatlen </configuration> 27818446c8aSKnut Anders Hatlen <goals> 27918446c8aSKnut Anders Hatlen <goal>run</goal> 28018446c8aSKnut Anders Hatlen </goals> 28118446c8aSKnut Anders Hatlen </execution> 28218446c8aSKnut Anders Hatlen <execution> 2832e3d7e6eSJorgen Austvik <id>build-config-files</id> 2842e3d7e6eSJorgen Austvik <phase>process-test-classes</phase> 2852e3d7e6eSJorgen Austvik <goals> 2862e3d7e6eSJorgen Austvik <goal>run</goal> 2872e3d7e6eSJorgen Austvik </goals> 2882e3d7e6eSJorgen Austvik <configuration> 28918446c8aSKnut Anders Hatlen <target unless="maven.test.skip"> 29018446c8aSKnut Anders Hatlen <ant target="-post-compile-test"/> 29118446c8aSKnut Anders Hatlen </target> 2922e3d7e6eSJorgen Austvik </configuration> 2932e3d7e6eSJorgen Austvik </execution> 2942e3d7e6eSJorgen Austvik </executions> 2952e3d7e6eSJorgen Austvik </plugin> 2962e3d7e6eSJorgen Austvik 297aa4907e2SLubos Kosco <plugin> 298aa4907e2SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 299aa4907e2SLubos Kosco <artifactId>maven-surefire-plugin</artifactId> 300aa4907e2SLubos Kosco <configuration> 301aa4907e2SLubos Kosco <excludes> 302aa4907e2SLubos Kosco <!-- Test helper class with name that confuses surefire --> 303aa4907e2SLubos Kosco <exclude>**/TestRepository.java</exclude> 304aa4907e2SLubos Kosco </excludes> 30534684d40SVladimir Kotal <argLine>${surefireArgLine}</argLine> 306aa4907e2SLubos Kosco </configuration> 307aa4907e2SLubos Kosco </plugin> 308aa4907e2SLubos Kosco 309bc6c8375SVladimir Kotal <plugin> 310bc6c8375SVladimir Kotal <groupId>org.codehaus.mojo</groupId> 311bc6c8375SVladimir Kotal <artifactId>exec-maven-plugin</artifactId> 312bc6c8375SVladimir Kotal <version>1.6.0</version> 313bc6c8375SVladimir Kotal <executions> 314bc6c8375SVladimir Kotal <execution> 315bc6c8375SVladimir Kotal <phase>verify</phase> 316bc6c8375SVladimir Kotal <goals> 317bc6c8375SVladimir Kotal <goal>exec</goal> 318bc6c8375SVladimir Kotal </goals> 319bc6c8375SVladimir Kotal </execution> 320bc6c8375SVladimir Kotal </executions> 321bc6c8375SVladimir Kotal <configuration> 322bc6c8375SVladimir Kotal <executable>pep8</executable> 323bc6c8375SVladimir Kotal <arguments> 324bc6c8375SVladimir Kotal <argument>-v</argument> 325873a5de8SVladimir Kotal <argument>--exclude=filelock.py,test_command.py,test_commands.py</argument> 326bc6c8375SVladimir Kotal <argument>${project.basedir}/../tools/sync</argument> 327bc6c8375SVladimir Kotal </arguments> 328bc6c8375SVladimir Kotal </configuration> 329bc6c8375SVladimir Kotal </plugin> 330aa4907e2SLubos Kosco 33108a0c20eSJorgen Austvik </plugins> 33208a0c20eSJorgen Austvik </build> 33308a0c20eSJorgen Austvik 33408a0c20eSJorgen Austvik</project> 335