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