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