Increase code coverage
[aai/gizmo.git] / 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
22 <project xmlns="http://maven.apache.org/POM/4.0.0" 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         <relativePath />
31     </parent>
32
33     <groupId>org.onap.aai.gizmo</groupId>
34     <artifactId>gizmo</artifactId>
35     <version>1.3.0-SNAPSHOT</version>
36     <name>aai-gizmo</name>
37
38
39     <properties>
40         <docker.location>${basedir}/target</docker.location>
41         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
42         <testRouteOffer>workstation</testRouteOffer>
43         <testEnv>DEV</testEnv>
44     </properties>
45
46     <dependencyManagement>
47         <dependencies>
48             <dependency>
49                 <!-- Import dependency management from Spring Boot -->
50                 <groupId>org.springframework.boot</groupId>
51                 <artifactId>spring-boot-dependencies</artifactId>
52                 <version>1.5.12.RELEASE</version>
53                 <type>pom</type>
54                 <scope>import</scope>
55             </dependency>
56         </dependencies>
57     </dependencyManagement>
58
59     <dependencies>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-web</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter-jetty</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.springframework.boot</groupId>
70             <artifactId>spring-boot-starter</artifactId>
71             <exclusions>
72                 <exclusion>
73                     <groupId>ch.qos.logback</groupId>
74                     <artifactId>logback-classic</artifactId>
75                 </exclusion>
76             </exclusions>
77         </dependency>
78         <dependency>
79             <groupId>org.springframework.boot</groupId>
80             <artifactId>spring-boot-starter-jersey</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.springframework.boot</groupId>
84             <artifactId>spring-boot-starter-actuator</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.springframework.boot</groupId>
88             <artifactId>
89                     spring-boot-configuration-processor
90                 </artifactId>
91             <optional>true</optional>
92         </dependency>
93         <dependency>
94             <groupId>org.springframework.boot</groupId>
95             <artifactId>spring-boot-starter-test</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>org.apache.cxf</groupId>
99             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
100             <version>3.2.4</version>
101         </dependency>
102         <dependency>
103             <groupId>ch.qos.logback</groupId>
104             <artifactId>logback-classic</artifactId>
105             <version>1.2.3</version>
106         </dependency>
107         <dependency>
108             <groupId>ch.qos.logback</groupId>
109             <artifactId>logback-core</artifactId>
110             <version>1.2.3</version>
111             <exclusions>
112                 <exclusion>
113                     <groupId>ch.qos.logback</groupId>
114                     <artifactId>logback-classic</artifactId>
115                 </exclusion>
116             </exclusions>
117         </dependency> 
118         <dependency>
119             <groupId>ch.qos.logback</groupId>
120             <artifactId>logback-access</artifactId>
121             <version>1.2.3</version>
122         </dependency>
123         <dependency>
124             <groupId>com.google.guava</groupId>
125             <artifactId>guava</artifactId>
126             <version>23.0</version>
127         </dependency>
128         <dependency>
129             <groupId>radeox</groupId>
130             <artifactId>radeox</artifactId>
131             <version>1.0-b2</version>
132         </dependency>
133         <dependency>
134             <groupId>org.codehaus.jackson</groupId>
135             <artifactId>jackson-mapper-asl</artifactId>
136             <version>1.4.5</version>
137         </dependency>
138         <dependency>
139             <groupId>org.mockito</groupId>
140             <artifactId>mockito-core</artifactId>
141             <version>1.10.19</version>
142             <scope>test</scope>
143             <exclusions>
144                 <exclusion>
145                     <groupId>org.hamcrest</groupId>
146                     <artifactId>hamcrest-library</artifactId>
147                 </exclusion>
148             </exclusions>
149         </dependency>
150         <dependency>
151             <groupId>dom4j</groupId>
152             <artifactId>dom4j</artifactId>
153             <version>1.6.1</version>
154             <scope>provided</scope>
155         </dependency>
156         <dependency>
157             <groupId>commons-io</groupId>
158             <artifactId>commons-io</artifactId>
159             <version>2.4</version>
160         </dependency>
161         <dependency>
162             <groupId>org.apache.commons</groupId>
163             <artifactId>commons-lang3</artifactId>
164             <version>3.3.1</version>
165         </dependency>
166         <dependency>
167             <groupId>com.google.code.gson</groupId>
168             <artifactId>gson</artifactId>
169             <version>2.6.2</version>
170         </dependency>
171         <!-- Common logging framework -->
172         <dependency>
173             <groupId>org.onap.aai.logging-service</groupId>
174             <artifactId>common-logging</artifactId>
175             <version>1.2.2</version>
176             <exclusions>
177                 <exclusion>
178                     <groupId>ch.qos.logback</groupId>
179                     <artifactId>logback-classic</artifactId>
180                 </exclusion>
181                 <exclusion>
182                     <groupId>ch.qos.logback</groupId>
183                     <artifactId>logback-core</artifactId>
184                 </exclusion>
185                 <exclusion>
186                     <groupId>org.slf4j</groupId>
187                     <artifactId>slf4j-api</artifactId>
188                 </exclusion>
189             </exclusions>
190         </dependency>
191         <dependency>
192             <groupId>org.onap.aai.event-client</groupId>
193             <artifactId>event-client-dmaap</artifactId>
194             <version>1.2.2</version>
195             <exclusions>
196                 <exclusion>
197                     <groupId>org.slf4j</groupId>
198                     <artifactId>slf4j-api</artifactId>
199                 </exclusion>
200             </exclusions>
201         </dependency>
202         <dependency>
203             <groupId>org.onap.aai.aai-common</groupId>
204             <artifactId>aai-schema</artifactId>
205             <version>1.3.0-SNAPSHOT</version>
206         </dependency>
207                 <dependency>
208             <groupId>org.onap.aai.aai-common</groupId>
209             <artifactId>aai-schema-ingest</artifactId>
210             <version>1.2.2</version>
211         </dependency>
212         <dependency>
213             <groupId>org.onap.aai.aai-common</groupId>
214             <artifactId>aai-utils</artifactId>
215             <version>1.3.0-SNAPSHOT</version>
216         </dependency>
217         <dependency>
218             <groupId>org.onap.aai.aai-common</groupId>
219             <artifactId>aai-core</artifactId>
220             <version>1.3.0-SNAPSHOT</version>
221             <exclusions>
222                 <exclusion>
223                     <groupId>*</groupId>
224                     <artifactId>*</artifactId>
225                 </exclusion>
226             </exclusions>
227         </dependency>
228         <dependency>
229             <groupId>org.onap.aai.aai-common</groupId>
230             <artifactId>aai-auth</artifactId>
231             <version>1.3.0-SNAPSHOT</version>
232         </dependency>
233         <dependency>
234             <groupId>org.eclipse.persistence</groupId>
235             <artifactId>eclipselink</artifactId>
236             <version>2.6.2</version>
237         </dependency>
238         <dependency>
239             <groupId>org.onap.aai</groupId>
240             <artifactId>rest-client</artifactId>
241             <version>1.2.1</version>
242         </dependency>
243         <dependency>
244             <groupId>net.dongliu</groupId>
245             <artifactId>gson-java8-datatype</artifactId>
246             <version>1.0.3</version>
247         </dependency>
248         <dependency>
249             <groupId>com.jayway.jsonpath</groupId>
250             <artifactId>json-path</artifactId>
251             <version>2.2.0</version>
252             <exclusions>
253                 <exclusion>
254                     <groupId>org.slf4j</groupId>
255                     <artifactId>slf4j-api</artifactId>
256                 </exclusion>
257             </exclusions>
258         </dependency>
259         <!-- AAI-CORE specific dependencies -->
260         <dependency>
261             <groupId>org.apache.tinkerpop</groupId>
262             <artifactId>gremlin-core</artifactId>
263             <version>3.2.3</version>
264             <scope>provided</scope>
265             <exclusions>
266                 <exclusion>
267                     <groupId>org.slf4j</groupId>
268                     <artifactId>slf4j-log4j12</artifactId>
269                 </exclusion>
270                 <exclusion>
271                     <groupId>org.slf4j</groupId>
272                     <artifactId>jcl-over-slf4j</artifactId>
273                 </exclusion>
274                 <exclusion>
275                     <groupId>org.slf4j</groupId>
276                     <artifactId>slf4j-api</artifactId>
277                 </exclusion>
278             </exclusions>
279         </dependency>
280         <dependency>
281             <groupId>org.apache.tinkerpop</groupId>
282             <artifactId>tinkergraph-gremlin</artifactId>
283             <version>3.2.3</version>
284             <scope>provided</scope>
285         </dependency>
286         <dependency>
287             <groupId>org.json</groupId>
288             <artifactId>json</artifactId>
289             <version>20160212</version>
290         </dependency>
291         <dependency>
292             <groupId>junit</groupId>
293             <artifactId>junit</artifactId>
294         </dependency>
295         <dependency>
296             <groupId>org.skyscreamer</groupId>
297             <artifactId>jsonassert</artifactId>
298             <version>1.5.0</version>
299             <scope>test</scope>
300         </dependency>
301         <dependency>
302             <groupId>org.apache.httpcomponents</groupId>
303             <artifactId>httpclient</artifactId>
304             <version>4.5.3</version>
305         </dependency>
306         <dependency>
307             <groupId>org.apache.httpcomponents</groupId>
308             <artifactId>httpcore</artifactId>
309             <version>4.4.1</version>
310         </dependency>
311     </dependencies>
312
313     <build>
314         <finalName>${project.artifactId}</finalName>
315         <plugins>
316             <plugin>
317                 <groupId>org.apache.maven.plugins</groupId>
318                 <artifactId>maven-resources-plugin</artifactId>
319                 <version>2.7</version>
320                 <executions>
321                     <execution>
322                         <id>copy-docker-file</id>
323                         <phase>package</phase>
324                         <goals>
325                             <goal>copy-resources</goal>
326                         </goals>
327                         <configuration>
328                             <outputDirectory>target</outputDirectory>
329                             <overwrite>true</overwrite>
330                             <resources>
331                                 <resource>
332                                     <directory>${basedir}/src/main/docker</directory>
333                                     <filtering>true</filtering>
334                                     <includes>
335                                         <include>**/*</include>
336                                     </includes>
337                                 </resource>
338                                 <resource>
339                                     <directory>${basedir}</directory>
340                                     <filtering>true</filtering>
341                                     <includes>
342                                         <include>bundleconfig-local/**</include>
343                                     </includes>
344                                 </resource>
345                                 <resource>
346                                     <directory>${basedir}/src/main/bin/</directory>
347                                 </resource>
348                             </resources>
349                         </configuration>
350                     </execution>
351                 </executions>
352             </plugin>
353
354             <plugin>
355                 <groupId>com.spotify</groupId>
356                 <artifactId>docker-maven-plugin</artifactId>
357                 <version>0.4.11</version>
358                 <dependencies>
359                     <dependency>
360                         <groupId>com.github.jnr</groupId>
361                         <artifactId>jnr-unixsocket</artifactId>
362                         <version>0.13</version>
363                     </dependency>
364                 </dependencies>
365                 <configuration>
366                     <verbose>true</verbose>
367                     <serverId>docker-hub</serverId>
368                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
369                     <dockerDirectory>${docker.location}</dockerDirectory>
370                     <imageTags>
371                         <imageTag>latest</imageTag>
372                     </imageTags>
373                     <forceTags>true</forceTags>
374                 </configuration>
375             </plugin>
376
377             <!-- license plugin -->
378             <!-- Uncomment this to add a license header to every source file -->
379             <plugin>
380                 <groupId>com.mycila</groupId>
381                 <artifactId>license-maven-plugin</artifactId>
382                 <version>3.0</version>
383                 <configuration>
384                     <header>License.txt</header>
385                     <includes>
386                         <include>src/main/java/**</include>
387                         <include>src/test/java/**</include>
388                     </includes>
389                 </configuration>
390                 <executions>
391                     <execution>
392                         <goals>
393                             <goal>format</goal>
394                         </goals>
395                         <phase>process-sources</phase>
396                     </execution>
397                 </executions>
398             </plugin>
399
400             <plugin>
401                 <groupId>org.apache.maven.plugins</groupId>
402                 <artifactId>maven-site-plugin</artifactId>
403                 <version>3.3</version>
404                 <configuration>
405                     <reportPlugins>
406                         <plugin>
407                             <groupId>org.apache.maven.plugins</groupId>
408                             <artifactId>maven-checkstyle-plugin</artifactId>
409                             <version>2.17</version>
410                             <reportSets>
411                                 <reportSet>
412                                     <reports>
413                                         <report>checkstyle</report>
414                                     </reports>
415                                 </reportSet>
416                             </reportSets>
417                         </plugin>
418                     </reportPlugins>
419                 </configuration>
420             </plugin>
421
422             <plugin>
423                 <groupId>org.apache.maven.plugins</groupId>
424                 <artifactId>maven-deploy-plugin</artifactId>
425                 <configuration>
426                     <skip>true</skip>
427                 </configuration>
428             </plugin>
429             <plugin>
430                 <groupId>org.springframework.boot</groupId>
431                 <artifactId>spring-boot-maven-plugin</artifactId>
432                 <version>2.0.1.RELEASE</version>
433                 <executions>
434                     <execution>
435                         <goals>
436                             <goal>repackage</goal>
437                         </goals>
438                     </execution>
439                 </executions>
440             </plugin>
441                         <plugin>
442                 <groupId>org.apache.maven.plugins</groupId>
443                 <artifactId>maven-dependency-plugin</artifactId>
444                 <executions>
445                     <execution>
446                         <id>unpack</id>
447                         <phase>prepare-package</phase>
448                         <goals>
449                             <goal>unpack</goal>
450                         </goals>
451                         <configuration>
452                             <artifactItems>
453                                 <artifactItem>
454                                     <groupId>org.onap.aai.aai-common</groupId>
455                                     <artifactId>aai-schema</artifactId>
456                                     <version>1.2.1</version>
457                                     <type>jar</type>
458                                     <includes>oxm/</includes>
459                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
460                                 </artifactItem>
461                                 <artifactItem>
462                                     <groupId>org.onap.aai.aai-common</groupId>
463                                     <artifactId>aai-core</artifactId>
464                                     <version>1.2.1</version>
465                                     <type>jar</type>
466                                     <includes>dbedgerules/</includes>
467                                     <excludes>**/*.ftlh</excludes>
468                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
469                                 </artifactItem>
470                             </artifactItems>
471                         </configuration>
472                     </execution>
473                 </executions>
474             </plugin>
475         </plugins>
476     </build>
477
478     <distributionManagement>
479         <site>
480             <id>ecomp-javadoc</id>
481             <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
482         </site>
483     </distributionManagement>
484 </project>