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