xref: /OpenGrok/distribution/pom.xml (revision 1a2ed5cf92e80419ef690aef909685020d04e0e7)
1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5  <modelVersion>4.0.0</modelVersion>
6
7  <parent>
8    <groupId>org.opengrok</groupId>
9    <artifactId>opengrok-top</artifactId>
10    <version>1.7.32</version>
11  </parent>
12
13  <artifactId>opengrok-dist</artifactId>
14
15  <packaging>pom</packaging>
16
17  <name>Distribution</name>
18
19  <properties>
20    <project.python.package.version>${project.version}</project.python.package.version>
21  </properties>
22
23  <!--
24       NOTE: These dependency declarations are required to sort this project
25       to the end of the line in the multimodule build and to get the jar files.
26  -->
27  <dependencies>
28    <dependency>
29      <groupId>org.opengrok</groupId>
30      <artifactId>opengrok</artifactId>
31      <version>1.7.32</version>
32    </dependency>
33
34    <dependency>
35      <groupId>org.opengrok</groupId>
36      <artifactId>opengrok-web</artifactId>
37      <version>1.7.32</version>
38      <type>war</type>
39    </dependency>
40
41    <dependency>
42      <groupId>org.opengrok</groupId>
43      <artifactId>tools</artifactId>
44      <version>1.7.32</version>
45      <type>pom</type>
46    </dependency>
47  </dependencies>
48
49  <build>
50      <plugins>
51          <plugin>
52            <groupId>org.apache.maven.plugins</groupId>
53            <artifactId>maven-dependency-plugin</artifactId>
54            <version>3.1.0</version>
55            <executions>
56              <execution>
57                <id>copy-dependencies</id>
58                <phase>package</phase>
59                <goals>
60                  <goal>copy-dependencies</goal>
61                </goals>
62                <configuration>
63                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
64                  <overWriteReleases>false</overWriteReleases>
65                  <overWriteSnapshots>false</overWriteSnapshots>
66                  <overWriteIfNewer>true</overWriteIfNewer>
67                </configuration>
68              </execution>
69            </executions>
70          </plugin>
71          <plugin>
72            <artifactId>maven-assembly-plugin</artifactId>
73            <version>3.1.0</version>
74            <configuration>
75              <finalName>opengrok-${project.version}</finalName>
76              <appendAssemblyId>false</appendAssemblyId>
77              <descriptors>
78                <descriptor>assembly.xml</descriptor>
79              </descriptors>
80            </configuration>
81            <executions>
82              <execution>
83                <id>create-archive</id>
84                <phase>package</phase>
85                <goals>
86                  <goal>single</goal>
87                </goals>
88              </execution>
89            </executions>
90          </plugin>
91      </plugins>
92  </build>
93
94</project>
95