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