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