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