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