xref: /OpenGrok/distribution/pom.xml (revision 05e2e2ce0848405affb1c20895115ab42e212f56)
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>
10616b5796SVladimir Kotal    <version>1.1-rc35</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
196ed99b2dSVladimir Kotal  <!--
206ed99b2dSVladimir Kotal       NOTE: These dependency declarations are required to sort this project
216ed99b2dSVladimir Kotal       to the end of the line in the multimodule build and to get the jar files.
226ed99b2dSVladimir Kotal  -->
236ed99b2dSVladimir Kotal  <dependencies>
246ed99b2dSVladimir Kotal    <dependency>
25bb76b0b8SAdam Hornáček      <groupId>org.opengrok</groupId>
266ed99b2dSVladimir Kotal      <artifactId>opengrok</artifactId>
27616b5796SVladimir Kotal      <version>1.1-rc35</version>
286ed99b2dSVladimir Kotal    </dependency>
296ed99b2dSVladimir Kotal
306ed99b2dSVladimir Kotal    <dependency>
31bb76b0b8SAdam Hornáček      <groupId>org.opengrok</groupId>
326ed99b2dSVladimir Kotal      <artifactId>opengrok-web</artifactId>
33616b5796SVladimir Kotal      <version>1.1-rc35</version>
346ed99b2dSVladimir Kotal      <type>war</type>
356ed99b2dSVladimir Kotal    </dependency>
36*05e2e2ceSVladimir Kotal
37*05e2e2ceSVladimir Kotal    <dependency>
38*05e2e2ceSVladimir Kotal      <groupId>org.opengrok</groupId>
39*05e2e2ceSVladimir Kotal      <artifactId>tools</artifactId>
40*05e2e2ceSVladimir Kotal      <version>1.1-rc35</version>
41*05e2e2ceSVladimir Kotal    </dependency>
426ed99b2dSVladimir Kotal  </dependencies>
436ed99b2dSVladimir Kotal
446ed99b2dSVladimir Kotal  <build>
456ed99b2dSVladimir Kotal      <plugins>
466ed99b2dSVladimir Kotal          <plugin>
476ed99b2dSVladimir Kotal            <groupId>org.apache.maven.plugins</groupId>
486ed99b2dSVladimir Kotal            <artifactId>maven-dependency-plugin</artifactId>
496ed99b2dSVladimir Kotal            <version>3.1.0</version>
506ed99b2dSVladimir Kotal            <executions>
516ed99b2dSVladimir Kotal              <execution>
526ed99b2dSVladimir Kotal                <id>copy-dependencies</id>
536ed99b2dSVladimir Kotal                <phase>package</phase>
546ed99b2dSVladimir Kotal                <goals>
556ed99b2dSVladimir Kotal                  <goal>copy-dependencies</goal>
566ed99b2dSVladimir Kotal                </goals>
576ed99b2dSVladimir Kotal                <configuration>
586ed99b2dSVladimir Kotal                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
596ed99b2dSVladimir Kotal                  <overWriteReleases>false</overWriteReleases>
606ed99b2dSVladimir Kotal                  <overWriteSnapshots>false</overWriteSnapshots>
616ed99b2dSVladimir Kotal                  <overWriteIfNewer>true</overWriteIfNewer>
626ed99b2dSVladimir Kotal                </configuration>
636ed99b2dSVladimir Kotal              </execution>
646ed99b2dSVladimir Kotal            </executions>
656ed99b2dSVladimir Kotal          </plugin>
666ed99b2dSVladimir Kotal          <plugin>
67bb76b0b8SAdam Hornáček            <groupId>org.codehaus.mojo</groupId>
68bb76b0b8SAdam Hornáček            <artifactId>exec-maven-plugin</artifactId>
69bb76b0b8SAdam Hornáček            <version>1.6.0</version>
70bb76b0b8SAdam Hornáček            <executions>
71bb76b0b8SAdam Hornáček              <execution>
72bb76b0b8SAdam Hornáček                <id>man-page</id>
73bb76b0b8SAdam Hornáček                <phase>package</phase>
74bb76b0b8SAdam Hornáček                <goals>
75bb76b0b8SAdam Hornáček                  <goal>exec</goal>
76bb76b0b8SAdam Hornáček                </goals>
77bb76b0b8SAdam Hornáček              </execution>
78bb76b0b8SAdam Hornáček            </executions>
79bb76b0b8SAdam Hornáček            <configuration>
80bb76b0b8SAdam Hornáček              <executable>java</executable>
81bb76b0b8SAdam Hornáček              <outputFile>${project.build.directory}/dist/opengrok.1</outputFile>
82bb76b0b8SAdam Hornáček              <arguments>
83bb76b0b8SAdam Hornáček                <argument>-classpath</argument>
84e4009810SAdam Hornáček                <argument>${project.build.directory}/dist/opengrok-${project.version}.jar</argument>
8510aced3cSAdam Hornáček                <argument>org.opengrok.indexer.index.Indexer</argument>
86bb76b0b8SAdam Hornáček                <argument>--man</argument>
87bb76b0b8SAdam Hornáček              </arguments>
88bb76b0b8SAdam Hornáček            </configuration>
89bb76b0b8SAdam Hornáček          </plugin>
90bb76b0b8SAdam Hornáček          <plugin>
916ed99b2dSVladimir Kotal            <artifactId>maven-assembly-plugin</artifactId>
926ed99b2dSVladimir Kotal            <version>3.1.0</version>
936ed99b2dSVladimir Kotal            <configuration>
94ae2ffddeSVladimir Kotal              <finalName>opengrok-${project.version}</finalName>
956ed99b2dSVladimir Kotal              <appendAssemblyId>false</appendAssemblyId>
966ed99b2dSVladimir Kotal              <descriptors>
976ed99b2dSVladimir Kotal                <descriptor>assembly.xml</descriptor>
986ed99b2dSVladimir Kotal              </descriptors>
996ed99b2dSVladimir Kotal            </configuration>
1006ed99b2dSVladimir Kotal            <executions>
1016ed99b2dSVladimir Kotal              <execution>
1026ed99b2dSVladimir Kotal                <id>create-archive</id>
1036ed99b2dSVladimir Kotal                <phase>package</phase>
1046ed99b2dSVladimir Kotal                <goals>
1056ed99b2dSVladimir Kotal                  <goal>single</goal>
1066ed99b2dSVladimir Kotal                </goals>
1076ed99b2dSVladimir Kotal              </execution>
1086ed99b2dSVladimir Kotal            </executions>
1096ed99b2dSVladimir Kotal          </plugin>
1106ed99b2dSVladimir Kotal      </plugins>
1116ed99b2dSVladimir Kotal  </build>
1126ed99b2dSVladimir Kotal
1136ed99b2dSVladimir Kotal</project>
114