fix ping communication with search to datarouter
[aai/search-data-service.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       <artifactId>spring-boot-starter-parent</artifactId>
28       <groupId>org.springframework.boot</groupId>
29       <version>1.5.12.RELEASE</version>
30     </parent>
31     <groupId>org.onap.aai</groupId>
32     <artifactId>search-data-service</artifactId>
33     <version>1.3.1-SNAPSHOT</version>
34     <name>aai-search-data-service</name>
35
36     <properties>
37         <docker.location>${basedir}/target</docker.location>
38         <nexusproxy>https://nexus.onap.org</nexusproxy>
39         <java.version>1.8</java.version>
40         <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
41         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
42
43         <sonar.language>java</sonar.language>
44         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
45         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
46         </sonar.surefire.reportsPath>
47         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
48         </sonar.jacoco.reportPath>
49         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
50         <sonar.projectVersion>${project.version}</sonar.projectVersion>
51     </properties>
52
53     <dependencies>
54
55         <dependency>
56             <groupId>com.google.code.gson</groupId>
57             <artifactId>gson</artifactId>
58             <version>2.8.2</version>
59         </dependency>
60
61         <dependency>
62             <groupId>org.hamcrest</groupId>
63             <artifactId>hamcrest-library</artifactId>
64             <version>1.3</version>
65             <scope>test</scope>
66         </dependency>
67
68         <dependency>
69             <groupId>com.jayway.jsonpath</groupId>
70             <artifactId>json-path</artifactId>
71             <version>2.2.0</version>
72             <scope>test</scope>
73         </dependency>
74
75         <dependency>
76             <groupId>com.googlecode.json-simple</groupId>
77             <artifactId>json-simple</artifactId>
78             <version>1.1.1</version>
79         </dependency>
80
81         <dependency>
82             <groupId>dom4j</groupId>
83             <artifactId>dom4j</artifactId>
84             <version>1.6.1</version>
85             <scope>provided</scope>
86         </dependency>
87
88         <dependency>
89             <groupId>commons-io</groupId>
90             <artifactId>commons-io</artifactId>
91             <version>2.4</version>
92         </dependency>
93
94         <dependency>
95             <groupId>org.mockito</groupId>
96             <artifactId>mockito-all</artifactId>
97             <version>1.10.19</version>
98             <scope>test</scope>
99         </dependency>
100
101         <!-- Common logging framework -->
102         <dependency>
103           <groupId>org.onap.aai.logging-service</groupId>
104           <artifactId>common-logging</artifactId>
105           <version>1.2.2</version>
106         </dependency>
107
108         <dependency>
109             <groupId>org.onap.aai.logging-service</groupId>
110             <artifactId>logging-api</artifactId>
111             <version>1.2.2</version>
112         </dependency>
113
114         <dependency>
115             <groupId>org.onap.aai.logging-service</groupId>
116             <artifactId>eelf-logging</artifactId>
117             <version>1.2.2</version>
118         </dependency>
119
120         <!-- For JSON Mapping Support. -->
121         <dependency>
122             <groupId>com.fasterxml.jackson.core</groupId>
123             <artifactId>jackson-databind</artifactId>
124             <version>2.7.8</version>
125         </dependency>
126
127         <dependency>
128           <groupId>org.apache.directory.studio</groupId>
129           <artifactId>org.apache.commons.lang</artifactId>
130           <version>2.6</version>
131         </dependency>
132
133         <dependency>
134           <groupId>radeox</groupId>
135           <artifactId>radeox</artifactId>
136           <version>0.9</version>
137         </dependency>
138
139         <dependency>
140           <groupId>com.github.fge</groupId>
141           <artifactId>json-schema-validator</artifactId>
142           <version>2.0.0</version>
143         </dependency>
144
145         <dependency>
146           <groupId>org.json</groupId>
147           <artifactId>json</artifactId>
148           <version>20180130</version>
149         </dependency>
150
151                 <dependency>
152           <groupId>org.springframework.boot</groupId>
153           <artifactId>spring-boot-starter-web</artifactId>
154         </dependency>
155         
156         <dependency>
157                         <groupId>org.springframework.boot</groupId>
158                         <artifactId>spring-boot-starter-jetty</artifactId>
159                 </dependency>
160                 
161                 <dependency>
162                         <groupId>org.springframework.boot</groupId>
163                         <artifactId>spring-boot-starter</artifactId>
164                         <exclusions>
165                                 <exclusion>
166                                         <groupId>ch.qos.logback</groupId>
167                                         <artifactId>logback-classic</artifactId>
168                                 </exclusion>
169                         </exclusions>
170                 </dependency>
171                 
172                 <dependency>
173                         <groupId>org.springframework.boot</groupId>
174                         <artifactId>spring-boot-starter-jersey</artifactId>
175                 </dependency>
176
177         <dependency>
178           <groupId>org.springframework.boot</groupId>
179           <artifactId>spring-boot-starter-actuator</artifactId>
180         </dependency>
181
182         <dependency>
183             <groupId>org.springframework.boot</groupId>
184             <artifactId>spring-boot-starter-test</artifactId>
185             <scope>test</scope>
186         </dependency>
187         
188         <dependency>
189             <groupId>org.springframework.boot</groupId>
190             <artifactId>spring-boot-starter-security</artifactId>
191         </dependency>
192
193         <!--Logback classic-->
194         <dependency>
195             <groupId>ch.qos.logback</groupId>
196             <artifactId>logback-classic</artifactId>
197             <version>1.2.1</version>
198         </dependency>
199
200         <dependency>
201             <groupId>ch.qos.logback</groupId>
202             <artifactId>logback-core</artifactId>
203             <version>1.2.1</version>
204         </dependency>
205
206     </dependencies>
207
208     <repositories>
209         <repository>
210             <id>central</id>
211             <name>Maven 2 repository 2</name>
212             <url>http://repo2.maven.org/maven2/</url>
213         </repository>
214         <repository>
215             <id>ecomp-releases</id>
216             <name>ECOMP Release Repository</name>
217             <url>${nexusproxy}/content/repositories/releases/</url>
218         </repository>
219         <repository>
220             <id>ecomp-snapshots</id>
221             <name>ECOMP Snapshot Repository</name>
222             <url>${nexusproxy}/content/repositories/snapshots/</url>
223         </repository>
224         <repository>
225             <id>ecomp-staging</id>
226             <name>ECOMP Staging Repository</name>
227             <url>${nexusproxy}/content/repositories/staging/</url>
228         </repository>
229     </repositories>
230
231     <build>
232         <finalName>search-data-service-package</finalName>
233       <plugins>
234             <plugin>
235           <groupId>org.springframework.boot</groupId>
236           <artifactId>spring-boot-maven-plugin</artifactId>
237         </plugin>
238             <!-- Checkstyle plugin - used to report on compliance with -->
239             <!-- the Google style guide. -->
240             <plugin>
241                 <groupId>org.apache.maven.plugins</groupId>
242                 <artifactId>maven-site-plugin</artifactId>
243                 <configuration>
244                     <reportPlugins>
245                         <plugin>
246                             <groupId>org.apache.maven.plugins</groupId>
247                             <artifactId>maven-checkstyle-plugin</artifactId>
248                             <version>2.17</version>
249                             <reportSets>
250                                 <reportSet>
251                                     <reports>
252                                         <report>checkstyle</report>
253                                     </reports>
254                                 </reportSet>
255                             </reportSets>
256                         </plugin>
257                     </reportPlugins>
258                 </configuration>
259             </plugin>
260             <!-- This plugin overrides the compiler settings to use java 1.8 -->
261             <plugin>
262                 <groupId>org.apache.maven.plugins</groupId>
263                 <artifactId>maven-compiler-plugin</artifactId>
264                 <version>3.1</version>
265                 <configuration>
266                     <compilerId>groovy-eclipse-compiler</compilerId>
267                     <verbose>true</verbose>
268                     <source>1.8</source>
269                     <target>1.8</target>
270                 </configuration>
271                 <dependencies>
272                     <dependency>
273                         <groupId>org.codehaus.groovy</groupId>
274                         <artifactId>groovy-eclipse-compiler</artifactId>
275                         <version>2.9.0-01</version>
276                     </dependency>
277                     <dependency>
278                         <groupId>org.codehaus.groovy</groupId>
279                         <artifactId>groovy-eclipse-batch</artifactId>
280                         <version>2.3.4-01</version>
281                     </dependency>
282                 </dependencies>
283             </plugin>
284             <plugin>
285                 <groupId>com.spotify</groupId>
286                 <artifactId>docker-maven-plugin</artifactId>
287                 <version>0.4.11</version>
288                 <dependencies>
289                     <dependency>
290                         <groupId>com.github.jnr</groupId>
291                         <artifactId>jnr-unixsocket</artifactId>
292                         <version>0.13</version>
293                     </dependency>
294                 </dependencies>
295                 <configuration>
296                     <verbose>true</verbose>
297                     <serverId>docker-hub</serverId>
298                     <imageName>onap/${project.artifactId}</imageName>
299                     <dockerDirectory>${docker.location}</dockerDirectory>
300                     <imageTags>
301                         <imageTag>latest</imageTag>
302                     </imageTags>
303                     <forceTags>true</forceTags>
304                 </configuration>
305             </plugin>
306             <plugin>
307                 <groupId>org.sonatype.plugins</groupId>
308                 <artifactId>nexus-staging-maven-plugin</artifactId>
309                 <version>1.6.7</version>
310                 <extensions>true</extensions>
311                 <configuration>
312                     <nexusUrl>${nexusproxy}</nexusUrl>
313                     <stagingProfileId>176c31dfe190a</stagingProfileId>
314                     <serverId>ecomp-staging</serverId>
315                 </configuration>
316             </plugin>
317
318             <!-- This plugin is used to generate Java POJO's from json format schema
319                 file. -->
320             <plugin>
321                 <groupId>org.jsonschema2pojo</groupId>
322                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
323                 <version>0.4.26</version>
324                 <configuration>
325                     <addCompileSourceRoot>true</addCompileSourceRoot>
326                     <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
327                     <outputDirectory>${generatedSourceDir}</outputDirectory>
328                     <targetPackage>org.onap.aai.sa.rest</targetPackage>
329                 </configuration>
330                 <executions>
331                     <execution>
332                         <goals>
333                             <goal>generate</goal>
334                         </goals>
335                     </execution>
336                 </executions>
337             </plugin>
338
339             <plugin>
340                 <groupId>org.apache.maven.plugins</groupId>
341                 <artifactId>maven-resources-plugin</artifactId>
342                 <version>2.7</version>
343                 <executions>
344                     <execution>
345                         <id>copy-docker-file</id>
346                         <phase>package</phase>
347                         <goals>
348                             <goal>copy-resources</goal>
349                         </goals>
350                         <configuration>
351                             <outputDirectory>target</outputDirectory>
352                             <overwrite>true</overwrite>
353                             <resources>
354                                 <resource>
355                                     <directory>${basedir}/src/main/docker</directory>
356                                     <filtering>true</filtering>
357                                     <includes>
358                                         <include>**/*</include>
359                                     </includes>
360                                 </resource>
361                                 <resource>
362                                     <directory>${basedir}</directory>
363                                     <filtering>true</filtering>
364                                     <includes>
365                                         <include>bundleconfig-local/**</include>
366                                     </includes>
367                                 </resource>
368                                 <resource>
369                                     <directory>${basedir}/src/main/bin/</directory>
370                                 </resource>
371                             </resources>
372                         </configuration>
373                     </execution>
374                 </executions>
375             </plugin>
376             <!-- license plugin -->
377             <plugin>
378                 <groupId>com.mycila</groupId>
379                 <artifactId>license-maven-plugin</artifactId>
380                 <version>3.0</version>
381                 <configuration>
382                     <header>License.txt</header>
383                     <includes>
384                         <include>src/main/java/**</include>
385                         <include>src/test/java/**</include>
386                     </includes>
387                 </configuration>
388                 <executions>
389                     <execution>
390                         <goals>
391                             <goal>format</goal>
392                         </goals>
393                         <phase>process-sources</phase>
394                     </execution>
395                 </executions>
396             </plugin>
397
398             <plugin>
399                 <groupId>org.apache.maven.plugins</groupId>
400                 <artifactId>maven-deploy-plugin</artifactId>
401                 <configuration>
402                     <skip>true</skip>
403                 </configuration>
404             </plugin>
405             <plugin>
406                 <groupId>org.codehaus.mojo</groupId>
407                 <artifactId>sonar-maven-plugin</artifactId>
408                 <version>3.2</version>
409             </plugin>
410             <plugin>
411                 <groupId>org.jacoco</groupId>
412                 <artifactId>jacoco-maven-plugin</artifactId>
413                 <version>0.7.7.201606060606</version>
414                 <configuration>
415                     <dumpOnExit>true</dumpOnExit>
416                 </configuration>
417                 <executions>
418                     <execution>
419                         <id>jacoco-initialize-unit-tests</id>
420                         <goals>
421                             <goal>prepare-agent</goal>
422                         </goals>
423                         <configuration>
424                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
425                             </destFile>
426                             <!-- <append>true</append> -->
427                         </configuration>
428                     </execution>
429                 </executions>
430             </plugin>
431
432             <!-- This plugin adds the generated sources directory to the clean lifecycle
433                 so that automatically generated code will get cleaned up properly. -->
434             <plugin>
435                 <artifactId>maven-clean-plugin</artifactId>
436                 <version>3.0.0</version>
437                 <configuration>
438                     <filesets>
439                         <fileset>
440                             <directory>${generatedSourceDir}</directory>
441                         </fileset>
442                     </filesets>
443                 </configuration>
444             </plugin>
445         </plugins>
446     </build>
447     <distributionManagement>
448         <repository>
449             <id>ecomp-releases</id>
450             <name>ECOMP Release Repository</name>
451             <url>${nexusproxy}/content/repositories/releases/</url>
452         </repository>
453         <snapshotRepository>
454             <id>ecomp-snapshots</id>
455             <name>ECOMP Snapshot Repository</name>
456             <url>${nexusproxy}/content/repositories/snapshots/</url>
457         </snapshotRepository>
458         <site>
459             <id>ecomp-javadoc</id>
460             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
461         </site>
462     </distributionManagement>
463 </project>