Merge "Fix issues from Checkstyle reviews"
[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 Nordix Foundation
5    Modifications Copyright (C) 2019 Bell Canada.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.onap.policy.apex-pdp.packages</groupId>
27         <artifactId>packages</artifactId>
28         <version>2.2.1-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>apex-pdp-package-full</artifactId>
32     <name>${project.artifactId}</name>
33     <description>[${project.parent.artifactId}] packaging, with all optional functionality, clients, servlets, and examples included</description>
34
35     <properties>
36         <install.package.name>${project.artifactId}</install.package.name>
37     </properties>
38
39     <dependencies>
40         <dependency>
41             <groupId>org.onap.policy.apex-pdp.services</groupId>
42             <artifactId>services-engine</artifactId>
43             <version>${project.version}</version>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.policy.apex-pdp.services</groupId>
47             <artifactId>services-onappf</artifactId>
48             <version>${project.version}</version>
49         </dependency>
50         <!-- Client Servlet applications -->
51         <dependency>
52             <groupId>org.onap.policy.apex-pdp.client</groupId>
53             <artifactId>client-full</artifactId>
54             <type>war</type>
55             <version>${project.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>org.onap.policy.apex-pdp.client</groupId>
59             <artifactId>client-editor</artifactId>
60             <type>war</type>
61             <version>${project.version}</version>
62         </dependency>
63         <dependency>
64             <groupId>org.onap.policy.apex-pdp.client</groupId>
65             <artifactId>client-deployment</artifactId>
66             <type>war</type>
67             <version>${project.version}</version>
68         </dependency>
69         <dependency>
70             <groupId>org.onap.policy.apex-pdp.client</groupId>
71             <artifactId>client-monitoring</artifactId>
72             <type>war</type>
73             <version>${project.version}</version>
74         </dependency>
75         
76         <!-- Plugins for Context Distribution -->
77         <dependency>
78             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
79             <artifactId>plugins-context-distribution-hazelcast</artifactId>
80             <version>${project.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
84             <artifactId>plugins-context-distribution-infinispan</artifactId>
85             <version>${project.version}</version>
86         </dependency>
87
88         <!-- Plugins for Context Locking -->
89         <dependency>
90             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
91             <artifactId>plugins-context-locking-hazelcast</artifactId>
92             <version>${project.version}</version>
93         </dependency>
94         <dependency>
95             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
96             <artifactId>plugins-context-locking-curator</artifactId>
97             <version>${project.version}</version>
98         </dependency>
99
100         <!-- Plugins for Context Schemas -->
101         <dependency>
102             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
103             <artifactId>plugins-context-schema-avro</artifactId>
104             <version>${project.version}</version>
105         </dependency>
106
107         <!-- Plugins for Executors -->
108         <dependency>
109             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
110             <artifactId>plugins-executor-java</artifactId>
111             <version>${project.version}</version>
112         </dependency>
113         <dependency>
114             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
115             <artifactId>plugins-executor-javascript</artifactId>
116             <version>${project.version}</version>
117         </dependency>
118         <dependency>
119             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
120             <artifactId>plugins-executor-jruby</artifactId>
121             <version>${project.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
125             <artifactId>plugins-executor-jython</artifactId>
126             <version>${project.version}</version>
127         </dependency>
128         <dependency>
129             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
130             <artifactId>plugins-executor-mvel</artifactId>
131             <version>${project.version}</version>
132         </dependency>
133
134         <!-- Plugins for Persistence of Models over JPA -->
135         <dependency>
136             <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
137             <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
138             <version>${project.version}</version>
139         </dependency>
140
141         <!-- Plugins for event carrier technologies -->
142         <dependency>
143             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
144             <artifactId>plugins-event-carrier-kafka</artifactId>
145             <version>${project.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
149             <artifactId>plugins-event-carrier-websocket</artifactId>
150             <version>${project.version}</version>
151         </dependency>
152         <dependency>
153             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
154             <artifactId>plugins-event-carrier-jms</artifactId>
155             <version>${project.version}</version>
156         </dependency>
157         <dependency>
158             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
159             <artifactId>plugins-event-carrier-restclient</artifactId>
160             <version>${project.version}</version>
161         </dependency>
162         <dependency>
163             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
164             <artifactId>plugins-event-carrier-restserver</artifactId>
165             <version>${project.version}</version>
166         </dependency>
167         <dependency>
168             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
169             <artifactId>plugins-event-carrier-restrequestor</artifactId>
170             <version>${project.version}</version>
171         </dependency>
172         
173         <!-- Benchmark test event generator -->
174         <dependency>
175             <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
176             <artifactId>performance-benchmark-test</artifactId>
177             <version>${project.version}</version>
178         </dependency>
179
180         <!-- Plugins for event protocols -->
181         <dependency>
182             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
183             <artifactId>plugins-event-protocol-xml</artifactId>
184             <version>${project.version}</version>
185         </dependency>
186         <dependency>
187             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
188             <artifactId>plugins-event-protocol-jms</artifactId>
189             <version>${project.version}</version>
190         </dependency>
191
192         <!-- Authoring and Editors -->
193         <dependency>
194             <groupId>org.onap.policy.apex-pdp.auth</groupId>
195             <artifactId>cli-editor</artifactId>
196             <version>${project.version}</version>
197         </dependency>
198         
199         <!-- Tools -->
200         <dependency>
201             <groupId>org.onap.policy.apex-pdp.tools</groupId>
202             <artifactId>simple-wsclient</artifactId>
203             <version>${project.version}</version>
204         </dependency>
205         <dependency>
206             <groupId>org.onap.policy.apex-pdp.tools</groupId>
207             <artifactId>model-generator</artifactId>
208             <version>${project.version}</version>
209         </dependency>
210         
211         <!-- Test Data used by examples -->
212         <dependency>
213             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
214             <artifactId>integration-common</artifactId>
215             <version>${project.version}</version>
216         </dependency>
217         
218         <!-- Sample Examples -->
219         <dependency>
220             <groupId>org.onap.policy.apex-pdp.examples</groupId>
221             <artifactId>examples-aadm</artifactId>
222             <version>${project.version}</version>
223         </dependency>
224         <dependency>
225             <groupId>org.onap.policy.apex-pdp.examples</groupId>
226             <artifactId>examples-adaptive</artifactId>
227             <version>${project.version}</version>
228         </dependency>
229         <dependency>
230             <groupId>org.onap.policy.apex-pdp.examples</groupId>
231             <artifactId>examples-myfirstpolicy</artifactId>
232             <version>${project.version}</version>
233         </dependency>
234         <dependency>
235             <groupId>org.onap.policy.apex-pdp.examples</groupId>
236             <artifactId>examples-pcvs</artifactId>
237             <version>${project.version}</version>
238         </dependency>
239         <dependency>
240             <groupId>org.onap.policy.apex-pdp.examples</groupId>
241             <artifactId>examples-decisionmaker</artifactId>
242             <version>${project.version}</version>
243         </dependency>
244         <dependency>
245             <groupId>org.onap.policy.apex-pdp.examples</groupId>
246             <artifactId>examples-periodic</artifactId>
247             <version>${project.version}</version>
248         </dependency>
249         <dependency>
250             <groupId>org.onap.policy.apex-pdp.examples</groupId>
251             <artifactId>examples-onap-vcpe</artifactId>
252             <version>${project.version}</version>
253         </dependency>
254         <dependency>
255             <groupId>org.onap.policy.apex-pdp.examples</groupId>
256             <artifactId>examples-servlet</artifactId>
257             <type>war</type>
258             <version>${project.version}</version>
259         </dependency>
260         <dependency>
261             <groupId>org.onap.policy.apex-pdp.examples</groupId>
262             <artifactId>examples-onap-bbs</artifactId>
263             <version>${project.version}</version>
264         </dependency>
265     </dependencies>
266
267     <build>
268         <plugins>
269             <!-- Copy required resources and examples -->
270             <plugin>
271                 <groupId>org.apache.maven.plugins</groupId>
272                 <artifactId>maven-dependency-plugin</artifactId>
273                 <executions>
274                     <execution>
275                         <id>unpack-etc-examples</id>
276                         <phase>package</phase>
277                         <goals>
278                             <goal>unpack</goal>
279                         </goals>
280                         <configuration>
281                             <artifactItems>
282                                 <artifactItem>
283                                     <groupId>org.onap.policy.apex-pdp.services</groupId>
284                                     <artifactId>services-onappf</artifactId>
285                                     <version>${project.version}</version>
286                                     <type>jar</type>
287                                     <overWrite>false</overWrite>
288                                     <outputDirectory>${project.build.directory}/etc/onappf</outputDirectory>
289                                     <includes>config/*</includes>
290                                 </artifactItem>
291                                 <artifactItem>
292                                     <groupId>org.onap.policy.apex-pdp.auth</groupId>
293                                     <artifactId>cli-editor</artifactId>
294                                     <version>${project.version}</version>
295                                     <type>jar</type>
296                                     <overWrite>false</overWrite>
297                                     <outputDirectory>${project.build.directory}</outputDirectory>
298                                     <includes>etc/**/*,examples/**/*</includes>
299                                 </artifactItem>
300                                 <artifactItem>
301                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
302                                     <artifactId>integration-common</artifactId>
303                                     <version>${project.version}</version>
304                                     <type>jar</type>
305                                     <overWrite>false</overWrite>
306                                     <outputDirectory>${project.build.directory}</outputDirectory>
307                                     <includes>etc/**/*,examples/**/*</includes>
308                                 </artifactItem>
309                                 <artifactItem>
310                                     <groupId>org.onap.policy.apex-pdp.testsuites.performance</groupId>
311                                     <artifactId>performance-benchmark-test</artifactId>
312                                     <version>${project.version}</version>
313                                     <type>jar</type>
314                                     <overWrite>false</overWrite>
315                                     <outputDirectory>${project.build.directory}</outputDirectory>
316                                     <includes>examples/**/*</includes>
317                                 </artifactItem>
318                                 <artifactItem>
319                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
320                                     <artifactId>examples-aadm</artifactId>
321                                     <version>${project.version}</version>
322                                     <type>jar</type>
323                                     <overWrite>false</overWrite>
324                                     <outputDirectory>${project.build.directory}</outputDirectory>
325                                     <includes>etc/**/*,examples/**/*</includes>
326                                 </artifactItem>
327                                 <artifactItem>
328                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
329                                     <artifactId>examples-adaptive</artifactId>
330                                     <version>${project.version}</version>
331                                     <type>jar</type>
332                                     <overWrite>false</overWrite>
333                                     <outputDirectory>${project.build.directory}</outputDirectory>
334                                     <includes>etc/**/*,examples/**/*</includes>
335                                 </artifactItem>
336                                 <artifactItem>
337                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
338                                     <artifactId>examples-myfirstpolicy</artifactId>
339                                     <version>${project.version}</version>
340                                     <type>jar</type>
341                                     <overWrite>false</overWrite>
342                                     <outputDirectory>${project.build.directory}</outputDirectory>
343                                     <includes>etc/**/*,examples/**/*</includes>
344                                 </artifactItem>
345                                 <artifactItem>
346                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
347                                     <artifactId>examples-pcvs</artifactId>
348                                     <version>${project.version}</version>
349                                     <type>jar</type>
350                                     <overWrite>false</overWrite>
351                                     <outputDirectory>${project.build.directory}</outputDirectory>
352                                     <includes>etc/**/*,examples/**/*</includes>
353                                 </artifactItem>
354                                 <artifactItem>
355                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
356                                     <artifactId>examples-decisionmaker</artifactId>
357                                     <version>${project.version}</version>
358                                     <type>jar</type>
359                                     <overWrite>false</overWrite>
360                                     <outputDirectory>${project.build.directory}</outputDirectory>
361                                     <includes>etc/**/*,examples/**/*</includes>
362                                 </artifactItem>
363                                 <artifactItem>
364                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
365                                     <artifactId>examples-decisionmaker</artifactId>
366                                     <version>${project.version}</version>
367                                     <type>jar</type>
368                                     <overWrite>false</overWrite>
369                                     <outputDirectory>${project.build.directory}/examples/models/DecisionMaker</outputDirectory>
370                                     <includes>*PolicyModel.json</includes>
371                                 </artifactItem>
372                                 <artifactItem>
373                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
374                                     <artifactId>examples-periodic</artifactId>
375                                     <version>${project.version}</version>
376                                     <type>jar</type>
377                                     <overWrite>false</overWrite>
378                                     <outputDirectory>${project.build.directory}</outputDirectory>
379                                     <includes>etc/**/*,examples/**/*</includes>
380                                 </artifactItem>
381                                 <artifactItem>
382                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
383                                     <artifactId>examples-periodic</artifactId>
384                                     <version>${project.version}</version>
385                                     <type>jar</type>
386                                     <overWrite>false</overWrite>
387                                     <outputDirectory>${project.build.directory}/examples/models/Periodic</outputDirectory>
388                                     <includes>PeriodicPolicyModel.json</includes>
389                                 </artifactItem>
390                                 <artifactItem>
391                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
392                                     <artifactId>examples-onap-vcpe</artifactId>
393                                     <version>${project.version}</version>
394                                     <type>jar</type>
395                                     <overWrite>false</overWrite>
396                                     <outputDirectory>${project.build.directory}</outputDirectory>
397                                     <includes>etc/**/*,examples/**/*</includes>
398                                 </artifactItem>
399                                 <artifactItem>
400                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
401                                     <artifactId>examples-onap-vcpe</artifactId>
402                                     <version>${project.version}</version>
403                                     <type>jar</type>
404                                     <overWrite>false</overWrite>
405                                     <outputDirectory>${project.build.directory}/examples/models/ONAPvCPE</outputDirectory>
406                                     <includes>ONAPvCPEPolicyModel.json</includes>
407                                 </artifactItem>
408                                 <artifactItem>
409                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
410                                     <artifactId>examples-onap-bbs</artifactId>
411                                     <version>${project.version}</version>
412                                     <type>jar</type>
413                                     <overWrite>false</overWrite>
414                                     <outputDirectory>${project.build.directory}</outputDirectory>
415                                     <includes>etc/**/*,examples/**/*</includes>
416                                 </artifactItem>
417                                 <artifactItem>
418                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
419                                     <artifactId>examples-onap-bbs</artifactId>
420                                     <version>${project.version}</version>
421                                     <type>jar</type>
422                                     <overWrite>false</overWrite>
423                                     <outputDirectory>${project.build.directory}/examples/models/ONAPBBS</outputDirectory>
424                                     <includes>NomadicONTPolicyModel.json</includes>
425                                 </artifactItem>
426                                 <artifactItem>
427                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
428                                     <artifactId>examples-servlet</artifactId>
429                                     <version>${project.version}</version>
430                                     <type>war</type>
431                                     <overWrite>false</overWrite>
432                                     <outputDirectory>${project.build.directory}/examples/servlet</outputDirectory>
433                                     <includes>readme_examples-servlet.txt</includes>
434                                 </artifactItem>
435                                 <artifactItem>
436                                     <groupId>org.onap.policy.apex-pdp.tools</groupId>
437                                     <artifactId>tools-common</artifactId>
438                                     <version>${project.version}</version>
439                                     <type>jar</type>
440                                     <overWrite>false</overWrite>
441                                     <outputDirectory>${project.build.directory}/etc</outputDirectory>
442                                     <includes>/app-version.txt</includes>
443                                 </artifactItem>
444                             </artifactItems>
445                             <overWriteReleases>true</overWriteReleases>
446                             <overWriteSnapshots>true</overWriteSnapshots>
447                         </configuration>
448                     </execution>
449                     <execution>
450                         <id>copy-fat-jars</id>
451                         <phase>package</phase>
452                         <goals>
453                             <goal>copy</goal>
454                         </goals>
455                         <configuration>
456                             <artifactItems>
457                                 <artifactItem>
458                                     <groupId>org.onap.policy.apex-pdp.tools</groupId>
459                                     <artifactId>simple-wsclient</artifactId>
460                                     <version>${project.version}</version>
461                                     <type>jar</type>
462                                     <classifier>jar-with-dependencies</classifier>
463                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
464                                 </artifactItem>
465                                 <artifactItem>
466                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
467                                     <artifactId>client-monitoring</artifactId>
468                                     <version>${project.version}</version>
469                                     <classifier>monitoring</classifier>
470                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
471                                 </artifactItem>
472                                 <artifactItem>
473                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
474                                     <artifactId>client-editor</artifactId>
475                                     <version>${project.version}</version>
476                                     <classifier>editor</classifier>
477                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
478                                 </artifactItem>
479                                 <artifactItem>
480                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
481                                     <artifactId>client-deployment</artifactId>
482                                     <version>${project.version}</version>
483                                     <classifier>deployment</classifier>
484                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
485                                 </artifactItem>
486                                 <artifactItem>
487                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
488                                     <artifactId>client-full</artifactId>
489                                     <version>${project.version}</version>
490                                     <classifier>full</classifier>
491                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
492                                 </artifactItem>
493                             </artifactItems>
494                             <overWriteReleases>true</overWriteReleases>
495                             <overWriteSnapshots>true</overWriteSnapshots>
496                         </configuration>
497                     </execution>
498
499                 </executions>
500             </plugin>
501  
502             <!-- Build the tar ball -->
503             <plugin>
504                 <groupId>org.apache.maven.plugins</groupId>
505                 <artifactId>maven-assembly-plugin</artifactId>
506                 <executions>
507                     <execution>
508                         <id>generate-complete-tar</id>
509                         <phase>package</phase>
510                         <goals>
511                             <goal>single</goal>
512                         </goals>
513                         <configuration>
514                             <descriptors>
515                                 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
516                             </descriptors>
517                             <finalName>${project.artifactId}-${project.version}</finalName>
518                             <appendAssemblyId>false</appendAssemblyId>
519                         </configuration>
520                     </execution>
521                 </executions>
522             </plugin>
523             <plugin>
524                 <artifactId>maven-antrun-plugin</artifactId>
525                 <executions>
526                     <execution>
527                         <phase>package</phase>
528                         <configuration>
529                             <tasks>
530                                 <untar
531                                     src="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"
532                                     dest="${project.build.directory}/install_hierarchy" compression="gzip" />
533                             </tasks>
534                         </configuration>
535                         <goals>
536                             <goal>run</goal>
537                         </goals>
538                     </execution>
539                     <execution>
540                         <id>fix-permissions</id>
541                         <phase>package</phase>
542                         <configuration>
543                             <tasks>
544                                 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
545                             </tasks>
546                         </configuration>
547                         <goals>
548                             <goal>run</goal>
549                         </goals>
550                     </execution>
551                 </executions>
552             </plugin>
553             <!-- Build the dpkg distribution -->
554             <plugin>
555                 <groupId>org.vafer</groupId>
556                 <artifactId>jdeb</artifactId>
557                 <version>1.5</version>
558                 <executions>
559                     <execution>
560                         <phase>package</phase>
561                         <goals>
562                             <goal>jdeb</goal>
563                         </goals>
564                         <configuration>
565                             <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
566                             <controlDir>${basedir}/src/main/package/control</controlDir>
567                             <dataSet>
568                                 <!-- Copy the Apex run time configuration -->
569                                 <data>
570                                     <src>${project.build.directory}/install_hierarchy/lib</src>
571                                     <type>directory</type>
572                                     <dst>lib</dst>
573                                     <mapper>
574                                         <type>perm</type>
575                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
576                                         <filemode>755</filemode>
577                                     </mapper>
578                                 </data>
579                                 <data>
580                                     <src>${project.build.directory}/install_hierarchy/bin</src>
581                                     <type>directory</type>
582                                     <dst>etc</dst>
583                                     <mapper>
584                                         <type>perm</type>
585                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
586                                     </mapper>
587                                 </data>
588                                 <data>
589                                     <src>${project.build.directory}/install_hierarchy/etc</src>
590                                     <type>directory</type>
591                                     <dst>etc</dst>
592                                     <mapper>
593                                         <type>perm</type>
594                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
595                                     </mapper>
596                                 </data>
597                                 <data>
598                                     <src>${project.build.directory}/install_hierarchy/war</src>
599                                     <type>directory</type>
600                                     <dst>etc</dst>
601                                     <mapper>
602                                         <type>perm</type>
603                                         <prefix>/opt/app/policy/${install.package.name}-${project.version}/war</prefix>
604                                     </mapper>
605                                 </data>
606                                 <data>
607                                     <src>${project.build.directory}/install_hierarchy/examples</src>
608                                     <type>directory</type>
609                                     <dst>etc</dst>
610                                     <mapper>
611                                         <type>perm</type>
612                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
613                                     </mapper>
614                                 </data>
615                             </dataSet>
616                         </configuration>
617                     </execution>
618                 </executions>
619             </plugin>
620         </plugins>
621     </build>
622     <profiles>
623         <profile>
624             <id>only-eclipse</id>
625             <activation>
626                 <property>
627                     <name>m2e.version</name>
628                 </property>
629             </activation>
630             <build>
631                 <pluginManagement>
632                     <plugins>
633                         <plugin>
634                             <groupId>org.eclipse.m2e</groupId>
635                             <artifactId>lifecycle-mapping</artifactId>
636                             <configuration>
637                                 <lifecycleMappingMetadata>
638                                     <pluginExecutions>
639                                         <pluginExecution>
640                                             <pluginExecutionFilter>
641                                                 <groupId>org.apache.maven.plugins</groupId>
642                                                 <artifactId>maven-dependency-plugin</artifactId>
643                                                 <versionRange>[2.0,)</versionRange>
644                                                 <goals>
645                                                     <goal>unpack</goal>
646                                                     <goal>copy</goal>
647                                                 </goals>
648                                             </pluginExecutionFilter>
649                                             <action>
650                                                 <ignore />
651                                             </action>
652                                         </pluginExecution>
653                                     </pluginExecutions>
654                                 </lifecycleMappingMetadata>
655                             </configuration>
656                         </plugin>
657                     </plugins>
658                 </pluginManagement>
659             </build>
660         </profile>
661
662         <profile>
663             <id>apexSite</id>
664             <activation>
665                 <property>
666                     <name>apexSite</name>
667                 </property>
668             </activation>
669             <distributionManagement>
670                 <site>
671                     <id>${project.artifactId}-site</id>
672                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
673                 </site>
674             </distributionManagement>
675         </profile>
676     </profiles>
677 </project>