Increment version for new branch
[appc.git] / appc-outbound / appc-network-inventory-client / 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"
24         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-network-inventory-client</artifactId>
28                 <groupId>org.onap.appc</groupId>
29                 <version>1.4.0-SNAPSHOT</version>
30         </parent>
31         <name>APPC Network Inventory - Installer</name>
32         <packaging>pom</packaging>
33
34         <properties>
35                 <application.name>appc-network-inventory-client</application.name>
36                 <features.boot>appc-network-inventory-client</features.boot>
37                 <features.repositories>mvn:org.onap.appc/appc-network-inventory-client-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-network-inventory-client-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                 <dependency>
55                         <groupId>org.onap.appc</groupId>
56                         <artifactId>appc-network-inventory-client-provider</artifactId>
57                 </dependency>
58
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                                                         <transitive>false</transitive>
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                                                         <scope>provided</scope>
119                                                 </configuration>
120                                         </execution>
121                                 </executions>
122                         </plugin>
123                         <plugin>
124                                 <artifactId>maven-resources-plugin</artifactId>
125                                 <executions>
126                                         <execution>
127                                                 <id>copy-version</id>
128                                                 <goals>
129                                                         <goal>copy-resources</goal>
130                                                 </goals>
131                                                 <!-- here the phase you need -->
132                                                 <phase>validate</phase>
133                                                 <configuration>
134                                                         <outputDirectory>${basedir}/target/stage</outputDirectory>
135                                                         <resources>
136                                                                 <resource>
137                                                                         <directory>src/main/resources/scripts</directory>
138                                                                         <includes>
139                                                                                 <include>install-feature.sh</include>
140                                                                         </includes>
141                                                                         <filtering>true</filtering>
142                                                                 </resource>
143                                                         </resources>
144                                                 </configuration>
145                                         </execution>
146                                 </executions>
147                         </plugin>
148                 </plugins>
149         </build>
150
151         <artifactId>appc-network-inventory-client-installer</artifactId>
152 </project>