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