xref: /OpenGrok/opengrok-indexer/pom.xml (revision e0f7ec00f9ff5d3983dec8d968ecb7791135f3c4)
108a0c20eSJorgen Austvik<?xml version="1.0" encoding="UTF-8"?>
208a0c20eSJorgen Austvik<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
308a0c20eSJorgen Austvik  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
408a0c20eSJorgen Austvik    <modelVersion>4.0.0</modelVersion>
508a0c20eSJorgen Austvik    <groupId>org.opensolaris.opengrok</groupId>
608a0c20eSJorgen Austvik    <artifactId>opengrok-indexer</artifactId>
708a0c20eSJorgen Austvik    <packaging>jar</packaging>
808a0c20eSJorgen Austvik    <version>0.10-SNAPSHOT</version>
908a0c20eSJorgen Austvik    <name>OpenGrok Indexer</name>
1008a0c20eSJorgen Austvik
1108a0c20eSJorgen Austvik    <parent>
1208a0c20eSJorgen Austvik        <groupId>org.opensolaris.opengrok</groupId>
1308a0c20eSJorgen Austvik        <artifactId>opengrok</artifactId>
1408a0c20eSJorgen Austvik        <version>0.10-SNAPSHOT</version>
1508a0c20eSJorgen Austvik    </parent>
1608a0c20eSJorgen Austvik
1708a0c20eSJorgen Austvik    <build>
1808a0c20eSJorgen Austvik        <sourceDirectory>../src</sourceDirectory>
1908a0c20eSJorgen Austvik        <testSourceDirectory>../test</testSourceDirectory>
2008a0c20eSJorgen Austvik
218a75af3fSLubos Kosco        <resources>
228a75af3fSLubos Kosco            <resource>
23aa4907e2SLubos Kosco                <targetPath>org/opensolaris/opengrok/analysis/sql/</targetPath>
248a75af3fSLubos Kosco                <directory>../src/org/opensolaris/opengrok/analysis/sql/</directory>
253ddd2069SKnut Anders Hatlen                <includes>
263ddd2069SKnut Anders Hatlen                  <include>*.dat</include>
273ddd2069SKnut Anders Hatlen                </includes>
288a75af3fSLubos Kosco            </resource>
298a75af3fSLubos Kosco            <resource>
30aa4907e2SLubos Kosco                <targetPath>org/opensolaris/opengrok/index/</targetPath>
31aa4907e2SLubos Kosco                <directory>../src/org/opensolaris/opengrok/index/</directory>
32aa4907e2SLubos Kosco                <excludes><exclude>*.java</exclude></excludes>
338a75af3fSLubos Kosco            </resource>
34aa4907e2SLubos Kosco            <resource>
35aa4907e2SLubos Kosco                <targetPath>org/opensolaris/opengrok/management/</targetPath>
36aa4907e2SLubos Kosco                <directory>../src/org/opensolaris/opengrok/management/</directory>
3711b8ef37SKnut Anders Hatlen                <includes>
3811b8ef37SKnut Anders Hatlen                  <include>*.properties</include>
3911b8ef37SKnut Anders Hatlen                  <include>**/*.gif</include>
4011b8ef37SKnut Anders Hatlen                </includes>
41aa4907e2SLubos Kosco            </resource>
42aa4907e2SLubos Kosco            <resource>
43aa4907e2SLubos Kosco                <targetPath>org/opensolaris/opengrok/history/</targetPath>
44aa4907e2SLubos Kosco                <directory>../src/org/opensolaris/opengrok/history/</directory>
45aa4907e2SLubos Kosco                <excludes>
46aa4907e2SLubos Kosco                  <exclude>*.java</exclude>
47aa4907e2SLubos Kosco                  <exclude>*.html</exclude>
48aa4907e2SLubos Kosco                </excludes>
49aa4907e2SLubos Kosco            </resource>
508a75af3fSLubos Kosco        </resources>
518a75af3fSLubos Kosco
52aa4907e2SLubos Kosco        <testResources>
53aa4907e2SLubos Kosco            <testResource>
54aa4907e2SLubos Kosco                <targetPath>org/opensolaris/opengrok/history/</targetPath>
55aa4907e2SLubos Kosco                <directory>../test/org/opensolaris/opengrok/history/</directory>
56aa4907e2SLubos Kosco                <excludes><exclude>*.java</exclude></excludes>
57aa4907e2SLubos Kosco            </testResource>
58aa4907e2SLubos Kosco        </testResources>
59aa4907e2SLubos Kosco
6008a0c20eSJorgen Austvik        <plugins>
61*e0f7ec00SKnut Anders Hatlen
62*e0f7ec00SKnut Anders Hatlen            <plugin>
63*e0f7ec00SKnut Anders Hatlen                <groupId>org.apache.maven.plugins</groupId>
64*e0f7ec00SKnut Anders Hatlen                <artifactId>maven-jar-plugin</artifactId>
65*e0f7ec00SKnut Anders Hatlen                <configuration>
66*e0f7ec00SKnut Anders Hatlen                    <archive>
67*e0f7ec00SKnut Anders Hatlen                        <manifest>
68*e0f7ec00SKnut Anders Hatlen                            <mainClass>org.opensolaris.opengrok.index.Indexer</mainClass>
69*e0f7ec00SKnut Anders Hatlen                            <addClasspath>true</addClasspath>
70*e0f7ec00SKnut Anders Hatlen                            <classpathPrefix>lib/</classpathPrefix>
71*e0f7ec00SKnut Anders Hatlen                        </manifest>
72*e0f7ec00SKnut Anders Hatlen                        <manifestEntries>
73*e0f7ec00SKnut Anders Hatlen                            <!--
74*e0f7ec00SKnut Anders Hatlen                                We don't include Derby yet, but set
75*e0f7ec00SKnut Anders Hatlen                                up the classpath so that it's found
76*e0f7ec00SKnut Anders Hatlen                                at runtime if it's installed.
77*e0f7ec00SKnut Anders Hatlen                            -->
78*e0f7ec00SKnut Anders Hatlen                            <Class-Path>lib/derbyclient.jar lib/derby.jar</Class-Path>
79*e0f7ec00SKnut Anders Hatlen                        </manifestEntries>
80*e0f7ec00SKnut Anders Hatlen                    </archive>
81*e0f7ec00SKnut Anders Hatlen                </configuration>
82*e0f7ec00SKnut Anders Hatlen            </plugin>
83*e0f7ec00SKnut Anders Hatlen
8408a0c20eSJorgen Austvik            <plugin>
8508a0c20eSJorgen Austvik                <groupId>de.jflex</groupId>
8608a0c20eSJorgen Austvik                <artifactId>maven-jflex-plugin</artifactId>
8708a0c20eSJorgen Austvik                <version>1.4.3</version>
8808a0c20eSJorgen Austvik                <executions>
8908a0c20eSJorgen Austvik                    <execution>
9008a0c20eSJorgen Austvik                        <goals>
9108a0c20eSJorgen Austvik                            <goal>generate</goal>
9208a0c20eSJorgen Austvik                        </goals>
9308a0c20eSJorgen Austvik                        <configuration>
9408a0c20eSJorgen Austvik                            <lexDefinitions>
95ddbda309SKnut Anders Hatlen                                <lexDefinition>../src</lexDefinition>
9608a0c20eSJorgen Austvik                            </lexDefinitions>
9708a0c20eSJorgen Austvik                        </configuration>
9808a0c20eSJorgen Austvik                    </execution>
9908a0c20eSJorgen Austvik                </executions>
10008a0c20eSJorgen Austvik            </plugin>
1012e3d7e6eSJorgen Austvik
1022e3d7e6eSJorgen Austvik            <plugin>
1032e3d7e6eSJorgen Austvik                <artifactId>maven-antrun-plugin</artifactId>
1042e3d7e6eSJorgen Austvik                <executions>
1052e3d7e6eSJorgen Austvik                    <execution>
1062e3d7e6eSJorgen Austvik                        <id>build-config-files</id>
1072e3d7e6eSJorgen Austvik                        <phase>process-test-classes</phase>
1082e3d7e6eSJorgen Austvik                        <goals>
1092e3d7e6eSJorgen Austvik                            <goal>run</goal>
1102e3d7e6eSJorgen Austvik                        </goals>
1112e3d7e6eSJorgen Austvik                        <configuration>
1122e3d7e6eSJorgen Austvik                            <tasks unless="maven.test.skip">
1132e3d7e6eSJorgen Austvik                                <ant antfile="${basedir}/build.xml">
1142e3d7e6eSJorgen Austvik                                    <target name="-post-compile-test"/>
1152e3d7e6eSJorgen Austvik                                </ant>
1162e3d7e6eSJorgen Austvik                            </tasks>
1172e3d7e6eSJorgen Austvik                        </configuration>
1182e3d7e6eSJorgen Austvik                    </execution>
1192e3d7e6eSJorgen Austvik                </executions>
1202e3d7e6eSJorgen Austvik            </plugin>
1212e3d7e6eSJorgen Austvik
122aa4907e2SLubos Kosco            <plugin>
123aa4907e2SLubos Kosco                <groupId>org.apache.maven.plugins</groupId>
124aa4907e2SLubos Kosco                <artifactId>maven-surefire-plugin</artifactId>
125aa4907e2SLubos Kosco                <configuration>
126aa4907e2SLubos Kosco                    <excludes>
127aa4907e2SLubos Kosco                        <!-- Test helper class with name that confuses surefire -->
128aa4907e2SLubos Kosco                        <exclude>**/TestRepository.java</exclude>
129aa4907e2SLubos Kosco                    </excludes>
130aa4907e2SLubos Kosco                </configuration>
131aa4907e2SLubos Kosco            </plugin>
132aa4907e2SLubos Kosco
133aa4907e2SLubos Kosco
13408a0c20eSJorgen Austvik        </plugins>
13508a0c20eSJorgen Austvik    </build>
13608a0c20eSJorgen Austvik
13708a0c20eSJorgen Austvik    <dependencies>
13808a0c20eSJorgen Austvik        <dependency>
13908a0c20eSJorgen Austvik            <groupId>org.apache.bcel</groupId>
14008a0c20eSJorgen Austvik            <artifactId>bcel</artifactId>
14108a0c20eSJorgen Austvik        </dependency>
14208a0c20eSJorgen Austvik        <dependency>
14308a0c20eSJorgen Austvik            <groupId>org.apache.lucene</groupId>
14408a0c20eSJorgen Austvik            <artifactId>lucene-core</artifactId>
14508a0c20eSJorgen Austvik        </dependency>
14608a0c20eSJorgen Austvik        <dependency>
14708a0c20eSJorgen Austvik            <groupId>org.apache.lucene</groupId>
14808a0c20eSJorgen Austvik            <artifactId>lucene-spellchecker</artifactId>
14908a0c20eSJorgen Austvik        </dependency>
15008a0c20eSJorgen Austvik        <dependency>
15108a0c20eSJorgen Austvik            <groupId>javax.servlet</groupId>
15208a0c20eSJorgen Austvik            <artifactId>servlet-api</artifactId>
15308a0c20eSJorgen Austvik        </dependency>
15408a0c20eSJorgen Austvik        <dependency>
155381a9b85SJorgen Austvik            <groupId>org.opensolaris.opengrok</groupId>
156381a9b85SJorgen Austvik            <artifactId>jrcs</artifactId>
157381a9b85SJorgen Austvik            <version>${project.version}</version>
15808a0c20eSJorgen Austvik        </dependency>
15908a0c20eSJorgen Austvik        <dependency>
16008a0c20eSJorgen Austvik            <groupId>org.apache.ant</groupId>
16108a0c20eSJorgen Austvik            <artifactId>ant</artifactId>
16208a0c20eSJorgen Austvik        </dependency>
16308a0c20eSJorgen Austvik        <dependency>
16408a0c20eSJorgen Austvik            <groupId>junit</groupId>
16508a0c20eSJorgen Austvik            <artifactId>junit</artifactId>
16608a0c20eSJorgen Austvik            <scope>test</scope>
16708a0c20eSJorgen Austvik        </dependency>
168aa4907e2SLubos Kosco        <dependency>
169aa4907e2SLubos Kosco            <groupId>org.apache.derby</groupId>
170aa4907e2SLubos Kosco            <artifactId>derby</artifactId>
171aa4907e2SLubos Kosco            <scope>test</scope>
172aa4907e2SLubos Kosco        </dependency>
173aa4907e2SLubos Kosco<!--        <dependency>
174aa4907e2SLubos Kosco            <groupId>org.apache.derby</groupId>
175aa4907e2SLubos Kosco            <artifactId>derbyclient</artifactId>
176aa4907e2SLubos Kosco            <scope>run</scope>
177aa4907e2SLubos Kosco        </dependency>
178aa4907e2SLubos Kosco-->
179aa4907e2SLubos Kosco
18008a0c20eSJorgen Austvik    </dependencies>
18108a0c20eSJorgen Austvik
18208a0c20eSJorgen Austvik</project>
183