Fix aggregate-vnf search index population
[aai/data-router.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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23    <modelVersion>4.0.0</modelVersion>
24
25    <parent>
26       <groupId>org.springframework.boot</groupId>
27       <artifactId>spring-boot-starter-parent</artifactId>
28       <version>1.5.15.RELEASE</version>
29       <relativePath />
30    </parent>
31    <groupId>org.onap.aai.data-router</groupId>
32    <artifactId>data-router</artifactId>
33    <version>1.3.0-SNAPSHOT</version>
34    <name>aai-data-router</name>
35
36    <properties>
37       <java.version>1.8</java.version>
38       <camel-spring-boot.version>2.21.1</camel-spring-boot.version>
39       <docker.location>${basedir}/target</docker.location>
40       <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
41       <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
42          property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
43          version, THIS will be used as your directory structure. If you do NOT want
44          this, simply remove the "-SNAPSHOT" from your <version> declaration at the
45          top of pom.xml -->
46       <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
47       <!-- For SOA Cloud Installation -->
48       <installOwnerUser>aaiadmin</installOwnerUser>
49       <installOwnerGroup>aaiadmin</installOwnerGroup>
50       <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
51
52       <!-- Port Selection. A value of 0 will allow for dynamic port selection.
53          For local testing, you may choose to hardcode this value to something like
54          8080 -->
55       <serverPort>0</serverPort>
56       <sslport>9502</sslport>
57
58       <testRouteOffer>workstation</testRouteOffer>
59       <testEnv>DEV</testEnv>
60       <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
61       <nexusproxy>https://nexus.onap.org</nexusproxy>
62       <!-- Sonar Properties -->
63       <sonar.language>java</sonar.language>
64       <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
65       <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
66       <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
67       <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
68       <sonar.projectVersion>${project.version}</sonar.projectVersion>
69       <logback.version>1.2.3</logback.version>
70       <version.com.google.guava>26.0-jre</version.com.google.guava>
71    </properties>
72
73    <dependencies>
74     <dependency>
75             <groupId>ch.qos.logback</groupId>
76             <artifactId>logback-core</artifactId>
77             <version>${logback.version}</version>
78         </dependency>
79         <dependency>
80             <groupId>ch.qos.logback</groupId>
81             <artifactId>logback-classic</artifactId>
82             <version>${logback.version}</version>
83         </dependency>
84         <dependency>
85             <groupId>ch.qos.logback</groupId>
86             <artifactId>logback-access</artifactId>
87             <version>${logback.version}</version>
88         </dependency>
89       <dependency>
90          <groupId>org.apache.camel</groupId>
91          <artifactId>camel-spring-boot-starter</artifactId>
92       </dependency>
93       <dependency>
94          <groupId>org.apache.camel</groupId>
95          <artifactId>camel-core</artifactId>
96          <version>${camel-spring-boot.version}</version>
97       </dependency>
98       <dependency>
99          <groupId>org.apache.camel</groupId>
100          <artifactId>camel-servlet-starter</artifactId>
101       </dependency>
102       <dependency>
103          <groupId>org.apache.camel</groupId>
104          <artifactId>camel-cxf</artifactId>
105          <version>${camel-spring-boot.version}</version>
106       </dependency>
107       <!-- Spring dependencies -->
108       <dependency>
109          <groupId>org.springframework.boot</groupId>
110          <artifactId>spring-boot-starter-web</artifactId>
111
112       </dependency>
113       <dependency>
114          <groupId>org.springframework.boot</groupId>
115          <artifactId>spring-boot-starter</artifactId>
116       </dependency>
117       <dependency>
118          <groupId>org.springframework.boot</groupId>
119          <artifactId>spring-boot-starter-actuator</artifactId>
120       </dependency>
121       <dependency>
122          <groupId>javax.ws.rs</groupId>
123          <artifactId>javax.ws.rs-api</artifactId>
124          <version>2.1</version>
125       </dependency>
126       <dependency>
127          <groupId>org.powermock</groupId>
128          <artifactId>powermock-module-junit4</artifactId>
129          <version>1.6.2</version>
130          <scope>test</scope>
131       </dependency>
132
133      <dependency>
134        <groupId>org.assertj</groupId>
135        <artifactId>assertj-core</artifactId>
136        <version>3.10.0</version>
137        <scope>test</scope>
138      </dependency>
139       <dependency>
140          <groupId>org.powermock</groupId>
141          <artifactId>powermock-api-mockito</artifactId>
142          <version>1.6.2</version>
143          <scope>test</scope>
144       </dependency>
145
146       <dependency>
147          <groupId>org.powermock</groupId>
148          <artifactId>powermock-module-javaagent</artifactId>
149          <version>1.6.2</version>
150          <scope>test</scope>
151       </dependency>
152
153       <dependency>
154          <groupId>org.powermock</groupId>
155          <artifactId>powermock-module-junit4-rule-agent</artifactId>
156          <version>1.6.2</version>
157          <scope>test</scope>
158       </dependency>
159       <dependency>
160                   <groupId>org.dom4j</groupId>
161                   <artifactId>dom4j</artifactId>
162                   <scope>provided</scope>
163                   <version>2.1.1</version>
164           </dependency>
165
166       <dependency>
167          <groupId>com.att.aft</groupId>
168          <artifactId>dme2</artifactId>
169          <version>3.1.200</version>
170          <scope>provided</scope>
171       </dependency>
172       <!--<dependency>-->
173          <!--<groupId>org.onap.aai.aai-common</groupId>-->
174          <!--<artifactId>aai-schema</artifactId>-->
175          <!--<version>1.3.0-SNAPSHOT</version>-->
176       <!--</dependency>-->
177       <!--<dependency>-->
178         <!--<groupId>org.onap.aai.aai-common</groupId>-->
179          <!--<artifactId>aai-schema-ingest</artifactId>-->
180          <!--<version>1.2.2</version>-->
181          <!--<exclusions>-->
182              <!--<exclusion>-->
183                  <!--<groupId>com.google.guava</groupId>-->
184                  <!--<artifactId>guava</artifactId>-->
185              <!--</exclusion>-->
186          <!--</exclusions>-->
187       <!--</dependency>-->
188       <dependency>
189          <groupId>org.onap.aai.router-core</groupId>
190          <artifactId>router-core</artifactId>
191          <version>1.3.0-SNAPSHOT</version>
192       </dependency>
193
194       <dependency>
195          <groupId>org.json</groupId>
196          <artifactId>json</artifactId>
197       </dependency>
198
199       <dependency>
200          <groupId>com.google.code.gson</groupId>
201          <artifactId>gson</artifactId>
202          <version>2.6.2</version>
203       </dependency>
204
205       <dependency>
206          <groupId>org.eclipse.persistence</groupId>
207          <artifactId>eclipselink</artifactId>
208          <version>2.6.2</version>
209       </dependency>
210
211       <dependency>
212          <groupId>org.onap.aai.logging-service</groupId>
213          <artifactId>common-logging</artifactId>
214          <version>1.2.2</version>
215       </dependency>
216
217       <dependency>
218          <groupId>org.onap.aai.logging-service</groupId>
219          <artifactId>logging-api</artifactId>
220          <version>1.1.0</version>
221       </dependency>
222
223       <dependency>
224          <groupId>org.onap.aai</groupId>
225          <artifactId>rest-client</artifactId>
226          <version>1.1.0</version>
227       </dependency>
228
229     <dependency>
230         <groupId>com.google.guava</groupId>
231         <artifactId>guava</artifactId>
232         <version>${version.com.google.guava}</version>
233       </dependency>
234
235    </dependencies>
236
237    <build>
238       <finalName>${project.artifactId}</finalName>
239       <plugins>
240         <!-- jacoco-maven-plugin provides the basic report creation during unit testing, such as code-coverage, sonar, etc. -->
241          <plugin>
242             <groupId>org.jacoco</groupId>
243             <artifactId>jacoco-maven-plugin</artifactId>
244             <executions>
245                <!-- Prepares the property pointing to the JaCoCo runtime agent which
246                     is passed as VM argument when Maven the Surefire plugin is executed. -->
247                <execution>
248                   <id>pre-unit-test</id>
249                   <goals>
250                      <goal>prepare-agent</goal>
251                   </goals>
252                   <configuration>
253                      <!-- Sets the path to the file which contains the execution data. -->
254                      <destFile>${sonar.jacoco.reportPath}</destFile>
255                      <propertyName>surefireArgLine</propertyName>
256                   </configuration>
257                </execution>
258                <!-- Ensures that the code coverage report for unit tests is created
259                     after unit tests have been run. -->
260                <execution>
261                   <id>post-unit-test</id>
262                   <phase>test</phase>
263                   <goals>
264                      <goal>report</goal>
265                   </goals>
266                   <configuration>
267                      <!-- Sets the path to the file which contains the execution data. -->
268                      <dataFile>${sonar.jacoco.reportPath}</dataFile>
269                      <!-- Sets the output directory for the code coverage report. -->
270                      <outputDirectory>${jacoco.path}</outputDirectory>
271                   </configuration>
272                </execution>
273                <!-- Prepares the property pointing to the JaCoCo runtime agent which
274                     is passed as VM argument when Maven the Failsafe plugin is executed. -->
275                <execution>
276                   <id>pre-integration-test</id>
277                   <phase>pre-integration-test</phase>
278                   <goals>
279                      <goal>prepare-agent</goal>
280                   </goals>
281                   <configuration>
282                      <!-- Sets the path to the file which contains the execution data. -->
283                      <destFile>${sonar.jacoco.itReportPath}</destFile>
284                      <!-- Sets the name of the property containing the settings for JaCoCo
285                           runtime agent. -->
286                      <propertyName>failsafeArgLine</propertyName>
287                   </configuration>
288                </execution>
289                <!-- Ensures that the code coverage report for integration tests after
290                     integration tests have been run. -->
291                <execution>
292                   <id>post-integration-test</id>
293                   <phase>post-integration-test</phase>
294                   <goals>
295                      <goal>report</goal>
296                   </goals>
297                   <configuration>
298                      <!-- Sets the path to the file which contains the execution data. -->
299                      <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
300                      <!-- Sets the output directory for the code coverage report. -->
301                      <outputDirectory>${jacoco.itPath}</outputDirectory>
302                   </configuration>
303                </execution>
304             </executions>
305          </plugin>
306          <!-- Checkstyle plugin - used to report on compliance with -->
307          <!-- the Google style guide. -->
308          <plugin>
309             <groupId>org.apache.maven.plugins</groupId>
310             <artifactId>maven-site-plugin</artifactId>
311             <version>3.3</version>
312             <configuration>
313                <reportPlugins>
314                   <plugin>
315                      <groupId>org.apache.maven.plugins</groupId>
316                      <artifactId>maven-checkstyle-plugin</artifactId>
317                      <version>2.17</version>
318                      <reportSets>
319                         <reportSet>
320                            <reports>
321                               <report>checkstyle</report>
322                            </reports>
323                         </reportSet>
324                      </reportSets>
325                   </plugin>
326                </reportPlugins>
327             </configuration>
328          </plugin>
329          <plugin>
330             <groupId>org.springframework.boot</groupId>
331             <artifactId>spring-boot-maven-plugin</artifactId>
332          </plugin>
333          <plugin>
334             <groupId>org.apache.maven.plugins</groupId>
335             <artifactId>maven-resources-plugin</artifactId>
336             <version>2.7</version>
337             <executions>
338                <execution>
339                   <id>copy-docker-file</id>
340                   <phase>package</phase>
341                   <goals>
342                      <goal>copy-resources</goal>
343                   </goals>
344                   <configuration>
345                      <outputDirectory>target</outputDirectory>
346                      <overwrite>true</overwrite>
347                      <resources>
348                         <resource>
349                            <directory>${basedir}/src/main/docker</directory>
350                            <filtering>true</filtering>
351                            <includes>
352                               <include>**/*</include>
353                            </includes>
354                         </resource>
355                         <resource>
356                            <directory>${basedir}</directory>
357                            <filtering>true</filtering>
358                            <includes>
359                               <include>bundleconfig-local/**</include>
360                            </includes>
361                         </resource>
362                         <resource>
363                            <directory>${basedir}/src/main/bin/</directory>
364                            <filtering>true</filtering>
365                            <includes>
366                               <include>**/*</include>
367                            </includes>
368                         </resource>
369                         <resource>
370                            <directory>${basedir}/config</directory>
371                            <filtering>true</filtering>
372                            <includes>
373                               <include>schema/**</include>
374                            </includes>
375                         </resource>
376                      </resources>
377                   </configuration>
378                </execution>
379             </executions>
380          </plugin>
381          <plugin>
382             <groupId>org.apache.maven.plugins</groupId>
383             <artifactId>maven-dependency-plugin</artifactId>
384             <executions>
385               <execution>
386                 <id>unpack</id>
387                 <phase>prepare-package</phase>
388                 <goals>
389                   <goal>unpack</goal>
390                 </goals>
391                 <configuration>
392                   <artifactItems>
393                     <artifactItem>
394                       <groupId>org.onap.aai.aai-common</groupId>
395                       <artifactId>aai-schema</artifactId>
396                       <version>1.2.2</version>
397                       <type>jar</type>
398                       <includes>oxm/</includes>
399                       <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
400                     </artifactItem>
401                   </artifactItems>
402                   </configuration>
403                </execution>
404             </executions>
405          </plugin>
406          <plugin>
407             <groupId>com.spotify</groupId>
408             <artifactId>docker-maven-plugin</artifactId>
409             <version>0.4.11</version>
410             <configuration>
411                <verbose>true</verbose>
412                <serverId>docker-hub</serverId>
413                <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
414                <dockerDirectory>${docker.location}</dockerDirectory>
415                <imageTags>
416                   <imageTag>latest</imageTag>
417                </imageTags>
418                <forceTags>true</forceTags>
419             </configuration>
420          </plugin>
421          <!-- license plugin -->
422          <!-- Uncomment this to add a license header to every source file
423   <plugin>
424     <groupId>com.mycila</groupId>
425     <artifactId>license-maven-plugin</artifactId>
426     <version>3.0</version>
427     <configuration>
428       <header>License.txt</header>
429       <includes>
430         <include>src/main/java/**</include>
431         <include>src/test/java/**</include>
432       </includes>
433     </configuration>
434     <executions>
435       <execution>
436         <goals>
437           <goal>format</goal>
438         </goals>
439         <phase>process-sources</phase>
440       </execution>
441     </executions>
442   </plugin> -->
443          <plugin>
444             <groupId>org.sonatype.plugins</groupId>
445             <artifactId>nexus-staging-maven-plugin</artifactId>
446             <version>1.6.7</version>
447             <extensions>true</extensions>
448             <configuration>
449                <nexusUrl>${nexusproxy}</nexusUrl>
450                <stagingProfileId>176c31dfe190a</stagingProfileId>
451                <serverId>ecomp-staging</serverId>
452             </configuration>
453          </plugin>
454          <plugin>
455             <groupId>org.apache.maven.plugins</groupId>
456             <artifactId>maven-deploy-plugin</artifactId>
457             <configuration>
458                <skip>true</skip>
459             </configuration>
460          </plugin>
461          <plugin>
462             <groupId>org.codehaus.mojo</groupId>
463             <artifactId>sonar-maven-plugin</artifactId>
464             <version>3.2</version>
465          </plugin>
466          <plugin>
467             <groupId>org.jacoco</groupId>
468             <artifactId>jacoco-maven-plugin</artifactId>
469             <version>0.7.7.201606060606</version>
470             <configuration>
471                <dumpOnExit>true</dumpOnExit>
472             </configuration>
473             <executions>
474                <execution>
475                   <id>jacoco-initialize-unit-tests</id>
476                   <goals>
477                      <goal>prepare-agent</goal>
478                   </goals>
479                   <configuration>
480                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec
481                      </destFile>
482                   </configuration>
483                </execution>
484             </executions>
485          </plugin>
486
487       </plugins>
488    </build>
489
490
491    <dependencyManagement>
492       <dependencies>
493          <dependency>
494             <groupId>org.apache.camel</groupId>
495             <artifactId>camel-spring-boot-dependencies</artifactId>
496             <version>${camel-spring-boot.version}</version>
497             <type>pom</type>
498             <scope>import</scope>
499          </dependency>
500          <dependency>
501             <groupId>org.apache.httpcomponents</groupId>
502             <artifactId>httpclient</artifactId>
503             <version>4.5.5</version>
504          </dependency>
505          <dependency>
506             <groupId>org.apache.httpcomponents</groupId>
507             <artifactId>httpcore</artifactId>
508             <version>4.4.1</version>
509          </dependency>
510          <dependency>
511             <groupId>org.json</groupId>
512             <artifactId>json</artifactId>
513             <version>20131018</version>
514          </dependency>
515       </dependencies>
516    </dependencyManagement>
517    <distributionManagement>
518       <repository>
519          <id>ecomp-releases</id>
520          <name>ECOMP Release Repository</name>
521          <url>${nexusproxy}/content/repositories/releases/</url>
522       </repository>
523       <snapshotRepository>
524          <id>ecomp-snapshots</id>
525          <name>ECOMP Snapshot Repository</name>
526          <url>${nexusproxy}/content/repositories/snapshots/</url>
527       </snapshotRepository>
528    </distributionManagement>
529 </project>