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