Upversion to 1.3.2
[aai/search-data-service.git] / 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.15.RELEASE</version>
31     </parent>
32     <groupId>org.onap.aai</groupId>
33     <artifactId>search-data-service</artifactId>
34     <version>1.3.2-SNAPSHOT</version>
35     <name>aai-search-data-service</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <nexusproxy>https://nexus.onap.org</nexusproxy>
40         <java.version>1.8</java.version>
41         <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
42         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
43
44         <sonar.language>java</sonar.language>
45         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
46         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
47         </sonar.surefire.reportsPath>
48         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
49         </sonar.jacoco.reportPath>
50         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
51         <sonar.projectVersion>${project.version}</sonar.projectVersion>
52     </properties>
53
54     <dependencies>
55
56         <dependency>
57             <groupId>com.google.code.gson</groupId>
58             <artifactId>gson</artifactId>
59             <version>2.8.2</version>
60         </dependency>
61
62         <dependency>
63             <groupId>org.hamcrest</groupId>
64             <artifactId>hamcrest-library</artifactId>
65             <version>1.3</version>
66             <scope>test</scope>
67         </dependency>
68
69         <dependency>
70             <groupId>com.jayway.jsonpath</groupId>
71             <artifactId>json-path</artifactId>
72             <version>2.2.0</version>
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>org.dom4j</groupId>
83             <artifactId>dom4j</artifactId>
84             <version>2.1.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                         <include>pom.xml</include>
380                     </includes>
381                     <skipExistingHeaders>true</skipExistingHeaders>
382                 </configuration>
383                 <executions>
384                     <execution>
385                         <goals>
386                             <goal>check</goal>
387                         </goals>
388                         <phase>validate</phase>
389                     </execution>
390                 </executions>
391             </plugin>
392
393             <plugin>
394                 <groupId>org.apache.maven.plugins</groupId>
395                 <artifactId>maven-deploy-plugin</artifactId>
396                 <configuration>
397                     <skip>true</skip>
398                 </configuration>
399             </plugin>
400             <plugin>
401                 <groupId>org.codehaus.mojo</groupId>
402                 <artifactId>sonar-maven-plugin</artifactId>
403                 <version>3.2</version>
404             </plugin>
405             <plugin>
406                 <groupId>org.jacoco</groupId>
407                 <artifactId>jacoco-maven-plugin</artifactId>
408                 <version>0.7.7.201606060606</version>
409                 <configuration>
410                     <dumpOnExit>true</dumpOnExit>
411                 </configuration>
412                 <executions>
413                     <execution>
414                         <id>jacoco-initialize-unit-tests</id>
415                         <goals>
416                             <goal>prepare-agent</goal>
417                         </goals>
418                         <configuration>
419                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
420                             </destFile>
421                             <!-- <append>true</append> -->
422                         </configuration>
423                     </execution>
424                 </executions>
425             </plugin>
426
427             <!-- This plugin adds the generated sources directory to the clean lifecycle
428                 so that automatically generated code will get cleaned up properly. -->
429             <plugin>
430                 <artifactId>maven-clean-plugin</artifactId>
431                 <version>3.0.0</version>
432                 <configuration>
433                     <filesets>
434                         <fileset>
435                             <directory>${generatedSourceDir}</directory>
436                         </fileset>
437                     </filesets>
438                 </configuration>
439             </plugin>
440         </plugins>
441     </build>
442     <distributionManagement>
443         <repository>
444             <id>ecomp-releases</id>
445             <name>ECOMP Release Repository</name>
446             <url>${nexusproxy}/content/repositories/releases/</url>
447         </repository>
448         <snapshotRepository>
449             <id>ecomp-snapshots</id>
450             <name>ECOMP Snapshot Repository</name>
451             <url>${nexusproxy}/content/repositories/snapshots/</url>
452         </snapshotRepository>
453         <site>
454             <id>ecomp-javadoc</id>
455             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
456         </site>
457     </distributionManagement>
458 </project>