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.0-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-periodic</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-onap-vcpe</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-servlet</artifactId>
358 <version>${project.version}</version>
360 <overWrite>false</overWrite>
361 <outputDirectory>${project.build.directory}/examples/servlet</outputDirectory>
362 <includes>readme_examples-servlet.txt</includes>
365 <groupId>org.onap.policy.apex-pdp.tools</groupId>
366 <artifactId>tools-common</artifactId>
367 <version>${project.version}</version>
369 <overWrite>false</overWrite>
370 <outputDirectory>${project.build.directory}/etc</outputDirectory>
371 <includes>/app-version.txt</includes>
374 <overWriteReleases>true</overWriteReleases>
375 <overWriteSnapshots>true</overWriteSnapshots>
379 <id>copy-fat-jars</id>
380 <phase>package</phase>
387 <groupId>org.onap.policy.apex-pdp.tools</groupId>
388 <artifactId>simple-wsclient</artifactId>
389 <version>${project.version}</version>
391 <classifier>jar-with-dependencies</classifier>
392 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
395 <groupId>org.onap.policy.apex-pdp.client</groupId>
396 <artifactId>client-monitoring</artifactId>
397 <version>${project.version}</version>
398 <classifier>monitoring</classifier>
399 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
402 <groupId>org.onap.policy.apex-pdp.client</groupId>
403 <artifactId>client-editor</artifactId>
404 <version>${project.version}</version>
405 <classifier>editor</classifier>
406 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
409 <groupId>org.onap.policy.apex-pdp.client</groupId>
410 <artifactId>client-deployment</artifactId>
411 <version>${project.version}</version>
412 <classifier>deployment</classifier>
413 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
416 <groupId>org.onap.policy.apex-pdp.client</groupId>
417 <artifactId>client-full</artifactId>
418 <version>${project.version}</version>
419 <classifier>full</classifier>
420 <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
423 <overWriteReleases>true</overWriteReleases>
424 <overWriteSnapshots>true</overWriteSnapshots>
431 <!-- Build the tar ball -->
433 <groupId>org.apache.maven.plugins</groupId>
434 <artifactId>maven-assembly-plugin</artifactId>
437 <id>generate-complete-tar</id>
438 <phase>package</phase>
444 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
446 <finalName>${project.artifactId}-${project.version}</finalName>
452 <artifactId>maven-antrun-plugin</artifactId>
455 <phase>package</phase>
459 src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz"
460 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
468 <id>fix-permissions</id>
469 <phase>package</phase>
472 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
481 <!-- Build the dpkg distribution -->
483 <groupId>org.vafer</groupId>
484 <artifactId>jdeb</artifactId>
485 <version>1.5</version>
488 <phase>package</phase>
493 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
494 <controlDir>${basedir}/src/main/package/control</controlDir>
496 <!-- Copy the Apex run time configuration -->
498 <src>${project.build.directory}/install_hierarchy/lib</src>
499 <type>directory</type>
503 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
504 <filemode>755</filemode>
508 <src>${project.build.directory}/install_hierarchy/bin</src>
509 <type>directory</type>
513 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
517 <src>${project.build.directory}/install_hierarchy/etc</src>
518 <type>directory</type>
522 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
526 <src>${project.build.directory}/install_hierarchy/war</src>
527 <type>directory</type>
531 <prefix>/opt/app/policy/${install.package.name}-${project.version}/war</prefix>
535 <src>${project.build.directory}/install_hierarchy/examples</src>
536 <type>directory</type>
540 <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
555 <family>Linux</family>
560 <!-- Build the rpm distribution -->
561 <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
563 <groupId>org.codehaus.mojo</groupId>
564 <artifactId>rpm-maven-plugin</artifactId>
565 <version>2.2.0</version>
566 <extensions>true</extensions>
569 <phase>package</phase>
576 <name>${project.artifactId}</name>
577 <copyright>2015 Ericsson AB All rights reserved</copyright>
578 <distribution>${project.parent.artifactId}</distribution>
579 <group>ERI-APEX</group>
580 <packager>Ericsson</packager>
581 <prefix>/opt/app/policy/apex-pdp</prefix>
582 <changelogFile>src/rpm/changelog</changelogFile>
583 <needarch>noarch</needarch>
584 <targetVendor>redhat</targetVendor>
585 <targetOS>linux</targetOS>
586 <version>${project.version}</version>
588 <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
592 <directory>/opt/app/policy/${project.artifactId}-${project.version}/lib</directory>
593 <username>root</username>
594 <groupname>root</groupname>
597 <location>${project.build.directory}/install_hierarchy/lib</location>
602 <directory>/opt/app/policy/${project.artifactId}-${project.version}/bin</directory>
603 <username>root</username>
604 <groupname>root</groupname>
607 <location>${project.build.directory}/install_hierarchy/bin</location>
612 <directory>/opt/app/policy/${project.artifactId}-${project.version}/etc</directory>
613 <username>root</username>
614 <groupname>root</groupname>
617 <location>${project.build.directory}/install_hierarchy/etc</location>
622 <directory>/opt/app/policy/${install.package.name}-${project.version}/war</directory>
623 <username>root</username>
624 <groupname>root</groupname>
627 <location>${project.build.directory}/install_hierarchy/war</location>
632 <directory>/opt/app/policy/${project.artifactId}-${project.version}/examples</directory>
633 <username>root</username>
634 <groupname>root</groupname>
637 <location>${project.build.directory}/install_hierarchy/examples</location>
642 <preinstallScriptlet>
643 <scriptFile>src/main/package/control/preinst</scriptFile>
644 </preinstallScriptlet>
645 <postinstallScriptlet>
646 <scriptFile>src/main/package/control/postinst</scriptFile>
647 </postinstallScriptlet>
649 <scriptFile>src/main/package/control/prerm</scriptFile>
650 </preremoveScriptlet>
651 <postremoveScriptlet>
652 <scriptFile>src/main/package/control/postrm</scriptFile>
653 </postremoveScriptlet>
657 <groupId>org.codehaus.mojo</groupId>
658 <artifactId>exec-maven-plugin</artifactId>
661 <phase>package</phase>
668 <executable>sh</executable>
670 <argument>-c</argument>
672 ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
674 ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
679 <groupId>org.codehaus.mojo</groupId>
680 <artifactId>build-helper-maven-plugin</artifactId>
681 <version>3.0.0</version>
684 <id>attach-artifacts</id>
685 <phase>package</phase>
687 <goal>attach-artifact</goal>
692 <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
704 <id>only-eclipse</id>
707 <name>m2e.version</name>
714 <groupId>org.eclipse.m2e</groupId>
715 <artifactId>lifecycle-mapping</artifactId>
717 <lifecycleMappingMetadata>
720 <pluginExecutionFilter>
721 <groupId>org.apache.maven.plugins</groupId>
722 <artifactId>maven-dependency-plugin</artifactId>
723 <versionRange>${maven-dependency-plugin.version}</versionRange>
728 </pluginExecutionFilter>
734 </lifecycleMappingMetadata>
746 <name>apexSite</name>
749 <distributionManagement>
751 <id>${project.artifactId}-site</id>
752 <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
754 </distributionManagement>