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