Karaf 4 for appc-provider
[appc.git] / appc-provider / appc-provider-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     <groupId>org.onap.appc.parent</groupId>
26     <artifactId>odlparent-lite</artifactId>
27     <version>1.4.0-SNAPSHOT</version>
28   </parent>
29   
30   <groupId>org.onap.appc</groupId>
31   <artifactId>appc-provider-installer</artifactId>
32   <version>1.4.0-SNAPSHOT</version>
33   <packaging>pom</packaging>
34
35   <name>APPC Provider - Karaf Installer</name>
36   <properties>
37     <application.name>appc-provider</application.name>
38     <feature-name>appc-provider</feature-name>
39     <features.boot>appc-provider</features.boot>
40     <features.repositories>mvn:org.onap.appc/onap-appc-provider/${project.version}/xml/features</features.repositories>
41     <include.transitive.dependencies>false</include.transitive.dependencies>
42   </properties>
43
44   <dependencies>
45
46     <dependency>
47       <groupId>org.onap.appc</groupId>
48       <artifactId>onap-appc-provider</artifactId>
49       <version>${project.version}</version>
50       <classifier>features</classifier>
51       <type>xml</type>
52       <exclusions>
53         <exclusion>
54           <groupId>*</groupId>
55           <artifactId>*</artifactId>
56         </exclusion>
57       </exclusions>
58     </dependency>
59
60     <dependency>
61       <groupId>org.onap.appc</groupId>
62       <artifactId>appc-provider-model</artifactId>
63       <version>${project.version}</version>
64     </dependency>
65     
66     <dependency>
67       <groupId>org.onap.appc</groupId>
68       <artifactId>appc-provider-bundle</artifactId>
69       <version>${project.version}</version>
70     </dependency>
71
72     <dependency>
73       <groupId>org.onap.appc</groupId>
74       <artifactId>appc-provider-bundle</artifactId>
75       <version>${project.version}</version>
76       <classifier>config</classifier>
77       <type>xml</type>
78     </dependency>
79
80   </dependencies>
81
82   <build>
83     <plugins>
84       <plugin>
85         <artifactId>maven-assembly-plugin</artifactId>
86         <executions>
87           <execution>
88             <id>maven-repo-zip</id>
89             <goals>
90               <goal>single</goal>
91             </goals>
92             <phase>package</phase>
93             <configuration>
94               <appendAssemblyId>false</appendAssemblyId>
95               <attach>false</attach>
96               <finalName>stage/${application.name}-${project.version}</finalName>
97               <descriptors>
98                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
99               </descriptors>
100             </configuration>
101           </execution>
102           <execution>
103             <id>installer-zip</id>
104             <goals>
105               <goal>single</goal>
106             </goals>
107             <phase>package</phase>
108             <configuration>
109               <appendAssemblyId>false</appendAssemblyId>
110               <attach>true</attach>
111               <finalName>${application.name}-${project.version}</finalName>
112               <descriptors>
113                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
114               </descriptors>
115             </configuration>
116           </execution>
117         </executions>
118       </plugin>
119       <plugin>
120         <groupId>org.apache.maven.plugins</groupId>
121         <artifactId>maven-dependency-plugin</artifactId>
122         <executions>
123           <execution>
124             <id>copy-dependencies</id>
125             <goals>
126               <goal>copy-dependencies</goal>
127             </goals>
128             <phase>prepare-package</phase>
129             <configuration>
130               <transitive>false</transitive>
131               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
132               <overWriteReleases>false</overWriteReleases>
133               <overWriteSnapshots>true</overWriteSnapshots>
134               <overWriteIfNewer>true</overWriteIfNewer>
135               <useRepositoryLayout>true</useRepositoryLayout>
136               <addParentPoms>false</addParentPoms>
137               <copyPom>false</copyPom>
138               <excludeGroupIds>org.opendaylight</excludeGroupIds>
139               <scope>provided</scope>
140             </configuration>
141           </execution>
142         </executions>
143       </plugin>
144       <plugin>
145         <artifactId>maven-resources-plugin</artifactId>
146         <executions>
147           <execution>
148             <id>copy-version</id>
149             <goals>
150               <goal>copy-resources</goal>
151             </goals>
152             <!-- here the phase you need -->
153             <phase>validate</phase>
154             <configuration>
155               <outputDirectory>${basedir}/target/stage</outputDirectory>
156               <resources>
157                 <resource>
158                   <directory>src/main/resources/scripts</directory>
159                   <includes>
160                     <include>install-feature.sh</include>
161                   </includes>
162                   <filtering>true</filtering>
163                 </resource>
164               </resources>
165             </configuration>
166           </execution>
167         </executions>
168       </plugin>
169     </plugins>
170   </build>
171
172 </project>