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 <!-- Plugins for Context Distribution -->
46 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
47 <artifactId>plugins-context-distribution-hazelcast</artifactId>
48 <version>${project.version}</version>
51 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
52 <artifactId>plugins-context-distribution-infinispan</artifactId>
53 <version>${project.version}</version>
56 <!-- Plugins for Context Locking -->
58 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
59 <artifactId>plugins-context-locking-hazelcast</artifactId>
60 <version>${project.version}</version>
63 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
64 <artifactId>plugins-context-locking-curator</artifactId>
65 <version>${project.version}</version>
68 <!-- Plugins for Context Schemas -->
70 <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
71 <artifactId>plugins-context-schema-avro</artifactId>
72 <version>${project.version}</version>
75 <!-- Plugins for Executors -->
77 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
78 <artifactId>plugins-executor-java</artifactId>
79 <version>${project.version}</version>
82 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
83 <artifactId>plugins-executor-javascript</artifactId>
84 <version>${project.version}</version>
87 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
88 <artifactId>plugins-executor-jruby</artifactId>
89 <version>${project.version}</version>
92 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
93 <artifactId>plugins-executor-jython</artifactId>
94 <version>${project.version}</version>
97 <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
98 <artifactId>plugins-executor-mvel</artifactId>
99 <version>${project.version}</version>
102 <!-- Plugins for Persistence of Models over JPA -->
104 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
105 <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
106 <version>${project.version}</version>
109 <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
110 <artifactId>plugins-persistence-jpa-hibernate</artifactId>
111 <version>${project.version}</version>
114 <!-- Plugins for event carrier technologies -->
116 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
117 <artifactId>plugins-event-carrier-kafka</artifactId>
118 <version>${project.version}</version>
121 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
122 <artifactId>plugins-event-carrier-websocket</artifactId>
123 <version>${project.version}</version>
126 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
127 <artifactId>plugins-event-carrier-jms</artifactId>
128 <version>${project.version}</version>
131 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
132 <artifactId>plugins-event-carrier-restclient</artifactId>
133 <version>${project.version}</version>
136 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
137 <artifactId>plugins-event-carrier-restserver</artifactId>
138 <version>${project.version}</version>
141 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
142 <artifactId>plugins-event-carrier-restrequestor</artifactId>
143 <version>${project.version}</version>
146 <!-- Plugins for event protocols -->
148 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
149 <artifactId>plugins-event-protocol-xml</artifactId>
150 <version>${project.version}</version>
153 <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
154 <artifactId>plugins-event-protocol-jms</artifactId>
155 <version>${project.version}</version>
158 <!-- Authoring and Editors -->
160 <groupId>org.onap.policy.apex-pdp.auth</groupId>
161 <artifactId>cli-editor</artifactId>
162 <version>${project.version}</version>
165 <!-- Test Data used by examples -->
167 <groupId>org.onap.policy.apex-pdp.context</groupId>
168 <artifactId>context-test-utils</artifactId>
169 <version>${project.version}</version>
172 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
173 <artifactId>integration-common</artifactId>
174 <version>${project.version}</version>
180 <!-- Copy required resources and examples -->
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-dependency-plugin</artifactId>
186 <id>unpack-etc-examples</id>
187 <phase>package</phase>
194 <groupId>org.onap.policy.apex-pdp.auth</groupId>
195 <artifactId>cli-editor</artifactId>
196 <version>${project.version}</version>
198 <overWrite>false</overWrite>
199 <outputDirectory>${project.build.directory}</outputDirectory>
200 <includes>etc/**/*,examples/**/*</includes>
203 <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
204 <artifactId>integration-common</artifactId>
205 <version>${project.version}</version>
207 <overWrite>false</overWrite>
208 <outputDirectory>${project.build.directory}</outputDirectory>
209 <includes>etc/**/*,examples/**/*</includes>
212 <overWriteReleases>true</overWriteReleases>
213 <overWriteSnapshots>true</overWriteSnapshots>
219 <!-- Build the tar ball -->
221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-assembly-plugin</artifactId>
225 <id>generate-complete-tar</id>
226 <phase>package</phase>
232 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
234 <finalName>${project.artifactId}-${project.version}</finalName>
240 <artifactId>maven-antrun-plugin</artifactId>
243 <phase>package</phase>
247 src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz"
248 dest="${project.build.directory}/install_hierarchy" compression="gzip" />
256 <id>fix-permissions</id>
257 <phase>package</phase>
260 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
269 <!-- Build the dpkg distribution -->
271 <groupId>org.vafer</groupId>
272 <artifactId>jdeb</artifactId>
273 <version>1.5</version>
276 <phase>package</phase>
281 <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
282 <controlDir>${basedir}/src/main/package/control</controlDir>
284 <!-- Copy the Apex run time configuration -->
286 <src>${project.build.directory}/install_hierarchy/lib</src>
287 <type>directory</type>
291 <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</prefix>
292 <filemode>755</filemode>
296 <src>${project.build.directory}/install_hierarchy/bin</src>
297 <type>directory</type>
301 <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</prefix>
305 <src>${project.build.directory}/install_hierarchy/etc</src>
306 <type>directory</type>
310 <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</prefix>
314 <src>${project.build.directory}/install_hierarchy/examples</src>
315 <type>directory</type>
319 <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</prefix>
334 <family>Linux</family>
339 <!-- Build the rpm distribution -->
340 <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
342 <groupId>org.codehaus.mojo</groupId>
343 <artifactId>rpm-maven-plugin</artifactId>
344 <version>2.2.0</version>
345 <extensions>true</extensions>
348 <phase>package</phase>
355 <name>${project.artifactId}</name>
356 <copyright>2015 Ericsson AB All rights reserved</copyright>
357 <distribution>${project.parent.artifactId}</distribution>
358 <group>ERI-APEX</group>
359 <packager>Ericsson</packager>
360 <prefix>/opt/app/policy/apex-pdp</prefix>
361 <changelogFile>src/rpm/changelog</changelogFile>
362 <needarch>noarch</needarch>
363 <targetVendor>redhat</targetVendor>
364 <targetOS>linux</targetOS>
365 <version>${project.version}</version>
367 <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
371 <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</directory>
372 <username>root</username>
373 <groupname>root</groupname>
376 <location>${project.build.directory}/install_hierarchy/lib</location>
381 <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</directory>
382 <username>root</username>
383 <groupname>root</groupname>
386 <location>${project.build.directory}/install_hierarchy/bin</location>
391 <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</directory>
392 <username>root</username>
393 <groupname>root</groupname>
396 <location>${project.build.directory}/install_hierarchy/etc</location>
401 <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</directory>
402 <username>root</username>
403 <groupname>root</groupname>
406 <location>${project.build.directory}/install_hierarchy/examples</location>
411 <preinstallScriptlet>
412 <scriptFile>src/main/package/control/preinst</scriptFile>
413 </preinstallScriptlet>
414 <postinstallScriptlet>
415 <scriptFile>src/main/package/control/postinst</scriptFile>
416 </postinstallScriptlet>
418 <scriptFile>src/main/package/control/prerm</scriptFile>
419 </preremoveScriptlet>
420 <postremoveScriptlet>
421 <scriptFile>src/main/package/control/postrm</scriptFile>
422 </postremoveScriptlet>
426 <groupId>org.codehaus.mojo</groupId>
427 <artifactId>exec-maven-plugin</artifactId>
430 <phase>package</phase>
437 <executable>sh</executable>
439 <argument>-c</argument>
441 ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
443 ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
448 <groupId>org.codehaus.mojo</groupId>
449 <artifactId>build-helper-maven-plugin</artifactId>
450 <version>3.0.0</version>
453 <id>attach-artifacts</id>
454 <phase>package</phase>
456 <goal>attach-artifact</goal>
461 <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
473 <id>only-eclipse</id>
476 <name>m2e.version</name>
483 <groupId>org.eclipse.m2e</groupId>
484 <artifactId>lifecycle-mapping</artifactId>
486 <lifecycleMappingMetadata>
489 <pluginExecutionFilter>
490 <groupId>org.apache.maven.plugins</groupId>
491 <artifactId>maven-dependency-plugin</artifactId>
492 <versionRange>${maven-dependency-plugin.version}</versionRange>
497 </pluginExecutionFilter>
503 </lifecycleMappingMetadata>