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