Downgrade to springboot 1.5.19.RELEASE
[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.19.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.3-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                 <jacoco.line.coverage.limit>0.58</jacoco.line.coverage.limit>
55         </properties>
56
57         <dependencies>
58
59                 <dependency>
60                         <groupId>com.google.code.gson</groupId>
61                         <artifactId>gson</artifactId>
62                 </dependency>
63
64                 <dependency>
65                         <groupId>org.hamcrest</groupId>
66                         <artifactId>hamcrest-library</artifactId>
67                         <scope>test</scope>
68                 </dependency>
69
70                 <dependency>
71                         <groupId>com.jayway.jsonpath</groupId>
72                         <artifactId>json-path</artifactId>
73                 </dependency>
74
75                 <dependency>
76                         <groupId>com.googlecode.json-simple</groupId>
77                         <artifactId>json-simple</artifactId>
78                 </dependency>
79
80                 <dependency>
81                         <groupId>org.dom4j</groupId>
82                         <artifactId>dom4j</artifactId>
83                         <version>2.1.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                 </dependency>
124
125                 <dependency>
126                         <groupId>org.apache.directory.studio</groupId>
127                         <artifactId>org.apache.commons.lang</artifactId>
128                         <version>2.6</version>
129                 </dependency>
130
131                 <dependency>
132                         <groupId>radeox</groupId>
133                         <artifactId>radeox</artifactId>
134                         <version>0.9</version>
135                 </dependency>
136
137                 <dependency>
138                         <groupId>com.github.fge</groupId>
139                         <artifactId>json-schema-validator</artifactId>
140                         <version>2.0.0</version>
141                 </dependency>
142
143                 <dependency>
144                         <groupId>org.json</groupId>
145                         <artifactId>json</artifactId>
146                         <version>20180130</version>
147                 </dependency>
148
149                 <dependency>
150                         <groupId>org.springframework.boot</groupId>
151                         <artifactId>spring-boot-starter-web</artifactId>
152                         <exclusions>
153                                 <exclusion>
154                                         <groupId>org.springframework.boot</groupId>
155                                         <artifactId>spring-boot-starter-tomcat</artifactId>
156                                 </exclusion>
157                         </exclusions>
158                 </dependency>
159
160                 <dependency>
161                         <groupId>org.springframework.boot</groupId>
162                         <artifactId>spring-boot-starter-jetty</artifactId>
163                 </dependency>
164
165                 <dependency>
166                         <groupId>org.springframework.boot</groupId>
167                         <artifactId>spring-boot-starter</artifactId>
168                         <exclusions>
169                                 <exclusion>
170                                         <groupId>ch.qos.logback</groupId>
171                                         <artifactId>logback-classic</artifactId>
172                                 </exclusion>
173                         </exclusions>
174                 </dependency>
175
176                 <dependency>
177                         <groupId>org.springframework.boot</groupId>
178                         <artifactId>spring-boot-starter-jersey</artifactId>
179                         <exclusions>
180                                 <exclusion>
181                                         <groupId>org.springframework.boot</groupId>
182                                         <artifactId>spring-boot-starter-tomcat</artifactId>
183                                 </exclusion>
184                         </exclusions>
185                 </dependency>
186
187                 <dependency>
188                         <groupId>org.springframework.boot</groupId>
189                         <artifactId>spring-boot-starter-actuator</artifactId>
190                 </dependency>
191
192                 <dependency>
193                         <groupId>org.springframework.boot</groupId>
194                         <artifactId>spring-boot-starter-test</artifactId>
195                         <scope>test</scope>
196                 </dependency>
197
198                 <dependency>
199                         <groupId>org.springframework.boot</groupId>
200                         <artifactId>spring-boot-starter-security</artifactId>
201                 </dependency>
202
203         <!--Logback classic-->
204                 <dependency>
205                         <groupId>ch.qos.logback</groupId>
206                         <artifactId>logback-classic</artifactId>
207                 </dependency>
208
209                 <dependency>
210                         <groupId>ch.qos.logback</groupId>
211                         <artifactId>logback-core</artifactId>
212                 </dependency>
213
214         </dependencies>
215
216         <repositories>
217                 <repository>
218                         <id>central</id>
219                         <name>Maven 2 repository 2</name>
220                         <url>http://repo2.maven.org/maven2/</url>
221                 </repository>
222                 <repository>
223                         <id>ecomp-releases</id>
224                         <name>ECOMP Release Repository</name>
225                         <url>${nexusproxy}/content/repositories/releases/</url>
226                 </repository>
227                 <repository>
228                         <id>ecomp-snapshots</id>
229                         <name>ECOMP Snapshot Repository</name>
230                         <url>${nexusproxy}/content/repositories/snapshots/</url>
231                 </repository>
232                 <repository>
233                         <id>ecomp-staging</id>
234                         <name>ECOMP Staging Repository</name>
235                         <url>${nexusproxy}/content/repositories/staging/</url>
236                 </repository>
237         </repositories>
238
239         <build>
240                 <finalName>search-data-service-package</finalName>
241                 <plugins>
242                         <plugin>
243                                 <groupId>org.springframework.boot</groupId>
244                                 <artifactId>spring-boot-maven-plugin</artifactId>
245                         </plugin>
246             <!-- Checkstyle plugin - used to report on compliance with -->
247             <!-- the Google style guide. -->
248                         <plugin>
249                                 <groupId>org.apache.maven.plugins</groupId>
250                                 <artifactId>maven-site-plugin</artifactId>
251                                 <configuration>
252                                         <reportPlugins>
253                                                 <plugin>
254                                                         <groupId>org.apache.maven.plugins</groupId>
255                                                         <artifactId>maven-checkstyle-plugin</artifactId>
256                                                         <version>2.17</version>
257                                                         <reportSets>
258                                                                 <reportSet>
259                                                                         <reports>
260                                                                                 <report>checkstyle</report>
261                                                                         </reports>
262                                                                 </reportSet>
263                                                         </reportSets>
264                                                 </plugin>
265                                         </reportPlugins>
266                                 </configuration>
267                         </plugin>
268             <!-- This plugin overrides the compiler settings to use java 1.8 -->
269                         <plugin>
270                                 <groupId>org.apache.maven.plugins</groupId>
271                                 <artifactId>maven-compiler-plugin</artifactId>
272                                 <configuration>
273                                         <compilerId>groovy-eclipse-compiler</compilerId>
274                                         <verbose>true</verbose>
275                                         <source>1.8</source>
276                                         <target>1.8</target>
277                                 </configuration>
278                                 <dependencies>
279                                         <dependency>
280                                                 <groupId>org.codehaus.groovy</groupId>
281                                                 <artifactId>groovy-eclipse-compiler</artifactId>
282                                                 <version>2.9.0-01</version>
283                                         </dependency>
284                                         <dependency>
285                                                 <groupId>org.codehaus.groovy</groupId>
286                                                 <artifactId>groovy-eclipse-batch</artifactId>
287                                                 <version>2.3.4-01</version>
288                                         </dependency>
289                                 </dependencies>
290                         </plugin>
291                         <plugin>
292                                 <groupId>com.spotify</groupId>
293                                 <artifactId>docker-maven-plugin</artifactId>
294                                 <version>0.4.11</version>
295                                 <configuration>
296                                         <verbose>true</verbose>
297                                         <serverId>docker-hub</serverId>
298                                         <imageName>${docker.push.registry}/onap/${docker.image.name.suffix}</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                                 <executions>
343                                         <execution>
344                                                 <id>copy-docker-file</id>
345                                                 <phase>package</phase>
346                                                 <goals>
347                                                         <goal>copy-resources</goal>
348                                                 </goals>
349                                                 <configuration>
350                                                         <outputDirectory>target</outputDirectory>
351                                                         <overwrite>true</overwrite>
352                                                         <resources>
353                                                                 <resource>
354                                                                         <directory>${basedir}/src/main/docker</directory>
355                                                                         <filtering>true</filtering>
356                                                                         <includes>
357                                                                                 <include>**/*</include>
358                                                                         </includes>
359                                                                 </resource>
360                                                                 <resource>
361                                                                         <directory>${basedir}</directory>
362                                                                         <filtering>true</filtering>
363                                                                         <includes>
364                                                                                 <include>bundleconfig-local/**</include>
365                                                                         </includes>
366                                                                 </resource>
367                                                                 <resource>
368                                                                         <directory>${basedir}/src/main/bin/</directory>
369                                                                 </resource>
370                                                         </resources>
371                                                 </configuration>
372                                         </execution>
373                                 </executions>
374                         </plugin>
375             <!-- license plugin -->
376                         <plugin>
377                                 <groupId>com.mycila</groupId>
378                                 <artifactId>license-maven-plugin</artifactId>
379                                 <version>3.0</version>
380                                 <configuration>
381                                         <header>License.txt</header>
382                                         <includes>
383                                                 <include>src/main/java/**</include>
384                                                 <include>src/test/java/**</include>
385                                                 <include>pom.xml</include>
386                                         </includes>
387                                         <skipExistingHeaders>true</skipExistingHeaders>
388                                 </configuration>
389                                 <executions>
390                                         <execution>
391                                                 <goals>
392                                                         <goal>check</goal>
393                                                 </goals>
394                                                 <phase>validate</phase>
395                                         </execution>
396                                 </executions>
397                         </plugin>
398                         <plugin>
399                                 <groupId>org.apache.maven.plugins</groupId>
400                                 <artifactId>maven-deploy-plugin</artifactId>
401                                 <version>2.8.2</version>
402                                 <executions>
403                                         <execution>
404                                                 <id>default-deploy</id>
405                                                 <phase>none</phase>
406                                         </execution>
407                                 </executions>
408                         </plugin>
409                         <plugin>
410                                 <groupId>org.codehaus.mojo</groupId>
411                                 <artifactId>sonar-maven-plugin</artifactId>
412                                 <version>3.2</version>
413                         </plugin>
414                         <plugin>
415                                 <groupId>org.jacoco</groupId>
416                                 <artifactId>jacoco-maven-plugin</artifactId>
417                                 <version>0.7.7.201606060606</version>
418                                 <configuration>
419                                         <dumpOnExit>true</dumpOnExit>
420                                 </configuration>
421                                 <executions>
422                                         <execution>
423                                                 <id>jacoco-initialize-unit-tests</id>
424                                                 <goals>
425                                                         <goal>prepare-agent</goal>
426                                                 </goals>
427                                                 <configuration>
428                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec
429                                                         </destFile>
430                             <!-- <append>true</append> -->
431                                                 </configuration>
432                                         </execution>
433                                         <execution>
434                                                 <id>default-check</id>
435                                                 <goals>
436                                                         <goal>check</goal>
437                                                 </goals>
438                                                 <configuration>
439                                                         <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
440                                                         <rules>
441                                 <!--  implementation is needed only for Maven 2  -->
442                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
443                                                                         <element>BUNDLE</element>
444                                                                         <limits>
445                                                                                 <limit implementation="org.jacoco.report.check.Limit">
446                                                                                         <counter>LINE</counter>
447                                                                                         <value>COVEREDRATIO</value>
448                                                                                         <minimum>${jacoco.line.coverage.limit}</minimum>
449                                                                                 </limit>
450                                                                         </limits>
451                                                                 </rule>
452                                                         </rules>
453                                                 </configuration>
454                                         </execution>
455                                 </executions>
456                         </plugin>
457
458             <!-- This plugin adds the generated sources directory to the clean lifecycle
459                 so that automatically generated code will get cleaned up properly. -->
460                         <plugin>
461                                 <artifactId>maven-clean-plugin</artifactId>
462                                 <configuration>
463                                         <filesets>
464                                                 <fileset>
465                                                         <directory>${generatedSourceDir}</directory>
466                                                 </fileset>
467                                         </filesets>
468                                 </configuration>
469                         </plugin>
470                 </plugins>
471         </build>
472         <distributionManagement>
473                 <repository>
474                         <id>ecomp-releases</id>
475                         <name>ECOMP Release Repository</name>
476                         <url>${nexusproxy}/content/repositories/releases/</url>
477                 </repository>
478                 <snapshotRepository>
479                         <id>ecomp-snapshots</id>
480                         <name>ECOMP Snapshot Repository</name>
481                         <url>${nexusproxy}/content/repositories/snapshots/</url>
482                 </snapshotRepository>
483                 <site>
484                         <id>ecomp-javadoc</id>
485                         <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
486                 </site>
487         </distributionManagement>
488 </project>