2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
4 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.onap.policy.apex-pdp.packages</groupId>
25 <artifactId>packages</artifactId>
26 <version>2.0.1-SNAPSHOT</version>
29 <artifactId>apex-pdp-package-full</artifactId>
30 <name>${project.artifactId}</name>
31 <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description>
34 <install.package.name>${project.artifactId}</install.package.name>
39 <groupId>org.onap.policy.apex-pdp.services</groupId>
40 <artifactId>services-engine</artifactId>
41 <version>${project.version}</version>
44 <!-- Client Servlet applications -->
46 <groupId>org.onap.policy.apex-pdp.client</groupId>
47 <artifactId>client-full</artifactId>
49 <version>${project.version}</version>
52 <groupId>org.onap.policy.apex-pdp.client</groupId>
53 <artifactId>client-editor</artifactId>
55 <version>${project.version}</version>
58 <groupId>org.onap.policy.apex-pdp.client</groupId>
59 <artifactId>client-deployment</artifactId>
61 <version>${project.version}</version>
64 <groupId>org.onap.policy.apex-pdp.client</groupId>
65 <artifactId>client-monitoring</artifactId>
67 <version>${project.version}</version>
70 <!-- Plugins for Context Distribution -->
72 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
73 <artifactId>plugins-context-distribution-hazelcast</artifactId>
74 <version>${project.version}</version>
77 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
78 <artifactId>plugins-context-distribution-infinispan</artifactId>
79 <version>${project.version}</version>
82 <!-- Plugins for Context Locking -->
84 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
85 <artifactId>plugins-context-locking-hazelcast</artifactId>
86 <version>${project.version}</version>
89 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
90 <artifactId>plugins-context-locking-curator</artifactId>
91 <version>${project.version}</version>
94 <!-- Plugins for Context Schemas -->
96 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
97 <artifactId>plugins-context-schema-avro</artifactId>
98 <version>${project.version}</version>
101 <!-- Plugins for Executors -->
103 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
104 <artifactId>plugins-executor-java</artifactId>
105 <version>${project.version}</version>
108 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
109 <artifactId>plugins-executor-javascript</artifactId>
110 <version>${project.version}</version>
113 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
114 <artifactId>plugins-executor-jruby</artifactId>
115 <version>${project.version}</version>
118 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
119 <artifactId>plugins-executor-jython</artifactId>
120 <version>${project.version}</version>
123 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
124 <artifactId>plugins-executor-mvel</artifactId>
125 <version>${project.version}</version>
128 <!-- Plugins for Persistence of Models over JPA -->
130 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
131 <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
132 <version>${project.version}</version>
135 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
136 <artifactId>plugins-persistence-jpa-hibernate</artifactId>
137 <version>${project.version}</version>
140 <!-- Plugins for event carrier technologies -->
142 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
143 <artifactId>plugins-event-carrier-kafka</artifactId>
144 <version>${project.version}</version>
147 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
148 <artifactId>plugins-event-carrier-websocket</artifactId>
149 <version>${project.version}</version>
152 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
153 <artifactId>plugins-event-carrier-jms</artifactId>
154 <version>${project.version}</version>
157 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
158 <artifactId>plugins-event-carrier-restclient</artifactId>
159 <version>${project.version}</version>
162 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
163 <artifactId>plugins-event-carrier-restserver</artifactId>
164 <version>${project.version}</version>
167 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
168 <artifactId>plugins-event-carrier-restrequestor</artifactId>
169 <version>${project.version}</version>
172 <!-- Plugins for event protocols -->
174 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
175 <artifactId>plugins-event-protocol-xml</artifactId>
176 <version>${project.version}</version>
179 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
180 <artifactId>plugins-event-protocol-jms</artifactId>
181 <version>${project.version}</version>
184 <!-- Authoring and Editors -->
186 <groupId>org.onap.policy.apex-pdp.auth</groupId>
187 <artifactId>cli-editor</artifactId>
188 <version>${project.version}</version>
193 <groupId>org.onap.policy.apex-pdp.tools</groupId>
194 <artifactId>simple-wsclient</artifactId>
195 <version>${project.version}</version>
198 <groupId>org.onap.policy.apex-pdp.tools</groupId>
199 <artifactId>model-generator</artifactId>
200 <version>${project.version}</version>
203 <!-- Test Data used by examples -->
205 <groupId>org.onap.policy.apex-pdp.context</groupId>
206 <artifactId>context-test-utils</artifactId>
207 <version>${project.version}</version>
210 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
211 <artifactId>integration-common</artifactId>
212 <version>${project.version}</version>
215 <!-- Sample Examples -->
217 <groupId>org.onap.policy.apex-pdp.examples</groupId>
218 <artifactId>examples-aadm</artifactId>
219 <version>${project.version}</version>
222 <groupId>org.onap.policy.apex-pdp.examples</groupId>
223 <artifactId>examples-adaptive</artifactId>
224 <version>${project.version}</version>
227 <groupId>org.onap.policy.apex-pdp.examples</groupId>
228 <artifactId>examples-myfirstpolicy</artifactId>
229 <version>${project.version}</version>
232 <groupId>org.onap.policy.apex-pdp.examples</groupId>
233 <artifactId>examples-pcvs</artifactId>
234 <version>${project.version}</version>
237 <groupId>org.onap.policy.apex-pdp.examples</groupId>
238 <artifactId>examples-decisionmaker</artifactId>
239 <version>${project.version}</version>
242 <groupId>org.onap.policy.apex-pdp.examples</groupId>
243 <artifactId>examples-periodic</artifactId>
244 <version>${project.version}</version>
247 <groupId>org.onap.policy.apex-pdp.examples</groupId>
248 <artifactId>examples-onap-vcpe</artifactId>
249 <version>${project.version}</version>
252 <groupId>org.onap.policy.apex-pdp.examples</groupId>
253 <artifactId>examples-servlet</artifactId>
255 <version>${project.version}</version>
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.auth</groupId>
276 <artifactId>cli-editor</artifactId>
277 <version>${project.version}</version>
279 <overWrite>false</overWrite>
280 <outputDirectory>${project.build.directory}</outputDirectory>
281 <includes>etc/**/*,examples/**/*</includes>
284 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
285 <artifactId>integration-common</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.examples</groupId>
294 <artifactId>examples-aadm</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.examples</groupId>
303 <artifactId>examples-adaptive</artifactId>
304 <version>${project.version}</version>
306 <overWrite>false</overWrite>
307 <outputDirectory>${project.build.directory}</outputDirectory>
308 <includes>etc/**/*,examples/**/*</includes>
311 <groupId>org.onap.policy.apex-pdp.examples</groupId>
312 <artifactId>examples-myfirstpolicy</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-pcvs</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-decisionmaker</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-decisionmaker</artifactId>
340 <version>${project.version}</version>
342 <overWrite>false</overWrite>
343 <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
344 <includes>DecisionMakerPolicyModel.json</includes>
347 <groupId>org.onap.policy.apex-pdp.examples</groupId>
348 <artifactId>examples-periodic</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-periodic</artifactId>
358 <version>${project.version}</version>
360 <overWrite>false</overWrite>
361 <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
362 <includes>PeriodicPolicyModel.json</includes>
365 <groupId>org.onap.policy.apex-pdp.examples</groupId>
366 <artifactId>examples-onap-vcpe</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-onap-vcpe</artifactId>
376 <version>${project.version}</version>
378 <overWrite>false</overWrite>
379 <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
380 <includes>ONAPvCPEPolicyModel.json</includes>
383 <groupId>org.onap.policy.apex-pdp.examples</groupId>
384 <artifactId>examples-servlet</artifactId>
385 <version>${project.version}</version>
387 <overWrite>false</overWrite>
388 <outputDirectory>${project.build.directory}/examples/servlet</outputDirectory>
389 <includes>readme_examples-servlet.txt</includes>
392 <groupId>org.onap.policy.apex-pdp.tools</groupId>
393 <artifactId>tools-common</artifactId>
394 <version>${project.version}</version>
396 <overWrite>false</overWrite>
397 <outputDirectory>${project.build.directory}/etc</outputDirectory>
398 <includes>/app-version.txt</includes>
401 <overWriteReleases>true</overWriteReleases>
402 <overWriteSnapshots>true</overWriteSnapshots>
406 <id>copy-fat-jars</id>
407 <phase>package</phase>
414 <groupId>org.onap.policy.apex-pdp.tools</groupId>
415 <artifactId>simple-wsclient</artifactId>
416 <version>${project.version}</version>
418 <classifier>jar-with-dependencies</classifier>
419 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
422 <groupId>org.onap.policy.apex-pdp.client</groupId>
423 <artifactId>client-monitoring</artifactId>
424 <version>${project.version}</version>
425 <classifier>monitoring</classifier>
426 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
429 <groupId>org.onap.policy.apex-pdp.client</groupId>
430 <artifactId>client-editor</artifactId>
431 <version>${project.version}</version>
432 <classifier>editor</classifier>
433 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
436 <groupId>org.onap.policy.apex-pdp.client</groupId>
437 <artifactId>client-deployment</artifactId>
438 <version>${project.version}</version>
439 <classifier>deployment</classifier>
440 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
443 <groupId>org.onap.policy.apex-pdp.client</groupId>
444 <artifactId>client-full</artifactId>
445 <version>${project.version}</version>
446 <classifier>full</classifier>
447 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
450 <overWriteReleases>true</overWriteReleases>
451 <overWriteSnapshots>true</overWriteSnapshots>
458 <!-- Build the tar ball -->
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-assembly-plugin</artifactId>
464 <id>generate-complete-tar</id>
465 <phase>package</phase>
471 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
473 <finalName>${project.artifactId}-${project.version}</finalName>
479 <artifactId>maven-antrun-plugin</artifactId>
482 <phase>package</phase>
486 src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz"
487 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
495 <id>fix-permissions</id>
496 <phase>package</phase>
499 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
508 <!-- Build the dpkg distribution -->
510 <groupId>org.vafer</groupId>
511 <artifactId>jdeb</artifactId>
512 <version>1.5</version>
515 <phase>package</phase>
520 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
521 <controlDir>${basedir}/src/main/package/control</controlDir>
523 <!-- Copy the Apex run time configuration -->
525 <src>${project.build.directory}/install_hierarchy/lib</src>
526 <type>directory</type>
530 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
531 <filemode>755</filemode>
535 <src>${project.build.directory}/install_hierarchy/bin</src>
536 <type>directory</type>
540 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
544 <src>${project.build.directory}/install_hierarchy/etc</src>
545 <type>directory</type>
549 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
553 <src>${project.build.directory}/install_hierarchy/war</src>
554 <type>directory</type>
558 <prefix>/opt/app/policy/${install.package.name}-${project.version}/war</prefix>
562 <src>${project.build.directory}/install_hierarchy/examples</src>
563 <type>directory</type>
567 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
582 <family>Linux</family>
587 <!-- Build the rpm distribution -->
588 <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
590 <groupId>org.codehaus.mojo</groupId>
591 <artifactId>rpm-maven-plugin</artifactId>
592 <version>2.2.0</version>
593 <extensions>true</extensions>
596 <phase>package</phase>
603 <name>${project.artifactId}</name>
604 <copyright>2015 Ericsson AB All rights reserved</copyright>
605 <distribution>${project.parent.artifactId}</distribution>
606 <group>ERI-APEX</group>
607 <packager>Ericsson</packager>
608 <prefix>/opt/app/policy/apex-pdp</prefix>
609 <changelogFile>src/rpm/changelog</changelogFile>
610 <needarch>noarch</needarch>
611 <targetVendor>redhat</targetVendor>
612 <targetOS>linux</targetOS>
613 <version>${project.version}</version>
615 <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
619 <directory>/opt/app/policy/${project.artifactId}-${project.version}/lib</directory>
620 <username>root</username>
621 <groupname>root</groupname>
624 <location>${project.build.directory}/install_hierarchy/lib</location>
629 <directory>/opt/app/policy/${project.artifactId}-${project.version}/bin</directory>
630 <username>root</username>
631 <groupname>root</groupname>
634 <location>${project.build.directory}/install_hierarchy/bin</location>
639 <directory>/opt/app/policy/${project.artifactId}-${project.version}/etc</directory>
640 <username>root</username>
641 <groupname>root</groupname>
644 <location>${project.build.directory}/install_hierarchy/etc</location>
649 <directory>/opt/app/policy/${install.package.name}-${project.version}/war</directory>
650 <username>root</username>
651 <groupname>root</groupname>
654 <location>${project.build.directory}/install_hierarchy/war</location>
659 <directory>/opt/app/policy/${project.artifactId}-${project.version}/examples</directory>
660 <username>root</username>
661 <groupname>root</groupname>
664 <location>${project.build.directory}/install_hierarchy/examples</location>
669 <preinstallScriptlet>
670 <scriptFile>src/main/package/control/preinst</scriptFile>
671 </preinstallScriptlet>
672 <postinstallScriptlet>
673 <scriptFile>src/main/package/control/postinst</scriptFile>
674 </postinstallScriptlet>
676 <scriptFile>src/main/package/control/prerm</scriptFile>
677 </preremoveScriptlet>
678 <postremoveScriptlet>
679 <scriptFile>src/main/package/control/postrm</scriptFile>
680 </postremoveScriptlet>
684 <groupId>org.codehaus.mojo</groupId>
685 <artifactId>exec-maven-plugin</artifactId>
688 <phase>package</phase>
695 <executable>sh</executable>
697 <argument>-c</argument>
699 ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
701 ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
706 <groupId>org.codehaus.mojo</groupId>
707 <artifactId>build-helper-maven-plugin</artifactId>
708 <version>3.0.0</version>
711 <id>attach-artifacts</id>
712 <phase>package</phase>
714 <goal>attach-artifact</goal>
719 <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
731 <id>only-eclipse</id>
734 <name>m2e.version</name>
741 <groupId>org.eclipse.m2e</groupId>
742 <artifactId>lifecycle-mapping</artifactId>
744 <lifecycleMappingMetadata>
747 <pluginExecutionFilter>
748 <groupId>org.apache.maven.plugins</groupId>
749 <artifactId>maven-dependency-plugin</artifactId>
750 <versionRange>${maven-dependency-plugin.version}</versionRange>
755 </pluginExecutionFilter>
761 </lifecycleMappingMetadata>
773 <name>apexSite</name>
776 <distributionManagement>
778 <id>${project.artifactId}-site</id>
779 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
781 </distributionManagement>