Increment version for new branch
[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 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   ECOMP is a trademark and service mark of AT&T Intellectual Property.
22   -->
23 <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">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <artifactId>appc-netconf-adapter</artifactId>
27         <groupId>org.onap.appc</groupId>
28         <version>1.4.0-SNAPSHOT</version>
29     </parent>
30     <artifactId>appc-netconf-adapter-installer</artifactId>
31     <name>NETCONF Adapter - Karaf Installer</name>
32     <packaging>pom</packaging>
33
34     <properties>
35         <application.name>appc-netconf-adapter</application.name>
36         <features.boot>appc-netconf-adapter</features.boot>
37         <features.repositories>mvn:org.onap.appc/appc-netconf-adapter-features/${project.version}/xml/features</features.repositories>
38         <include.transitive.dependencies>false</include.transitive.dependencies>
39     </properties>
40
41     <dependencies>
42         <dependency>
43             <groupId>org.onap.appc</groupId>
44             <artifactId>appc-netconf-adapter-features</artifactId>
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-netconf-adapter-bundle</artifactId>
58             <version>${project.version}</version>
59         </dependency>
60     </dependencies>
61
62     <build>
63         <plugins>
64             <plugin>
65                 <artifactId>maven-assembly-plugin</artifactId>
66                 <executions>
67                     <execution>
68                         <id>maven-repo-zip</id>
69                         <goals>
70                             <goal>single</goal>
71                         </goals>
72                         <phase>package</phase>
73                         <configuration>
74                             <appendAssemblyId>false</appendAssemblyId>
75                             <attach>false</attach>
76                             <finalName>stage/${application.name}-${project.version}</finalName>
77                             <descriptors>
78                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
79                             </descriptors>
80                         </configuration>
81                     </execution>
82                     <execution>
83                         <id>installer-zip</id>
84                         <goals>
85                             <goal>single</goal>
86                         </goals>
87                         <phase>package</phase>
88                         <configuration>
89                             <appendAssemblyId>false</appendAssemblyId>
90                             <attach>true</attach>
91                             <finalName>${application.name}-${project.version}</finalName>
92                             <descriptors>
93                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
94                             </descriptors>
95                         </configuration>
96                     </execution>
97                 </executions>
98             </plugin>
99             <plugin>
100                 <groupId>org.apache.maven.plugins</groupId>
101                 <artifactId>maven-dependency-plugin</artifactId>
102                 <executions>
103                     <execution>
104                         <id>copy-dependencies</id>
105                         <goals>
106                             <goal>copy-dependencies</goal>
107                         </goals>
108                         <phase>prepare-package</phase>
109                         <configuration>
110                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
111                             <overWriteReleases>false</overWriteReleases>
112                             <overWriteSnapshots>true</overWriteSnapshots>
113                             <overWriteIfNewer>true</overWriteIfNewer>
114                             <useRepositoryLayout>true</useRepositoryLayout>
115                             <addParentPoms>false</addParentPoms>
116                             <copyPom>false</copyPom>
117                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
118                         </configuration>
119                     </execution>
120                 </executions>
121             </plugin>
122             <plugin>
123                 <artifactId>maven-resources-plugin</artifactId>
124                 <executions>
125                     <execution>
126                         <id>copy-version</id>
127                         <goals>
128                             <goal>copy-resources</goal>
129                         </goals>
130                         <!-- here the phase you need -->
131                         <phase>validate</phase>
132                         <configuration>
133                             <outputDirectory>${basedir}/target/stage</outputDirectory>
134                             <resources>
135                                 <resource>
136                                     <directory>src/main/resources/scripts</directory>
137                                     <includes>
138                                         <include>install-feature.sh</include>
139                                     </includes>
140                                     <filtering>true</filtering>
141                                 </resource>
142                             </resources>
143                         </configuration>
144                     </execution>
145                 </executions>
146             </plugin>
147
148         </plugins>
149     </build>
150
151 </project>