-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpom.xml-tmpl
141 lines (130 loc) · 5.52 KB
/
pom.xml-tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.graylog</groupId>
<artifactId>graylog-project</artifactId>
<version>{{ .Server.Version }}</version>
<packaging>pom</packaging>
<scm>
<connection>scm:git:[email protected]:Graylog2/graylog-project.git</connection>
<developerConnection>scm:git:[email protected]:Graylog2/graylog-project.git</developerConnection>
<url>https://github.com/Graylog2/graylog-project</url>
<tag>HEAD</tag>
</scm>
<modules>
<module>runner</module>
{{- range $module := .Modules }}
<module>{{ .RelativePath }}</module>
{{- end }}
</modules>
<properties>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
<maven.source.skip>true</maven.source.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.install.skip>true</maven.install.skip>
<maven.deploy.skip>true</maven.deploy.skip>
<maven.site.skip>true</maven.site.skip>
<!-- Can be used to set a custom suffix for the assembly output -->
<assembly.suffix></assembly.suffix>
<!-- to work around filtering bug, which makes maven.build.timestamp inaccessible -->
<build.timestamp>${maven.build.timestamp}</build.timestamp>
</properties>
<dependencyManagement>
<dependencies>
<!-- Ensure consistent dependency versions by importing the entries
from <dependencyManagement/> in graylog-parent. -->
<dependency>
<groupId>org.graylog</groupId>
<artifactId>graylog-parent</artifactId>
<version>{{ .Server.Version }}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
{{- range $dependency := .Dependencies }}
<dependency>
<groupId>{{ $dependency.GroupId }}</groupId>
<artifactId>{{ $dependency.ArtifactId }}</artifactId>
<version>{{ $dependency.Version }}</version>
</dependency>
{{- end }}
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<inherited>false</inherited>
<executions>
{{- range $name, $data := .Assemblies }}
<execution>
<id>generate-{{ $name }}-artifact</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>{{ $name }}-${project.version}-${maven.build.timestamp}${assembly.suffix}</finalName>
<outputDirectory>${project.build.directory}/artifacts/{{ $name }}</outputDirectory>
<descriptors>
<descriptor>src/main/assembly/{{ $name }}.xml</descriptor>
</descriptors>
</configuration>
</execution>
{{- end }}
</executions>
<configuration>
<attach>false</attach>
<appendAssemblyId>false</appendAssemblyId>
<ignoreMissingDescriptor>true</ignoreMissingDescriptor>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.5</version>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
{{- range $name, $data := .Assemblies }}
<execution>
<id>generate-{{ $name }}-artifact</id>
<configuration>
<finalName>{{ $name }}-${project.version}</finalName>
</configuration>
</execution>
{{- end }}
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>