Merge "Fix security vulnerability, upgrad jquery version"
[policy/apex-pdp.git] / packages / apex-pdp-package-full / pom.xml
1 <!--
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
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
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.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
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>
23     <parent>
24         <groupId>org.onap.policy.apex-pdp.packages</groupId>
25         <artifactId>packages</artifactId>
26         <version>2.0.0-SNAPSHOT</version>
27     </parent>
28
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>
32
33     <properties>
34         <install.package.name>${project.artifactId}</install.package.name>
35     </properties>
36
37     <dependencies>
38         <dependency>
39             <groupId>org.onap.policy.apex-pdp.services</groupId>
40             <artifactId>services-engine</artifactId>
41             <version>${project.version}</version>
42         </dependency>
43
44         <!-- Plugins for Context Distribution -->
45         <dependency>
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>
49         </dependency>
50         <dependency>
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>
54         </dependency>
55
56         <!-- Plugins for Context Locking -->
57         <dependency>
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>
61         </dependency>
62         <dependency>
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>
66         </dependency>
67
68         <!-- Plugins for Context Schemas -->
69         <dependency>
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>
73         </dependency>
74
75         <!-- Plugins for Executors -->
76         <dependency>
77             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
78             <artifactId>plugins-executor-java</artifactId>
79             <version>${project.version}</version>
80         </dependency>
81         <dependency>
82             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
83             <artifactId>plugins-executor-javascript</artifactId>
84             <version>${project.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
88             <artifactId>plugins-executor-jruby</artifactId>
89             <version>${project.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
93             <artifactId>plugins-executor-jython</artifactId>
94             <version>${project.version}</version>
95         </dependency>
96         <dependency>
97             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
98             <artifactId>plugins-executor-mvel</artifactId>
99             <version>${project.version}</version>
100         </dependency>
101
102         <!-- Plugins for Persistence of Models over JPA -->
103         <dependency>
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>
107         </dependency>
108         <dependency>
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>
112         </dependency>
113
114         <!-- Plugins for event carrier technologies -->
115         <dependency>
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>
119         </dependency>
120         <dependency>
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>
124         </dependency>
125         <dependency>
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>
129         </dependency>
130         <dependency>
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>
134         </dependency>
135         <dependency>
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>
139         </dependency>
140         <dependency>
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>
144         </dependency>
145
146         <!-- Plugins for event protocols -->
147         <dependency>
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>
151         </dependency>
152         <dependency>
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>
156         </dependency>
157
158         <!-- Authoring and Editors -->
159         <dependency>
160             <groupId>org.onap.policy.apex-pdp.auth</groupId>
161             <artifactId>cli-editor</artifactId>
162             <version>${project.version}</version>
163         </dependency>
164
165         <!-- Test Data used by examples -->
166         <dependency>
167             <groupId>org.onap.policy.apex-pdp.context</groupId>
168             <artifactId>context-test-utils</artifactId>
169             <version>${project.version}</version>
170         </dependency>
171         <dependency>
172             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
173             <artifactId>integration-common</artifactId>
174             <version>${project.version}</version>
175         </dependency>
176     </dependencies>
177
178     <build>
179         <plugins>
180             <!-- Copy required resources and examples -->
181             <plugin>
182                 <groupId>org.apache.maven.plugins</groupId>
183                 <artifactId>maven-dependency-plugin</artifactId>
184                 <executions>
185                     <execution>
186                         <id>unpack-etc-examples</id>
187                         <phase>package</phase>
188                         <goals>
189                             <goal>unpack</goal>
190                         </goals>
191                         <configuration>
192                             <artifactItems>
193                                 <artifactItem>
194                                     <groupId>org.onap.policy.apex-pdp.auth</groupId>
195                                     <artifactId>cli-editor</artifactId>
196                                     <version>${project.version}</version>
197                                     <type>jar</type>
198                                     <overWrite>false</overWrite>
199                                     <outputDirectory>${project.build.directory}</outputDirectory>
200                                     <includes>etc/**/*,examples/**/*</includes>
201                                 </artifactItem>
202                                 <artifactItem>
203                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
204                                     <artifactId>integration-common</artifactId>
205                                     <version>${project.version}</version>
206                                     <type>jar</type>
207                                     <overWrite>false</overWrite>
208                                     <outputDirectory>${project.build.directory}</outputDirectory>
209                                     <includes>etc/**/*,examples/**/*</includes>
210                                 </artifactItem>
211                             </artifactItems>
212                             <overWriteReleases>true</overWriteReleases>
213                             <overWriteSnapshots>true</overWriteSnapshots>
214                         </configuration>
215                     </execution>
216                 </executions>
217             </plugin>
218             
219             <!-- Build the tar ball -->
220             <plugin>
221                 <groupId>org.apache.maven.plugins</groupId>
222                 <artifactId>maven-assembly-plugin</artifactId>
223                 <executions>
224                     <execution>
225                         <id>generate-complete-tar</id>
226                         <phase>package</phase>
227                         <goals>
228                             <goal>single</goal>
229                         </goals>
230                         <configuration>
231                             <descriptors>
232                                 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
233                             </descriptors>
234                             <finalName>${project.artifactId}-${project.version}</finalName>
235                         </configuration>
236                     </execution>
237                 </executions>
238             </plugin>
239             <plugin>
240                 <artifactId>maven-antrun-plugin</artifactId>
241                 <executions>
242                     <execution>
243                         <phase>package</phase>
244                         <configuration>
245                             <tasks>
246                                 <untar
247                                     src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz"
248                                     dest="${project.build.directory}/install_hierarchy" compression="gzip" />
249                             </tasks>
250                         </configuration>
251                         <goals>
252                             <goal>run</goal>
253                         </goals>
254                     </execution>
255                     <execution>
256                         <id>fix-permissions</id>
257                         <phase>package</phase>
258                         <configuration>
259                             <tasks>
260                                 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
261                             </tasks>
262                         </configuration>
263                         <goals>
264                             <goal>run</goal>
265                         </goals>
266                     </execution>
267                 </executions>
268             </plugin>
269             <!-- Build the dpkg distribution -->
270             <plugin>
271                 <groupId>org.vafer</groupId>
272                 <artifactId>jdeb</artifactId>
273                 <version>1.5</version>
274                 <executions>
275                     <execution>
276                         <phase>package</phase>
277                         <goals>
278                             <goal>jdeb</goal>
279                         </goals>
280                         <configuration>
281                             <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
282                             <controlDir>${basedir}/src/main/package/control</controlDir>
283                             <dataSet>
284                                 <!-- Copy the Apex run time configuration -->
285                                 <data>
286                                     <src>${project.build.directory}/install_hierarchy/lib</src>
287                                     <type>directory</type>
288                                     <dst>lib</dst>
289                                     <mapper>
290                                         <type>perm</type>
291                                         <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</prefix>
292                                         <filemode>755</filemode>
293                                     </mapper>
294                                 </data>
295                                 <data>
296                                     <src>${project.build.directory}/install_hierarchy/bin</src>
297                                     <type>directory</type>
298                                     <dst>etc</dst>
299                                     <mapper>
300                                         <type>perm</type>
301                                         <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</prefix>
302                                     </mapper>
303                                 </data>
304                                 <data>
305                                     <src>${project.build.directory}/install_hierarchy/etc</src>
306                                     <type>directory</type>
307                                     <dst>etc</dst>
308                                     <mapper>
309                                         <type>perm</type>
310                                         <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</prefix>
311                                     </mapper>
312                                 </data>
313                                 <data>
314                                     <src>${project.build.directory}/install_hierarchy/examples</src>
315                                     <type>directory</type>
316                                     <dst>etc</dst>
317                                     <mapper>
318                                         <type>perm</type>
319                                         <prefix>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</prefix>
320                                     </mapper>
321                                 </data>
322                             </dataSet>
323                         </configuration>
324                     </execution>
325                 </executions>
326             </plugin>
327         </plugins>
328     </build>
329     <profiles>
330         <profile>
331             <id>Linux</id>
332             <activation>
333                 <os>
334                     <family>Linux</family>
335                 </os>
336             </activation>
337             <build>
338                 <plugins>
339                     <!-- Build the rpm distribution -->
340                     <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
341  <!--                    <plugin>
342                         <groupId>org.codehaus.mojo</groupId>
343                         <artifactId>rpm-maven-plugin</artifactId>
344                         <version>2.2.0</version>
345                         <extensions>true</extensions>
346                         <executions>
347                             <execution>
348                                 <phase>package</phase>
349                                 <goals>
350                                     <goal>rpm</goal>
351                                 </goals>
352                             </execution>
353                         </executions>
354                         <configuration>
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>
366                             <defineStatements>
367                                 <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
368                             </defineStatements>
369                             <mappings>
370                                 <mapping>
371                                     <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/lib</directory>
372                                     <username>root</username>
373                                     <groupname>root</groupname>
374                                     <sources>
375                                         <source>
376                                             <location>${project.build.directory}/install_hierarchy/lib</location>
377                                         </source>
378                                     </sources>
379                                 </mapping>
380                                 <mapping>
381                                     <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/bin</directory>
382                                     <username>root</username>
383                                     <groupname>root</groupname>
384                                     <sources>
385                                         <source>
386                                             <location>${project.build.directory}/install_hierarchy/bin</location>
387                                         </source>
388                                     </sources>
389                                 </mapping>
390                                 <mapping>
391                                     <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/etc</directory>
392                                     <username>root</username>
393                                     <groupname>root</groupname>
394                                     <sources>
395                                         <source>
396                                             <location>${project.build.directory}/install_hierarchy/etc</location>
397                                         </source>
398                                     </sources>
399                                 </mapping>
400                                 <mapping>
401                                     <directory>/opt/app/policy/apex-pdp/${project.artifactId}-${project.version}/examples</directory>
402                                     <username>root</username>
403                                     <groupname>root</groupname>
404                                     <sources>
405                                         <source>
406                                             <location>${project.build.directory}/install_hierarchy/examples</location>
407                                         </source>
408                                     </sources>
409                                 </mapping>
410                             </mappings>
411                             <preinstallScriptlet>
412                                 <scriptFile>src/main/package/control/preinst</scriptFile>
413                             </preinstallScriptlet>
414                             <postinstallScriptlet>
415                                 <scriptFile>src/main/package/control/postinst</scriptFile>
416                             </postinstallScriptlet>
417                             <preremoveScriptlet>
418                                 <scriptFile>src/main/package/control/prerm</scriptFile>
419                             </preremoveScriptlet>
420                             <postremoveScriptlet>
421                                 <scriptFile>src/main/package/control/postrm</scriptFile>
422                             </postremoveScriptlet>
423                         </configuration>
424                     </plugin>
425                     <plugin>
426                         <groupId>org.codehaus.mojo</groupId>
427                         <artifactId>exec-maven-plugin</artifactId>
428                         <executions>
429                             <execution>
430                                 <phase>package</phase>
431                                 <goals>
432                                     <goal>exec</goal>
433                                 </goals>
434                             </execution>
435                         </executions>
436                         <configuration>
437                             <executable>sh</executable>
438                             <arguments>
439                                 <argument>-c</argument>
440                                 <argument>cp \
441                                     ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
442                                     \
443                                     ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
444                             </arguments>
445                         </configuration>
446                     </plugin>
447                     <plugin>
448                         <groupId>org.codehaus.mojo</groupId>
449                         <artifactId>build-helper-maven-plugin</artifactId>
450                         <version>3.0.0</version>
451                         <executions>
452                             <execution>
453                                 <id>attach-artifacts</id>
454                                 <phase>package</phase>
455                                 <goals>
456                                     <goal>attach-artifact</goal>
457                                 </goals>
458                                 <configuration>
459                                     <artifacts>
460                                         <artifact>
461                                             <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
462                                             <type>rpm</type>
463                                         </artifact>
464                                     </artifacts>
465                                 </configuration>
466                             </execution>
467                         </executions>
468                     </plugin> -->
469                 </plugins>
470             </build>
471         </profile>
472         <profile>
473             <id>only-eclipse</id>
474             <activation>
475                 <property>
476                     <name>m2e.version</name>
477                 </property>
478             </activation>
479             <build>
480                 <pluginManagement>
481                     <plugins>
482                         <plugin>
483                             <groupId>org.eclipse.m2e</groupId>
484                             <artifactId>lifecycle-mapping</artifactId>
485                             <configuration>
486                                 <lifecycleMappingMetadata>
487                                     <pluginExecutions>
488                                         <pluginExecution>
489                                             <pluginExecutionFilter>
490                                                 <groupId>org.apache.maven.plugins</groupId>
491                                                 <artifactId>maven-dependency-plugin</artifactId>
492                                                 <versionRange>${maven-dependency-plugin.version}</versionRange>
493                                                 <goals>
494                                                     <goal>unpack</goal>
495                                                     <goal>copy</goal>
496                                                 </goals>
497                                             </pluginExecutionFilter>
498                                             <action>
499                                                 <ignore />
500                                             </action>
501                                         </pluginExecution>
502                                     </pluginExecutions>
503                                 </lifecycleMappingMetadata>
504                             </configuration>
505                         </plugin>
506                     </plugins>
507                 </pluginManagement>
508             </build>
509         </profile>
510     </profiles>
511 </project>