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