blob: b9b0613d6a46b0f3733fa2f923802131a05ec7cb [file] [log] [blame]
waqas.ikrambb89ed32018-06-18 14:04:52 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
ramverma42e49262019-06-06 14:44:52 +00004 Modifications Copyright (C) 2019 Nordix Foundation
Rashmi Pujar7b945412019-06-17 10:34:49 -04005 Modifications Copyright (C) 2019 Bell Canada.
waqas.ikrambb89ed32018-06-18 14:04:52 +01006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
21-->
liamfallon1f7c8612018-11-20 15:59:50 +000022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 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 +010024 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.onap.policy.apex-pdp.packages</groupId>
27 <artifactId>packages</artifactId>
jrh3d7d9df62019-09-12 10:07:06 -040028 <version>2.3.0-SNAPSHOT</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +010029 </parent>
30
31 <artifactId>apex-pdp-package-full</artifactId>
32 <name>${project.artifactId}</name>
33 <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description>
34
35 <properties>
36 <install.package.name>${project.artifactId}</install.package.name>
37 </properties>
38
39 <dependencies>
40 <dependency>
41 <groupId>org.onap.policy.apex-pdp.services</groupId>
42 <artifactId>services-engine</artifactId>
43 <version>${project.version}</version>
44 </dependency>
a.sreekumareabc6952019-04-11 16:56:29 +000045 <dependency>
46 <groupId>org.onap.policy.apex-pdp.services</groupId>
47 <artifactId>services-onappf</artifactId>
48 <version>${project.version}</version>
49 </dependency>
liamfallona41c8772018-09-05 15:46:31 +010050 <!-- Client Servlet applications -->
51 <dependency>
52 <groupId>org.onap.policy.apex-pdp.client</groupId>
53 <artifactId>client-full</artifactId>
54 <type>war</type>
55 <version>${project.version}</version>
56 </dependency>
57 <dependency>
58 <groupId>org.onap.policy.apex-pdp.client</groupId>
59 <artifactId>client-editor</artifactId>
60 <type>war</type>
61 <version>${project.version}</version>
62 </dependency>
63 <dependency>
64 <groupId>org.onap.policy.apex-pdp.client</groupId>
65 <artifactId>client-deployment</artifactId>
66 <type>war</type>
67 <version>${project.version}</version>
68 </dependency>
69 <dependency>
70 <groupId>org.onap.policy.apex-pdp.client</groupId>
71 <artifactId>client-monitoring</artifactId>
72 <type>war</type>
73 <version>${project.version}</version>
74 </dependency>
75
waqas.ikrambb89ed32018-06-18 14:04:52 +010076 <!-- Plugins for Context Distribution -->
77 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010078 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
79 <artifactId>plugins-context-distribution-hazelcast</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010080 <version>${project.version}</version>
81 </dependency>
82 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010083 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
84 <artifactId>plugins-context-distribution-infinispan</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010085 <version>${project.version}</version>
86 </dependency>
87
88 <!-- Plugins for Context Locking -->
89 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010090 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
91 <artifactId>plugins-context-locking-hazelcast</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010092 <version>${project.version}</version>
93 </dependency>
94 <dependency>
liamfallonb109c212018-07-18 11:23:20 +010095 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
96 <artifactId>plugins-context-locking-curator</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +010097 <version>${project.version}</version>
98 </dependency>
99
100 <!-- Plugins for Context Schemas -->
101 <dependency>
liamfallonb109c212018-07-18 11:23:20 +0100102 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
103 <artifactId>plugins-context-schema-avro</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100104 <version>${project.version}</version>
105 </dependency>
106
107 <!-- Plugins for Executors -->
108 <dependency>
109 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
110 <artifactId>plugins-executor-java</artifactId>
111 <version>${project.version}</version>
112 </dependency>
113 <dependency>
114 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
115 <artifactId>plugins-executor-javascript</artifactId>
116 <version>${project.version}</version>
117 </dependency>
118 <dependency>
119 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
120 <artifactId>plugins-executor-jruby</artifactId>
121 <version>${project.version}</version>
122 </dependency>
liamfallon88f17592019-09-14 12:39:25 +0100123 <!-- Jython support disabled due to security concerns -->
124 <!-- dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100125 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
126 <artifactId>plugins-executor-jython</artifactId>
127 <version>${project.version}</version>
liamfallon88f17592019-09-14 12:39:25 +0100128 </dependency-->
waqas.ikrambb89ed32018-06-18 14:04:52 +0100129 <dependency>
130 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
131 <artifactId>plugins-executor-mvel</artifactId>
132 <version>${project.version}</version>
133 </dependency>
134
135 <!-- Plugins for Persistence of Models over JPA -->
136 <dependency>
137 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
138 <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
139 <version>${project.version}</version>
140 </dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100141
142 <!-- Plugins for event carrier technologies -->
143 <dependency>
144 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
145 <artifactId>plugins-event-carrier-kafka</artifactId>
146 <version>${project.version}</version>
147 </dependency>
148 <dependency>
149 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
150 <artifactId>plugins-event-carrier-websocket</artifactId>
151 <version>${project.version}</version>
152 </dependency>
153 <dependency>
154 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
155 <artifactId>plugins-event-carrier-jms</artifactId>
156 <version>${project.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
160 <artifactId>plugins-event-carrier-restclient</artifactId>
161 <version>${project.version}</version>
162 </dependency>
163 <dependency>
164 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
165 <artifactId>plugins-event-carrier-restserver</artifactId>
166 <version>${project.version}</version>
167 </dependency>
168 <dependency>
169 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
170 <artifactId>plugins-event-carrier-restrequestor</artifactId>
171 <version>${project.version}</version>
172 </dependency>
liamfallon1f7c8612018-11-20 15:59:50 +0000173
174 <!-- Benchmark test event generator -->
175 <dependency>
176 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
177 <artifactId>performance-benchmark-test</artifactId>
178 <version>${project.version}</version>
179 </dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100180
181 <!-- Plugins for event protocols -->
182 <dependency>
183 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
184 <artifactId>plugins-event-protocol-xml</artifactId>
185 <version>${project.version}</version>
186 </dependency>
187 <dependency>
188 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
189 <artifactId>plugins-event-protocol-jms</artifactId>
190 <version>${project.version}</version>
191 </dependency>
192
193 <!-- Authoring and Editors -->
194 <dependency>
195 <groupId>org.onap.policy.apex-pdp.auth</groupId>
196 <artifactId>cli-editor</artifactId>
197 <version>${project.version}</version>
198 </dependency>
liamfallona41c8772018-09-05 15:46:31 +0100199
200 <!-- Tools -->
201 <dependency>
202 <groupId>org.onap.policy.apex-pdp.tools</groupId>
203 <artifactId>simple-wsclient</artifactId>
204 <version>${project.version}</version>
205 </dependency>
206 <dependency>
207 <groupId>org.onap.policy.apex-pdp.tools</groupId>
208 <artifactId>model-generator</artifactId>
209 <version>${project.version}</version>
210 </dependency>
211
ramverma28ea3362018-07-18 16:28:07 +0100212 <!-- Test Data used by examples -->
waqas.ikrambb89ed32018-06-18 14:04:52 +0100213 <dependency>
ramverma28ea3362018-07-18 16:28:07 +0100214 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
215 <artifactId>integration-common</artifactId>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100216 <version>${project.version}</version>
217 </dependency>
ramverma3d025432018-07-19 18:45:16 +0100218
219 <!-- Sample Examples -->
220 <dependency>
221 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100222 <artifactId>examples-aadm</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100223 <version>${project.version}</version>
224 </dependency>
225 <dependency>
226 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100227 <artifactId>examples-adaptive</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100228 <version>${project.version}</version>
229 </dependency>
230 <dependency>
231 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100232 <artifactId>examples-myfirstpolicy</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100233 <version>${project.version}</version>
234 </dependency>
235 <dependency>
236 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100237 <artifactId>examples-pcvs</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100238 <version>${project.version}</version>
239 </dependency>
ramvermad524ced2018-07-24 17:36:53 +0100240 <dependency>
241 <groupId>org.onap.policy.apex-pdp.examples</groupId>
242 <artifactId>examples-decisionmaker</artifactId>
243 <version>${project.version}</version>
244 </dependency>
245 <dependency>
246 <groupId>org.onap.policy.apex-pdp.examples</groupId>
247 <artifactId>examples-periodic</artifactId>
248 <version>${project.version}</version>
249 </dependency>
250 <dependency>
251 <groupId>org.onap.policy.apex-pdp.examples</groupId>
252 <artifactId>examples-onap-vcpe</artifactId>
253 <version>${project.version}</version>
254 </dependency>
ramverma9e318f22018-07-30 19:13:47 +0100255 <dependency>
256 <groupId>org.onap.policy.apex-pdp.examples</groupId>
257 <artifactId>examples-servlet</artifactId>
258 <type>war</type>
259 <version>${project.version}</version>
260 </dependency>
s003703465262c352019-04-11 00:14:39 +0530261 <dependency>
262 <groupId>org.onap.policy.apex-pdp.examples</groupId>
263 <artifactId>examples-onap-bbs</artifactId>
264 <version>${project.version}</version>
265 </dependency>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100266 </dependencies>
267
268 <build>
269 <plugins>
270 <!-- Copy required resources and examples -->
271 <plugin>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-dependency-plugin</artifactId>
274 <executions>
275 <execution>
276 <id>unpack-etc-examples</id>
277 <phase>package</phase>
278 <goals>
279 <goal>unpack</goal>
280 </goals>
281 <configuration>
282 <artifactItems>
283 <artifactItem>
a.sreekumareabc6952019-04-11 16:56:29 +0000284 <groupId>org.onap.policy.apex-pdp.services</groupId>
285 <artifactId>services-onappf</artifactId>
286 <version>${project.version}</version>
287 <type>jar</type>
288 <overWrite>false</overWrite>
289 <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
290 <includes>config/*</includes>
291 </artifactItem>
292 <artifactItem>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100293 <groupId>org.onap.policy.apex-pdp.auth</groupId>
294 <artifactId>cli-editor</artifactId>
ramverma28ea3362018-07-18 16:28:07 +0100295 <version>${project.version}</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100296 <type>jar</type>
297 <overWrite>false</overWrite>
298 <outputDirectory>${project.build.directory}</outputDirectory>
299 <includes>etc/**/*,examples/**/*</includes>
300 </artifactItem>
301 <artifactItem>
ramverma28ea3362018-07-18 16:28:07 +0100302 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
303 <artifactId>integration-common</artifactId>
304 <version>${project.version}</version>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100305 <type>jar</type>
306 <overWrite>false</overWrite>
ramverma28ea3362018-07-18 16:28:07 +0100307 <outputDirectory>${project.build.directory}</outputDirectory>
308 <includes>etc/**/*,examples/**/*</includes>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100309 </artifactItem>
ramverma3d025432018-07-19 18:45:16 +0100310 <artifactItem>
liamfallon1f7c8612018-11-20 15:59:50 +0000311 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
312 <artifactId>performance-benchmark-test</artifactId>
313 <version>${project.version}</version>
314 <type>jar</type>
315 <overWrite>false</overWrite>
316 <outputDirectory>${project.build.directory}</outputDirectory>
317 <includes>examples/**/*</includes>
318 </artifactItem>
319 <artifactItem>
ramverma3d025432018-07-19 18:45:16 +0100320 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100321 <artifactId>examples-aadm</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-adaptive</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-myfirstpolicy</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>
346 <artifactItem>
347 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermaf8959f52018-07-25 17:26:52 +0100348 <artifactId>examples-pcvs</artifactId>
ramverma3d025432018-07-19 18:45:16 +0100349 <version>${project.version}</version>
350 <type>jar</type>
351 <overWrite>false</overWrite>
352 <outputDirectory>${project.build.directory}</outputDirectory>
353 <includes>etc/**/*,examples/**/*</includes>
354 </artifactItem>
ramvermad524ced2018-07-24 17:36:53 +0100355 <artifactItem>
356 <groupId>org.onap.policy.apex-pdp.examples</groupId>
357 <artifactId>examples-decisionmaker</artifactId>
358 <version>${project.version}</version>
359 <type>jar</type>
360 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100361 <outputDirectory>${project.build.directory}</outputDirectory>
362 <includes>etc/**/*,examples/**/*</includes>
ramvermad524ced2018-07-24 17:36:53 +0100363 </artifactItem>
364 <artifactItem>
365 <groupId>org.onap.policy.apex-pdp.examples</groupId>
liamfallon3595f7c2018-09-27 15:40:13 +0100366 <artifactId>examples-decisionmaker</artifactId>
367 <version>${project.version}</version>
368 <type>jar</type>
369 <overWrite>false</overWrite>
370 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
liamfallon9684e032018-12-19 18:29:05 +0000371 <includes>*PolicyModel.json</includes>
liamfallon3595f7c2018-09-27 15:40:13 +0100372 </artifactItem>
373 <artifactItem>
374 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermad524ced2018-07-24 17:36:53 +0100375 <artifactId>examples-periodic</artifactId>
376 <version>${project.version}</version>
377 <type>jar</type>
378 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100379 <outputDirectory>${project.build.directory}</outputDirectory>
380 <includes>etc/**/*,examples/**/*</includes>
ramvermad524ced2018-07-24 17:36:53 +0100381 </artifactItem>
382 <artifactItem>
383 <groupId>org.onap.policy.apex-pdp.examples</groupId>
liamfallon3595f7c2018-09-27 15:40:13 +0100384 <artifactId>examples-periodic</artifactId>
385 <version>${project.version}</version>
386 <type>jar</type>
387 <overWrite>false</overWrite>
388 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
389 <includes>PeriodicPolicyModel.json</includes>
390 </artifactItem>
391 <artifactItem>
392 <groupId>org.onap.policy.apex-pdp.examples</groupId>
393 <artifactId>examples-onap-vcpe</artifactId>
394 <version>${project.version}</version>
395 <type>jar</type>
396 <overWrite>false</overWrite>
397 <outputDirectory>${project.build.directory}</outputDirectory>
398 <includes>etc/**/*,examples/**/*</includes>
399 </artifactItem>
400 <artifactItem>
401 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramvermad524ced2018-07-24 17:36:53 +0100402 <artifactId>examples-onap-vcpe</artifactId>
403 <version>${project.version}</version>
404 <type>jar</type>
405 <overWrite>false</overWrite>
liamfallon3595f7c2018-09-27 15:40:13 +0100406 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
407 <includes>ONAPvCPEPolicyModel.json</includes>
ramvermad524ced2018-07-24 17:36:53 +0100408 </artifactItem>
ramverma9e318f22018-07-30 19:13:47 +0100409 <artifactItem>
410 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramverma42e49262019-06-06 14:44:52 +0000411 <artifactId>examples-onap-bbs</artifactId>
s003703465262c352019-04-11 00:14:39 +0530412 <version>${project.version}</version>
413 <type>jar</type>
414 <overWrite>false</overWrite>
415 <outputDirectory>${project.build.directory}</outputDirectory>
416 <includes>etc/**/*,examples/**/*</includes>
417 </artifactItem>
418 <artifactItem>
419 <groupId>org.onap.policy.apex-pdp.examples</groupId>
420 <artifactId>examples-onap-bbs</artifactId>
421 <version>${project.version}</version>
422 <type>jar</type>
423 <overWrite>false</overWrite>
424 <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
425 <includes>NomadicONTPolicyModel.json</includes>
426 </artifactItem>
427 <artifactItem>
428 <groupId>org.onap.policy.apex-pdp.examples</groupId>
ramverma9e318f22018-07-30 19:13:47 +0100429 <artifactId>examples-servlet</artifactId>
430 <version>${project.version}</version>
431 <type>war</type>
432 <overWrite>false</overWrite>
liamfallonf28256b2018-09-19 21:44:33 +0100433 <outputDirectory>${project.build.directory}/examples/servlet</outputDirectory>
434 <includes>readme_examples-servlet.txt</includes>
ramverma9e318f22018-07-30 19:13:47 +0100435 </artifactItem>
liamfallona41c8772018-09-05 15:46:31 +0100436 <artifactItem>
437 <groupId>org.onap.policy.apex-pdp.tools</groupId>
438 <artifactId>tools-common</artifactId>
439 <version>${project.version}</version>
440 <type>jar</type>
441 <overWrite>false</overWrite>
442 <outputDirectory>${project.build.directory}/etc</outputDirectory>
443 <includes>/app-version.txt</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>
466 <artifactItem>
467 <groupId>org.onap.policy.apex-pdp.client</groupId>
468 <artifactId>client-monitoring</artifactId>
469 <version>${project.version}</version>
470 <classifier>monitoring</classifier>
471 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
472 </artifactItem>
473 <artifactItem>
474 <groupId>org.onap.policy.apex-pdp.client</groupId>
475 <artifactId>client-editor</artifactId>
476 <version>${project.version}</version>
477 <classifier>editor</classifier>
478 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
479 </artifactItem>
480 <artifactItem>
481 <groupId>org.onap.policy.apex-pdp.client</groupId>
482 <artifactId>client-deployment</artifactId>
483 <version>${project.version}</version>
484 <classifier>deployment</classifier>
485 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
486 </artifactItem>
487 <artifactItem>
488 <groupId>org.onap.policy.apex-pdp.client</groupId>
489 <artifactId>client-full</artifactId>
490 <version>${project.version}</version>
491 <classifier>full</classifier>
492 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
493 </artifactItem>
494 </artifactItems>
495 <overWriteReleases>true</overWriteReleases>
496 <overWriteSnapshots>true</overWriteSnapshots>
497 </configuration>
498 </execution>
499
waqas.ikrambb89ed32018-06-18 14:04:52 +0100500 </executions>
501 </plugin>
ramvermad524ced2018-07-24 17:36:53 +0100502
waqas.ikrambb89ed32018-06-18 14:04:52 +0100503 <!-- Build the tar ball -->
504 <plugin>
505 <groupId>org.apache.maven.plugins</groupId>
506 <artifactId>maven-assembly-plugin</artifactId>
507 <executions>
508 <execution>
509 <id>generate-complete-tar</id>
510 <phase>package</phase>
511 <goals>
512 <goal>single</goal>
513 </goals>
514 <configuration>
515 <descriptors>
516 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
517 </descriptors>
518 <finalName>${project.artifactId}-${project.version}</finalName>
Rashmi Pujar7b945412019-06-17 10:34:49 -0400519 <appendAssemblyId>false</appendAssemblyId>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100520 </configuration>
521 </execution>
522 </executions>
523 </plugin>
524 <plugin>
525 <artifactId>maven-antrun-plugin</artifactId>
526 <executions>
527 <execution>
528 <phase>package</phase>
529 <configuration>
530 <tasks>
liamfallon1f7c8612018-11-20 15:59:50 +0000531 <untar
Rashmi Pujar7b945412019-06-17 10:34:49 -0400532 src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
liamfallon1f7c8612018-11-20 15:59:50 +0000533 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
waqas.ikrambb89ed32018-06-18 14:04:52 +0100534 </tasks>
535 </configuration>
536 <goals>
537 <goal>run</goal>
538 </goals>
539 </execution>
540 <execution>
541 <id>fix-permissions</id>
542 <phase>package</phase>
543 <configuration>
544 <tasks>
545 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
546 </tasks>
547 </configuration>
548 <goals>
549 <goal>run</goal>
550 </goals>
551 </execution>
552 </executions>
553 </plugin>
554 <!-- Build the dpkg distribution -->
555 <plugin>
556 <groupId>org.vafer</groupId>
557 <artifactId>jdeb</artifactId>
558 <version>1.5</version>
559 <executions>
560 <execution>
561 <phase>package</phase>
562 <goals>
563 <goal>jdeb</goal>
564 </goals>
565 <configuration>
566 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
567 <controlDir>${basedir}/src/main/package/control</controlDir>
568 <dataSet>
569 <!-- Copy the Apex run time configuration -->
570 <data>
571 <src>${project.build.directory}/install_hierarchy/lib</src>
572 <type>directory</type>
573 <dst>lib</dst>
574 <mapper>
575 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100576 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100577 <filemode>755</filemode>
578 </mapper>
579 </data>
580 <data>
581 <src>${project.build.directory}/install_hierarchy/bin</src>
582 <type>directory</type>
583 <dst>etc</dst>
584 <mapper>
585 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100586 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100587 </mapper>
588 </data>
589 <data>
590 <src>${project.build.directory}/install_hierarchy/etc</src>
591 <type>directory</type>
592 <dst>etc</dst>
593 <mapper>
594 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100595 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100596 </mapper>
597 </data>
598 <data>
ramverma9e318f22018-07-30 19:13:47 +0100599 <src>${project.build.directory}/install_hierarchy/war</src>
600 <type>directory</type>
601 <dst>etc</dst>
602 <mapper>
603 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100604 <prefix>/opt/app/policy/${install.package.name}-${project.version}/war</prefix>
ramverma9e318f22018-07-30 19:13:47 +0100605 </mapper>
606 </data>
607 <data>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100608 <src>${project.build.directory}/install_hierarchy/examples</src>
609 <type>directory</type>
610 <dst>etc</dst>
611 <mapper>
612 <type>perm</type>
liamfallon8801bb42018-09-11 11:30:44 +0100613 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100614 </mapper>
615 </data>
616 </dataSet>
617 </configuration>
618 </execution>
619 </executions>
620 </plugin>
621 </plugins>
622 </build>
623 <profiles>
624 <profile>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100625 <id>only-eclipse</id>
626 <activation>
627 <property>
628 <name>m2e.version</name>
629 </property>
630 </activation>
631 <build>
632 <pluginManagement>
633 <plugins>
634 <plugin>
635 <groupId>org.eclipse.m2e</groupId>
636 <artifactId>lifecycle-mapping</artifactId>
637 <configuration>
638 <lifecycleMappingMetadata>
639 <pluginExecutions>
640 <pluginExecution>
641 <pluginExecutionFilter>
642 <groupId>org.apache.maven.plugins</groupId>
643 <artifactId>maven-dependency-plugin</artifactId>
liamfallon32497612018-11-10 00:39:12 +0000644 <versionRange>[2.0,)</versionRange>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100645 <goals>
646 <goal>unpack</goal>
647 <goal>copy</goal>
648 </goals>
649 </pluginExecutionFilter>
650 <action>
651 <ignore />
652 </action>
653 </pluginExecution>
654 </pluginExecutions>
655 </lifecycleMappingMetadata>
656 </configuration>
657 </plugin>
658 </plugins>
659 </pluginManagement>
660 </build>
661 </profile>
Dinh Danh Le4f0e4e02018-08-09 10:51:44 +0100662
663 <profile>
664 <id>apexSite</id>
665 <activation>
666 <property>
667 <name>apexSite</name>
668 </property>
669 </activation>
670 <distributionManagement>
671 <site>
672 <id>${project.artifactId}-site</id>
673 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
674 </site>
675 </distributionManagement>
676 </profile>
waqas.ikrambb89ed32018-06-18 14:04:52 +0100677 </profiles>
liamfallon5906f302018-07-10 12:25:19 +0300678</project>