Update license header on appc-adapter xml files
[appc.git] / appc-adapters / appc-netconf-adapter / appc-netconf-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-netconf-adapter</artifactId>
26         <groupId>org.onap.appc</groupId>
27         <version>1.4.0-SNAPSHOT</version>
28     </parent>
29     <artifactId>appc-netconf-adapter-installer</artifactId>
30     <name>NETCONF Adapter - Karaf Installer</name>
31     <packaging>pom</packaging>
32
33     <properties>
34         <application.name>appc-netconf-adapter</application.name>
35         <features.boot>appc-netconf-adapter</features.boot>
36         <features.repositories>mvn:org.onap.appc/appc-netconf-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-netconf-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
54         <dependency>
55             <groupId>org.onap.appc</groupId>
56             <artifactId>appc-netconf-adapter-bundle</artifactId>
57             <version>${project.version}</version>
58         </dependency>
59     </dependencies>
60
61     <build>
62         <plugins>
63             <plugin>
64                 <artifactId>maven-assembly-plugin</artifactId>
65                 <executions>
66                     <execution>
67                         <id>maven-repo-zip</id>
68                         <goals>
69                             <goal>single</goal>
70                         </goals>
71                         <phase>package</phase>
72                         <configuration>
73                             <appendAssemblyId>false</appendAssemblyId>
74                             <attach>false</attach>
75                             <finalName>stage/${application.name}-${project.version}</finalName>
76                             <descriptors>
77                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
78                             </descriptors>
79                         </configuration>
80                     </execution>
81                     <execution>
82                         <id>installer-zip</id>
83                         <goals>
84                             <goal>single</goal>
85                         </goals>
86                         <phase>package</phase>
87                         <configuration>
88                             <appendAssemblyId>false</appendAssemblyId>
89                             <attach>true</attach>
90                             <finalName>${application.name}-${project.version}</finalName>
91                             <descriptors>
92                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
93                             </descriptors>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-dependency-plugin</artifactId>
101                 <executions>
102                     <execution>
103                         <id>copy-dependencies</id>
104                         <goals>
105                             <goal>copy-dependencies</goal>
106                         </goals>
107                         <phase>prepare-package</phase>
108                         <configuration>
109                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
110                             <overWriteReleases>false</overWriteReleases>
111                             <overWriteSnapshots>true</overWriteSnapshots>
112                             <overWriteIfNewer>true</overWriteIfNewer>
113                             <useRepositoryLayout>true</useRepositoryLayout>
114                             <addParentPoms>false</addParentPoms>
115                             <copyPom>false</copyPom>
116                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
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
147         </plugins>
148     </build>
149
150 </project>