Removing AJSC and moving to SpringBoot
[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     </dependencies>
232
233     <repositories>
234         <repository>
235             <id>central</id>
236             <name>Maven 2 repository 2</name>
237             <url>http://repo2.maven.org/maven2/</url>
238         </repository>
239         <repository>
240             <id>ecomp-releases</id>
241             <name>ECOMP Release Repository</name>
242             <url>${nexusproxy}/content/repositories/releases/</url>
243         </repository>
244         <repository>
245             <id>ecomp-snapshots</id>
246             <name>ECOMP Snapshot Repository</name>
247             <url>${nexusproxy}/content/repositories/snapshots/</url>
248         </repository>
249         <repository>
250             <id>ecomp-staging</id>
251             <name>ECOMP Staging Repository</name>
252             <url>${nexusproxy}/content/repositories/staging/</url>
253         </repository>
254     </repositories>
255
256     <build>
257       <plugins>
258             <plugin>
259           <groupId>org.springframework.boot</groupId>
260           <artifactId>spring-boot-maven-plugin</artifactId>
261         </plugin>
262             <!-- Checkstyle plugin - used to report on compliance with -->
263             <!-- the Google style guide. -->
264             <plugin>
265                 <groupId>org.apache.maven.plugins</groupId>
266                 <artifactId>maven-site-plugin</artifactId>
267                 <configuration>
268                     <reportPlugins>
269                         <plugin>
270                             <groupId>org.apache.maven.plugins</groupId>
271                             <artifactId>maven-checkstyle-plugin</artifactId>
272                             <version>2.17</version>
273                             <reportSets>
274                                 <reportSet>
275                                     <reports>
276                                         <report>checkstyle</report>
277                                     </reports>
278                                 </reportSet>
279                             </reportSets>
280                         </plugin>
281                     </reportPlugins>
282                 </configuration>
283             </plugin>
284             <!-- This plugin overrides the compiler settings to use java 1.8 -->
285             <plugin>
286                 <groupId>org.apache.maven.plugins</groupId>
287                 <artifactId>maven-compiler-plugin</artifactId>
288                 <version>3.1</version>
289                 <configuration>
290                     <compilerId>groovy-eclipse-compiler</compilerId>
291                     <verbose>true</verbose>
292                     <source>1.8</source>
293                     <target>1.8</target>
294                 </configuration>
295                 <dependencies>
296                     <dependency>
297                         <groupId>org.codehaus.groovy</groupId>
298                         <artifactId>groovy-eclipse-compiler</artifactId>
299                         <version>2.9.0-01</version>
300                     </dependency>
301                     <dependency>
302                         <groupId>org.codehaus.groovy</groupId>
303                         <artifactId>groovy-eclipse-batch</artifactId>
304                         <version>2.3.4-01</version>
305                     </dependency>
306                 </dependencies>
307             </plugin>
308             <plugin>
309                 <groupId>com.spotify</groupId>
310                 <artifactId>docker-maven-plugin</artifactId>
311                 <version>0.4.11</version>
312                 <configuration>
313                     <verbose>true</verbose>
314                     <serverId>docker-hub</serverId>
315                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
316                     <dockerDirectory>${docker.location}</dockerDirectory>
317                     <imageTags>
318                         <imageTag>latest</imageTag>
319                     </imageTags>
320                     <forceTags>true</forceTags>
321                 </configuration>
322             </plugin>
323             <plugin>
324                 <groupId>org.sonatype.plugins</groupId>
325                 <artifactId>nexus-staging-maven-plugin</artifactId>
326                 <version>1.6.7</version>
327                 <extensions>true</extensions>
328                 <configuration>
329                     <nexusUrl>${nexusproxy}</nexusUrl>
330                     <stagingProfileId>176c31dfe190a</stagingProfileId>
331                     <serverId>ecomp-staging</serverId>
332                 </configuration>
333             </plugin>
334
335             <!-- This plugin is used to generate Java POJO's from json format schema
336                 file. -->
337             <plugin>
338                 <groupId>org.jsonschema2pojo</groupId>
339                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
340                 <version>0.4.26</version>
341                 <configuration>
342                     <addCompileSourceRoot>true</addCompileSourceRoot>
343                     <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
344                     <outputDirectory>${generatedSourceDir}</outputDirectory>
345                     <targetPackage>org.onap.aai.sa.rest</targetPackage>
346                 </configuration>
347                 <executions>
348                     <execution>
349                         <goals>
350                             <goal>generate</goal>
351                         </goals>
352                     </execution>
353                 </executions>
354             </plugin>
355
356             <plugin>
357                 <groupId>org.apache.maven.plugins</groupId>
358                 <artifactId>maven-resources-plugin</artifactId>
359                 <version>2.7</version>
360                 <executions>
361                     <execution>
362                         <id>copy-docker-file</id>
363                         <phase>package</phase>
364                         <goals>
365                             <goal>copy-resources</goal>
366                         </goals>
367                         <configuration>
368                             <outputDirectory>target</outputDirectory>
369                             <overwrite>true</overwrite>
370                             <resources>
371                                 <resource>
372                                     <directory>${basedir}/src/main/docker</directory>
373                                     <filtering>true</filtering>
374                                     <includes>
375                                         <include>**/*</include>
376                                     </includes>
377                                 </resource>
378                                 <resource>
379                                     <directory>${basedir}/src/main/bin/</directory>
380                                 </resource>
381                             </resources>
382                         </configuration>
383                     </execution>
384                 </executions>
385             </plugin>
386             <!-- license plugin -->
387             <plugin>
388                 <groupId>com.mycila</groupId>
389                 <artifactId>license-maven-plugin</artifactId>
390                 <version>3.0</version>
391                 <configuration>
392                     <header>License.txt</header>
393                     <includes>
394                         <include>src/main/java/**</include>
395                         <include>src/test/java/**</include>
396                     </includes>
397                 </configuration>
398                 <executions>
399                     <execution>
400                         <goals>
401                             <goal>format</goal>
402                         </goals>
403                         <phase>process-sources</phase>
404                     </execution>
405                 </executions>
406             </plugin>
407
408             <plugin>
409                 <groupId>org.apache.maven.plugins</groupId>
410                 <artifactId>maven-deploy-plugin</artifactId>
411                 <configuration>
412                     <skip>true</skip>
413                 </configuration>
414             </plugin>
415             <plugin>
416                 <groupId>org.codehaus.mojo</groupId>
417                 <artifactId>sonar-maven-plugin</artifactId>
418                 <version>3.2</version>
419             </plugin>
420             <plugin>
421                 <groupId>org.jacoco</groupId>
422                 <artifactId>jacoco-maven-plugin</artifactId>
423                 <version>0.7.7.201606060606</version>
424                 <configuration>
425                     <dumpOnExit>true</dumpOnExit>
426                 </configuration>
427                 <executions>
428                     <execution>
429                         <id>jacoco-initialize-unit-tests</id>
430                         <goals>
431                             <goal>prepare-agent</goal>
432                         </goals>
433                         <configuration>
434                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
435                             </destFile>
436                             <!-- <append>true</append> -->
437                         </configuration>
438                     </execution>
439                 </executions>
440             </plugin>
441
442             <!-- This plugin adds the generated sources directory to the clean lifecycle
443                 so that automatically generated code will get cleaned up properly. -->
444             <plugin>
445                 <artifactId>maven-clean-plugin</artifactId>
446                 <version>3.0.0</version>
447                 <configuration>
448                     <filesets>
449                         <fileset>
450                             <directory>${generatedSourceDir}</directory>
451                         </fileset>
452                     </filesets>
453                 </configuration>
454             </plugin>
455         </plugins>
456     </build>
457     <distributionManagement>
458         <repository>
459             <id>ecomp-releases</id>
460             <name>ECOMP Release Repository</name>
461             <url>${nexusproxy}/content/repositories/releases/</url>
462         </repository>
463         <snapshotRepository>
464             <id>ecomp-snapshots</id>
465             <name>ECOMP Snapshot Repository</name>
466             <url>${nexusproxy}/content/repositories/snapshots/</url>
467         </snapshotRepository>
468         <site>
469             <id>ecomp-javadoc</id>
470             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
471         </site>
472     </distributionManagement>
473 </project>