-
Notifications
You must be signed in to change notification settings - Fork 589
/
Copy pathpom.xml
215 lines (215 loc) · 7.93 KB
/
pom.xml
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0"?>
<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/maven-v4_0_0.xsd">
<parent>
<groupId>org.opennms</groupId>
<artifactId>org.opennms.assemblies</artifactId>
<version>34.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.opennms.assemblies</groupId>
<artifactId>org.opennms.assemblies.minion</artifactId>
<packaging>jar</packaging>
<name>OpenNMS Minion</name>
<url>http://maven.apache.org</url>
<properties>
<NAME_DISPLAY>Minion</NAME_DISPLAY>
<NAME_LC>minion</NAME_LC>
<INSTPREFIX>/opt/minion</INSTPREFIX>
<RUNAS>minion</RUNAS>
<INITDIR>/etc/init.d</INITDIR>
<SYSCONFDIR>/opt/minion/etc</SYSCONFDIR>
<PIDFILE>/opt/minion/data/log/minion.pid</PIDFILE>
</properties>
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/filtered</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<escapeString>\</escapeString>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<stripVersion>true</stripVersion>
<stripClassifier>true</stripClassifier>
<artifactItems>
<artifactItem>
<groupId>org.opennms.features.scv</groupId>
<artifactId>org.opennms.features.scv.cli</artifactId>
<version>${project.version}</version>
<classifier>jar-with-dependencies</classifier>
<type>jar</type>
<outputDirectory>${project.build.directory}/unpacked/base-assembly/bin</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>unpack-dependencies</id>
<phase>process-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.opennms.features.container</groupId>
<artifactId>minion</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
</artifactItem>
<artifactItem>
<groupId>org.opennms.features.minion</groupId>
<artifactId>repository</artifactId>
<version>${project.version}</version>
<classifier>repo</classifier>
<type>tar.gz</type>
<outputDirectory>${project.build.directory}/unpacked/repositories/default</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.opennms.features.minion</groupId>
<artifactId>core-repository</artifactId>
<version>${project.version}</version>
<classifier>repo</classifier>
<type>tar.gz</type>
<outputDirectory>${project.build.directory}/unpacked/repositories/core</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.opennms</groupId>
<artifactId>opennms-base-assembly</artifactId>
<version>${project.version}</version>
<classifier>daemon</classifier>
<type>tar.gz</type>
<outputDirectory>${project.build.directory}/unpacked/base-assembly</outputDirectory>
<includes>bin/_*.sh,bin/find-java.sh,bin/ensure-user-ping.sh,bin/fix-permissions,bin/update-package-permissions</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals><goal>files</goal></goals>
</execution>
</executions>
<configuration>
<algorithms><algorithm>SHA-1</algorithm></algorithms>
<fileSets>
<fileSet>
<directory>${project.build.directory}/unpacked/repositories</directory>
<includes>
<include>**/*.jar</include>
<include>**/*.pom</include>
<include>**/*.war</include>
<include>**/*.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/unpacked/minion-${project.version}</directory>
<includes>
<include>**/*.jar</include>
<include>**/*.pom</include>
<include>**/*.war</include>
<include>**/*.xml</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/minion.xml</descriptor>
</descriptors>
<overrideUid>0</overrideUid>
<overrideGid>0</overrideGid>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.opennms.features.container</groupId>
<artifactId>minion</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
</dependency>
<dependency>
<groupId>org.opennms.features.minion</groupId>
<artifactId>core-repository</artifactId>
<version>${project.version}</version>
<classifier>repo</classifier>
<type>tar.gz</type>
</dependency>
<dependency>
<groupId>org.opennms.features.minion</groupId>
<artifactId>repository</artifactId>
<version>${project.version}</version>
<classifier>repo</classifier>
<type>tar.gz</type>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-base-assembly</artifactId>
<version>${project.version}</version>
<classifier>daemon</classifier>
<type>tar.gz</type>
</dependency>
<dependency>
<groupId>org.opennms.features.scv</groupId>
<artifactId>org.opennms.features.scv.cli</artifactId>
<version>${project.version}</version>
<classifier>jar-with-dependencies</classifier>
</dependency>
<dependency>
<groupId>org.opennms.dependencies</groupId>
<artifactId>jasper-shaded</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</project>