2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
4 Modifications Copyright (C) 2019-2020, 2022 Nordix Foundation
5 Modifications Copyright (C) 2019-2020 Bell Canada.
6 Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
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
12 http://www.apache.org/licenses/LICENSE-2.0
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.
20 SPDX-License-Identifier: Apache-2.0
21 ============LICENSE_END=========================================================
23 <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">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.policy.apex-pdp.packages</groupId>
28 <artifactId>apex-packages</artifactId>
29 <version>2.7.1-SNAPSHOT</version>
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>
37 <install.package.name>${project.artifactId}</install.package.name>
42 <groupId>org.onap.policy.apex-pdp.services</groupId>
43 <artifactId>services-engine</artifactId>
44 <version>${project.version}</version>
47 <groupId>org.onap.policy.apex-pdp.services</groupId>
48 <artifactId>services-onappf</artifactId>
49 <version>${project.version}</version>
52 <!-- Plugins for Context Distribution -->
54 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
55 <artifactId>plugins-context-distribution-hazelcast</artifactId>
56 <version>${project.version}</version>
59 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
60 <artifactId>plugins-context-distribution-infinispan</artifactId>
61 <version>${project.version}</version>
64 <!-- Plugins for Context Locking -->
66 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
67 <artifactId>plugins-context-locking-hazelcast</artifactId>
68 <version>${project.version}</version>
71 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
72 <artifactId>plugins-context-locking-curator</artifactId>
73 <version>${project.version}</version>
76 <!-- Plugins for Context Schemas -->
78 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
79 <artifactId>plugins-context-schema-avro</artifactId>
80 <version>${project.version}</version>
83 <!-- Plugins for Executors -->
85 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
86 <artifactId>plugins-executor-java</artifactId>
87 <version>${project.version}</version>
90 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
91 <artifactId>plugins-executor-javascript</artifactId>
92 <version>${project.version}</version>
95 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
96 <artifactId>plugins-executor-jruby</artifactId>
97 <version>${project.version}</version>
99 <!-- Jython support disabled due to security concerns -->
101 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
102 <artifactId>plugins-executor-jython</artifactId>
103 <version>${project.version}</version>
106 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
107 <artifactId>plugins-executor-mvel</artifactId>
108 <version>${project.version}</version>
111 <!-- Plugins for Persistence of Models over JPA -->
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>
118 <!-- Plugins for event carrier technologies -->
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>
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>
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>
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>
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>
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>
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>
154 <!-- Benchmark test event generator -->
156 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
157 <artifactId>performance-benchmark-test</artifactId>
158 <version>${project.version}</version>
161 <!-- Plugins for event protocols -->
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>
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>
173 <!-- Authoring and Editors -->
175 <groupId>org.onap.policy.apex-pdp.auth</groupId>
176 <artifactId>cli-editor</artifactId>
177 <version>${project.version}</version>
182 <groupId>org.onap.policy.apex-pdp.tools</groupId>
183 <artifactId>simple-wsclient</artifactId>
184 <version>${project.version}</version>
187 <groupId>org.onap.policy.apex-pdp.tools</groupId>
188 <artifactId>model-generator</artifactId>
189 <version>${project.version}</version>
192 <!-- Test Data used by examples -->
194 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
195 <artifactId>integration-common</artifactId>
196 <version>${project.version}</version>
199 <!-- Sample Examples -->
201 <groupId>org.onap.policy.apex-pdp.examples</groupId>
202 <artifactId>examples-aadm</artifactId>
203 <version>${project.version}</version>
206 <groupId>org.onap.policy.apex-pdp.examples</groupId>
207 <artifactId>examples-adaptive</artifactId>
208 <version>${project.version}</version>
211 <groupId>org.onap.policy.apex-pdp.examples</groupId>
212 <artifactId>examples-myfirstpolicy</artifactId>
213 <version>${project.version}</version>
216 <groupId>org.onap.policy.apex-pdp.examples</groupId>
217 <artifactId>examples-pcvs</artifactId>
218 <version>${project.version}</version>
221 <groupId>org.onap.policy.apex-pdp.examples</groupId>
222 <artifactId>examples-decisionmaker</artifactId>
223 <version>${project.version}</version>
226 <groupId>org.onap.policy.apex-pdp.examples</groupId>
227 <artifactId>examples-periodic</artifactId>
228 <version>${project.version}</version>
231 <groupId>org.onap.policy.apex-pdp.examples</groupId>
232 <artifactId>examples-onap-vcpe</artifactId>
233 <version>${project.version}</version>
236 <groupId>org.onap.policy.apex-pdp.examples</groupId>
237 <artifactId>examples-onap-bbs</artifactId>
238 <version>${project.version}</version>
241 <groupId>org.onap.policy.apex-pdp.examples</groupId>
242 <artifactId>examples-grpc</artifactId>
243 <version>${project.version}</version>
249 <filter>src/main/resources/properties/db.properties</filter>
253 <directory>src/main/resources/META-INF</directory>
254 <filtering>true</filtering>
256 <include>**/*.xml</include>
261 <!-- Copy required resources and examples -->
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-dependency-plugin</artifactId>
267 <id>unpack-etc-examples</id>
268 <phase>package</phase>
275 <groupId>org.onap.policy.apex-pdp.services</groupId>
276 <artifactId>services-onappf</artifactId>
277 <version>${project.version}</version>
279 <overWrite>false</overWrite>
280 <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
281 <includes>config/*</includes>
284 <groupId>org.onap.policy.apex-pdp.auth</groupId>
285 <artifactId>cli-editor</artifactId>
286 <version>${project.version}</version>
288 <overWrite>false</overWrite>
289 <outputDirectory>${project.build.directory}</outputDirectory>
290 <includes>etc/**/*,examples/**/*</includes>
293 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
294 <artifactId>integration-common</artifactId>
295 <version>${project.version}</version>
297 <overWrite>false</overWrite>
298 <outputDirectory>${project.build.directory}</outputDirectory>
299 <includes>etc/**/*,examples/**/*</includes>
302 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
303 <artifactId>performance-benchmark-test</artifactId>
304 <version>${project.version}</version>
306 <overWrite>false</overWrite>
307 <outputDirectory>${project.build.directory}</outputDirectory>
308 <includes>examples/**/*</includes>
311 <groupId>org.onap.policy.apex-pdp.examples</groupId>
312 <artifactId>examples-aadm</artifactId>
313 <version>${project.version}</version>
315 <overWrite>false</overWrite>
316 <outputDirectory>${project.build.directory}</outputDirectory>
317 <includes>etc/**/*,examples/**/*</includes>
320 <groupId>org.onap.policy.apex-pdp.examples</groupId>
321 <artifactId>examples-adaptive</artifactId>
322 <version>${project.version}</version>
324 <overWrite>false</overWrite>
325 <outputDirectory>${project.build.directory}</outputDirectory>
326 <includes>etc/**/*,examples/**/*</includes>
329 <groupId>org.onap.policy.apex-pdp.examples</groupId>
330 <artifactId>examples-myfirstpolicy</artifactId>
331 <version>${project.version}</version>
333 <overWrite>false</overWrite>
334 <outputDirectory>${project.build.directory}</outputDirectory>
335 <includes>etc/**/*,examples/**/*</includes>
338 <groupId>org.onap.policy.apex-pdp.examples</groupId>
339 <artifactId>examples-pcvs</artifactId>
340 <version>${project.version}</version>
342 <overWrite>false</overWrite>
343 <outputDirectory>${project.build.directory}</outputDirectory>
344 <includes>etc/**/*,examples/**/*</includes>
347 <groupId>org.onap.policy.apex-pdp.examples</groupId>
348 <artifactId>examples-decisionmaker</artifactId>
349 <version>${project.version}</version>
351 <overWrite>false</overWrite>
352 <outputDirectory>${project.build.directory}</outputDirectory>
353 <includes>etc/**/*,examples/**/*</includes>
356 <groupId>org.onap.policy.apex-pdp.examples</groupId>
357 <artifactId>examples-decisionmaker</artifactId>
358 <version>${project.version}</version>
360 <overWrite>false</overWrite>
361 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
362 <includes>*PolicyModel.json</includes>
365 <groupId>org.onap.policy.apex-pdp.examples</groupId>
366 <artifactId>examples-periodic</artifactId>
367 <version>${project.version}</version>
369 <overWrite>false</overWrite>
370 <outputDirectory>${project.build.directory}</outputDirectory>
371 <includes>etc/**/*,examples/**/*</includes>
374 <groupId>org.onap.policy.apex-pdp.examples</groupId>
375 <artifactId>examples-periodic</artifactId>
376 <version>${project.version}</version>
378 <overWrite>false</overWrite>
379 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
380 <includes>PeriodicPolicyModel.json</includes>
383 <groupId>org.onap.policy.apex-pdp.examples</groupId>
384 <artifactId>examples-onap-vcpe</artifactId>
385 <version>${project.version}</version>
387 <overWrite>false</overWrite>
388 <outputDirectory>${project.build.directory}</outputDirectory>
389 <includes>etc/**/*,examples/**/*</includes>
392 <groupId>org.onap.policy.apex-pdp.examples</groupId>
393 <artifactId>examples-onap-vcpe</artifactId>
394 <version>${project.version}</version>
396 <overWrite>false</overWrite>
397 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
398 <includes>ONAPvCPEPolicyModel.json</includes>
401 <groupId>org.onap.policy.apex-pdp.examples</groupId>
402 <artifactId>examples-onap-bbs</artifactId>
403 <version>${project.version}</version>
405 <overWrite>false</overWrite>
406 <outputDirectory>${project.build.directory}</outputDirectory>
407 <includes>etc/**/*,examples/**/*</includes>
410 <groupId>org.onap.policy.apex-pdp.examples</groupId>
411 <artifactId>examples-onap-bbs</artifactId>
412 <version>${project.version}</version>
414 <overWrite>false</overWrite>
415 <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
416 <includes>NomadicONTPolicyModel.json</includes>
419 <groupId>org.onap.policy.apex-pdp.tools</groupId>
420 <artifactId>tools-common</artifactId>
421 <version>${project.version}</version>
423 <overWrite>false</overWrite>
424 <outputDirectory>${project.build.directory}/etc</outputDirectory>
425 <includes>/app-version.txt</includes>
428 <groupId>org.onap.policy.apex-pdp.examples</groupId>
429 <artifactId>examples-grpc</artifactId>
430 <version>${project.version}</version>
432 <overWrite>false</overWrite>
433 <outputDirectory>${project.build.directory}</outputDirectory>
434 <includes>etc/**/*,examples/**/*</includes>
437 <groupId>org.onap.policy.apex-pdp.examples</groupId>
438 <artifactId>examples-grpc</artifactId>
439 <version>${project.version}</version>
441 <overWrite>false</overWrite>
442 <outputDirectory>${project.build.directory}/examples/models/APEXgRPC</outputDirectory>
443 <includes>APEXgRPCPolicy.json</includes>
446 <overWriteReleases>true</overWriteReleases>
447 <overWriteSnapshots>true</overWriteSnapshots>
451 <id>copy-fat-jars</id>
452 <phase>package</phase>
459 <groupId>org.onap.policy.apex-pdp.tools</groupId>
460 <artifactId>simple-wsclient</artifactId>
461 <version>${project.version}</version>
463 <classifier>jar-with-dependencies</classifier>
464 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
467 <overWriteReleases>true</overWriteReleases>
468 <overWriteSnapshots>true</overWriteSnapshots>
475 <!-- Build the tar ball -->
477 <groupId>org.apache.maven.plugins</groupId>
478 <artifactId>maven-assembly-plugin</artifactId>
481 <id>generate-complete-tar</id>
482 <phase>package</phase>
488 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
490 <finalName>${project.artifactId}-${project.version}</finalName>
491 <appendAssemblyId>false</appendAssemblyId>
497 <artifactId>maven-antrun-plugin</artifactId>
500 <phase>package</phase>
504 src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
505 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
513 <id>fix-permissions</id>
514 <phase>package</phase>
517 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
526 <!-- Build the dpkg distribution -->
528 <groupId>org.vafer</groupId>
529 <artifactId>jdeb</artifactId>
530 <version>1.5</version>
533 <phase>package</phase>
538 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
539 <controlDir>${basedir}/src/main/package/control</controlDir>
541 <!-- Copy the Apex run time configuration -->
543 <src>${project.build.directory}/install_hierarchy/lib</src>
544 <type>directory</type>
548 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
549 <filemode>755</filemode>
553 <src>${project.build.directory}/install_hierarchy/bin</src>
554 <type>directory</type>
558 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
562 <src>${project.build.directory}/install_hierarchy/etc</src>
563 <type>directory</type>
567 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
571 <src>${project.build.directory}/install_hierarchy/examples</src>
572 <type>directory</type>
576 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
588 <id>only-eclipse</id>
591 <name>m2e.version</name>
598 <groupId>org.eclipse.m2e</groupId>
599 <artifactId>lifecycle-mapping</artifactId>
601 <lifecycleMappingMetadata>
604 <pluginExecutionFilter>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-dependency-plugin</artifactId>
607 <versionRange>[2.0,)</versionRange>
612 </pluginExecutionFilter>
618 </lifecycleMappingMetadata>