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