Updated springboot version to 1.5.15
[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             <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                 <configuration>
289                     <verbose>true</verbose>
290                     <serverId>docker-hub</serverId>
291                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
292                     <dockerDirectory>${docker.location}</dockerDirectory>
293                     <imageTags>
294                         <imageTag>latest</imageTag>
295                     </imageTags>
296                     <forceTags>true</forceTags>
297                 </configuration>
298             </plugin>
299             <plugin>
300                 <groupId>org.sonatype.plugins</groupId>
301                 <artifactId>nexus-staging-maven-plugin</artifactId>
302                 <version>1.6.7</version>
303                 <extensions>true</extensions>
304                 <configuration>
305                     <nexusUrl>${nexusproxy}</nexusUrl>
306                     <stagingProfileId>176c31dfe190a</stagingProfileId>
307                     <serverId>ecomp-staging</serverId>
308                 </configuration>
309             </plugin>
310
311             <!-- This plugin is used to generate Java POJO's from json format schema
312                 file. -->
313             <plugin>
314                 <groupId>org.jsonschema2pojo</groupId>
315                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
316                 <version>0.4.26</version>
317                 <configuration>
318                     <addCompileSourceRoot>true</addCompileSourceRoot>
319                     <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
320                     <outputDirectory>${generatedSourceDir}</outputDirectory>
321                     <targetPackage>org.onap.aai.sa.rest</targetPackage>
322                 </configuration>
323                 <executions>
324                     <execution>
325                         <goals>
326                             <goal>generate</goal>
327                         </goals>
328                     </execution>
329                 </executions>
330             </plugin>
331
332             <plugin>
333                 <groupId>org.apache.maven.plugins</groupId>
334                 <artifactId>maven-resources-plugin</artifactId>
335                 <version>2.7</version>
336                 <executions>
337                     <execution>
338                         <id>copy-docker-file</id>
339                         <phase>package</phase>
340                         <goals>
341                             <goal>copy-resources</goal>
342                         </goals>
343                         <configuration>
344                             <outputDirectory>target</outputDirectory>
345                             <overwrite>true</overwrite>
346                             <resources>
347                                 <resource>
348                                     <directory>${basedir}/src/main/docker</directory>
349                                     <filtering>true</filtering>
350                                     <includes>
351                                         <include>**/*</include>
352                                     </includes>
353                                 </resource>
354                                 <resource>
355                                     <directory>${basedir}</directory>
356                                     <filtering>true</filtering>
357                                     <includes>
358                                         <include>bundleconfig-local/**</include>
359                                     </includes>
360                                 </resource>
361                                 <resource>
362                                     <directory>${basedir}/src/main/bin/</directory>
363                                 </resource>
364                             </resources>
365                         </configuration>
366                     </execution>
367                 </executions>
368             </plugin>
369             <!-- license plugin -->
370             <plugin>
371                 <groupId>com.mycila</groupId>
372                 <artifactId>license-maven-plugin</artifactId>
373                 <version>3.0</version>
374                 <configuration>
375                     <header>License.txt</header>
376                     <includes>
377                         <include>src/main/java/**</include>
378                         <include>src/test/java/**</include>
379                     </includes>
380                 </configuration>
381                 <executions>
382                     <execution>
383                         <goals>
384                             <goal>format</goal>
385                         </goals>
386                         <phase>process-sources</phase>
387                     </execution>
388                 </executions>
389             </plugin>
390
391             <plugin>
392                 <groupId>org.apache.maven.plugins</groupId>
393                 <artifactId>maven-deploy-plugin</artifactId>
394                 <configuration>
395                     <skip>true</skip>
396                 </configuration>
397             </plugin>
398             <plugin>
399                 <groupId>org.codehaus.mojo</groupId>
400                 <artifactId>sonar-maven-plugin</artifactId>
401                 <version>3.2</version>
402             </plugin>
403             <plugin>
404                 <groupId>org.jacoco</groupId>
405                 <artifactId>jacoco-maven-plugin</artifactId>
406                 <version>0.7.7.201606060606</version>
407                 <configuration>
408                     <dumpOnExit>true</dumpOnExit>
409                 </configuration>
410                 <executions>
411                     <execution>
412                         <id>jacoco-initialize-unit-tests</id>
413                         <goals>
414                             <goal>prepare-agent</goal>
415                         </goals>
416                         <configuration>
417                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
418                             </destFile>
419                             <!-- <append>true</append> -->
420                         </configuration>
421                     </execution>
422                 </executions>
423             </plugin>
424
425             <!-- This plugin adds the generated sources directory to the clean lifecycle
426                 so that automatically generated code will get cleaned up properly. -->
427             <plugin>
428                 <artifactId>maven-clean-plugin</artifactId>
429                 <version>3.0.0</version>
430                 <configuration>
431                     <filesets>
432                         <fileset>
433                             <directory>${generatedSourceDir}</directory>
434                         </fileset>
435                     </filesets>
436                 </configuration>
437             </plugin>
438         </plugins>
439     </build>
440     <distributionManagement>
441         <repository>
442             <id>ecomp-releases</id>
443             <name>ECOMP Release Repository</name>
444             <url>${nexusproxy}/content/repositories/releases/</url>
445         </repository>
446         <snapshotRepository>
447             <id>ecomp-snapshots</id>
448             <name>ECOMP Snapshot Repository</name>
449             <url>${nexusproxy}/content/repositories/snapshots/</url>
450         </snapshotRepository>
451         <site>
452             <id>ecomp-javadoc</id>
453             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
454         </site>
455     </distributionManagement>
456 </project>