[AAI-804] Updating pom.xml to add bundle-config
[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.10.RELEASE</version>
30     </parent>
31     <groupId>org.onap.aai</groupId>
32     <artifactId>search-data-service</artifactId>
33     <version>1.2.0-SNAPSHOT</version>
34     <name>aai-search-data-service</name>
35
36     <properties>
37
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>org.springframework</groupId>-->
58             <!--<artifactId>spring-test</artifactId>-->
59             <!--<version>5.0.4.RELEASE</version>-->
60             <!--<scope>test</scope>-->
61         <!--</dependency>-->
62
63         <dependency>
64             <groupId>com.google.code.gson</groupId>
65             <artifactId>gson</artifactId>
66             <version>2.8.2</version>
67         </dependency>
68
69         <dependency>
70             <groupId>org.hamcrest</groupId>
71             <artifactId>hamcrest-library</artifactId>
72             <version>1.3</version>
73             <scope>test</scope>
74         </dependency>
75         <dependency>
76             <groupId>com.jayway.jsonpath</groupId>
77             <artifactId>json-path</artifactId>
78             <version>2.2.0</version>
79             <scope>test</scope>
80         </dependency>
81
82         <dependency>
83             <groupId>com.googlecode.json-simple</groupId>
84             <artifactId>json-simple</artifactId>
85             <version>1.1.1</version>
86         </dependency>
87         <dependency>
88             <groupId>dom4j</groupId>
89             <artifactId>dom4j</artifactId>
90             <version>1.6.1</version>
91             <scope>provided</scope>
92         </dependency>
93
94         <!--<dependency>-->
95             <!--<groupId>com.att.aft</groupId>-->
96             <!--<artifactId>dme2</artifactId>-->
97             <!--<version>3.1.200</version>-->
98             <!--<scope>provided</scope>-->
99         <!--</dependency>-->
100
101
102         <dependency>
103             <groupId>org.elasticsearch</groupId>
104             <artifactId>elasticsearch</artifactId>
105             <version>2.3.1</version>
106         </dependency>
107         <dependency>
108             <groupId>commons-io</groupId>
109             <artifactId>commons-io</artifactId>
110             <version>2.4</version>
111         </dependency>
112
113         <dependency>
114             <groupId>org.mockito</groupId>
115             <artifactId>mockito-all</artifactId>
116             <version>1.10.19</version>
117             <scope>test</scope>
118         </dependency>
119
120         <!--<dependency>-->
121             <!--<groupId>com.att.aai.cl</groupId>-->
122             <!--<artifactId>common-logging</artifactId>-->
123             <!--<version>1.0.6</version>-->
124         <!--</dependency>-->
125
126         <!-- Common logging framework -->
127         <dependency>
128           <groupId>org.onap.aai.logging-service</groupId>
129           <artifactId>common-logging</artifactId>
130           <version>1.2.2</version>
131         </dependency>
132
133         <dependency>
134             <groupId>org.onap.aai.logging-service</groupId>
135             <artifactId>logging-api</artifactId>
136             <version>1.2.2</version>
137         </dependency>
138
139         <dependency>
140             <groupId>org.onap.aai.logging-service</groupId>
141             <artifactId>eelf-logging</artifactId>
142             <version>1.2.2</version>
143         </dependency>
144         <!--  Jersey Test Framework. -->
145         <!--<dependency>-->
146             <!--<groupId>org.glassfish.jersey.test-framework.providers</groupId>-->
147             <!--<artifactId>jersey-test-framework-provider-grizzly2</artifactId>-->
148             <!--<version>2.23.2</version>-->
149             <!--<scope>test</scope>-->
150         <!--</dependency>-->
151
152         <!-- For JSON Mapping Support. -->
153         <dependency>
154             <groupId>com.fasterxml.jackson.core</groupId>
155             <artifactId>jackson-databind</artifactId>
156             <version>2.7.8</version>
157         </dependency>
158
159         <!-- Added additional dependencies  -->
160         <!-- https://mvnrepository.com/artifact/edu.emory.mathcs.backport/com.springsource.edu.emory.mathcs.backport -->
161         <dependency>
162           <groupId>edu.emory.mathcs.backport</groupId>
163           <artifactId>com.springsource.edu.emory.mathcs.backport</artifactId>
164           <version>3.1.0</version>
165           <scope>provided</scope>
166         </dependency>
167
168         <!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->
169         <dependency>
170           <groupId>javax.ws.rs</groupId>
171           <artifactId>javax.ws.rs-api</artifactId>
172           <version>2.0</version>
173         </dependency>
174
175         <!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.lang -->
176         <dependency>
177           <groupId>org.apache.directory.studio</groupId>
178           <artifactId>org.apache.commons.lang</artifactId>
179           <version>2.6</version>
180         </dependency>
181
182         <!-- https://mvnrepository.com/artifact/radeox/radeox -->
183         <dependency>
184           <groupId>radeox</groupId>
185           <artifactId>radeox</artifactId>
186           <version>0.9</version>
187         </dependency>
188
189         <!-- https://mvnrepository.com/artifact/com.github.fge/json-schema-validator -->
190         <dependency>
191           <groupId>com.github.fge</groupId>
192           <artifactId>json-schema-validator</artifactId>
193           <version>2.0.0</version>
194         </dependency>
195
196         <!-- https://mvnrepository.com/artifact/org.json/json -->
197         <dependency>
198           <groupId>org.json</groupId>
199           <artifactId>json</artifactId>
200           <version>20180130</version>
201         </dependency>
202
203         <!-- Spring dependencies -->
204         <dependency>
205           <groupId>org.springframework.boot</groupId>
206           <artifactId>spring-boot-starter-web</artifactId>
207         </dependency>
208
209         <dependency>
210           <groupId>org.springframework.boot</groupId>
211           <artifactId>spring-boot-starter-actuator</artifactId>
212         </dependency>
213
214         <dependency>
215             <groupId>org.springframework.boot</groupId>
216             <artifactId>spring-boot-starter-test</artifactId>
217             <scope>test</scope>
218         </dependency>
219
220
221         <dependency>
222             <groupId>org.eclipse.jetty</groupId>
223             <artifactId>jetty-security</artifactId>
224         </dependency>
225
226         <dependency>
227             <groupId>org.springframework.boot</groupId>
228             <artifactId>spring-boot-starter-security</artifactId>
229         </dependency>
230
231         <!--Logback classic-->
232         <dependency>
233             <groupId>ch.qos.logback</groupId>
234             <artifactId>logback-classic</artifactId>
235             <version>1.2.1</version>
236         </dependency>
237
238         <dependency>
239             <groupId>ch.qos.logback</groupId>
240             <artifactId>logback-core</artifactId>
241             <version>1.2.1</version>
242         </dependency>
243
244     </dependencies>
245
246     <repositories>
247         <repository>
248             <id>central</id>
249             <name>Maven 2 repository 2</name>
250             <url>http://repo2.maven.org/maven2/</url>
251         </repository>
252         <repository>
253             <id>ecomp-releases</id>
254             <name>ECOMP Release Repository</name>
255             <url>${nexusproxy}/content/repositories/releases/</url>
256         </repository>
257         <repository>
258             <id>ecomp-snapshots</id>
259             <name>ECOMP Snapshot Repository</name>
260             <url>${nexusproxy}/content/repositories/snapshots/</url>
261         </repository>
262         <repository>
263             <id>ecomp-staging</id>
264             <name>ECOMP Staging Repository</name>
265             <url>${nexusproxy}/content/repositories/staging/</url>
266         </repository>
267     </repositories>
268
269     <build>
270         <finalName>search-data-service-package</finalName>
271       <plugins>
272             <plugin>
273           <groupId>org.springframework.boot</groupId>
274           <artifactId>spring-boot-maven-plugin</artifactId>
275         </plugin>
276             <!-- Checkstyle plugin - used to report on compliance with -->
277             <!-- the Google style guide. -->
278             <plugin>
279                 <groupId>org.apache.maven.plugins</groupId>
280                 <artifactId>maven-site-plugin</artifactId>
281                 <configuration>
282                     <reportPlugins>
283                         <plugin>
284                             <groupId>org.apache.maven.plugins</groupId>
285                             <artifactId>maven-checkstyle-plugin</artifactId>
286                             <version>2.17</version>
287                             <reportSets>
288                                 <reportSet>
289                                     <reports>
290                                         <report>checkstyle</report>
291                                     </reports>
292                                 </reportSet>
293                             </reportSets>
294                         </plugin>
295                     </reportPlugins>
296                 </configuration>
297             </plugin>
298             <!-- This plugin overrides the compiler settings to use java 1.8 -->
299             <plugin>
300                 <groupId>org.apache.maven.plugins</groupId>
301                 <artifactId>maven-compiler-plugin</artifactId>
302                 <version>3.1</version>
303                 <configuration>
304                     <compilerId>groovy-eclipse-compiler</compilerId>
305                     <verbose>true</verbose>
306                     <source>1.8</source>
307                     <target>1.8</target>
308                 </configuration>
309                 <dependencies>
310                     <dependency>
311                         <groupId>org.codehaus.groovy</groupId>
312                         <artifactId>groovy-eclipse-compiler</artifactId>
313                         <version>2.9.0-01</version>
314                     </dependency>
315                     <dependency>
316                         <groupId>org.codehaus.groovy</groupId>
317                         <artifactId>groovy-eclipse-batch</artifactId>
318                         <version>2.3.4-01</version>
319                     </dependency>
320                 </dependencies>
321             </plugin>
322             <plugin>
323                 <groupId>com.spotify</groupId>
324                 <artifactId>docker-maven-plugin</artifactId>
325                 <version>0.4.11</version>
326                 <configuration>
327                     <verbose>true</verbose>
328                     <serverId>docker-hub</serverId>
329                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
330                     <dockerDirectory>${docker.location}</dockerDirectory>
331                     <imageTags>
332                         <imageTag>latest</imageTag>
333                     </imageTags>
334                     <forceTags>true</forceTags>
335                 </configuration>
336             </plugin>
337             <plugin>
338                 <groupId>org.sonatype.plugins</groupId>
339                 <artifactId>nexus-staging-maven-plugin</artifactId>
340                 <version>1.6.7</version>
341                 <extensions>true</extensions>
342                 <configuration>
343                     <nexusUrl>${nexusproxy}</nexusUrl>
344                     <stagingProfileId>176c31dfe190a</stagingProfileId>
345                     <serverId>ecomp-staging</serverId>
346                 </configuration>
347             </plugin>
348
349             <!-- This plugin is used to generate Java POJO's from json format schema
350                 file. -->
351             <plugin>
352                 <groupId>org.jsonschema2pojo</groupId>
353                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
354                 <version>0.4.26</version>
355                 <configuration>
356                     <addCompileSourceRoot>true</addCompileSourceRoot>
357                     <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
358                     <outputDirectory>${generatedSourceDir}</outputDirectory>
359                     <targetPackage>org.onap.aai.sa.rest</targetPackage>
360                 </configuration>
361                 <executions>
362                     <execution>
363                         <goals>
364                             <goal>generate</goal>
365                         </goals>
366                     </execution>
367                 </executions>
368             </plugin>
369
370             <plugin>
371                 <groupId>org.apache.maven.plugins</groupId>
372                 <artifactId>maven-resources-plugin</artifactId>
373                 <version>2.7</version>
374                 <executions>
375                     <execution>
376                         <id>copy-docker-file</id>
377                         <phase>package</phase>
378                         <goals>
379                             <goal>copy-resources</goal>
380                         </goals>
381                         <configuration>
382                             <outputDirectory>target</outputDirectory>
383                             <overwrite>true</overwrite>
384                             <resources>
385                                 <resource>
386                                     <directory>${basedir}/src/main/docker</directory>
387                                     <filtering>true</filtering>
388                                     <includes>
389                                         <include>**/*</include>
390                                     </includes>
391                                 </resource>
392                                 <resource>
393                                     <directory>${basedir}</directory>
394                                     <filtering>true</filtering>
395                                     <includes>
396                                         <include>bundleconfig-local/**</include>
397                                     </includes>
398                                 </resource>
399                                 <resource>
400                                     <directory>${basedir}/src/main/bin/</directory>
401                                 </resource>
402                             </resources>
403                         </configuration>
404                     </execution>
405                 </executions>
406             </plugin>
407             <!-- license plugin -->
408             <plugin>
409                 <groupId>com.mycila</groupId>
410                 <artifactId>license-maven-plugin</artifactId>
411                 <version>3.0</version>
412                 <configuration>
413                     <header>License.txt</header>
414                     <includes>
415                         <include>src/main/java/**</include>
416                         <include>src/test/java/**</include>
417                     </includes>
418                 </configuration>
419                 <executions>
420                     <execution>
421                         <goals>
422                             <goal>format</goal>
423                         </goals>
424                         <phase>process-sources</phase>
425                     </execution>
426                 </executions>
427             </plugin>
428
429             <plugin>
430                 <groupId>org.apache.maven.plugins</groupId>
431                 <artifactId>maven-deploy-plugin</artifactId>
432                 <configuration>
433                     <skip>true</skip>
434                 </configuration>
435             </plugin>
436             <plugin>
437                 <groupId>org.codehaus.mojo</groupId>
438                 <artifactId>sonar-maven-plugin</artifactId>
439                 <version>3.2</version>
440             </plugin>
441             <plugin>
442                 <groupId>org.jacoco</groupId>
443                 <artifactId>jacoco-maven-plugin</artifactId>
444                 <version>0.7.7.201606060606</version>
445                 <configuration>
446                     <dumpOnExit>true</dumpOnExit>
447                 </configuration>
448                 <executions>
449                     <execution>
450                         <id>jacoco-initialize-unit-tests</id>
451                         <goals>
452                             <goal>prepare-agent</goal>
453                         </goals>
454                         <configuration>
455                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
456                             </destFile>
457                             <!-- <append>true</append> -->
458                         </configuration>
459                     </execution>
460                 </executions>
461             </plugin>
462
463             <!-- This plugin adds the generated sources directory to the clean lifecycle
464                 so that automatically generated code will get cleaned up properly. -->
465             <plugin>
466                 <artifactId>maven-clean-plugin</artifactId>
467                 <version>3.0.0</version>
468                 <configuration>
469                     <filesets>
470                         <fileset>
471                             <directory>${generatedSourceDir}</directory>
472                         </fileset>
473                     </filesets>
474                 </configuration>
475             </plugin>
476         </plugins>
477     </build>
478     <distributionManagement>
479         <repository>
480             <id>ecomp-releases</id>
481             <name>ECOMP Release Repository</name>
482             <url>${nexusproxy}/content/repositories/releases/</url>
483         </repository>
484         <snapshotRepository>
485             <id>ecomp-snapshots</id>
486             <name>ECOMP Snapshot Repository</name>
487             <url>${nexusproxy}/content/repositories/snapshots/</url>
488         </snapshotRepository>
489         <site>
490             <id>ecomp-javadoc</id>
491             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
492         </site>
493     </distributionManagement>
494 </project>