blob: 5dc4f88be1c5b91be64017c29434d269a8b97c5c [file] [log] [blame]
waqas.ikrambb89ed32018-06-18 14:04:52 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
waynedunican47847dc2021-11-16 08:44:43 +00004 Modifications Copyright (C) 2019-2020, 2022 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>
liamfallon886976e2021-11-29 11:33:31 +000029 <version>2.7.1-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>
waynedunican47847dc2021-11-16 08:44:43 +0000248 <filters>
249 <filter>src/main/resources/properties/db.properties</filter>
250 </filters>
251 <resources>
252 <resource>
253 <directory>src/main/resources/META-INF</directory>
254 <filtering>true</filtering>
255 <includes>
256 <include>**/*.xml</include>
257 </includes>
258 </resource>
259 </resources>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100260 <plugins>
261 <!-- Copy required resources and examples -->
262 <plugin>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-dependency-plugin</artifactId>
265 <executions>
266 <execution>
267 <id>unpack-etc-examples</id>
268 <phase>package</phase>
269 <goals>
270 <goal>unpack</goal>
271 </goals>
272 <configuration>
273 <artifactItems>
274 <artifactItem>
a.sreekumareabc6952019-04-11 16:56:29 +0000275 <groupId>org.onap.policy.apex-pdp.services</groupId>
276 <artifactId>services-onappf</artifactId>
277 <version>${project.version}</version>
278 <type>jar</type>
279 <overWrite>false</overWrite>
280 <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
281 <includes>config/*</includes>
282 </artifactItem>
283 <artifactItem>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100284 <groupId>org.onap.policy.apex-pdp.auth</groupId>
285 <artifactId>cli-editor</artifactId>
ramverma28ea3362018-07-18 16:28:07 +0100286 <version>${project.version}</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100287 <type>jar</type>
288 <overWrite>false</overWrite>
289 <outputDirectory>${project.build.directory}</outputDirectory>
290 <includes>etc/**/*,examples/**/*</includes>
291 </artifactItem>
292 <artifactItem>
ramverma28ea3362018-07-18 16:28:07 +0100293 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
294 <artifactId>integration-common</artifactId>
295 <version>${project.version}</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100296 <type>jar</type>
297 <overWrite>false</overWrite>
ramverma28ea3362018-07-18 16:28:07 +0100298 <outputDirectory>${project.build.directory}</outputDirectory>
299 <includes>etc/**/*,examples/**/*</includes>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100300 </artifactItem>
ramverma3d025432018-07-19 18:45:16 +0100301 <artifactItem>
liamfallon1f7c8612018-11-20 15:59:50 +0000302 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
303 <artifactId>performance-benchmark-test</artifactId>
304 <version>${project.version}</version>
305 <type>jar</type>
306 <overWrite>false</overWrite>
307 <outputDirectory>${project.build.directory}</outputDirectory>
308 <includes>examples/**/*</includes>
309 </artifactItem>
310 <artifactItem>
ramverma3d025432018-07-19 18:45:16 +0100311 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100312 <artifactId>examples-aadm</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100313 <version>${project.version}</version>
314 <type>jar</type>
315 <overWrite>false</overWrite>
316 <outputDirectory>${project.build.directory}</outputDirectory>
317 <includes>etc/**/*,examples/**/*</includes>
318 </artifactItem>
319 <artifactItem>
320 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100321 <artifactId>examples-adaptive</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100322 <version>${project.version}</version>
323 <type>jar</type>
324 <overWrite>false</overWrite>
325 <outputDirectory>${project.build.directory}</outputDirectory>
326 <includes>etc/**/*,examples/**/*</includes>
327 </artifactItem>
328 <artifactItem>
329 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100330 <artifactId>examples-myfirstpolicy</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100331 <version>${project.version}</version>
332 <type>jar</type>
333 <overWrite>false</overWrite>
334 <outputDirectory>${project.build.directory}</outputDirectory>
335 <includes>etc/**/*,examples/**/*</includes>
336 </artifactItem>
337 <artifactItem>
338 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100339 <artifactId>examples-pcvs</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100340 <version>${project.version}</version>
341 <type>jar</type>
342 <overWrite>false</overWrite>
343 <outputDirectory>${project.build.directory}</outputDirectory>
344 <includes>etc/**/*,examples/**/*</includes>
345 </artifactItem>
ramvermad524ced2018-07-24 17:36:53 +0100346 <artifactItem>
347 <groupId>org.onap.policy.apex-pdp.examples</groupId>
348 <artifactId>examples-decisionmaker</artifactId>
349 <version>${project.version}</version>
350 <type>jar</type>
351 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100352 <outputDirectory>${project.build.directory}</outputDirectory>
353 <includes>etc/**/*,examples/**/*</includes>
ramvermad524ced2018-07-24 17:36:53 +0100354 </artifactItem>
355 <artifactItem>
356 <groupId>org.onap.policy.apex-pdp.examples</groupId>
liamfallon3595f7c2018-09-27 15:40:13 +0100357 <artifactId>examples-decisionmaker</artifactId>
358 <version>${project.version}</version>
359 <type>jar</type>
360 <overWrite>false</overWrite>
361 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
liamfallon9684e032018-12-19 18:29:05 +0000362 <includes>*PolicyModel.json</includes>
liamfallon3595f7c2018-09-27 15:40:13 +0100363 </artifactItem>
364 <artifactItem>
365 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermad524ced2018-07-24 17:36:53 +0100366 <artifactId>examples-periodic</artifactId>
367 <version>${project.version}</version>
368 <type>jar</type>
369 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100370 <outputDirectory>${project.build.directory}</outputDirectory>
371 <includes>etc/**/*,examples/**/*</includes>
ramvermad524ced2018-07-24 17:36:53 +0100372 </artifactItem>
373 <artifactItem>
374 <groupId>org.onap.policy.apex-pdp.examples</groupId>
liamfallon3595f7c2018-09-27 15:40:13 +0100375 <artifactId>examples-periodic</artifactId>
376 <version>${project.version}</version>
377 <type>jar</type>
378 <overWrite>false</overWrite>
379 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
380 <includes>PeriodicPolicyModel.json</includes>
381 </artifactItem>
382 <artifactItem>
383 <groupId>org.onap.policy.apex-pdp.examples</groupId>
384 <artifactId>examples-onap-vcpe</artifactId>
385 <version>${project.version}</version>
386 <type>jar</type>
387 <overWrite>false</overWrite>
388 <outputDirectory>${project.build.directory}</outputDirectory>
389 <includes>etc/**/*,examples/**/*</includes>
390 </artifactItem>
391 <artifactItem>
392 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermad524ced2018-07-24 17:36:53 +0100393 <artifactId>examples-onap-vcpe</artifactId>
394 <version>${project.version}</version>
395 <type>jar</type>
396 <overWrite>false</overWrite>
liamfallon3595f7c2018-09-27 15:40:13 +0100397 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
398 <includes>ONAPvCPEPolicyModel.json</includes>
ramvermad524ced2018-07-24 17:36:53 +0100399 </artifactItem>
ramverma9e318f22018-07-30 19:13:47 +0100400 <artifactItem>
401 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramverma42e49262019-06-06 14:44:52 +0000402 <artifactId>examples-onap-bbs</artifactId>
s003703465262c352019-04-11 00:14:39 +0530403 <version>${project.version}</version>
404 <type>jar</type>
405 <overWrite>false</overWrite>
406 <outputDirectory>${project.build.directory}</outputDirectory>
407 <includes>etc/**/*,examples/**/*</includes>
408 </artifactItem>
409 <artifactItem>
410 <groupId>org.onap.policy.apex-pdp.examples</groupId>
411 <artifactId>examples-onap-bbs</artifactId>
412 <version>${project.version}</version>
413 <type>jar</type>
414 <overWrite>false</overWrite>
415 <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
416 <includes>NomadicONTPolicyModel.json</includes>
417 </artifactItem>
418 <artifactItem>
liamfallona41c8772018-09-05 15:46:31 +0100419 <groupId>org.onap.policy.apex-pdp.tools</groupId>
420 <artifactId>tools-common</artifactId>
421 <version>${project.version}</version>
422 <type>jar</type>
423 <overWrite>false</overWrite>
424 <outputDirectory>${project.build.directory}/etc</outputDirectory>
425 <includes>/app-version.txt</includes>
426 </artifactItem>
a.sreekumarf46af332020-03-20 18:30:43 +0000427 <artifactItem>
428 <groupId>org.onap.policy.apex-pdp.examples</groupId>
429 <artifactId>examples-grpc</artifactId>
430 <version>${project.version}</version>
431 <type>jar</type>
432 <overWrite>false</overWrite>
433 <outputDirectory>${project.build.directory}</outputDirectory>
434 <includes>etc/**/*,examples/**/*</includes>
435 </artifactItem>
436 <artifactItem>
437 <groupId>org.onap.policy.apex-pdp.examples</groupId>
438 <artifactId>examples-grpc</artifactId>
439 <version>${project.version}</version>
440 <type>jar</type>
441 <overWrite>false</overWrite>
442 <outputDirectory>${project.build.directory}/examples/models/APEXgRPC</outputDirectory>
443 <includes>APEXgRPCPolicy.json</includes>
444 </artifactItem>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100445 </artifactItems>
446 <overWriteReleases>true</overWriteReleases>
447 <overWriteSnapshots>true</overWriteSnapshots>
448 </configuration>
449 </execution>
liamfallona41c8772018-09-05 15:46:31 +0100450 <execution>
451 <id>copy-fat-jars</id>
452 <phase>package</phase>
453 <goals>
454 <goal>copy</goal>
455 </goals>
456 <configuration>
457 <artifactItems>
458 <artifactItem>
459 <groupId>org.onap.policy.apex-pdp.tools</groupId>
460 <artifactId>simple-wsclient</artifactId>
461 <version>${project.version}</version>
462 <type>jar</type>
463 <classifier>jar-with-dependencies</classifier>
464 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
465 </artifactItem>
liamfallona41c8772018-09-05 15:46:31 +0100466 </artifactItems>
467 <overWriteReleases>true</overWriteReleases>
468 <overWriteSnapshots>true</overWriteSnapshots>
469 </configuration>
470 </execution>
471
waqas.ikrambb89ed32018-06-18 14:04:52 +0100472 </executions>
473 </plugin>
liamfallon9aa62b72020-03-25 12:09:54 +0000474
waqas.ikrambb89ed32018-06-18 14:04:52 +0100475 <!-- Build the tar ball -->
476 <plugin>
477 <groupId>org.apache.maven.plugins</groupId>
478 <artifactId>maven-assembly-plugin</artifactId>
479 <executions>
480 <execution>
481 <id>generate-complete-tar</id>
482 <phase>package</phase>
483 <goals>
484 <goal>single</goal>
485 </goals>
486 <configuration>
487 <descriptors>
488 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
489 </descriptors>
490 <finalName>${project.artifactId}-${project.version}</finalName>
Rashmi Pujar7b945412019-06-17 10:34:49 -0400491 <appendAssemblyId>false</appendAssemblyId>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100492 </configuration>
493 </execution>
494 </executions>
495 </plugin>
496 <plugin>
497 <artifactId>maven-antrun-plugin</artifactId>
498 <executions>
499 <execution>
500 <phase>package</phase>
501 <configuration>
502 <tasks>
liamfallon1f7c8612018-11-20 15:59:50 +0000503 <untar
Rashmi Pujar7b945412019-06-17 10:34:49 -0400504 src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
liamfallon1f7c8612018-11-20 15:59:50 +0000505 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
waqas.ikrambb89ed32018-06-18 14:04:52 +0100506 </tasks>
507 </configuration>
508 <goals>
509 <goal>run</goal>
510 </goals>
511 </execution>
512 <execution>
513 <id>fix-permissions</id>
514 <phase>package</phase>
515 <configuration>
516 <tasks>
517 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
518 </tasks>
519 </configuration>
520 <goals>
521 <goal>run</goal>
522 </goals>
523 </execution>
524 </executions>
525 </plugin>
526 <!-- Build the dpkg distribution -->
527 <plugin>
528 <groupId>org.vafer</groupId>
529 <artifactId>jdeb</artifactId>
530 <version>1.5</version>
531 <executions>
532 <execution>
533 <phase>package</phase>
534 <goals>
535 <goal>jdeb</goal>
536 </goals>
537 <configuration>
538 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
539 <controlDir>${basedir}/src/main/package/control</controlDir>
540 <dataSet>
541 <!-- Copy the Apex run time configuration -->
542 <data>
543 <src>${project.build.directory}/install_hierarchy/lib</src>
544 <type>directory</type>
545 <dst>lib</dst>
546 <mapper>
547 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100548 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100549 <filemode>755</filemode>
550 </mapper>
551 </data>
552 <data>
553 <src>${project.build.directory}/install_hierarchy/bin</src>
554 <type>directory</type>
555 <dst>etc</dst>
556 <mapper>
557 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100558 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100559 </mapper>
560 </data>
561 <data>
562 <src>${project.build.directory}/install_hierarchy/etc</src>
563 <type>directory</type>
564 <dst>etc</dst>
565 <mapper>
566 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100567 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100568 </mapper>
569 </data>
570 <data>
571 <src>${project.build.directory}/install_hierarchy/examples</src>
572 <type>directory</type>
573 <dst>etc</dst>
574 <mapper>
575 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100576 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100577 </mapper>
578 </data>
579 </dataSet>
580 </configuration>
581 </execution>
582 </executions>
583 </plugin>
584 </plugins>
585 </build>
586 <profiles>
587 <profile>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100588 <id>only-eclipse</id>
589 <activation>
590 <property>
591 <name>m2e.version</name>
592 </property>
593 </activation>
594 <build>
595 <pluginManagement>
596 <plugins>
597 <plugin>
598 <groupId>org.eclipse.m2e</groupId>
599 <artifactId>lifecycle-mapping</artifactId>
600 <configuration>
601 <lifecycleMappingMetadata>
602 <pluginExecutions>
603 <pluginExecution>
604 <pluginExecutionFilter>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000607 <versionRange>[2.0,)</versionRange>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100608 <goals>
609 <goal>unpack</goal>
610 <goal>copy</goal>
611 </goals>
612 </pluginExecutionFilter>
613 <action>
614 <ignore />
615 </action>
616 </pluginExecution>
617 </pluginExecutions>
618 </lifecycleMappingMetadata>
619 </configuration>
620 </plugin>
621 </plugins>
622 </pluginManagement>
623 </build>
624 </profile>
625 </profiles>
liamfallon5906f302018-07-10 12:25:19 +0300626</project>