Fix examples broken by checkstyle changes
[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         <!-- Client Servlet applications -->
45         <dependency>
46             <groupId>org.onap.policy.apex-pdp.client</groupId>
47             <artifactId>client-full</artifactId>
48             <type>war</type>
49             <version>${project.version}</version>
50         </dependency>
51         <dependency>
52             <groupId>org.onap.policy.apex-pdp.client</groupId>
53             <artifactId>client-editor</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-deployment</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-monitoring</artifactId>
66             <type>war</type>
67             <version>${project.version}</version>
68         </dependency>
69         
70         <!-- Plugins for Context Distribution -->
71         <dependency>
72             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
73             <artifactId>plugins-context-distribution-hazelcast</artifactId>
74             <version>${project.version}</version>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
78             <artifactId>plugins-context-distribution-infinispan</artifactId>
79             <version>${project.version}</version>
80         </dependency>
81
82         <!-- Plugins for Context Locking -->
83         <dependency>
84             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
85             <artifactId>plugins-context-locking-hazelcast</artifactId>
86             <version>${project.version}</version>
87         </dependency>
88         <dependency>
89             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
90             <artifactId>plugins-context-locking-curator</artifactId>
91             <version>${project.version}</version>
92         </dependency>
93
94         <!-- Plugins for Context Schemas -->
95         <dependency>
96             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
97             <artifactId>plugins-context-schema-avro</artifactId>
98             <version>${project.version}</version>
99         </dependency>
100
101         <!-- Plugins for Executors -->
102         <dependency>
103             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
104             <artifactId>plugins-executor-java</artifactId>
105             <version>${project.version}</version>
106         </dependency>
107         <dependency>
108             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
109             <artifactId>plugins-executor-javascript</artifactId>
110             <version>${project.version}</version>
111         </dependency>
112         <dependency>
113             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
114             <artifactId>plugins-executor-jruby</artifactId>
115             <version>${project.version}</version>
116         </dependency>
117         <dependency>
118             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
119             <artifactId>plugins-executor-jython</artifactId>
120             <version>${project.version}</version>
121         </dependency>
122         <dependency>
123             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
124             <artifactId>plugins-executor-mvel</artifactId>
125             <version>${project.version}</version>
126         </dependency>
127
128         <!-- Plugins for Persistence of Models over JPA -->
129         <dependency>
130             <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
131             <artifactId>plugins-persistence-jpa-eclipselink</artifactId>
132             <version>${project.version}</version>
133         </dependency>
134         <dependency>
135             <groupId>org.onap.policy.apex-pdp.plugins.plugins-persistence.plugins-persistence-jpa</groupId>
136             <artifactId>plugins-persistence-jpa-hibernate</artifactId>
137             <version>${project.version}</version>
138         </dependency>
139
140         <!-- Plugins for event carrier technologies -->
141         <dependency>
142             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
143             <artifactId>plugins-event-carrier-kafka</artifactId>
144             <version>${project.version}</version>
145         </dependency>
146         <dependency>
147             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
148             <artifactId>plugins-event-carrier-websocket</artifactId>
149             <version>${project.version}</version>
150         </dependency>
151         <dependency>
152             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
153             <artifactId>plugins-event-carrier-jms</artifactId>
154             <version>${project.version}</version>
155         </dependency>
156         <dependency>
157             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
158             <artifactId>plugins-event-carrier-restclient</artifactId>
159             <version>${project.version}</version>
160         </dependency>
161         <dependency>
162             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
163             <artifactId>plugins-event-carrier-restserver</artifactId>
164             <version>${project.version}</version>
165         </dependency>
166         <dependency>
167             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
168             <artifactId>plugins-event-carrier-restrequestor</artifactId>
169             <version>${project.version}</version>
170         </dependency>
171
172         <!-- Plugins for event protocols -->
173         <dependency>
174             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
175             <artifactId>plugins-event-protocol-xml</artifactId>
176             <version>${project.version}</version>
177         </dependency>
178         <dependency>
179             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
180             <artifactId>plugins-event-protocol-jms</artifactId>
181             <version>${project.version}</version>
182         </dependency>
183
184         <!-- Authoring and Editors -->
185         <dependency>
186             <groupId>org.onap.policy.apex-pdp.auth</groupId>
187             <artifactId>cli-editor</artifactId>
188             <version>${project.version}</version>
189         </dependency>
190         
191         <!-- Tools -->
192         <dependency>
193             <groupId>org.onap.policy.apex-pdp.tools</groupId>
194             <artifactId>simple-wsclient</artifactId>
195             <version>${project.version}</version>
196         </dependency>
197         <dependency>
198             <groupId>org.onap.policy.apex-pdp.tools</groupId>
199             <artifactId>model-generator</artifactId>
200             <version>${project.version}</version>
201         </dependency>
202         
203         <!-- Test Data used by examples -->
204         <dependency>
205             <groupId>org.onap.policy.apex-pdp.context</groupId>
206             <artifactId>context-test-utils</artifactId>
207             <version>${project.version}</version>
208         </dependency>
209         <dependency>
210             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
211             <artifactId>integration-common</artifactId>
212             <version>${project.version}</version>
213         </dependency>
214         
215         <!-- Sample Examples -->
216         <dependency>
217             <groupId>org.onap.policy.apex-pdp.examples</groupId>
218             <artifactId>examples-aadm</artifactId>
219             <version>${project.version}</version>
220         </dependency>
221         <dependency>
222             <groupId>org.onap.policy.apex-pdp.examples</groupId>
223             <artifactId>examples-adaptive</artifactId>
224             <version>${project.version}</version>
225         </dependency>
226         <dependency>
227             <groupId>org.onap.policy.apex-pdp.examples</groupId>
228             <artifactId>examples-myfirstpolicy</artifactId>
229             <version>${project.version}</version>
230         </dependency>
231         <dependency>
232             <groupId>org.onap.policy.apex-pdp.examples</groupId>
233             <artifactId>examples-pcvs</artifactId>
234             <version>${project.version}</version>
235         </dependency>
236         <dependency>
237             <groupId>org.onap.policy.apex-pdp.examples</groupId>
238             <artifactId>examples-decisionmaker</artifactId>
239             <version>${project.version}</version>
240         </dependency>
241         <dependency>
242             <groupId>org.onap.policy.apex-pdp.examples</groupId>
243             <artifactId>examples-periodic</artifactId>
244             <version>${project.version}</version>
245         </dependency>
246         <dependency>
247             <groupId>org.onap.policy.apex-pdp.examples</groupId>
248             <artifactId>examples-onap-vcpe</artifactId>
249             <version>${project.version}</version>
250         </dependency>
251         <dependency>
252             <groupId>org.onap.policy.apex-pdp.examples</groupId>
253             <artifactId>examples-servlet</artifactId>
254             <type>war</type>
255             <version>${project.version}</version>
256         </dependency>
257     </dependencies>
258
259     <build>
260         <plugins>
261             <!-- Copy required resources and examples -->
262             <plugin>
263                 <groupId>org.apache.maven.plugins</groupId>
264                 <artifactId>maven-dependency-plugin</artifactId>
265                 <executions>
266                     <execution>
267                         <id>unpack-etc-examples</id>
268                         <phase>package</phase>
269                         <goals>
270                             <goal>unpack</goal>
271                         </goals>
272                         <configuration>
273                             <artifactItems>
274                                 <artifactItem>
275                                     <groupId>org.onap.policy.apex-pdp.auth</groupId>
276                                     <artifactId>cli-editor</artifactId>
277                                     <version>${project.version}</version>
278                                     <type>jar</type>
279                                     <overWrite>false</overWrite>
280                                     <outputDirectory>${project.build.directory}</outputDirectory>
281                                     <includes>etc/**/*,examples/**/*</includes>
282                                 </artifactItem>
283                                 <artifactItem>
284                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
285                                     <artifactId>integration-common</artifactId>
286                                     <version>${project.version}</version>
287                                     <type>jar</type>
288                                     <overWrite>false</overWrite>
289                                     <outputDirectory>${project.build.directory}</outputDirectory>
290                                     <includes>etc/**/*,examples/**/*</includes>
291                                 </artifactItem>
292                                 <artifactItem>
293                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
294                                     <artifactId>examples-aadm</artifactId>
295                                     <version>${project.version}</version>
296                                     <type>jar</type>
297                                     <overWrite>false</overWrite>
298                                     <outputDirectory>${project.build.directory}</outputDirectory>
299                                     <includes>etc/**/*,examples/**/*</includes>
300                                 </artifactItem>
301                                 <artifactItem>
302                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
303                                     <artifactId>examples-adaptive</artifactId>
304                                     <version>${project.version}</version>
305                                     <type>jar</type>
306                                     <overWrite>false</overWrite>
307                                     <outputDirectory>${project.build.directory}</outputDirectory>
308                                     <includes>etc/**/*,examples/**/*</includes>
309                                 </artifactItem>
310                                 <artifactItem>
311                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
312                                     <artifactId>examples-myfirstpolicy</artifactId>
313                                     <version>${project.version}</version>
314                                     <type>jar</type>
315                                     <overWrite>false</overWrite>
316                                     <outputDirectory>${project.build.directory}</outputDirectory>
317                                     <includes>etc/**/*,examples/**/*</includes>
318                                 </artifactItem>
319                                 <artifactItem>
320                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
321                                     <artifactId>examples-pcvs</artifactId>
322                                     <version>${project.version}</version>
323                                     <type>jar</type>
324                                     <overWrite>false</overWrite>
325                                     <outputDirectory>${project.build.directory}</outputDirectory>
326                                     <includes>etc/**/*,examples/**/*</includes>
327                                 </artifactItem>
328                                 <artifactItem>
329                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
330                                     <artifactId>examples-decisionmaker</artifactId>
331                                     <version>${project.version}</version>
332                                     <type>jar</type>
333                                     <overWrite>false</overWrite>
334                                     <outputDirectory>${project.build.directory}</outputDirectory>
335                                     <includes>etc/**/*,examples/**/*</includes>
336                                 </artifactItem>
337                                 <artifactItem>
338                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
339                                     <artifactId>examples-periodic</artifactId>
340                                     <version>${project.version}</version>
341                                     <type>jar</type>
342                                     <overWrite>false</overWrite>
343                                     <outputDirectory>${project.build.directory}</outputDirectory>
344                                     <includes>etc/**/*,examples/**/*</includes>
345                                 </artifactItem>
346                                 <artifactItem>
347                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
348                                     <artifactId>examples-onap-vcpe</artifactId>
349                                     <version>${project.version}</version>
350                                     <type>jar</type>
351                                     <overWrite>false</overWrite>
352                                     <outputDirectory>${project.build.directory}</outputDirectory>
353                                     <includes>etc/**/*,examples/**/*</includes>
354                                 </artifactItem>
355                                 <artifactItem>
356                                     <groupId>org.onap.policy.apex-pdp.examples</groupId>
357                                     <artifactId>examples-servlet</artifactId>
358                                     <version>${project.version}</version>
359                                     <type>war</type>
360                                     <overWrite>false</overWrite>
361                                     <outputDirectory>${project.build.directory}/examples/servlet</outputDirectory>
362                                     <includes>readme_examples-servlet.txt</includes>
363                                 </artifactItem>
364                                 <artifactItem>
365                                     <groupId>org.onap.policy.apex-pdp.tools</groupId>
366                                     <artifactId>tools-common</artifactId>
367                                     <version>${project.version}</version>
368                                     <type>jar</type>
369                                     <overWrite>false</overWrite>
370                                     <outputDirectory>${project.build.directory}/etc</outputDirectory>
371                                     <includes>/app-version.txt</includes>
372                                 </artifactItem>
373                             </artifactItems>
374                             <overWriteReleases>true</overWriteReleases>
375                             <overWriteSnapshots>true</overWriteSnapshots>
376                         </configuration>
377                     </execution>
378                     <execution>
379                         <id>copy-fat-jars</id>
380                         <phase>package</phase>
381                         <goals>
382                             <goal>copy</goal>
383                         </goals>
384                         <configuration>
385                             <artifactItems>
386                                 <artifactItem>
387                                     <groupId>org.onap.policy.apex-pdp.tools</groupId>
388                                     <artifactId>simple-wsclient</artifactId>
389                                     <version>${project.version}</version>
390                                     <type>jar</type>
391                                     <classifier>jar-with-dependencies</classifier>
392                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
393                                 </artifactItem>
394                                 <artifactItem>
395                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
396                                     <artifactId>client-monitoring</artifactId>
397                                     <version>${project.version}</version>
398                                     <classifier>monitoring</classifier>
399                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
400                                 </artifactItem>
401                                 <artifactItem>
402                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
403                                     <artifactId>client-editor</artifactId>
404                                     <version>${project.version}</version>
405                                     <classifier>editor</classifier>
406                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
407                                 </artifactItem>
408                                 <artifactItem>
409                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
410                                     <artifactId>client-deployment</artifactId>
411                                     <version>${project.version}</version>
412                                     <classifier>deployment</classifier>
413                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
414                                 </artifactItem>
415                                 <artifactItem>
416                                     <groupId>org.onap.policy.apex-pdp.client</groupId>
417                                     <artifactId>client-full</artifactId>
418                                     <version>${project.version}</version>
419                                     <classifier>full</classifier>
420                                     <outputDirectory>${project.build.directory}/lib/applications</outputDirectory>
421                                 </artifactItem>
422                             </artifactItems>
423                             <overWriteReleases>true</overWriteReleases>
424                             <overWriteSnapshots>true</overWriteSnapshots>
425                         </configuration>
426                     </execution>
427
428                 </executions>
429             </plugin>
430  
431             <!-- Build the tar ball -->
432             <plugin>
433                 <groupId>org.apache.maven.plugins</groupId>
434                 <artifactId>maven-assembly-plugin</artifactId>
435                 <executions>
436                     <execution>
437                         <id>generate-complete-tar</id>
438                         <phase>package</phase>
439                         <goals>
440                             <goal>single</goal>
441                         </goals>
442                         <configuration>
443                             <descriptors>
444                                 <descriptor>src/main/package/tarball/assembly.xml</descriptor>
445                             </descriptors>
446                             <finalName>${project.artifactId}-${project.version}</finalName>
447                         </configuration>
448                     </execution>
449                 </executions>
450             </plugin>
451             <plugin>
452                 <artifactId>maven-antrun-plugin</artifactId>
453                 <executions>
454                     <execution>
455                         <phase>package</phase>
456                         <configuration>
457                             <tasks>
458                                 <untar
459                                     src="${project.build.directory}/${project.artifactId}-${project.version}-tarball.tar.gz"
460                                     dest="${project.build.directory}/install_hierarchy" compression="gzip" />
461                             </tasks>
462                         </configuration>
463                         <goals>
464                             <goal>run</goal>
465                         </goals>
466                     </execution>
467                     <execution>
468                         <id>fix-permissions</id>
469                         <phase>package</phase>
470                         <configuration>
471                             <tasks>
472                                 <chmod file="${project.build.directory}/install_hierarchy/bin/*" perm="755" />
473                             </tasks>
474                         </configuration>
475                         <goals>
476                             <goal>run</goal>
477                         </goals>
478                     </execution>
479                 </executions>
480             </plugin>
481             <!-- Build the dpkg distribution -->
482             <plugin>
483                 <groupId>org.vafer</groupId>
484                 <artifactId>jdeb</artifactId>
485                 <version>1.5</version>
486                 <executions>
487                     <execution>
488                         <phase>package</phase>
489                         <goals>
490                             <goal>jdeb</goal>
491                         </goals>
492                         <configuration>
493                             <deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
494                             <controlDir>${basedir}/src/main/package/control</controlDir>
495                             <dataSet>
496                                 <!-- Copy the Apex run time configuration -->
497                                 <data>
498                                     <src>${project.build.directory}/install_hierarchy/lib</src>
499                                     <type>directory</type>
500                                     <dst>lib</dst>
501                                     <mapper>
502                                         <type>perm</type>
503                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/lib</prefix>
504                                         <filemode>755</filemode>
505                                     </mapper>
506                                 </data>
507                                 <data>
508                                     <src>${project.build.directory}/install_hierarchy/bin</src>
509                                     <type>directory</type>
510                                     <dst>etc</dst>
511                                     <mapper>
512                                         <type>perm</type>
513                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/bin</prefix>
514                                     </mapper>
515                                 </data>
516                                 <data>
517                                     <src>${project.build.directory}/install_hierarchy/etc</src>
518                                     <type>directory</type>
519                                     <dst>etc</dst>
520                                     <mapper>
521                                         <type>perm</type>
522                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/etc</prefix>
523                                     </mapper>
524                                 </data>
525                                 <data>
526                                     <src>${project.build.directory}/install_hierarchy/war</src>
527                                     <type>directory</type>
528                                     <dst>etc</dst>
529                                     <mapper>
530                                         <type>perm</type>
531                                         <prefix>/opt/app/policy/${install.package.name}-${project.version}/war</prefix>
532                                     </mapper>
533                                 </data>
534                                 <data>
535                                     <src>${project.build.directory}/install_hierarchy/examples</src>
536                                     <type>directory</type>
537                                     <dst>etc</dst>
538                                     <mapper>
539                                         <type>perm</type>
540                                         <prefix>/opt/app/policy/${project.artifactId}-${project.version}/examples</prefix>
541                                     </mapper>
542                                 </data>
543                             </dataSet>
544                         </configuration>
545                     </execution>
546                 </executions>
547             </plugin>
548         </plugins>
549     </build>
550     <profiles>
551         <profile>
552             <id>Linux</id>
553             <activation>
554                 <os>
555                     <family>Linux</family>
556                 </os>
557             </activation>
558             <build>
559                 <plugins>
560                     <!-- Build the rpm distribution -->
561                     <!-- Skiping RPM Build for now, due to rpmbuild package not available on Jenkins servers -->
562  <!--                    <plugin>
563                         <groupId>org.codehaus.mojo</groupId>
564                         <artifactId>rpm-maven-plugin</artifactId>
565                         <version>2.2.0</version>
566                         <extensions>true</extensions>
567                         <executions>
568                             <execution>
569                                 <phase>package</phase>
570                                 <goals>
571                                     <goal>rpm</goal>
572                                 </goals>
573                             </execution>
574                         </executions>
575                         <configuration>
576                             <name>${project.artifactId}</name>
577                             <copyright>2015 Ericsson AB All rights reserved</copyright>
578                             <distribution>${project.parent.artifactId}</distribution>
579                             <group>ERI-APEX</group>
580                             <packager>Ericsson</packager>
581                             <prefix>/opt/app/policy/apex-pdp</prefix>
582                             <changelogFile>src/rpm/changelog</changelogFile>
583                             <needarch>noarch</needarch>
584                             <targetVendor>redhat</targetVendor>
585                             <targetOS>linux</targetOS>
586                             <version>${project.version}</version>
587                             <defineStatements>
588                                 <defineStatement>install_dir /opt/app/policy/apex-pdp</defineStatement>
589                             </defineStatements>
590                             <mappings>
591                                 <mapping>
592                                     <directory>/opt/app/policy/${project.artifactId}-${project.version}/lib</directory>
593                                     <username>root</username>
594                                     <groupname>root</groupname>
595                                     <sources>
596                                         <source>
597                                             <location>${project.build.directory}/install_hierarchy/lib</location>
598                                         </source>
599                                     </sources>
600                                 </mapping>
601                                 <mapping>
602                                     <directory>/opt/app/policy/${project.artifactId}-${project.version}/bin</directory>
603                                     <username>root</username>
604                                     <groupname>root</groupname>
605                                     <sources>
606                                         <source>
607                                             <location>${project.build.directory}/install_hierarchy/bin</location>
608                                         </source>
609                                     </sources>
610                                 </mapping>
611                                 <mapping>
612                                     <directory>/opt/app/policy/${project.artifactId}-${project.version}/etc</directory>
613                                     <username>root</username>
614                                     <groupname>root</groupname>
615                                     <sources>
616                                         <source>
617                                             <location>${project.build.directory}/install_hierarchy/etc</location>
618                                         </source>
619                                     </sources>
620                                 </mapping>
621                                 <mapping>
622                                     <directory>/opt/app/policy/${install.package.name}-${project.version}/war</directory>
623                                     <username>root</username>
624                                     <groupname>root</groupname>
625                                     <sources>
626                                         <source>
627                                             <location>${project.build.directory}/install_hierarchy/war</location>
628                                         </source>
629                                     </sources>
630                                 </mapping>
631                                 <mapping>
632                                     <directory>/opt/app/policy/${project.artifactId}-${project.version}/examples</directory>
633                                     <username>root</username>
634                                     <groupname>root</groupname>
635                                     <sources>
636                                         <source>
637                                             <location>${project.build.directory}/install_hierarchy/examples</location>
638                                         </source>
639                                     </sources>
640                                 </mapping>
641                             </mappings>
642                             <preinstallScriptlet>
643                                 <scriptFile>src/main/package/control/preinst</scriptFile>
644                             </preinstallScriptlet>
645                             <postinstallScriptlet>
646                                 <scriptFile>src/main/package/control/postinst</scriptFile>
647                             </postinstallScriptlet>
648                             <preremoveScriptlet>
649                                 <scriptFile>src/main/package/control/prerm</scriptFile>
650                             </preremoveScriptlet>
651                             <postremoveScriptlet>
652                                 <scriptFile>src/main/package/control/postrm</scriptFile>
653                             </postremoveScriptlet>
654                         </configuration>
655                     </plugin>
656                     <plugin>
657                         <groupId>org.codehaus.mojo</groupId>
658                         <artifactId>exec-maven-plugin</artifactId>
659                         <executions>
660                             <execution>
661                                 <phase>package</phase>
662                                 <goals>
663                                     <goal>exec</goal>
664                                 </goals>
665                             </execution>
666                         </executions>
667                         <configuration>
668                             <executable>sh</executable>
669                             <arguments>
670                                 <argument>-c</argument>
671                                 <argument>cp \
672                                     ${project.build.directory}/rpm/${project.artifactId}/RPMS/noarch/${project.artifactId}-${project.version}*.noarch.rpm \
673                                     \
674                                     ${project.build.directory}/${project.artifactId}-${project.version}.rpm</argument>
675                             </arguments>
676                         </configuration>
677                     </plugin>
678                     <plugin>
679                         <groupId>org.codehaus.mojo</groupId>
680                         <artifactId>build-helper-maven-plugin</artifactId>
681                         <version>3.0.0</version>
682                         <executions>
683                             <execution>
684                                 <id>attach-artifacts</id>
685                                 <phase>package</phase>
686                                 <goals>
687                                     <goal>attach-artifact</goal>
688                                 </goals>
689                                 <configuration>
690                                     <artifacts>
691                                         <artifact>
692                                             <file>${project.build.directory}/${project.artifactId}-${project.version}.rpm</file>
693                                             <type>rpm</type>
694                                         </artifact>
695                                     </artifacts>
696                                 </configuration>
697                             </execution>
698                         </executions>
699                     </plugin> -->
700                 </plugins>
701             </build>
702         </profile>
703         <profile>
704             <id>only-eclipse</id>
705             <activation>
706                 <property>
707                     <name>m2e.version</name>
708                 </property>
709             </activation>
710             <build>
711                 <pluginManagement>
712                     <plugins>
713                         <plugin>
714                             <groupId>org.eclipse.m2e</groupId>
715                             <artifactId>lifecycle-mapping</artifactId>
716                             <configuration>
717                                 <lifecycleMappingMetadata>
718                                     <pluginExecutions>
719                                         <pluginExecution>
720                                             <pluginExecutionFilter>
721                                                 <groupId>org.apache.maven.plugins</groupId>
722                                                 <artifactId>maven-dependency-plugin</artifactId>
723                                                 <versionRange>${maven-dependency-plugin.version}</versionRange>
724                                                 <goals>
725                                                     <goal>unpack</goal>
726                                                     <goal>copy</goal>
727                                                 </goals>
728                                             </pluginExecutionFilter>
729                                             <action>
730                                                 <ignore />
731                                             </action>
732                                         </pluginExecution>
733                                     </pluginExecutions>
734                                 </lifecycleMappingMetadata>
735                             </configuration>
736                         </plugin>
737                     </plugins>
738                 </pluginManagement>
739             </build>
740         </profile>
741
742         <profile>
743             <id>apexSite</id>
744             <activation>
745                 <property>
746                     <name>apexSite</name>
747                 </property>
748             </activation>
749             <distributionManagement>
750                 <site>
751                     <id>${project.artifactId}-site</id>
752                     <url>${apex.adsite.prefix}/modules/${project.parent.artifactId}/${project.artifactId}/</url>
753                 </site>
754             </distributionManagement>
755         </profile>
756     </profiles>
757 </project>