2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
4 Modifications Copyright (C) 2019-2020 Nordix Foundation
5 Modifications Copyright (C) 2019-2020 Bell Canada.
6 ================================================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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.
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
22 <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">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.policy.apex-pdp.packages</groupId>
27 <artifactId>apex-packages</artifactId>
28 <version>2.4.1-SNAPSHOT</version>
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>
36 <install.package.name>${project.artifactId}</install.package.name>
41 <groupId>org.onap.policy.apex-pdp.services</groupId>
42 <artifactId>services-engine</artifactId>
43 <version>${project.version}</version>
46 <groupId>org.onap.policy.apex-pdp.services</groupId>
47 <artifactId>services-onappf</artifactId>
48 <version>${project.version}</version>
51 <!-- Plugins for Context Distribution -->
53 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
54 <artifactId>plugins-context-distribution-hazelcast</artifactId>
55 <version>${project.version}</version>
58 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
59 <artifactId>plugins-context-distribution-infinispan</artifactId>
60 <version>${project.version}</version>
63 <!-- Plugins for Context Locking -->
65 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
66 <artifactId>plugins-context-locking-hazelcast</artifactId>
67 <version>${project.version}</version>
70 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
71 <artifactId>plugins-context-locking-curator</artifactId>
72 <version>${project.version}</version>
75 <!-- Plugins for Context Schemas -->
77 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
78 <artifactId>plugins-context-schema-avro</artifactId>
79 <version>${project.version}</version>
82 <!-- Plugins for Executors -->
84 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
85 <artifactId>plugins-executor-java</artifactId>
86 <version>${project.version}</version>
89 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
90 <artifactId>plugins-executor-javascript</artifactId>
91 <version>${project.version}</version>
94 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
95 <artifactId>plugins-executor-jruby</artifactId>
96 <version>${project.version}</version>
98 <!-- Jython support disabled due to security concerns -->
100 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
101 <artifactId>plugins-executor-jython</artifactId>
102 <version>${project.version}</version>
105 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
106 <artifactId>plugins-executor-mvel</artifactId>
107 <version>${project.version}</version>
110 <!-- Plugins for Persistence of Models over JPA -->
112 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
113 <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
114 <version>${project.version}</version>
117 <!-- Plugins for event carrier technologies -->
119 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
120 <artifactId>plugins-event-carrier-kafka</artifactId>
121 <version>${project.version}</version>
124 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
125 <artifactId>plugins-event-carrier-websocket</artifactId>
126 <version>${project.version}</version>
129 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
130 <artifactId>plugins-event-carrier-jms</artifactId>
131 <version>${project.version}</version>
134 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
135 <artifactId>plugins-event-carrier-restclient</artifactId>
136 <version>${project.version}</version>
139 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
140 <artifactId>plugins-event-carrier-restserver</artifactId>
141 <version>${project.version}</version>
144 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
145 <artifactId>plugins-event-carrier-restrequestor</artifactId>
146 <version>${project.version}</version>
149 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
150 <artifactId>plugins-event-carrier-grpc</artifactId>
151 <version>${project.version}</version>
153 <!-- Benchmark test event generator -->
155 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
156 <artifactId>performance-benchmark-test</artifactId>
157 <version>${project.version}</version>
160 <!-- Plugins for event protocols -->
162 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
163 <artifactId>plugins-event-protocol-xml</artifactId>
164 <version>${project.version}</version>
167 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
168 <artifactId>plugins-event-protocol-jms</artifactId>
169 <version>${project.version}</version>
172 <!-- Authoring and Editors -->
174 <groupId>org.onap.policy.apex-pdp.auth</groupId>
175 <artifactId>cli-editor</artifactId>
176 <version>${project.version}</version>
181 <groupId>org.onap.policy.apex-pdp.tools</groupId>
182 <artifactId>simple-wsclient</artifactId>
183 <version>${project.version}</version>
186 <groupId>org.onap.policy.apex-pdp.tools</groupId>
187 <artifactId>model-generator</artifactId>
188 <version>${project.version}</version>
191 <!-- Test Data used by examples -->
193 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
194 <artifactId>integration-common</artifactId>
195 <version>${project.version}</version>
198 <!-- Sample Examples -->
200 <groupId>org.onap.policy.apex-pdp.examples</groupId>
201 <artifactId>examples-aadm</artifactId>
202 <version>${project.version}</version>
205 <groupId>org.onap.policy.apex-pdp.examples</groupId>
206 <artifactId>examples-adaptive</artifactId>
207 <version>${project.version}</version>
210 <groupId>org.onap.policy.apex-pdp.examples</groupId>
211 <artifactId>examples-myfirstpolicy</artifactId>
212 <version>${project.version}</version>
215 <groupId>org.onap.policy.apex-pdp.examples</groupId>
216 <artifactId>examples-pcvs</artifactId>
217 <version>${project.version}</version>
220 <groupId>org.onap.policy.apex-pdp.examples</groupId>
221 <artifactId>examples-decisionmaker</artifactId>
222 <version>${project.version}</version>
225 <groupId>org.onap.policy.apex-pdp.examples</groupId>
226 <artifactId>examples-periodic</artifactId>
227 <version>${project.version}</version>
230 <groupId>org.onap.policy.apex-pdp.examples</groupId>
231 <artifactId>examples-onap-vcpe</artifactId>
232 <version>${project.version}</version>
235 <groupId>org.onap.policy.apex-pdp.examples</groupId>
236 <artifactId>examples-onap-bbs</artifactId>
237 <version>${project.version}</version>
240 <groupId>org.onap.policy.apex-pdp.examples</groupId>
241 <artifactId>examples-grpc</artifactId>
242 <version>${project.version}</version>
248 <!-- Copy required resources and examples -->
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-dependency-plugin</artifactId>
254 <id>unpack-etc-examples</id>
255 <phase>package</phase>
262 <groupId>org.onap.policy.apex-pdp.services</groupId>
263 <artifactId>services-onappf</artifactId>
264 <version>${project.version}</version>
266 <overWrite>false</overWrite>
267 <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
268 <includes>config/*</includes>
271 <groupId>org.onap.policy.apex-pdp.auth</groupId>
272 <artifactId>cli-editor</artifactId>
273 <version>${project.version}</version>
275 <overWrite>false</overWrite>
276 <outputDirectory>${project.build.directory}</outputDirectory>
277 <includes>etc/**/*,examples/**/*</includes>
280 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
281 <artifactId>integration-common</artifactId>
282 <version>${project.version}</version>
284 <overWrite>false</overWrite>
285 <outputDirectory>${project.build.directory}</outputDirectory>
286 <includes>etc/**/*,examples/**/*</includes>
289 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
290 <artifactId>performance-benchmark-test</artifactId>
291 <version>${project.version}</version>
293 <overWrite>false</overWrite>
294 <outputDirectory>${project.build.directory}</outputDirectory>
295 <includes>examples/**/*</includes>
298 <groupId>org.onap.policy.apex-pdp.examples</groupId>
299 <artifactId>examples-aadm</artifactId>
300 <version>${project.version}</version>
302 <overWrite>false</overWrite>
303 <outputDirectory>${project.build.directory}</outputDirectory>
304 <includes>etc/**/*,examples/**/*</includes>
307 <groupId>org.onap.policy.apex-pdp.examples</groupId>
308 <artifactId>examples-adaptive</artifactId>
309 <version>${project.version}</version>
311 <overWrite>false</overWrite>
312 <outputDirectory>${project.build.directory}</outputDirectory>
313 <includes>etc/**/*,examples/**/*</includes>
316 <groupId>org.onap.policy.apex-pdp.examples</groupId>
317 <artifactId>examples-myfirstpolicy</artifactId>
318 <version>${project.version}</version>
320 <overWrite>false</overWrite>
321 <outputDirectory>${project.build.directory}</outputDirectory>
322 <includes>etc/**/*,examples/**/*</includes>
325 <groupId>org.onap.policy.apex-pdp.examples</groupId>
326 <artifactId>examples-pcvs</artifactId>
327 <version>${project.version}</version>
329 <overWrite>false</overWrite>
330 <outputDirectory>${project.build.directory}</outputDirectory>
331 <includes>etc/**/*,examples/**/*</includes>
334 <groupId>org.onap.policy.apex-pdp.examples</groupId>
335 <artifactId>examples-decisionmaker</artifactId>
336 <version>${project.version}</version>
338 <overWrite>false</overWrite>
339 <outputDirectory>${project.build.directory}</outputDirectory>
340 <includes>etc/**/*,examples/**/*</includes>
343 <groupId>org.onap.policy.apex-pdp.examples</groupId>
344 <artifactId>examples-decisionmaker</artifactId>
345 <version>${project.version}</version>
347 <overWrite>false</overWrite>
348 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
349 <includes>*PolicyModel.json</includes>
352 <groupId>org.onap.policy.apex-pdp.examples</groupId>
353 <artifactId>examples-periodic</artifactId>
354 <version>${project.version}</version>
356 <overWrite>false</overWrite>
357 <outputDirectory>${project.build.directory}</outputDirectory>
358 <includes>etc/**/*,examples/**/*</includes>
361 <groupId>org.onap.policy.apex-pdp.examples</groupId>
362 <artifactId>examples-periodic</artifactId>
363 <version>${project.version}</version>
365 <overWrite>false</overWrite>
366 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
367 <includes>PeriodicPolicyModel.json</includes>
370 <groupId>org.onap.policy.apex-pdp.examples</groupId>
371 <artifactId>examples-onap-vcpe</artifactId>
372 <version>${project.version}</version>
374 <overWrite>false</overWrite>
375 <outputDirectory>${project.build.directory}</outputDirectory>
376 <includes>etc/**/*,examples/**/*</includes>
379 <groupId>org.onap.policy.apex-pdp.examples</groupId>
380 <artifactId>examples-onap-vcpe</artifactId>
381 <version>${project.version}</version>
383 <overWrite>false</overWrite>
384 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
385 <includes>ONAPvCPEPolicyModel.json</includes>
388 <groupId>org.onap.policy.apex-pdp.examples</groupId>
389 <artifactId>examples-onap-bbs</artifactId>
390 <version>${project.version}</version>
392 <overWrite>false</overWrite>
393 <outputDirectory>${project.build.directory}</outputDirectory>
394 <includes>etc/**/*,examples/**/*</includes>
397 <groupId>org.onap.policy.apex-pdp.examples</groupId>
398 <artifactId>examples-onap-bbs</artifactId>
399 <version>${project.version}</version>
401 <overWrite>false</overWrite>
402 <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
403 <includes>NomadicONTPolicyModel.json</includes>
406 <groupId>org.onap.policy.apex-pdp.tools</groupId>
407 <artifactId>tools-common</artifactId>
408 <version>${project.version}</version>
410 <overWrite>false</overWrite>
411 <outputDirectory>${project.build.directory}/etc</outputDirectory>
412 <includes>/app-version.txt</includes>
415 <groupId>org.onap.policy.apex-pdp.examples</groupId>
416 <artifactId>examples-grpc</artifactId>
417 <version>${project.version}</version>
419 <overWrite>false</overWrite>
420 <outputDirectory>${project.build.directory}</outputDirectory>
421 <includes>etc/**/*,examples/**/*</includes>
424 <groupId>org.onap.policy.apex-pdp.examples</groupId>
425 <artifactId>examples-grpc</artifactId>
426 <version>${project.version}</version>
428 <overWrite>false</overWrite>
429 <outputDirectory>${project.build.directory}/examples/models/APEXgRPC</outputDirectory>
430 <includes>APEXgRPCPolicy.json</includes>
433 <overWriteReleases>true</overWriteReleases>
434 <overWriteSnapshots>true</overWriteSnapshots>
438 <id>copy-fat-jars</id>
439 <phase>package</phase>
446 <groupId>org.onap.policy.apex-pdp.tools</groupId>
447 <artifactId>simple-wsclient</artifactId>
448 <version>${project.version}</version>
450 <classifier>jar-with-dependencies</classifier>
451 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
454 <groupId>org.onap.policy.apex-pdp.client</groupId>
455 <artifactId>apex-client-full</artifactId>
456 <version>${project.version}</version>
457 <classifier>full</classifier>
458 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
461 <overWriteReleases>true</overWriteReleases>
462 <overWriteSnapshots>true</overWriteSnapshots>
469 <!-- Build the tar ball -->
471 <groupId>org.apache.maven.plugins</groupId>
472 <artifactId>maven-assembly-plugin</artifactId>
475 <id>generate-complete-tar</id>
476 <phase>package</phase>
482 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
484 <finalName>${project.artifactId}-${project.version}</finalName>
485 <appendAssemblyId>false</appendAssemblyId>
491 <artifactId>maven-antrun-plugin</artifactId>
494 <phase>package</phase>
498 src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
499 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
507 <id>fix-permissions</id>
508 <phase>package</phase>
511 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
520 <!-- Build the dpkg distribution -->
522 <groupId>org.vafer</groupId>
523 <artifactId>jdeb</artifactId>
524 <version>1.5</version>
527 <phase>package</phase>
532 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
533 <controlDir>${basedir}/src/main/package/control</controlDir>
535 <!-- Copy the Apex run time configuration -->
537 <src>${project.build.directory}/install_hierarchy/lib</src>
538 <type>directory</type>
542 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
543 <filemode>755</filemode>
547 <src>${project.build.directory}/install_hierarchy/bin</src>
548 <type>directory</type>
552 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
556 <src>${project.build.directory}/install_hierarchy/etc</src>
557 <type>directory</type>
561 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
565 <src>${project.build.directory}/install_hierarchy/examples</src>
566 <type>directory</type>
570 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
582 <id>only-eclipse</id>
585 <name>m2e.version</name>
592 <groupId>org.eclipse.m2e</groupId>
593 <artifactId>lifecycle-mapping</artifactId>
595 <lifecycleMappingMetadata>
598 <pluginExecutionFilter>
599 <groupId>org.apache.maven.plugins</groupId>
600 <artifactId>maven-dependency-plugin</artifactId>
601 <versionRange>[2.0,)</versionRange>
606 </pluginExecutionFilter>
612 </lifecycleMappingMetadata>