Update SDS pom fixes for merge job requirements
[aai/search-data-service.git] / search-data-service-app / pom.xml
1 <!--
2
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 Amdocs
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13           http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25         <modelVersion>4.0.0</modelVersion>
26
27         <parent>
28                 <artifactId>spring-boot-starter-parent</artifactId>
29                 <groupId>org.springframework.boot</groupId>
30                 <version>1.5.18.RELEASE</version>
31         </parent>
32
33         <groupId>org.onap.aai.search-data-service</groupId>
34         <artifactId>search-data-service-app</artifactId>
35         <version>1.4.0-SNAPSHOT</version>
36         <name>AAI Search Data Service Application</name>
37
38         <properties>
39                 <docker.location>${basedir}/target</docker.location>
40                 <docker.image.name.suffix>search-data-service</docker.image.name.suffix>
41                 <nexusproxy>https://nexus.onap.org</nexusproxy>
42                 <java.version>1.8</java.version>
43                 <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
44                 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
45
46                 <sonar.language>java</sonar.language>
47                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
48                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
49                 </sonar.surefire.reportsPath>
50                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
51                 </sonar.jacoco.reportPath>
52                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
53                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
54         </properties>
55
56         <dependencies>
57
58                 <dependency>
59                         <groupId>com.google.code.gson</groupId>
60                         <artifactId>gson</artifactId>
61                 </dependency>
62
63                 <dependency>
64                         <groupId>org.hamcrest</groupId>
65                         <artifactId>hamcrest-library</artifactId>
66                         <scope>test</scope>
67                 </dependency>
68
69                 <dependency>
70                         <groupId>com.jayway.jsonpath</groupId>
71                         <artifactId>json-path</artifactId>
72                 </dependency>
73
74                 <dependency>
75                         <groupId>com.googlecode.json-simple</groupId>
76                         <artifactId>json-simple</artifactId>
77                 </dependency>
78
79                 <dependency>
80                         <groupId>org.dom4j</groupId>
81                         <artifactId>dom4j</artifactId>
82                         <version>2.1.1</version>
83                         <scope>provided</scope>
84                 </dependency>
85
86                 <dependency>
87                         <groupId>commons-io</groupId>
88                         <artifactId>commons-io</artifactId>
89                         <version>2.4</version>
90                 </dependency>
91
92                 <dependency>
93                         <groupId>org.mockito</groupId>
94                         <artifactId>mockito-all</artifactId>
95                         <version>1.10.19</version>
96                         <scope>test</scope>
97                 </dependency>
98
99         <!-- Common logging framework -->
100                 <dependency>
101                         <groupId>org.onap.aai.logging-service</groupId>
102                         <artifactId>common-logging</artifactId>
103                         <version>1.2.2</version>
104                 </dependency>
105
106                 <dependency>
107                         <groupId>org.onap.aai.logging-service</groupId>
108                         <artifactId>logging-api</artifactId>
109                         <version>1.2.2</version>
110                 </dependency>
111
112                 <dependency>
113                         <groupId>org.onap.aai.logging-service</groupId>
114                         <artifactId>eelf-logging</artifactId>
115                         <version>1.2.2</version>
116                 </dependency>
117
118         <!-- For JSON Mapping Support. -->
119                 <dependency>
120                         <groupId>com.fasterxml.jackson.core</groupId>
121                         <artifactId>jackson-databind</artifactId>
122                 </dependency>
123
124                 <dependency>
125                         <groupId>org.apache.directory.studio</groupId>
126                         <artifactId>org.apache.commons.lang</artifactId>
127                         <version>2.6</version>
128                 </dependency>
129
130                 <dependency>
131                         <groupId>radeox</groupId>
132                         <artifactId>radeox</artifactId>
133                         <version>0.9</version>
134                 </dependency>
135
136                 <dependency>
137                         <groupId>com.github.fge</groupId>
138                         <artifactId>json-schema-validator</artifactId>
139                         <version>2.0.0</version>
140                 </dependency>
141
142                 <dependency>
143                         <groupId>org.json</groupId>
144                         <artifactId>json</artifactId>
145                         <version>20180130</version>
146                 </dependency>
147
148                 <dependency>
149                         <groupId>org.springframework.boot</groupId>
150                         <artifactId>spring-boot-starter-web</artifactId>
151                         <exclusions>
152                                 <exclusion>
153                                         <groupId>org.springframework.boot</groupId>
154                                         <artifactId>spring-boot-starter-tomcat</artifactId>
155                                 </exclusion>
156                         </exclusions>
157                 </dependency>
158
159                 <dependency>
160                         <groupId>org.springframework.boot</groupId>
161                         <artifactId>spring-boot-starter-jetty</artifactId>
162                 </dependency>
163
164                 <dependency>
165                         <groupId>org.springframework.boot</groupId>
166                         <artifactId>spring-boot-starter</artifactId>
167                         <exclusions>
168                                 <exclusion>
169                                         <groupId>ch.qos.logback</groupId>
170                                         <artifactId>logback-classic</artifactId>
171                                 </exclusion>
172                         </exclusions>
173                 </dependency>
174
175                 <dependency>
176                         <groupId>org.springframework.boot</groupId>
177                         <artifactId>spring-boot-starter-jersey</artifactId>
178                         <exclusions>
179                                 <exclusion>
180                                         <groupId>org.springframework.boot</groupId>
181                                         <artifactId>spring-boot-starter-tomcat</artifactId>
182                                 </exclusion>
183                         </exclusions>
184                 </dependency>
185
186                 <dependency>
187                         <groupId>org.springframework.boot</groupId>
188                         <artifactId>spring-boot-starter-actuator</artifactId>
189                 </dependency>
190
191                 <dependency>
192                         <groupId>org.springframework.boot</groupId>
193                         <artifactId>spring-boot-starter-test</artifactId>
194                         <scope>test</scope>
195                 </dependency>
196
197                 <dependency>
198                         <groupId>org.springframework.boot</groupId>
199                         <artifactId>spring-boot-starter-security</artifactId>
200                 </dependency>
201
202         <!--Logback classic-->
203                 <dependency>
204                         <groupId>ch.qos.logback</groupId>
205                         <artifactId>logback-classic</artifactId>
206                 </dependency>
207
208                 <dependency>
209                         <groupId>ch.qos.logback</groupId>
210                         <artifactId>logback-core</artifactId>
211                 </dependency>
212
213         </dependencies>
214
215         <repositories>
216                 <repository>
217                         <id>central</id>
218                         <name>Maven 2 repository 2</name>
219                         <url>http://repo2.maven.org/maven2/</url>
220                 </repository>
221                 <repository>
222                         <id>ecomp-releases</id>
223                         <name>ECOMP Release Repository</name>
224                         <url>${nexusproxy}/content/repositories/releases/</url>
225                 </repository>
226                 <repository>
227                         <id>ecomp-snapshots</id>
228                         <name>ECOMP Snapshot Repository</name>
229                         <url>${nexusproxy}/content/repositories/snapshots/</url>
230                 </repository>
231                 <repository>
232                         <id>ecomp-staging</id>
233                         <name>ECOMP Staging Repository</name>
234                         <url>${nexusproxy}/content/repositories/staging/</url>
235                 </repository>
236         </repositories>
237
238         <build>
239                 <finalName>search-data-service-package</finalName>
240                 <plugins>
241                         <plugin>
242                                 <groupId>org.springframework.boot</groupId>
243                                 <artifactId>spring-boot-maven-plugin</artifactId>
244                         </plugin>
245             <!-- Checkstyle plugin - used to report on compliance with -->
246             <!-- the Google style guide. -->
247                         <plugin>
248                                 <groupId>org.apache.maven.plugins</groupId>
249                                 <artifactId>maven-site-plugin</artifactId>
250                                 <configuration>
251                                         <reportPlugins>
252                                                 <plugin>
253                                                         <groupId>org.apache.maven.plugins</groupId>
254                                                         <artifactId>maven-checkstyle-plugin</artifactId>
255                                                         <version>2.17</version>
256                                                         <reportSets>
257                                                                 <reportSet>
258                                                                         <reports>
259                                                                                 <report>checkstyle</report>
260                                                                         </reports>
261                                                                 </reportSet>
262                                                         </reportSets>
263                                                 </plugin>
264                                         </reportPlugins>
265                                 </configuration>
266                         </plugin>
267             <!-- This plugin overrides the compiler settings to use java 1.8 -->
268                         <plugin>
269                                 <groupId>org.apache.maven.plugins</groupId>
270                                 <artifactId>maven-compiler-plugin</artifactId>
271                                 <configuration>
272                                         <compilerId>groovy-eclipse-compiler</compilerId>
273                                         <verbose>true</verbose>
274                                         <source>1.8</source>
275                                         <target>1.8</target>
276                                 </configuration>
277                                 <dependencies>
278                                         <dependency>
279                                                 <groupId>org.codehaus.groovy</groupId>
280                                                 <artifactId>groovy-eclipse-compiler</artifactId>
281                                                 <version>2.9.0-01</version>
282                                         </dependency>
283                                         <dependency>
284                                                 <groupId>org.codehaus.groovy</groupId>
285                                                 <artifactId>groovy-eclipse-batch</artifactId>
286                                                 <version>2.3.4-01</version>
287                                         </dependency>
288                                 </dependencies>
289                         </plugin>
290                         <plugin>
291                                 <groupId>com.spotify</groupId>
292                                 <artifactId>docker-maven-plugin</artifactId>
293                                 <version>0.4.11</version>
294                                 <configuration>
295                                         <verbose>true</verbose>
296                                         <serverId>docker-hub</serverId>
297                                         <imageName>${docker.push.registry}/onap/${docker.image.name.suffix}</imageName>
298                                         <dockerDirectory>${docker.location}</dockerDirectory>
299                                         <imageTags>
300                                                 <imageTag>latest</imageTag>
301                                         </imageTags>
302                                         <forceTags>true</forceTags>
303                                 </configuration>
304                         </plugin>
305                         <plugin>
306                                 <groupId>org.sonatype.plugins</groupId>
307                                 <artifactId>nexus-staging-maven-plugin</artifactId>
308                                 <version>1.6.7</version>
309                                 <extensions>true</extensions>
310                                 <configuration>
311                                         <nexusUrl>${nexusproxy}</nexusUrl>
312                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
313                                         <serverId>ecomp-staging</serverId>
314                                 </configuration>
315                         </plugin>
316
317             <!-- This plugin is used to generate Java POJO's from json format schema
318                 file. -->
319                         <plugin>
320                                 <groupId>org.jsonschema2pojo</groupId>
321                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
322                                 <version>0.4.26</version>
323                                 <configuration>
324                                         <addCompileSourceRoot>true</addCompileSourceRoot>
325                                         <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
326                                         <outputDirectory>${generatedSourceDir}</outputDirectory>
327                                         <targetPackage>org.onap.aai.sa.rest</targetPackage>
328                                 </configuration>
329                                 <executions>
330                                         <execution>
331                                                 <goals>
332                                                         <goal>generate</goal>
333                                                 </goals>
334                                         </execution>
335                                 </executions>
336                         </plugin>
337
338                         <plugin>
339                                 <groupId>org.apache.maven.plugins</groupId>
340                                 <artifactId>maven-resources-plugin</artifactId>
341                                 <executions>
342                                         <execution>
343                                                 <id>copy-docker-file</id>
344                                                 <phase>package</phase>
345                                                 <goals>
346                                                         <goal>copy-resources</goal>
347                                                 </goals>
348                                                 <configuration>
349                                                         <outputDirectory>target</outputDirectory>
350                                                         <overwrite>true</overwrite>
351                                                         <resources>
352                                                                 <resource>
353                                                                         <directory>${basedir}/src/main/docker</directory>
354                                                                         <filtering>true</filtering>
355                                                                         <includes>
356                                                                                 <include>**/*</include>
357                                                                         </includes>
358                                                                 </resource>
359                                                                 <resource>
360                                                                         <directory>${basedir}</directory>
361                                                                         <filtering>true</filtering>
362                                                                         <includes>
363                                                                                 <include>bundleconfig-local/**</include>
364                                                                         </includes>
365                                                                 </resource>
366                                                                 <resource>
367                                                                         <directory>${basedir}/src/main/bin/</directory>
368                                                                 </resource>
369                                                         </resources>
370                                                 </configuration>
371                                         </execution>
372                                 </executions>
373                         </plugin>
374             <!-- license plugin -->
375                         <plugin>
376                                 <groupId>com.mycila</groupId>
377                                 <artifactId>license-maven-plugin</artifactId>
378                                 <version>3.0</version>
379                                 <configuration>
380                                         <header>License.txt</header>
381                                         <includes>
382                                                 <include>src/main/java/**</include>
383                                                 <include>src/test/java/**</include>
384                                                 <include>pom.xml</include>
385                                         </includes>
386                                         <skipExistingHeaders>true</skipExistingHeaders>
387                                 </configuration>
388                                 <executions>
389                                         <execution>
390                                                 <goals>
391                                                         <goal>check</goal>
392                                                 </goals>
393                                                 <phase>validate</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                                 <configuration>
437                                         <filesets>
438                                                 <fileset>
439                                                         <directory>${generatedSourceDir}</directory>
440                                                 </fileset>
441                                         </filesets>
442                                 </configuration>
443                         </plugin>
444                 </plugins>
445         </build>
446         <distributionManagement>
447                 <repository>
448                         <id>ecomp-releases</id>
449                         <name>ECOMP Release Repository</name>
450                         <url>${nexusproxy}/content/repositories/releases/</url>
451                 </repository>
452                 <snapshotRepository>
453                         <id>ecomp-snapshots</id>
454                         <name>ECOMP Snapshot Repository</name>
455                         <url>${nexusproxy}/content/repositories/snapshots/</url>
456                 </snapshotRepository>
457                 <site>
458                         <id>ecomp-javadoc</id>
459                         <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
460                 </site>
461         </distributionManagement>
462 </project>