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 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.5.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 <!-- Copy required resources and examples -->
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-dependency-plugin</artifactId>
255 <id>unpack-etc-examples</id>
256 <phase>package</phase>
263 <groupId>org.onap.policy.apex-pdp.services</groupId>
264 <artifactId>services-onappf</artifactId>
265 <version>${project.version}</version>
267 <overWrite>false</overWrite>
268 <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
269 <includes>config/*</includes>
272 <groupId>org.onap.policy.apex-pdp.auth</groupId>
273 <artifactId>cli-editor</artifactId>
274 <version>${project.version}</version>
276 <overWrite>false</overWrite>
277 <outputDirectory>${project.build.directory}</outputDirectory>
278 <includes>etc/**/*,examples/**/*</includes>
281 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
282 <artifactId>integration-common</artifactId>
283 <version>${project.version}</version>
285 <overWrite>false</overWrite>
286 <outputDirectory>${project.build.directory}</outputDirectory>
287 <includes>etc/**/*,examples/**/*</includes>
290 <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
291 <artifactId>performance-benchmark-test</artifactId>
292 <version>${project.version}</version>
294 <overWrite>false</overWrite>
295 <outputDirectory>${project.build.directory}</outputDirectory>
296 <includes>examples/**/*</includes>
299 <groupId>org.onap.policy.apex-pdp.examples</groupId>
300 <artifactId>examples-aadm</artifactId>
301 <version>${project.version}</version>
303 <overWrite>false</overWrite>
304 <outputDirectory>${project.build.directory}</outputDirectory>
305 <includes>etc/**/*,examples/**/*</includes>
308 <groupId>org.onap.policy.apex-pdp.examples</groupId>
309 <artifactId>examples-adaptive</artifactId>
310 <version>${project.version}</version>
312 <overWrite>false</overWrite>
313 <outputDirectory>${project.build.directory}</outputDirectory>
314 <includes>etc/**/*,examples/**/*</includes>
317 <groupId>org.onap.policy.apex-pdp.examples</groupId>
318 <artifactId>examples-myfirstpolicy</artifactId>
319 <version>${project.version}</version>
321 <overWrite>false</overWrite>
322 <outputDirectory>${project.build.directory}</outputDirectory>
323 <includes>etc/**/*,examples/**/*</includes>
326 <groupId>org.onap.policy.apex-pdp.examples</groupId>
327 <artifactId>examples-pcvs</artifactId>
328 <version>${project.version}</version>
330 <overWrite>false</overWrite>
331 <outputDirectory>${project.build.directory}</outputDirectory>
332 <includes>etc/**/*,examples/**/*</includes>
335 <groupId>org.onap.policy.apex-pdp.examples</groupId>
336 <artifactId>examples-decisionmaker</artifactId>
337 <version>${project.version}</version>
339 <overWrite>false</overWrite>
340 <outputDirectory>${project.build.directory}</outputDirectory>
341 <includes>etc/**/*,examples/**/*</includes>
344 <groupId>org.onap.policy.apex-pdp.examples</groupId>
345 <artifactId>examples-decisionmaker</artifactId>
346 <version>${project.version}</version>
348 <overWrite>false</overWrite>
349 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
350 <includes>*PolicyModel.json</includes>
353 <groupId>org.onap.policy.apex-pdp.examples</groupId>
354 <artifactId>examples-periodic</artifactId>
355 <version>${project.version}</version>
357 <overWrite>false</overWrite>
358 <outputDirectory>${project.build.directory}</outputDirectory>
359 <includes>etc/**/*,examples/**/*</includes>
362 <groupId>org.onap.policy.apex-pdp.examples</groupId>
363 <artifactId>examples-periodic</artifactId>
364 <version>${project.version}</version>
366 <overWrite>false</overWrite>
367 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
368 <includes>PeriodicPolicyModel.json</includes>
371 <groupId>org.onap.policy.apex-pdp.examples</groupId>
372 <artifactId>examples-onap-vcpe</artifactId>
373 <version>${project.version}</version>
375 <overWrite>false</overWrite>
376 <outputDirectory>${project.build.directory}</outputDirectory>
377 <includes>etc/**/*,examples/**/*</includes>
380 <groupId>org.onap.policy.apex-pdp.examples</groupId>
381 <artifactId>examples-onap-vcpe</artifactId>
382 <version>${project.version}</version>
384 <overWrite>false</overWrite>
385 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
386 <includes>ONAPvCPEPolicyModel.json</includes>
389 <groupId>org.onap.policy.apex-pdp.examples</groupId>
390 <artifactId>examples-onap-bbs</artifactId>
391 <version>${project.version}</version>
393 <overWrite>false</overWrite>
394 <outputDirectory>${project.build.directory}</outputDirectory>
395 <includes>etc/**/*,examples/**/*</includes>
398 <groupId>org.onap.policy.apex-pdp.examples</groupId>
399 <artifactId>examples-onap-bbs</artifactId>
400 <version>${project.version}</version>
402 <overWrite>false</overWrite>
403 <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
404 <includes>NomadicONTPolicyModel.json</includes>
407 <groupId>org.onap.policy.apex-pdp.tools</groupId>
408 <artifactId>tools-common</artifactId>
409 <version>${project.version}</version>
411 <overWrite>false</overWrite>
412 <outputDirectory>${project.build.directory}/etc</outputDirectory>
413 <includes>/app-version.txt</includes>
416 <groupId>org.onap.policy.apex-pdp.examples</groupId>
417 <artifactId>examples-grpc</artifactId>
418 <version>${project.version}</version>
420 <overWrite>false</overWrite>
421 <outputDirectory>${project.build.directory}</outputDirectory>
422 <includes>etc/**/*,examples/**/*</includes>
425 <groupId>org.onap.policy.apex-pdp.examples</groupId>
426 <artifactId>examples-grpc</artifactId>
427 <version>${project.version}</version>
429 <overWrite>false</overWrite>
430 <outputDirectory>${project.build.directory}/examples/models/APEXgRPC</outputDirectory>
431 <includes>APEXgRPCPolicy.json</includes>
434 <overWriteReleases>true</overWriteReleases>
435 <overWriteSnapshots>true</overWriteSnapshots>
439 <id>copy-fat-jars</id>
440 <phase>package</phase>
447 <groupId>org.onap.policy.apex-pdp.tools</groupId>
448 <artifactId>simple-wsclient</artifactId>
449 <version>${project.version}</version>
451 <classifier>jar-with-dependencies</classifier>
452 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
455 <overWriteReleases>true</overWriteReleases>
456 <overWriteSnapshots>true</overWriteSnapshots>
463 <!-- Build the tar ball -->
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-assembly-plugin</artifactId>
469 <id>generate-complete-tar</id>
470 <phase>package</phase>
476 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
478 <finalName>${project.artifactId}-${project.version}</finalName>
479 <appendAssemblyId>false</appendAssemblyId>
485 <artifactId>maven-antrun-plugin</artifactId>
488 <phase>package</phase>
492 src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
493 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
501 <id>fix-permissions</id>
502 <phase>package</phase>
505 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
514 <!-- Build the dpkg distribution -->
516 <groupId>org.vafer</groupId>
517 <artifactId>jdeb</artifactId>
518 <version>1.5</version>
521 <phase>package</phase>
526 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
527 <controlDir>${basedir}/src/main/package/control</controlDir>
529 <!-- Copy the Apex run time configuration -->
531 <src>${project.build.directory}/install_hierarchy/lib</src>
532 <type>directory</type>
536 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
537 <filemode>755</filemode>
541 <src>${project.build.directory}/install_hierarchy/bin</src>
542 <type>directory</type>
546 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
550 <src>${project.build.directory}/install_hierarchy/etc</src>
551 <type>directory</type>
555 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
559 <src>${project.build.directory}/install_hierarchy/examples</src>
560 <type>directory</type>
564 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
576 <id>only-eclipse</id>
579 <name>m2e.version</name>
586 <groupId>org.eclipse.m2e</groupId>
587 <artifactId>lifecycle-mapping</artifactId>
589 <lifecycleMappingMetadata>
592 <pluginExecutionFilter>
593 <groupId>org.apache.maven.plugins</groupId>
594 <artifactId>maven-dependency-plugin</artifactId>
595 <versionRange>[2.0,)</versionRange>
600 </pluginExecutionFilter>
606 </lifecycleMappingMetadata>