af038d18cae67aeb515505000aac2b8c8c123647
[appc.git] / appc-adapters / appc-iaas-adapter / appc-iaas-adapter-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7   Copyright (C) 2017 Amdocs
8   ================================================================================
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12   
13        http://www.apache.org/licenses/LICENSE-2.0
14   
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20   ============LICENSE_END=========================================================
21   -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23   <modelVersion>4.0.0</modelVersion>
24   <parent>
25     <artifactId>appc-iaas-adapter</artifactId>
26     <groupId>org.onap.appc</groupId>
27     <version>1.4.0-SNAPSHOT</version>
28   </parent>
29   <artifactId>appc-iaas-adapter-installer</artifactId>
30   <name>IaaS Adapter - Karaf Installer</name>
31   <packaging>pom</packaging>
32
33   <properties>
34     <application.name>appc-iaas-adapter</application.name>
35     <features.boot>appc-iaas-adapter</features.boot>
36     <features.repositories>mvn:org.onap.appc/appc-iaas-adapter-features/${project.version}/xml/features</features.repositories>
37     <include.transitive.dependencies>false</include.transitive.dependencies>
38   </properties>
39
40   <dependencies>
41     <dependency>
42       <groupId>org.onap.appc</groupId>
43       <artifactId>appc-iaas-adapter-features</artifactId>
44       <classifier>features</classifier>
45       <type>xml</type>
46       <exclusions>
47         <exclusion>
48           <groupId>*</groupId>
49           <artifactId>*</artifactId>
50         </exclusion>
51       </exclusions>
52     </dependency>
53
54     <dependency>
55       <groupId>org.onap.appc</groupId>
56       <artifactId>appc-iaas-adapter-bundle</artifactId>
57       <version>${project.version}</version>
58     </dependency>
59   </dependencies>
60
61   <build>
62     <plugins>
63       <plugin>
64         <artifactId>maven-assembly-plugin</artifactId>
65         <executions>
66           <execution>
67             <id>mvn-repo-zip</id>
68             <goals>
69               <goal>single</goal>
70             </goals>
71             <phase>package</phase>
72             <configuration>
73               <appendAssemblyId>false</appendAssemblyId>
74               <attach>false</attach>
75               <finalName>stage/${application.name}-${project.version}</finalName>
76               <descriptors>
77                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
78               </descriptors>
79             </configuration>
80           </execution>
81           <execution>
82             <id>installer-zip</id>
83             <goals>
84               <goal>single</goal>
85             </goals>
86             <phase>package</phase>
87             <configuration>
88               <appendAssemblyId>false</appendAssemblyId>
89               <attach>true</attach>
90               <finalName>${application.name}-${project.version}</finalName>
91               <descriptors>
92                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
93               </descriptors>
94             </configuration>
95           </execution>
96         </executions>
97       </plugin>
98       <plugin>
99         <groupId>org.apache.maven.plugins</groupId>
100         <artifactId>maven-dependency-plugin</artifactId>
101         <executions>
102           <execution>
103             <id>copy-dependencies</id>
104             <goals>
105               <goal>copy-dependencies</goal>
106             </goals>
107             <phase>prepare-package</phase>
108             <configuration>
109               <transitive>false</transitive>
110               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
111               <overWriteReleases>false</overWriteReleases>
112               <overWriteSnapshots>true</overWriteSnapshots>
113               <overWriteIfNewer>true</overWriteIfNewer>
114               <useRepositoryLayout>true</useRepositoryLayout>
115               <addParentPoms>false</addParentPoms>
116               <copyPom>false</copyPom>
117               <excludeGroupIds>org.opendaylight</excludeGroupIds>
118               <scope>provided</scope>
119             </configuration>
120           </execution>
121         </executions>
122       </plugin>
123       <plugin>
124         <artifactId>maven-resources-plugin</artifactId>
125         <executions>
126           <execution>
127             <id>copy-version</id>
128             <goals>
129               <goal>copy-resources</goal>
130             </goals>
131             <!-- here the phase you need -->
132             <phase>validate</phase>
133             <configuration>
134               <outputDirectory>${basedir}/target/stage</outputDirectory>
135               <resources>
136                 <resource>
137                   <directory>src/main/resources/scripts</directory>
138                   <includes>
139                     <include>install-feature.sh</include>
140                   </includes>
141                   <filtering>true</filtering>
142                 </resource>
143               </resources>
144             </configuration>
145           </execution>
146         </executions>
147       </plugin>
148
149     </plugins>
150   </build>
151
152 </project>