Upversion to 1.4.0 - Dublin branch
[aai/champ.git] / champ-service / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.aai</groupId>
28         <artifactId>champ</artifactId>
29         <version>1.4.0-SNAPSHOT</version>
30     </parent>
31
32     <groupId>org.onap.aai.champ</groupId>
33     <artifactId>champ-service</artifactId>
34
35     <properties>
36         <docker.location>${basedir}/target</docker.location>
37         <docker.name>champ</docker.name>
38         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39         <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
40         <common.logging.version>1.2.2</common.logging.version>
41
42         <version.org.apache.commons.commons-lang3>3.7</version.org.apache.commons.commons-lang3>
43         <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
44         <version.org.springframework.boot.spring-boot-dependencies>1.5.15.RELEASE</version.org.springframework.boot.spring-boot-dependencies>
45     </properties>
46
47     <dependencyManagement>
48         <dependencies>
49             <dependency>
50                 <groupId>org.springframework.boot</groupId>
51                 <artifactId>spring-boot-dependencies</artifactId>
52                 <version>${version.org.springframework.boot.spring-boot-dependencies}</version>
53                 <type>pom</type>
54                 <scope>import</scope>
55             </dependency>
56
57             <dependency>
58                 <groupId>org.apache.httpcomponents</groupId>
59                 <artifactId>httpclient</artifactId>
60                 <version>4.5.3</version>
61             </dependency>
62
63             <dependency>
64                 <groupId>org.apache.httpcomponents</groupId>
65                 <artifactId>httpclient-cache</artifactId>
66                 <version>4.5.3</version>
67             </dependency>
68         </dependencies>
69     </dependencyManagement>
70
71     <dependencies>
72         <dependency>
73             <groupId>org.springframework.boot</groupId>
74             <artifactId>spring-boot-starter-web</artifactId>
75             <exclusions>
76                 <exclusion>
77                     <groupId>org.springframework.boot</groupId>
78                     <artifactId>spring-boot-starter-tomcat</artifactId>
79                 </exclusion>
80                 <exclusion>
81                     <groupId>ch.qos.logback</groupId>
82                     <artifactId>logback-classic</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-jetty</artifactId>
90         </dependency>
91
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-jersey</artifactId>
95         </dependency>
96
97         <dependency>
98             <groupId>org.json</groupId>
99             <artifactId>json</artifactId>
100             <version>20160212</version>
101         </dependency>
102
103         <dependency>
104             <groupId>commons-io</groupId>
105             <artifactId>commons-io</artifactId>
106             <version>2.4</version>
107         </dependency>
108
109         <dependency>
110             <groupId>com.google.code.gson</groupId>
111             <artifactId>gson</artifactId>
112             <version>2.6.2</version>
113         </dependency>
114
115          <dependency>
116           <groupId>com.google.guava</groupId>
117           <artifactId>guava</artifactId>
118         </dependency>
119
120         <dependency>
121             <groupId>${common.logging.groupid}</groupId>
122             <artifactId>common-logging</artifactId>
123             <version>${common.logging.version}</version>
124             <exclusions>
125                 <exclusion>
126                     <groupId>ch.qos.logback</groupId>
127                     <artifactId>logback-classic</artifactId>
128                 </exclusion>
129                 <exclusion>
130                     <groupId>ch.qos.logback</groupId>
131                     <artifactId>logback-core</artifactId>
132                 </exclusion>
133                 <exclusion>
134                     <groupId>org.slf4j</groupId>
135                     <artifactId>slf4j-api</artifactId>
136                 </exclusion>
137             </exclusions>
138         </dependency>
139
140         <dependency>
141             <groupId>org.eclipse.persistence</groupId>
142             <artifactId>eclipselink</artifactId>
143             <version>2.6.2</version>
144         </dependency>
145
146         <dependency>
147             <groupId>org.apache.commons</groupId>
148             <artifactId>commons-lang3</artifactId>
149             <version>3.7</version>
150         </dependency>
151
152         <dependency>
153             <groupId>org.onap.aai.champ.champ-lib</groupId>
154             <artifactId>champ-core</artifactId>
155             <version>${project.version}</version>
156             <scope>compile</scope>
157             <exclusions>
158                 <exclusion>
159                     <groupId>org.apache.hbase</groupId>
160                     <artifactId>hbase-client</artifactId>
161                 </exclusion>
162                 <exclusion>
163                     <groupId>log4j</groupId>
164                     <artifactId>log4j</artifactId>
165                 </exclusion>
166                 <exclusion>
167                     <groupId>log4j</groupId>
168                     <artifactId>apache-log4j-extras</artifactId>
169                 </exclusion>
170                 <exclusion>
171                     <groupId>org.slf4j</groupId>
172                     <artifactId>slf4j-api</artifactId>
173                 </exclusion>
174             </exclusions>
175         </dependency>
176
177         <dependency>
178             <groupId>org.hamcrest</groupId>
179             <artifactId>hamcrest-library</artifactId>
180             <scope>test</scope>
181         </dependency>
182
183         <dependency>
184             <groupId>org.skyscreamer</groupId>
185             <artifactId>jsonassert</artifactId>
186             <version>1.5.0</version>
187             <scope>test</scope>
188         </dependency>
189
190         <dependency>
191             <groupId>ch.qos.logback</groupId>
192             <artifactId>logback-classic</artifactId>
193             <version>1.2.3</version>
194         </dependency>
195
196         <dependency>
197             <groupId>ch.qos.logback</groupId>
198             <artifactId>logback-core</artifactId>
199             <version>1.2.3</version>
200         </dependency>
201
202         <dependency>
203             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
204             <artifactId>dmaapClient</artifactId>
205             <version>1.1.5</version>
206         </dependency>
207     </dependencies>
208
209     <distributionManagement>
210         <repository>
211             <id>ecomp-releases</id>
212             <name>ECOMP Release Repository</name>
213             <url>${onap.nexus.url}/content/repositories/releases/</url>
214         </repository>
215         <snapshotRepository>
216             <id>ecomp-snapshots</id>
217             <name>ECOMP Snapshot Repository</name>
218             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
219         </snapshotRepository>
220     </distributionManagement>
221
222     <build>
223         <finalName>${project.artifactId}</finalName>
224         <plugins>
225             <plugin>
226                 <groupId>org.springframework.boot</groupId>
227                 <artifactId>spring-boot-maven-plugin</artifactId>
228                 <configuration>
229                     <layout>ZIP</layout>
230                 </configuration>
231                 <executions>
232                     <execution>
233                         <goals>
234                             <goal>repackage</goal>
235                         </goals>
236                     </execution>
237                 </executions>
238             </plugin>
239
240             <plugin>
241                 <groupId>org.apache.maven.plugins</groupId>
242                 <artifactId>maven-resources-plugin</artifactId>
243                 <version>2.7</version>
244                 <executions>
245                     <execution>
246                         <id>copy-docker-file</id>
247                         <phase>package</phase>
248                         <goals>
249                             <goal>copy-resources</goal>
250                         </goals>
251                         <configuration>
252                             <outputDirectory>target</outputDirectory>
253                             <overwrite>true</overwrite>
254                             <resources>
255                                 <resource>
256                                     <directory>${basedir}/src/main/docker</directory>
257                                     <filtering>true</filtering>
258                                     <includes>
259                                         <include>**/*</include>
260                                     </includes>
261                                 </resource>
262                                 <resource>
263                                     <directory>${basedir}/src/main/bin/</directory>
264                                 </resource>
265                                 <resource>
266                                     <directory>../champ-service-deps-janus/target/</directory>
267                                 </resource>
268                                 <resource>
269                                     <directory>../champ-service-deps-titan/target/</directory>
270                                 </resource>
271                                 <resource>
272                                     <directory>${basedir}</directory>
273                                     <includes>
274                                         <include>**/dynamic/**/*</include>
275                                     </includes>
276                                 </resource>
277                             </resources>
278                         </configuration>
279                     </execution>
280                 </executions>
281             </plugin>
282
283             <plugin>
284                 <groupId>com.mycila</groupId>
285                 <artifactId>license-maven-plugin</artifactId>
286                 <version>3.0</version>
287                 <configuration>
288                     <header>License.txt</header>
289                     <includes>
290                         <include>src/main/java/**</include>
291                         <include>src/test/java/**</include>
292                         <include>pom.xml</include>
293                     </includes>
294                     <skipExistingHeaders>true</skipExistingHeaders>
295                 </configuration>
296                 <executions>
297                     <execution>
298                         <goals>
299                             <!-- Set goal to "format" to auto update license headers -->
300                             <goal>check</goal>
301                         </goals>
302                         <phase>process-sources</phase>
303                     </execution>
304                 </executions>
305             </plugin>
306
307             <plugin>
308                 <groupId>com.spotify</groupId>
309                 <artifactId>docker-maven-plugin</artifactId>
310                 <version>0.4.11</version>
311                 <configuration>
312                     <verbose>true</verbose>
313                     <serverId>docker-hub</serverId>
314                     <imageName>${docker.push.registry}/onap/${docker.name}</imageName>
315                     <dockerDirectory>${docker.location}</dockerDirectory>
316                     <imageTags>
317                         <imageTag>latest</imageTag>
318                     </imageTags>
319                     <forceTags>true</forceTags>
320                 </configuration>
321             </plugin>
322
323             <plugin>
324                 <groupId>org.apache.maven.plugins</groupId>
325                 <artifactId>maven-deploy-plugin</artifactId>
326             </plugin>
327
328             <plugin>
329                 <groupId>org.sonatype.plugins</groupId>
330                 <artifactId>nexus-staging-maven-plugin</artifactId>
331             </plugin>
332
333             <plugin>
334                 <groupId>org.apache.maven.plugins</groupId>
335                 <artifactId>maven-site-plugin</artifactId>
336             </plugin>
337         </plugins>
338     </build>
339 </project>