upgrade databind artifact
[appc.git] / appc-event-listener / appc-event-listener-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   <groupId>org.onap.appc</groupId>
31         <artifactId>appc-event-listener-installer</artifactId>
32         <name>APPC Event Listener - Karaf Installer</name>
33         <packaging>pom</packaging>
34
35         <properties>
36                 <application.name>appc-event-listener</application.name>
37                 <features.boot>appc-event-listener</features.boot>
38                 <features.repositories>mvn:org.onap.appc/onap-appc-event-listener/${project.version}/xml/features</features.repositories>
39                 <include.transitive.dependencies>false</include.transitive.dependencies>
40         </properties>
41
42         <dependencies>
43
44                 <dependency>
45                         <groupId>org.onap.appc</groupId>
46                         <artifactId>onap-appc-event-listener</artifactId>
47                         <version>${project.version}</version>
48                         <classifier>features</classifier>
49                         <type>xml</type>
50                         <exclusions>
51                                 <exclusion>
52                                         <groupId>*</groupId>
53                                         <artifactId>*</artifactId>
54                                 </exclusion>
55                         </exclusions>
56                 </dependency>
57
58                 <dependency>
59                         <groupId>org.onap.appc</groupId>
60                         <artifactId>appc-event-listener-bundle</artifactId>
61                         <version>${project.version}</version>
62                         <exclusions>
63                           <exclusion>
64                              <groupId>com.fasterxml.jackson.core</groupId>
65                              <artifactId>jackson-databind</artifactId>
66                            </exclusion>
67                         </exclusions>
68                      </dependency>
69
70                      <dependency>
71                         <groupId>com.fasterxml.jackson.core</groupId>
72                         <artifactId>jackson-databind</artifactId>
73                         <version>2.8.11.3</version>
74                 </dependency>
75         </dependencies>
76
77         <build>
78                 <plugins>
79                         <plugin>
80                                 <artifactId>maven-assembly-plugin</artifactId>
81                                 <executions>
82                                         <execution>
83                                                 <id>maven-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                 </plugins>
165         </build>
166
167         <version>1.5.0-SNAPSHOT</version>
168 </project>