Upversion for Casablanca
[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.3.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.com.google.guava>18.0</version.com.google.guava>
43         <version.org.apache.commons.commons-lang3>3.7</version.org.apache.commons.commons-lang3>
44         <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
45         <version.org.springframework.boot.spring-boot-dependencies>1.5.12.RELEASE</version.org.springframework.boot.spring-boot-dependencies>
46     </properties>
47
48     <dependencyManagement>
49         <dependencies>
50             <dependency>
51                 <groupId>org.springframework.boot</groupId>
52                 <artifactId>spring-boot-dependencies</artifactId>
53                 <version>${version.org.springframework.boot.spring-boot-dependencies}</version>
54                 <type>pom</type>
55                 <scope>import</scope>
56             </dependency>
57
58             <dependency>
59                 <groupId>org.apache.httpcomponents</groupId>
60                 <artifactId>httpclient</artifactId>
61                 <version>4.5.3</version>
62             </dependency>
63
64             <dependency>
65                 <groupId>org.apache.httpcomponents</groupId>
66                 <artifactId>httpclient-cache</artifactId>
67                 <version>4.5.3</version>
68             </dependency>
69         </dependencies>
70     </dependencyManagement>
71
72     <dependencies>
73         <dependency>
74             <groupId>org.springframework.boot</groupId>
75             <artifactId>spring-boot-starter-web</artifactId>
76             <exclusions>
77                 <exclusion>
78                     <groupId>org.springframework.boot</groupId>
79                     <artifactId>spring-boot-starter-tomcat</artifactId>
80                 </exclusion>
81                 <exclusion>
82                     <groupId>ch.qos.logback</groupId>
83                     <artifactId>logback-classic</artifactId>
84                 </exclusion>
85             </exclusions>
86         </dependency>
87
88         <dependency>
89             <groupId>org.springframework.boot</groupId>
90             <artifactId>spring-boot-starter-jetty</artifactId>
91         </dependency>
92
93         <dependency>
94             <groupId>org.springframework.boot</groupId>
95             <artifactId>spring-boot-starter-jersey</artifactId>
96         </dependency>
97
98         <dependency>
99             <groupId>dom4j</groupId>
100             <artifactId>dom4j</artifactId>
101             <version>1.6.1</version>
102             <scope>provided</scope>
103         </dependency>
104
105         <dependency>
106             <groupId>org.json</groupId>
107             <artifactId>json</artifactId>
108             <version>20160212</version>
109         </dependency>
110
111         <dependency>
112             <groupId>commons-io</groupId>
113             <artifactId>commons-io</artifactId>
114             <version>2.4</version>
115         </dependency>
116
117         <dependency>
118             <groupId>com.google.code.gson</groupId>
119             <artifactId>gson</artifactId>
120             <version>2.6.2</version>
121         </dependency>
122
123          <dependency>
124           <groupId>com.google.guava</groupId>
125           <artifactId>guava</artifactId>
126           <version>${version.com.google.guava}</version>
127         </dependency>
128
129         <dependency>
130             <groupId>${common.logging.groupid}</groupId>
131             <artifactId>common-logging</artifactId>
132             <version>${common.logging.version}</version>
133             <exclusions>
134                 <exclusion>
135                     <groupId>ch.qos.logback</groupId>
136                     <artifactId>logback-classic</artifactId>
137                 </exclusion>
138                 <exclusion>
139                     <groupId>ch.qos.logback</groupId>
140                     <artifactId>logback-core</artifactId>
141                 </exclusion>
142                 <exclusion>
143                     <groupId>org.slf4j</groupId>
144                     <artifactId>slf4j-api</artifactId>
145                 </exclusion>
146             </exclusions>
147         </dependency>
148
149         <dependency>
150             <groupId>org.eclipse.persistence</groupId>
151             <artifactId>eclipselink</artifactId>
152             <version>2.6.2</version>
153         </dependency>
154
155         <dependency>
156             <groupId>org.apache.commons</groupId>
157             <artifactId>commons-lang3</artifactId>
158             <version>3.7</version>
159         </dependency>
160
161         <dependency>
162             <groupId>org.onap.aai.champ.champ-lib</groupId>
163             <artifactId>champ-core</artifactId>
164             <version>${project.version}</version>
165             <scope>compile</scope>
166             <exclusions>
167                 <exclusion>
168                     <groupId>org.apache.hbase</groupId>
169                     <artifactId>hbase-client</artifactId>
170                 </exclusion>
171                 <exclusion>
172                     <groupId>log4j</groupId>
173                     <artifactId>log4j</artifactId>
174                 </exclusion>
175                 <exclusion>
176                     <groupId>log4j</groupId>
177                     <artifactId>apache-log4j-extras</artifactId>
178                 </exclusion>
179                 <exclusion>
180                     <groupId>org.slf4j</groupId>
181                     <artifactId>slf4j-api</artifactId>
182                 </exclusion>
183             </exclusions>
184         </dependency>
185
186         <dependency>
187             <groupId>org.hamcrest</groupId>
188             <artifactId>hamcrest-library</artifactId>
189             <scope>test</scope>
190         </dependency>
191
192         <dependency>
193             <groupId>org.skyscreamer</groupId>
194             <artifactId>jsonassert</artifactId>
195             <version>1.5.0</version>
196             <scope>test</scope>
197         </dependency>
198
199         <dependency>
200             <groupId>ch.qos.logback</groupId>
201             <artifactId>logback-classic</artifactId>
202             <version>1.2.3</version>
203         </dependency>
204
205         <dependency>
206             <groupId>ch.qos.logback</groupId>
207             <artifactId>logback-core</artifactId>
208             <version>1.2.3</version>
209         </dependency>
210
211         <dependency>
212             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
213             <artifactId>dmaapClient</artifactId>
214             <version>1.1.5</version>
215         </dependency>
216     </dependencies>
217
218     <distributionManagement>
219         <repository>
220             <id>ecomp-releases</id>
221             <name>ECOMP Release Repository</name>
222             <url>${onap.nexus.url}/content/repositories/releases/</url>
223         </repository>
224         <snapshotRepository>
225             <id>ecomp-snapshots</id>
226             <name>ECOMP Snapshot Repository</name>
227             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
228         </snapshotRepository>
229     </distributionManagement>
230
231     <build>
232         <finalName>${project.artifactId}</finalName>
233         <plugins>
234             <plugin>
235                 <groupId>org.springframework.boot</groupId>
236                 <artifactId>spring-boot-maven-plugin</artifactId>
237                 <configuration>
238                     <layout>ZIP</layout>
239                 </configuration>
240                 <executions>
241                     <execution>
242                         <goals>
243                             <goal>repackage</goal>
244                         </goals>
245                     </execution>
246                 </executions>
247             </plugin>
248
249             <plugin>
250                 <groupId>org.apache.maven.plugins</groupId>
251                 <artifactId>maven-resources-plugin</artifactId>
252                 <version>2.7</version>
253                 <executions>
254                     <execution>
255                         <id>copy-docker-file</id>
256                         <phase>package</phase>
257                         <goals>
258                             <goal>copy-resources</goal>
259                         </goals>
260                         <configuration>
261                             <outputDirectory>target</outputDirectory>
262                             <overwrite>true</overwrite>
263                             <resources>
264                                 <resource>
265                                     <directory>${basedir}/src/main/docker</directory>
266                                     <filtering>true</filtering>
267                                     <includes>
268                                         <include>**/*</include>
269                                     </includes>
270                                 </resource>
271                                 <resource>
272                                     <directory>${basedir}/src/main/bin/</directory>
273                                 </resource>
274                                 <resource>
275                                     <directory>../champ-service-deps-janus/target/</directory>
276                                 </resource>
277                                 <resource>
278                                     <directory>../champ-service-deps-titan/target/</directory>
279                                 </resource>
280                                 <resource>
281                                     <directory>${basedir}</directory>
282                                     <includes>
283                                         <include>**/dynamic/**/*</include>
284                                     </includes>
285                                 </resource>
286                             </resources>
287                         </configuration>
288                     </execution>
289                 </executions>
290             </plugin>
291
292             <plugin>
293                 <groupId>com.mycila</groupId>
294                 <artifactId>license-maven-plugin</artifactId>
295                 <version>3.0</version>
296                 <configuration>
297                     <header>License.txt</header>
298                     <includes>
299                         <include>src/main/java/**</include>
300                         <include>src/test/java/**</include>
301                         <include>pom.xml</include>
302                     </includes>
303                     <skipExistingHeaders>true</skipExistingHeaders>
304                 </configuration>
305                 <executions>
306                     <execution>
307                         <goals>
308                             <!-- Set goal to "format" to auto update license headers -->
309                             <goal>check</goal>
310                         </goals>
311                         <phase>process-sources</phase>
312                     </execution>
313                 </executions>
314             </plugin>
315
316             <plugin>
317                 <groupId>com.spotify</groupId>
318                 <artifactId>docker-maven-plugin</artifactId>
319                 <version>0.4.11</version>
320                 <configuration>
321                     <verbose>true</verbose>
322                     <serverId>docker-hub</serverId>
323                     <imageName>${docker.push.registry}/onap/${docker.name}</imageName>
324                     <dockerDirectory>${docker.location}</dockerDirectory>
325                     <imageTags>
326                         <imageTag>latest</imageTag>
327                     </imageTags>
328                     <forceTags>true</forceTags>
329                 </configuration>
330             </plugin>
331
332             <plugin>
333                 <groupId>org.apache.maven.plugins</groupId>
334                 <artifactId>maven-deploy-plugin</artifactId>
335             </plugin>
336
337             <plugin>
338                 <groupId>org.sonatype.plugins</groupId>
339                 <artifactId>nexus-staging-maven-plugin</artifactId>
340             </plugin>
341
342             <plugin>
343                 <groupId>org.apache.maven.plugins</groupId>
344                 <artifactId>maven-site-plugin</artifactId>
345             </plugin>
346         </plugins>
347     </build>
348 </project>