blob: 6744c4905ee781eaf40ce1a0569da8106af680e7 [file] [log] [blame]
waqas.ikrambb89ed32018-06-18 14:04:52 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
a.sreekumar72f55c52020-03-05 23:36:06 +00004 Modifications Copyright (C) 2019-2020 Nordix Foundation
Ram Krishna Verma8d228522020-02-05 16:31:01 -05005 Modifications Copyright (C) 2019-2020 Bell Canada.
Jim Hahne470b092020-09-09 21:01:11 -04006 Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
waqas.ikrambb89ed32018-06-18 14:04:52 +01007 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 SPDX-License-Identifier: Apache-2.0
21 ============LICENSE_END=========================================================
22-->
liamfallon1f7c8612018-11-20 15:59:50 +000023<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
waqas.ikrambb89ed32018-06-18 14:04:52 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.policy.apex-pdp.packages</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050028 <artifactId>apex-packages</artifactId>
liamfallon40dc08d2021-03-12 09:23:56 +000029 <version>2.6.0-SNAPSHOT</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +010030 </parent>
31
32 <artifactId>apex-pdp-package-full</artifactId>
33 <name>${project.artifactId}</name>
34 <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description>
35
36 <properties>
37 <install.package.name>${project.artifactId}</install.package.name>
38 </properties>
39
40 <dependencies>
41 <dependency>
42 <groupId>org.onap.policy.apex-pdp.services</groupId>
43 <artifactId>services-engine</artifactId>
44 <version>${project.version}</version>
45 </dependency>
a.sreekumareabc6952019-04-11 16:56:29 +000046 <dependency>
47 <groupId>org.onap.policy.apex-pdp.services</groupId>
48 <artifactId>services-onappf</artifactId>
49 <version>${project.version}</version>
50 </dependency>
liamfallon9aa62b72020-03-25 12:09:54 +000051
waqas.ikrambb89ed32018-06-18 14:04:52 +010052 <!-- Plugins for Context Distribution -->
53 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010054 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
55 <artifactId>plugins-context-distribution-hazelcast</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010056 <version>${project.version}</version>
57 </dependency>
58 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010059 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
60 <artifactId>plugins-context-distribution-infinispan</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010061 <version>${project.version}</version>
62 </dependency>
63
64 <!-- Plugins for Context Locking -->
65 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010066 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
67 <artifactId>plugins-context-locking-hazelcast</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010068 <version>${project.version}</version>
69 </dependency>
70 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010071 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
72 <artifactId>plugins-context-locking-curator</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010073 <version>${project.version}</version>
74 </dependency>
75
76 <!-- Plugins for Context Schemas -->
77 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010078 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
79 <artifactId>plugins-context-schema-avro</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010080 <version>${project.version}</version>
81 </dependency>
82
83 <!-- Plugins for Executors -->
84 <dependency>
85 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
86 <artifactId>plugins-executor-java</artifactId>
87 <version>${project.version}</version>
88 </dependency>
89 <dependency>
90 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
91 <artifactId>plugins-executor-javascript</artifactId>
92 <version>${project.version}</version>
93 </dependency>
94 <dependency>
95 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
96 <artifactId>plugins-executor-jruby</artifactId>
97 <version>${project.version}</version>
98 </dependency>
liamfallon88f17592019-09-14 12:39:25 +010099 <!-- Jython support disabled due to security concerns -->
100 <!-- dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100101 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
102 <artifactId>plugins-executor-jython</artifactId>
103 <version>${project.version}</version>
liamfallon88f17592019-09-14 12:39:25 +0100104 </dependency-->
waqas.ikrambb89ed32018-06-18 14:04:52 +0100105 <dependency>
106 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
107 <artifactId>plugins-executor-mvel</artifactId>
108 <version>${project.version}</version>
109 </dependency>
110
111 <!-- Plugins for Persistence of Models over JPA -->
112 <dependency>
113 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
114 <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
115 <version>${project.version}</version>
116 </dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100117
118 <!-- Plugins for event carrier technologies -->
119 <dependency>
120 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
121 <artifactId>plugins-event-carrier-kafka</artifactId>
122 <version>${project.version}</version>
123 </dependency>
124 <dependency>
125 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
126 <artifactId>plugins-event-carrier-websocket</artifactId>
127 <version>${project.version}</version>
128 </dependency>
129 <dependency>
130 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
131 <artifactId>plugins-event-carrier-jms</artifactId>
132 <version>${project.version}</version>
133 </dependency>
134 <dependency>
135 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
136 <artifactId>plugins-event-carrier-restclient</artifactId>
137 <version>${project.version}</version>
138 </dependency>
139 <dependency>
140 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
141 <artifactId>plugins-event-carrier-restserver</artifactId>
142 <version>${project.version}</version>
143 </dependency>
144 <dependency>
145 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
146 <artifactId>plugins-event-carrier-restrequestor</artifactId>
147 <version>${project.version}</version>
148 </dependency>
a.sreekumar72f55c52020-03-05 23:36:06 +0000149 <dependency>
150 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
151 <artifactId>plugins-event-carrier-grpc</artifactId>
152 <version>${project.version}</version>
153 </dependency>
liamfallon1f7c8612018-11-20 15:59:50 +0000154 <!-- Benchmark test event generator -->
155 <dependency>
156 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
157 <artifactId>performance-benchmark-test</artifactId>
158 <version>${project.version}</version>
159 </dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100160
161 <!-- Plugins for event protocols -->
162 <dependency>
163 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
164 <artifactId>plugins-event-protocol-xml</artifactId>
165 <version>${project.version}</version>
166 </dependency>
167 <dependency>
168 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
169 <artifactId>plugins-event-protocol-jms</artifactId>
170 <version>${project.version}</version>
171 </dependency>
172
173 <!-- Authoring and Editors -->
174 <dependency>
175 <groupId>org.onap.policy.apex-pdp.auth</groupId>
176 <artifactId>cli-editor</artifactId>
177 <version>${project.version}</version>
178 </dependency>
liamfallon9aa62b72020-03-25 12:09:54 +0000179
liamfallona41c8772018-09-05 15:46:31 +0100180 <!-- Tools -->
181 <dependency>
182 <groupId>org.onap.policy.apex-pdp.tools</groupId>
183 <artifactId>simple-wsclient</artifactId>
184 <version>${project.version}</version>
185 </dependency>
186 <dependency>
187 <groupId>org.onap.policy.apex-pdp.tools</groupId>
188 <artifactId>model-generator</artifactId>
189 <version>${project.version}</version>
190 </dependency>
liamfallon9aa62b72020-03-25 12:09:54 +0000191
ramverma28ea3362018-07-18 16:28:07 +0100192 <!-- Test Data used by examples -->
waqas.ikrambb89ed32018-06-18 14:04:52 +0100193 <dependency>
ramverma28ea3362018-07-18 16:28:07 +0100194 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
195 <artifactId>integration-common</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100196 <version>${project.version}</version>
197 </dependency>
liamfallon9aa62b72020-03-25 12:09:54 +0000198
ramverma3d025432018-07-19 18:45:16 +0100199 <!-- Sample Examples -->
200 <dependency>
201 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100202 <artifactId>examples-aadm</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100203 <version>${project.version}</version>
204 </dependency>
205 <dependency>
206 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100207 <artifactId>examples-adaptive</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100208 <version>${project.version}</version>
209 </dependency>
210 <dependency>
211 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100212 <artifactId>examples-myfirstpolicy</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100213 <version>${project.version}</version>
214 </dependency>
215 <dependency>
216 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100217 <artifactId>examples-pcvs</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100218 <version>${project.version}</version>
219 </dependency>
ramvermad524ced2018-07-24 17:36:53 +0100220 <dependency>
221 <groupId>org.onap.policy.apex-pdp.examples</groupId>
222 <artifactId>examples-decisionmaker</artifactId>
223 <version>${project.version}</version>
224 </dependency>
225 <dependency>
226 <groupId>org.onap.policy.apex-pdp.examples</groupId>
227 <artifactId>examples-periodic</artifactId>
228 <version>${project.version}</version>
229 </dependency>
230 <dependency>
231 <groupId>org.onap.policy.apex-pdp.examples</groupId>
232 <artifactId>examples-onap-vcpe</artifactId>
233 <version>${project.version}</version>
234 </dependency>
ramverma9e318f22018-07-30 19:13:47 +0100235 <dependency>
236 <groupId>org.onap.policy.apex-pdp.examples</groupId>
s003703465262c352019-04-11 00:14:39 +0530237 <artifactId>examples-onap-bbs</artifactId>
238 <version>${project.version}</version>
239 </dependency>
a.sreekumarf46af332020-03-20 18:30:43 +0000240 <dependency>
241 <groupId>org.onap.policy.apex-pdp.examples</groupId>
242 <artifactId>examples-grpc</artifactId>
243 <version>${project.version}</version>
244 </dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100245 </dependencies>
246
247 <build>
248 <plugins>
249 <!-- Copy required resources and examples -->
250 <plugin>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-dependency-plugin</artifactId>
253 <executions>
254 <execution>
255 <id>unpack-etc-examples</id>
256 <phase>package</phase>
257 <goals>
258 <goal>unpack</goal>
259 </goals>
260 <configuration>
261 <artifactItems>
262 <artifactItem>
a.sreekumareabc6952019-04-11 16:56:29 +0000263 <groupId>org.onap.policy.apex-pdp.services</groupId>
264 <artifactId>services-onappf</artifactId>
265 <version>${project.version}</version>
266 <type>jar</type>
267 <overWrite>false</overWrite>
268 <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
269 <includes>config/*</includes>
270 </artifactItem>
271 <artifactItem>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100272 <groupId>org.onap.policy.apex-pdp.auth</groupId>
273 <artifactId>cli-editor</artifactId>
ramverma28ea3362018-07-18 16:28:07 +0100274 <version>${project.version}</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100275 <type>jar</type>
276 <overWrite>false</overWrite>
277 <outputDirectory>${project.build.directory}</outputDirectory>
278 <includes>etc/**/*,examples/**/*</includes>
279 </artifactItem>
280 <artifactItem>
ramverma28ea3362018-07-18 16:28:07 +0100281 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
282 <artifactId>integration-common</artifactId>
283 <version>${project.version}</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100284 <type>jar</type>
285 <overWrite>false</overWrite>
ramverma28ea3362018-07-18 16:28:07 +0100286 <outputDirectory>${project.build.directory}</outputDirectory>
287 <includes>etc/**/*,examples/**/*</includes>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100288 </artifactItem>
ramverma3d025432018-07-19 18:45:16 +0100289 <artifactItem>
liamfallon1f7c8612018-11-20 15:59:50 +0000290 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
291 <artifactId>performance-benchmark-test</artifactId>
292 <version>${project.version}</version>
293 <type>jar</type>
294 <overWrite>false</overWrite>
295 <outputDirectory>${project.build.directory}</outputDirectory>
296 <includes>examples/**/*</includes>
297 </artifactItem>
298 <artifactItem>
ramverma3d025432018-07-19 18:45:16 +0100299 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100300 <artifactId>examples-aadm</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100301 <version>${project.version}</version>
302 <type>jar</type>
303 <overWrite>false</overWrite>
304 <outputDirectory>${project.build.directory}</outputDirectory>
305 <includes>etc/**/*,examples/**/*</includes>
306 </artifactItem>
307 <artifactItem>
308 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100309 <artifactId>examples-adaptive</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100310 <version>${project.version}</version>
311 <type>jar</type>
312 <overWrite>false</overWrite>
313 <outputDirectory>${project.build.directory}</outputDirectory>
314 <includes>etc/**/*,examples/**/*</includes>
315 </artifactItem>
316 <artifactItem>
317 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100318 <artifactId>examples-myfirstpolicy</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100319 <version>${project.version}</version>
320 <type>jar</type>
321 <overWrite>false</overWrite>
322 <outputDirectory>${project.build.directory}</outputDirectory>
323 <includes>etc/**/*,examples/**/*</includes>
324 </artifactItem>
325 <artifactItem>
326 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100327 <artifactId>examples-pcvs</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100328 <version>${project.version}</version>
329 <type>jar</type>
330 <overWrite>false</overWrite>
331 <outputDirectory>${project.build.directory}</outputDirectory>
332 <includes>etc/**/*,examples/**/*</includes>
333 </artifactItem>
ramvermad524ced2018-07-24 17:36:53 +0100334 <artifactItem>
335 <groupId>org.onap.policy.apex-pdp.examples</groupId>
336 <artifactId>examples-decisionmaker</artifactId>
337 <version>${project.version}</version>
338 <type>jar</type>
339 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100340 <outputDirectory>${project.build.directory}</outputDirectory>
341 <includes>etc/**/*,examples/**/*</includes>
ramvermad524ced2018-07-24 17:36:53 +0100342 </artifactItem>
343 <artifactItem>
344 <groupId>org.onap.policy.apex-pdp.examples</groupId>
liamfallon3595f7c2018-09-27 15:40:13 +0100345 <artifactId>examples-decisionmaker</artifactId>
346 <version>${project.version}</version>
347 <type>jar</type>
348 <overWrite>false</overWrite>
349 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
liamfallon9684e032018-12-19 18:29:05 +0000350 <includes>*PolicyModel.json</includes>
liamfallon3595f7c2018-09-27 15:40:13 +0100351 </artifactItem>
352 <artifactItem>
353 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermad524ced2018-07-24 17:36:53 +0100354 <artifactId>examples-periodic</artifactId>
355 <version>${project.version}</version>
356 <type>jar</type>
357 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100358 <outputDirectory>${project.build.directory}</outputDirectory>
359 <includes>etc/**/*,examples/**/*</includes>
ramvermad524ced2018-07-24 17:36:53 +0100360 </artifactItem>
361 <artifactItem>
362 <groupId>org.onap.policy.apex-pdp.examples</groupId>
liamfallon3595f7c2018-09-27 15:40:13 +0100363 <artifactId>examples-periodic</artifactId>
364 <version>${project.version}</version>
365 <type>jar</type>
366 <overWrite>false</overWrite>
367 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
368 <includes>PeriodicPolicyModel.json</includes>
369 </artifactItem>
370 <artifactItem>
371 <groupId>org.onap.policy.apex-pdp.examples</groupId>
372 <artifactId>examples-onap-vcpe</artifactId>
373 <version>${project.version}</version>
374 <type>jar</type>
375 <overWrite>false</overWrite>
376 <outputDirectory>${project.build.directory}</outputDirectory>
377 <includes>etc/**/*,examples/**/*</includes>
378 </artifactItem>
379 <artifactItem>
380 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermad524ced2018-07-24 17:36:53 +0100381 <artifactId>examples-onap-vcpe</artifactId>
382 <version>${project.version}</version>
383 <type>jar</type>
384 <overWrite>false</overWrite>
liamfallon3595f7c2018-09-27 15:40:13 +0100385 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
386 <includes>ONAPvCPEPolicyModel.json</includes>
ramvermad524ced2018-07-24 17:36:53 +0100387 </artifactItem>
ramverma9e318f22018-07-30 19:13:47 +0100388 <artifactItem>
389 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramverma42e49262019-06-06 14:44:52 +0000390 <artifactId>examples-onap-bbs</artifactId>
s003703465262c352019-04-11 00:14:39 +0530391 <version>${project.version}</version>
392 <type>jar</type>
393 <overWrite>false</overWrite>
394 <outputDirectory>${project.build.directory}</outputDirectory>
395 <includes>etc/**/*,examples/**/*</includes>
396 </artifactItem>
397 <artifactItem>
398 <groupId>org.onap.policy.apex-pdp.examples</groupId>
399 <artifactId>examples-onap-bbs</artifactId>
400 <version>${project.version}</version>
401 <type>jar</type>
402 <overWrite>false</overWrite>
403 <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
404 <includes>NomadicONTPolicyModel.json</includes>
405 </artifactItem>
406 <artifactItem>
liamfallona41c8772018-09-05 15:46:31 +0100407 <groupId>org.onap.policy.apex-pdp.tools</groupId>
408 <artifactId>tools-common</artifactId>
409 <version>${project.version}</version>
410 <type>jar</type>
411 <overWrite>false</overWrite>
412 <outputDirectory>${project.build.directory}/etc</outputDirectory>
413 <includes>/app-version.txt</includes>
414 </artifactItem>
a.sreekumarf46af332020-03-20 18:30:43 +0000415 <artifactItem>
416 <groupId>org.onap.policy.apex-pdp.examples</groupId>
417 <artifactId>examples-grpc</artifactId>
418 <version>${project.version}</version>
419 <type>jar</type>
420 <overWrite>false</overWrite>
421 <outputDirectory>${project.build.directory}</outputDirectory>
422 <includes>etc/**/*,examples/**/*</includes>
423 </artifactItem>
424 <artifactItem>
425 <groupId>org.onap.policy.apex-pdp.examples</groupId>
426 <artifactId>examples-grpc</artifactId>
427 <version>${project.version}</version>
428 <type>jar</type>
429 <overWrite>false</overWrite>
430 <outputDirectory>${project.build.directory}/examples/models/APEXgRPC</outputDirectory>
431 <includes>APEXgRPCPolicy.json</includes>
432 </artifactItem>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100433 </artifactItems>
434 <overWriteReleases>true</overWriteReleases>
435 <overWriteSnapshots>true</overWriteSnapshots>
436 </configuration>
437 </execution>
liamfallona41c8772018-09-05 15:46:31 +0100438 <execution>
439 <id>copy-fat-jars</id>
440 <phase>package</phase>
441 <goals>
442 <goal>copy</goal>
443 </goals>
444 <configuration>
445 <artifactItems>
446 <artifactItem>
447 <groupId>org.onap.policy.apex-pdp.tools</groupId>
448 <artifactId>simple-wsclient</artifactId>
449 <version>${project.version}</version>
450 <type>jar</type>
451 <classifier>jar-with-dependencies</classifier>
452 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
453 </artifactItem>
liamfallona41c8772018-09-05 15:46:31 +0100454 </artifactItems>
455 <overWriteReleases>true</overWriteReleases>
456 <overWriteSnapshots>true</overWriteSnapshots>
457 </configuration>
458 </execution>
459
waqas.ikrambb89ed32018-06-18 14:04:52 +0100460 </executions>
461 </plugin>
liamfallon9aa62b72020-03-25 12:09:54 +0000462
waqas.ikrambb89ed32018-06-18 14:04:52 +0100463 <!-- Build the tar ball -->
464 <plugin>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-assembly-plugin</artifactId>
467 <executions>
468 <execution>
469 <id>generate-complete-tar</id>
470 <phase>package</phase>
471 <goals>
472 <goal>single</goal>
473 </goals>
474 <configuration>
475 <descriptors>
476 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
477 </descriptors>
478 <finalName>${project.artifactId}-${project.version}</finalName>
Rashmi Pujar7b945412019-06-17 10:34:49 -0400479 <appendAssemblyId>false</appendAssemblyId>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100480 </configuration>
481 </execution>
482 </executions>
483 </plugin>
484 <plugin>
485 <artifactId>maven-antrun-plugin</artifactId>
486 <executions>
487 <execution>
488 <phase>package</phase>
489 <configuration>
490 <tasks>
liamfallon1f7c8612018-11-20 15:59:50 +0000491 <untar
Rashmi Pujar7b945412019-06-17 10:34:49 -0400492 src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
liamfallon1f7c8612018-11-20 15:59:50 +0000493 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
waqas.ikrambb89ed32018-06-18 14:04:52 +0100494 </tasks>
495 </configuration>
496 <goals>
497 <goal>run</goal>
498 </goals>
499 </execution>
500 <execution>
501 <id>fix-permissions</id>
502 <phase>package</phase>
503 <configuration>
504 <tasks>
505 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
506 </tasks>
507 </configuration>
508 <goals>
509 <goal>run</goal>
510 </goals>
511 </execution>
512 </executions>
513 </plugin>
514 <!-- Build the dpkg distribution -->
515 <plugin>
516 <groupId>org.vafer</groupId>
517 <artifactId>jdeb</artifactId>
518 <version>1.5</version>
519 <executions>
520 <execution>
521 <phase>package</phase>
522 <goals>
523 <goal>jdeb</goal>
524 </goals>
525 <configuration>
526 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
527 <controlDir>${basedir}/src/main/package/control</controlDir>
528 <dataSet>
529 <!-- Copy the Apex run time configuration -->
530 <data>
531 <src>${project.build.directory}/install_hierarchy/lib</src>
532 <type>directory</type>
533 <dst>lib</dst>
534 <mapper>
535 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100536 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100537 <filemode>755</filemode>
538 </mapper>
539 </data>
540 <data>
541 <src>${project.build.directory}/install_hierarchy/bin</src>
542 <type>directory</type>
543 <dst>etc</dst>
544 <mapper>
545 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100546 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100547 </mapper>
548 </data>
549 <data>
550 <src>${project.build.directory}/install_hierarchy/etc</src>
551 <type>directory</type>
552 <dst>etc</dst>
553 <mapper>
554 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100555 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100556 </mapper>
557 </data>
558 <data>
559 <src>${project.build.directory}/install_hierarchy/examples</src>
560 <type>directory</type>
561 <dst>etc</dst>
562 <mapper>
563 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100564 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100565 </mapper>
566 </data>
567 </dataSet>
568 </configuration>
569 </execution>
570 </executions>
571 </plugin>
572 </plugins>
573 </build>
574 <profiles>
575 <profile>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100576 <id>only-eclipse</id>
577 <activation>
578 <property>
579 <name>m2e.version</name>
580 </property>
581 </activation>
582 <build>
583 <pluginManagement>
584 <plugins>
585 <plugin>
586 <groupId>org.eclipse.m2e</groupId>
587 <artifactId>lifecycle-mapping</artifactId>
588 <configuration>
589 <lifecycleMappingMetadata>
590 <pluginExecutions>
591 <pluginExecution>
592 <pluginExecutionFilter>
593 <groupId>org.apache.maven.plugins</groupId>
594 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000595 <versionRange>[2.0,)</versionRange>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100596 <goals>
597 <goal>unpack</goal>
598 <goal>copy</goal>
599 </goals>
600 </pluginExecutionFilter>
601 <action>
602 <ignore />
603 </action>
604 </pluginExecution>
605 </pluginExecutions>
606 </lifecycleMappingMetadata>
607 </configuration>
608 </plugin>
609 </plugins>
610 </pluginManagement>
611 </build>
612 </profile>
613 </profiles>
liamfallon5906f302018-07-10 12:25:19 +0300614</project>