Update snapshot and/or references of policy/apex-pdp to latest snapshots
[policy/apex-pdp.git] / packages / apex-pdp-package-full / pom.xml
1 <!--
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, 2022 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
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
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.
19
20   SPDX-License-Identifier: Apache-2.0
21   ============LICENSE_END=========================================================
22 -->
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>
26     <parent>
27         <groupId>org.onap.policy.apex-pdp.packages</groupId>
28         <artifactId>apex-packages</artifactId>
29         <version>3.0.2-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>apex-pdp-package-full</artifactId>
33     <packaging>pom</packaging>
34     <name>${project.artifactId}</name>
35     <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description>
36
37     <properties>
38         <install.package.name>${project.artifactId}</install.package.name>
39     </properties>
40
41     <dependencies>
42         <dependency>
43             <groupId>org.onap.policy.apex-pdp.services</groupId>
44             <artifactId>services-engine</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.onap.policy.apex-pdp.services</groupId>
49             <artifactId>services-onappf</artifactId>
50             <version>${project.version}</version>
51         </dependency>
52
53         <!-- Plugins for Context Distribution -->
54         <dependency>
55             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
56             <artifactId>plugins-context-distribution-hazelcast</artifactId>
57             <version>${project.version}</version>
58         </dependency>
59         <dependency>
60             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
61             <artifactId>plugins-context-distribution-infinispan</artifactId>
62             <version>${project.version}</version>
63         </dependency>
64
65         <!-- Plugins for Context Locking -->
66         <dependency>
67             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
68             <artifactId>plugins-context-locking-hazelcast</artifactId>
69             <version>${project.version}</version>
70         </dependency>
71         <dependency>
72             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
73             <artifactId>plugins-context-locking-curator</artifactId>
74             <version>${project.version}</version>
75         </dependency>
76
77         <!-- Plugins for Context Schemas -->
78         <dependency>
79             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
80             <artifactId>plugins-context-schema-avro</artifactId>
81             <version>${project.version}</version>
82         </dependency>
83         <dependency>
84             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
85             <artifactId>plugins-context-schema-json</artifactId>
86             <version>${project.version}</version>
87         </dependency>
88
89         <!-- Plugins for Executors -->
90         <dependency>
91             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
92             <artifactId>plugins-executor-java</artifactId>
93             <version>${project.version}</version>
94         </dependency>
95         <dependency>
96             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
97             <artifactId>plugins-executor-javascript</artifactId>
98             <version>${project.version}</version>
99         </dependency>
100         <dependency>
101             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
102             <artifactId>plugins-executor-jruby</artifactId>
103             <version>${project.version}</version>
104         </dependency>
105         <!-- Jython support disabled due to security concerns -->
106         <!-- dependency>
107             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
108             <artifactId>plugins-executor-jython</artifactId>
109             <version>${project.version}</version>
110         </dependency-->
111         <dependency>
112             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
113             <artifactId>plugins-executor-mvel</artifactId>
114             <version>${project.version}</version>
115         </dependency>
116
117         <!-- Plugins for event carrier technologies -->
118         <dependency>
119             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
120             <artifactId>plugins-event-carrier-kafka</artifactId>
121             <version>${project.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
125             <artifactId>plugins-event-carrier-jms</artifactId>
126             <version>${project.version}</version>
127         </dependency>
128         <dependency>
129             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
130             <artifactId>plugins-event-carrier-restclient</artifactId>
131             <version>${project.version}</version>
132         </dependency>
133         <dependency>
134             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
135             <artifactId>plugins-event-carrier-restserver</artifactId>
136             <version>${project.version}</version>
137         </dependency>
138         <dependency>
139             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
140             <artifactId>plugins-event-carrier-restrequestor</artifactId>
141             <version>${project.version}</version>
142         </dependency>
143         <dependency>
144             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
145             <artifactId>plugins-event-carrier-grpc</artifactId>
146             <version>${project.version}</version>
147         </dependency>
148         <!-- Benchmark test event generator -->
149         <dependency>
150             <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
151             <artifactId>performance-benchmark-test</artifactId>
152             <version>${project.version}</version>
153         </dependency>
154
155         <!-- Plugins for event protocols -->
156         <dependency>
157             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
158             <artifactId>plugins-event-protocol-jms</artifactId>
159             <version>${project.version}</version>
160         </dependency>
161
162         <!-- Authoring and Editors -->
163         <dependency>
164             <groupId>org.onap.policy.apex-pdp.auth</groupId>
165             <artifactId>cli-editor</artifactId>
166             <version>${project.version}</version>
167         </dependency>
168
169         <!-- Tools -->
170         <dependency>
171             <groupId>org.onap.policy.apex-pdp.tools</groupId>
172             <artifactId>simple-wsclient</artifactId>
173             <version>${project.version}</version>
174         </dependency>
175         <dependency>
176             <groupId>org.onap.policy.apex-pdp.tools</groupId>
177             <artifactId>model-generator</artifactId>
178             <version>${project.version}</version>
179         </dependency>
180
181         <!-- Test Data used by examples -->
182         <dependency>
183             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
184             <artifactId>integration-common</artifactId>
185             <version>${project.version}</version>
186         </dependency>
187
188         <!-- Sample Examples -->
189         <dependency>
190             <groupId>org.onap.policy.apex-pdp.examples</groupId>
191             <artifactId>examples-aadm</artifactId>
192             <version>${project.version}</version>
193         </dependency>
194         <dependency>
195             <groupId>org.onap.policy.apex-pdp.examples</groupId>
196             <artifactId>examples-adaptive</artifactId>
197             <version>${project.version}</version>
198         </dependency>
199         <dependency>
200             <groupId>org.onap.policy.apex-pdp.examples</groupId>
201             <artifactId>examples-myfirstpolicy</artifactId>
202             <version>${project.version}</version>
203         </dependency>
204         <dependency>
205             <groupId>org.onap.policy.apex-pdp.examples</groupId>
206             <artifactId>examples-decisionmaker</artifactId>
207             <version>${project.version}</version>
208         </dependency>
209         <dependency>
210             <groupId>org.onap.policy.apex-pdp.examples</groupId>
211             <artifactId>examples-periodic</artifactId>
212             <version>${project.version}</version>
213         </dependency>
214         <dependency>
215             <groupId>org.onap.policy.apex-pdp.examples</groupId>
216             <artifactId>examples-onap-vcpe</artifactId>
217             <version>${project.version}</version>
218         </dependency>
219         <dependency>
220             <groupId>org.onap.policy.apex-pdp.examples</groupId>
221             <artifactId>examples-onap-bbs</artifactId>
222             <version>${project.version}</version>
223         </dependency>
224         <dependency>
225             <groupId>org.onap.policy.apex-pdp.examples</groupId>
226             <artifactId>examples-grpc</artifactId>
227             <version>${project.version}</version>
228         </dependency>
229     </dependencies>
230
231     <build>
232         <filters>
233             <filter>src/main/resources/properties/db.properties</filter>
234         </filters>
235         <resources>
236             <resource>
237                 <directory>src/main/resources/META-INF</directory>
238                 <filtering>true</filtering>
239                 <includes>
240                     <include>**/*.xml</include>
241                 </includes>
242             </resource>
243         </resources>
244         <plugins>
245             <!-- Copy required resources and examples -->
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-dependency-plugin</artifactId>
249                 <executions>
250                     <execution>
251                         <id>unpack-etc-examples</id>
252                         <phase>package</phase>
253                         <goals>
254                             <goal>unpack</goal>
255                         </goals>
256                         <configuration>
257                             <artifactItems>
258                                 <artifactItem>
259                                     <groupId>org.onap.policy.apex-pdp.services</groupId>
260                                     <artifactId>services-onappf</artifactId>
261                                     <version>${project.version}</version>
262                                     <type>jar</type>
263                                     <overWrite>false</overWrite>
264                                     <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
265                                     <includes>config/*</includes>
266                                 </artifactItem>
267                                 <artifactItem>
268                                     <groupId>org.onap.policy.apex-pdp.auth</groupId>
269                                     <artifactId>cli-editor</artifactId>
270                                     <version>${project.version}</version>
271                                     <type>jar</type>
272                                     <overWrite>false</overWrite>
273                                     <outputDirectory>${project.build.directory}</outputDirectory>
274                                     <includes>etc/**/*,examples/**/*</includes>
275                                 </artifactItem>
276                                 <artifactItem>
277                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
278                                     <artifactId>integration-common</artifactId>
279                                     <version>${project.version}</version>
280                                     <type>jar</type>
281                                     <overWrite>false</overWrite>
282                                     <outputDirectory>${project.build.directory}</outputDirectory>
283                                     <includes>etc/**/*,examples/**/*</includes>
284                                 </artifactItem>
285                                 <artifactItem>
286                                     <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
287                                     <artifactId>performance-benchmark-test</artifactId>
288                                     <version>${project.version}</version>
289                                     <type>jar</type>
290                                     <overWrite>false</overWrite>
291                                     <outputDirectory>${project.build.directory}</outputDirectory>
292                                     <includes>examples/**/*</includes>
293                                 </artifactItem>
294                                 <artifactItem>
295                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
296                                     <artifactId>examples-aadm</artifactId>
297                                     <version>${project.version}</version>
298                                     <type>jar</type>
299                                     <overWrite>false</overWrite>
300                                     <outputDirectory>${project.build.directory}</outputDirectory>
301                                     <includes>etc/**/*,examples/**/*</includes>
302                                 </artifactItem>
303                                 <artifactItem>
304                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
305                                     <artifactId>examples-adaptive</artifactId>
306                                     <version>${project.version}</version>
307                                     <type>jar</type>
308                                     <overWrite>false</overWrite>
309                                     <outputDirectory>${project.build.directory}</outputDirectory>
310                                     <includes>etc/**/*,examples/**/*</includes>
311                                 </artifactItem>
312                                 <artifactItem>
313                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
314                                     <artifactId>examples-myfirstpolicy</artifactId>
315                                     <version>${project.version}</version>
316                                     <type>jar</type>
317                                     <overWrite>false</overWrite>
318                                     <outputDirectory>${project.build.directory}</outputDirectory>
319                                     <includes>etc/**/*,examples/**/*</includes>
320                                 </artifactItem>
321                                 <artifactItem>
322                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
323                                     <artifactId>examples-decisionmaker</artifactId>
324                                     <version>${project.version}</version>
325                                     <type>jar</type>
326                                     <overWrite>false</overWrite>
327                                     <outputDirectory>${project.build.directory}</outputDirectory>
328                                     <includes>etc/**/*,examples/**/*</includes>
329                                 </artifactItem>
330                                 <artifactItem>
331                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
332                                     <artifactId>examples-decisionmaker</artifactId>
333                                     <version>${project.version}</version>
334                                     <type>jar</type>
335                                     <overWrite>false</overWrite>
336                                     <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
337                                     <includes>*PolicyModel.json</includes>
338                                 </artifactItem>
339                                 <artifactItem>
340                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
341                                     <artifactId>examples-periodic</artifactId>
342                                     <version>${project.version}</version>
343                                     <type>jar</type>
344                                     <overWrite>false</overWrite>
345                                     <outputDirectory>${project.build.directory}</outputDirectory>
346                                     <includes>etc/**/*,examples/**/*</includes>
347                                 </artifactItem>
348                                 <artifactItem>
349                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
350                                     <artifactId>examples-periodic</artifactId>
351                                     <version>${project.version}</version>
352                                     <type>jar</type>
353                                     <overWrite>false</overWrite>
354                                     <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
355                                     <includes>PeriodicPolicyModel.json</includes>
356                                 </artifactItem>
357                                 <artifactItem>
358                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
359                                     <artifactId>examples-onap-vcpe</artifactId>
360                                     <version>${project.version}</version>
361                                     <type>jar</type>
362                                     <overWrite>false</overWrite>
363                                     <outputDirectory>${project.build.directory}</outputDirectory>
364                                     <includes>etc/**/*,examples/**/*</includes>
365                                 </artifactItem>
366                                 <artifactItem>
367                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
368                                     <artifactId>examples-onap-vcpe</artifactId>
369                                     <version>${project.version}</version>
370                                     <type>jar</type>
371                                     <overWrite>false</overWrite>
372                                     <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
373                                     <includes>ONAPvCPEPolicyModel.json</includes>
374                                 </artifactItem>
375                                 <artifactItem>
376                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
377                                     <artifactId>examples-onap-bbs</artifactId>
378                                     <version>${project.version}</version>
379                                     <type>jar</type>
380                                     <overWrite>false</overWrite>
381                                     <outputDirectory>${project.build.directory}</outputDirectory>
382                                     <includes>etc/**/*,examples/**/*</includes>
383                                 </artifactItem>
384                                 <artifactItem>
385                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
386                                     <artifactId>examples-onap-bbs</artifactId>
387                                     <version>${project.version}</version>
388                                     <type>jar</type>
389                                     <overWrite>false</overWrite>
390                                     <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
391                                     <includes>NomadicONTPolicyModel.json</includes>
392                                 </artifactItem>
393                                 <artifactItem>
394                                     <groupId>org.onap.policy.apex-pdp.tools</groupId>
395                                     <artifactId>tools-common</artifactId>
396                                     <version>${project.version}</version>
397                                     <type>jar</type>
398                                     <overWrite>false</overWrite>
399                                     <outputDirectory>${project.build.directory}/etc</outputDirectory>
400                                     <includes>/app-version.txt</includes>
401                                 </artifactItem>
402                                 <artifactItem>
403                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
404                                     <artifactId>examples-grpc</artifactId>
405                                     <version>${project.version}</version>
406                                     <type>jar</type>
407                                     <overWrite>false</overWrite>
408                                     <outputDirectory>${project.build.directory}</outputDirectory>
409                                     <includes>etc/**/*,examples/**/*</includes>
410                                 </artifactItem>
411                                 <artifactItem>
412                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
413                                     <artifactId>examples-grpc</artifactId>
414                                     <version>${project.version}</version>
415                                     <type>jar</type>
416                                     <overWrite>false</overWrite>
417                                     <outputDirectory>${project.build.directory}/examples/models/APEXgRPC</outputDirectory>
418                                     <includes>APEXgRPCPolicy.json</includes>
419                                 </artifactItem>
420                             </artifactItems>
421                             <overWriteReleases>true</overWriteReleases>
422                             <overWriteSnapshots>true</overWriteSnapshots>
423                         </configuration>
424                     </execution>
425                     <execution>
426                         <id>copy-fat-jars</id>
427                         <phase>package</phase>
428                         <goals>
429                             <goal>copy</goal>
430                         </goals>
431                         <configuration>
432                             <artifactItems>
433                                 <artifactItem>
434                                     <groupId>org.onap.policy.apex-pdp.tools</groupId>
435                                     <artifactId>simple-wsclient</artifactId>
436                                     <version>${project.version}</version>
437                                     <type>jar</type>
438                                     <classifier>jar-with-dependencies</classifier>
439                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
440                                 </artifactItem>
441                             </artifactItems>
442                             <overWriteReleases>true</overWriteReleases>
443                             <overWriteSnapshots>true</overWriteSnapshots>
444                         </configuration>
445                     </execution>
446
447                 </executions>
448             </plugin>
449
450             <!-- Build the tar ball -->
451             <plugin>
452                 <groupId>org.apache.maven.plugins</groupId>
453                 <artifactId>maven-assembly-plugin</artifactId>
454                 <executions>
455                     <execution>
456                         <id>generate-complete-tar</id>
457                         <phase>package</phase>
458                         <goals>
459                             <goal>single</goal>
460                         </goals>
461                         <configuration>
462                             <descriptors>
463                                 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
464                             </descriptors>
465                             <finalName>${project.artifactId}-${project.version}</finalName>
466                             <appendAssemblyId>false</appendAssemblyId>
467                         </configuration>
468                     </execution>
469                 </executions>
470             </plugin>
471         </plugins>
472     </build>
473     <profiles>
474         <profile>
475             <id>only-eclipse</id>
476             <activation>
477                 <property>
478                     <name>m2e.version</name>
479                 </property>
480             </activation>
481             <build>
482                 <pluginManagement>
483                     <plugins>
484                         <plugin>
485                             <groupId>org.eclipse.m2e</groupId>
486                             <artifactId>lifecycle-mapping</artifactId>
487                             <configuration>
488                                 <lifecycleMappingMetadata>
489                                     <pluginExecutions>
490                                         <pluginExecution>
491                                             <pluginExecutionFilter>
492                                                 <groupId>org.apache.maven.plugins</groupId>
493                                                 <artifactId>maven-dependency-plugin</artifactId>
494                                                 <versionRange>[2.0,)</versionRange>
495                                                 <goals>
496                                                     <goal>unpack</goal>
497                                                     <goal>copy</goal>
498                                                 </goals>
499                                             </pluginExecutionFilter>
500                                             <action>
501                                                 <ignore />
502                                             </action>
503                                         </pluginExecution>
504                                     </pluginExecutions>
505                                 </lifecycleMappingMetadata>
506                             </configuration>
507                         </plugin>
508                     </plugins>
509                 </pluginManagement>
510             </build>
511         </profile>
512     </profiles>
513 </project>