xref: /OpenGrok/distribution/pom.xml (revision 3248c7045297c8b3475b1545bbbf5e4d66556408)
16ed99b2dSVladimir Kotal<?xml version="1.0" encoding="UTF-8"?>
26ed99b2dSVladimir Kotal<project xmlns="http://maven.apache.org/POM/4.0.0"
36ed99b2dSVladimir Kotal         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
46ed99b2dSVladimir Kotal         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
56ed99b2dSVladimir Kotal  <modelVersion>4.0.0</modelVersion>
66ed99b2dSVladimir Kotal
76ed99b2dSVladimir Kotal  <parent>
8bb76b0b8SAdam Hornáček    <groupId>org.opengrok</groupId>
96ed99b2dSVladimir Kotal    <artifactId>opengrok-top</artifactId>
109ce281fdSVladimir Kotal    <version>1.3.0</version>
116ed99b2dSVladimir Kotal  </parent>
126ed99b2dSVladimir Kotal
136ed99b2dSVladimir Kotal  <artifactId>opengrok-dist</artifactId>
146ed99b2dSVladimir Kotal
156ed99b2dSVladimir Kotal  <packaging>pom</packaging>
166ed99b2dSVladimir Kotal
176ed99b2dSVladimir Kotal  <name>Distribution</name>
186ed99b2dSVladimir Kotal
19*3248c704SVladimir Kotal  <properties>
20*3248c704SVladimir Kotal    <project.python.package.version>${project.version}</project.python.package.version>
21*3248c704SVladimir Kotal  </properties>
22*3248c704SVladimir Kotal
236ed99b2dSVladimir Kotal  <!--
246ed99b2dSVladimir Kotal       NOTE: These dependency declarations are required to sort this project
256ed99b2dSVladimir Kotal       to the end of the line in the multimodule build and to get the jar files.
266ed99b2dSVladimir Kotal  -->
276ed99b2dSVladimir Kotal  <dependencies>
286ed99b2dSVladimir Kotal    <dependency>
29bb76b0b8SAdam Hornáček      <groupId>org.opengrok</groupId>
306ed99b2dSVladimir Kotal      <artifactId>opengrok</artifactId>
319ce281fdSVladimir Kotal      <version>1.3.0</version>
326ed99b2dSVladimir Kotal    </dependency>
336ed99b2dSVladimir Kotal
346ed99b2dSVladimir Kotal    <dependency>
35bb76b0b8SAdam Hornáček      <groupId>org.opengrok</groupId>
366ed99b2dSVladimir Kotal      <artifactId>opengrok-web</artifactId>
379ce281fdSVladimir Kotal      <version>1.3.0</version>
386ed99b2dSVladimir Kotal      <type>war</type>
396ed99b2dSVladimir Kotal    </dependency>
4005e2e2ceSVladimir Kotal
4105e2e2ceSVladimir Kotal    <dependency>
4205e2e2ceSVladimir Kotal      <groupId>org.opengrok</groupId>
437ac1f5d2SKryštof Tulinger      <artifactId>opengrok-tools</artifactId>
449ce281fdSVladimir Kotal      <version>1.3.0</version>
450a781966SVladimir Kotal      <type>pom</type>
4605e2e2ceSVladimir Kotal    </dependency>
476ed99b2dSVladimir Kotal  </dependencies>
486ed99b2dSVladimir Kotal
496ed99b2dSVladimir Kotal  <build>
506ed99b2dSVladimir Kotal      <plugins>
516ed99b2dSVladimir Kotal          <plugin>
526ed99b2dSVladimir Kotal            <groupId>org.apache.maven.plugins</groupId>
536ed99b2dSVladimir Kotal            <artifactId>maven-dependency-plugin</artifactId>
546ed99b2dSVladimir Kotal            <version>3.1.0</version>
556ed99b2dSVladimir Kotal            <executions>
566ed99b2dSVladimir Kotal              <execution>
576ed99b2dSVladimir Kotal                <id>copy-dependencies</id>
586ed99b2dSVladimir Kotal                <phase>package</phase>
596ed99b2dSVladimir Kotal                <goals>
606ed99b2dSVladimir Kotal                  <goal>copy-dependencies</goal>
616ed99b2dSVladimir Kotal                </goals>
626ed99b2dSVladimir Kotal                <configuration>
636ed99b2dSVladimir Kotal                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
646ed99b2dSVladimir Kotal                  <overWriteReleases>false</overWriteReleases>
656ed99b2dSVladimir Kotal                  <overWriteSnapshots>false</overWriteSnapshots>
666ed99b2dSVladimir Kotal                  <overWriteIfNewer>true</overWriteIfNewer>
676ed99b2dSVladimir Kotal                </configuration>
686ed99b2dSVladimir Kotal              </execution>
696ed99b2dSVladimir Kotal            </executions>
706ed99b2dSVladimir Kotal          </plugin>
716ed99b2dSVladimir Kotal          <plugin>
72bb76b0b8SAdam Hornáček            <groupId>org.codehaus.mojo</groupId>
73bb76b0b8SAdam Hornáček            <artifactId>exec-maven-plugin</artifactId>
74bb76b0b8SAdam Hornáček            <version>1.6.0</version>
75bb76b0b8SAdam Hornáček            <executions>
76bb76b0b8SAdam Hornáček              <execution>
77bb76b0b8SAdam Hornáček                <id>man-page</id>
78bb76b0b8SAdam Hornáček                <phase>package</phase>
79bb76b0b8SAdam Hornáček                <goals>
80bb76b0b8SAdam Hornáček                  <goal>exec</goal>
81bb76b0b8SAdam Hornáček                </goals>
82bb76b0b8SAdam Hornáček              </execution>
83bb76b0b8SAdam Hornáček            </executions>
84bb76b0b8SAdam Hornáček            <configuration>
85bb76b0b8SAdam Hornáček              <executable>java</executable>
86bb76b0b8SAdam Hornáček              <outputFile>${project.build.directory}/dist/opengrok.1</outputFile>
87bb76b0b8SAdam Hornáček              <arguments>
88bb76b0b8SAdam Hornáček                <argument>-classpath</argument>
89e4009810SAdam Hornáček                <argument>${project.build.directory}/dist/opengrok-${project.version}.jar</argument>
9010aced3cSAdam Hornáček                <argument>org.opengrok.indexer.index.Indexer</argument>
91bb76b0b8SAdam Hornáček                <argument>--man</argument>
92bb76b0b8SAdam Hornáček              </arguments>
93bb76b0b8SAdam Hornáček            </configuration>
94bb76b0b8SAdam Hornáček          </plugin>
95bb76b0b8SAdam Hornáček          <plugin>
966ed99b2dSVladimir Kotal            <artifactId>maven-assembly-plugin</artifactId>
976ed99b2dSVladimir Kotal            <version>3.1.0</version>
986ed99b2dSVladimir Kotal            <configuration>
99ae2ffddeSVladimir Kotal              <finalName>opengrok-${project.version}</finalName>
1006ed99b2dSVladimir Kotal              <appendAssemblyId>false</appendAssemblyId>
1016ed99b2dSVladimir Kotal              <descriptors>
1026ed99b2dSVladimir Kotal                <descriptor>assembly.xml</descriptor>
1036ed99b2dSVladimir Kotal              </descriptors>
1046ed99b2dSVladimir Kotal            </configuration>
1056ed99b2dSVladimir Kotal            <executions>
1066ed99b2dSVladimir Kotal              <execution>
1076ed99b2dSVladimir Kotal                <id>create-archive</id>
1086ed99b2dSVladimir Kotal                <phase>package</phase>
1096ed99b2dSVladimir Kotal                <goals>
1106ed99b2dSVladimir Kotal                  <goal>single</goal>
1116ed99b2dSVladimir Kotal                </goals>
1126ed99b2dSVladimir Kotal              </execution>
1136ed99b2dSVladimir Kotal            </executions>
1146ed99b2dSVladimir Kotal          </plugin>
1156ed99b2dSVladimir Kotal      </plugins>
1166ed99b2dSVladimir Kotal  </build>
1176ed99b2dSVladimir Kotal
1186ed99b2dSVladimir Kotal</project>
119