Update to 1.3.3 for release
[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.18.RELEASE</version>
29       <relativePath />
30    </parent>
31    <groupId>org.onap.aai.data-router</groupId>
32    <artifactId>data-router</artifactId>
33    <version>1.3.3-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>16.0.1</version.com.google.guava>
71       <shemaUnpackVersion>onap</shemaUnpackVersion>
72    </properties>
73
74    <dependencies>
75     <dependency>
76             <groupId>ch.qos.logback</groupId>
77             <artifactId>logback-core</artifactId>
78             <version>${logback.version}</version>
79         </dependency>
80         <dependency>
81             <groupId>ch.qos.logback</groupId>
82             <artifactId>logback-classic</artifactId>
83             <version>${logback.version}</version>
84         </dependency>
85         <dependency>
86             <groupId>ch.qos.logback</groupId>
87             <artifactId>logback-access</artifactId>
88             <version>${logback.version}</version>
89         </dependency>
90       <dependency>
91          <groupId>org.apache.camel</groupId>
92          <artifactId>camel-spring-boot-starter</artifactId>
93       </dependency>
94       <dependency>
95          <groupId>org.apache.camel</groupId>
96          <artifactId>camel-core</artifactId>
97          <version>${camel-spring-boot.version}</version>
98       </dependency>
99       <dependency>
100          <groupId>org.apache.camel</groupId>
101          <artifactId>camel-servlet-starter</artifactId>
102       </dependency>
103       <dependency>
104          <groupId>org.apache.camel</groupId>
105          <artifactId>camel-cxf</artifactId>
106          <version>${camel-spring-boot.version}</version>
107       </dependency>
108       <!-- Spring dependencies -->
109       <dependency>
110          <groupId>org.springframework.boot</groupId>
111          <artifactId>spring-boot-starter-web</artifactId>
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-oss</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.1</version>
192       </dependency>
193
194       <dependency>
195          <groupId>org.onap.aai.aai-common</groupId>
196          <artifactId>aai-schema-ingest</artifactId>
197          <version>1.3.0</version>
198       </dependency>
199       
200       <dependency>
201          <groupId>org.json</groupId>
202          <artifactId>json</artifactId>
203       </dependency>
204
205       <dependency>
206          <groupId>com.google.code.gson</groupId>
207          <artifactId>gson</artifactId>
208          <version>2.6.2</version>
209       </dependency>
210
211       <dependency>
212          <groupId>org.eclipse.persistence</groupId>
213          <artifactId>eclipselink</artifactId>
214          <version>2.6.2</version>
215       </dependency>
216
217       <dependency>
218          <groupId>org.onap.aai.logging-service</groupId>
219          <artifactId>common-logging</artifactId>
220          <version>1.2.2</version>
221       </dependency>
222
223       <dependency>
224          <groupId>org.onap.aai.logging-service</groupId>
225          <artifactId>logging-api</artifactId>
226          <version>1.1.0</version>
227       </dependency>
228
229       <dependency>
230          <groupId>org.onap.aai</groupId>
231          <artifactId>rest-client</artifactId>
232          <version>1.1.0</version>
233       </dependency>
234
235     <dependency>
236         <groupId>com.google.guava</groupId>
237         <artifactId>guava</artifactId>
238         <version>${version.com.google.guava}</version>
239       </dependency>
240
241    </dependencies>
242
243    <build>
244       <finalName>${project.artifactId}</finalName>
245       <plugins>
246         <!-- jacoco-maven-plugin provides the basic report creation during unit testing, such as code-coverage, sonar, etc. -->
247          <plugin>
248             <groupId>org.jacoco</groupId>
249             <artifactId>jacoco-maven-plugin</artifactId>
250             <executions>
251                <!-- Prepares the property pointing to the JaCoCo runtime agent which
252                     is passed as VM argument when Maven the Surefire plugin is executed. -->
253                <execution>
254                   <id>pre-unit-test</id>
255                   <goals>
256                      <goal>prepare-agent</goal>
257                   </goals>
258                   <configuration>
259                      <!-- Sets the path to the file which contains the execution data. -->
260                      <destFile>${sonar.jacoco.reportPath}</destFile>
261                      <propertyName>surefireArgLine</propertyName>
262                   </configuration>
263                </execution>
264                <!-- Ensures that the code coverage report for unit tests is created
265                     after unit tests have been run. -->
266                <execution>
267                   <id>post-unit-test</id>
268                   <phase>test</phase>
269                   <goals>
270                      <goal>report</goal>
271                   </goals>
272                   <configuration>
273                      <!-- Sets the path to the file which contains the execution data. -->
274                      <dataFile>${sonar.jacoco.reportPath}</dataFile>
275                      <!-- Sets the output directory for the code coverage report. -->
276                      <outputDirectory>${jacoco.path}</outputDirectory>
277                   </configuration>
278                </execution>
279                <!-- Prepares the property pointing to the JaCoCo runtime agent which
280                     is passed as VM argument when Maven the Failsafe plugin is executed. -->
281                <execution>
282                   <id>pre-integration-test</id>
283                   <phase>pre-integration-test</phase>
284                   <goals>
285                      <goal>prepare-agent</goal>
286                   </goals>
287                   <configuration>
288                      <!-- Sets the path to the file which contains the execution data. -->
289                      <destFile>${sonar.jacoco.itReportPath}</destFile>
290                      <!-- Sets the name of the property containing the settings for JaCoCo
291                           runtime agent. -->
292                      <propertyName>failsafeArgLine</propertyName>
293                   </configuration>
294                </execution>
295                <!-- Ensures that the code coverage report for integration tests after
296                     integration tests have been run. -->
297                <execution>
298                   <id>post-integration-test</id>
299                   <phase>post-integration-test</phase>
300                   <goals>
301                      <goal>report</goal>
302                   </goals>
303                   <configuration>
304                      <!-- Sets the path to the file which contains the execution data. -->
305                      <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
306                      <!-- Sets the output directory for the code coverage report. -->
307                      <outputDirectory>${jacoco.itPath}</outputDirectory>
308                   </configuration>
309                </execution>
310             </executions>
311          </plugin>
312          <!-- Checkstyle plugin - used to report on compliance with -->
313          <!-- the Google style guide. -->
314          <plugin>
315             <groupId>org.apache.maven.plugins</groupId>
316             <artifactId>maven-site-plugin</artifactId>
317             <version>3.3</version>
318             <configuration>
319                <reportPlugins>
320                   <plugin>
321                      <groupId>org.apache.maven.plugins</groupId>
322                      <artifactId>maven-checkstyle-plugin</artifactId>
323                      <version>2.17</version>
324                      <reportSets>
325                         <reportSet>
326                            <reports>
327                               <report>checkstyle</report>
328                            </reports>
329                         </reportSet>
330                      </reportSets>
331                   </plugin>
332                </reportPlugins>
333             </configuration>
334          </plugin>
335          <plugin>
336             <groupId>org.springframework.boot</groupId>
337             <artifactId>spring-boot-maven-plugin</artifactId>
338          </plugin>
339          <plugin>
340             <groupId>org.apache.maven.plugins</groupId>
341             <artifactId>maven-resources-plugin</artifactId>
342             <version>2.7</version>
343             <executions>
344                <execution>
345                   <id>copy-docker-file</id>
346                   <phase>package</phase>
347                   <goals>
348                      <goal>copy-resources</goal>
349                   </goals>
350                   <configuration>
351                      <outputDirectory>target</outputDirectory>
352                      <overwrite>true</overwrite>
353                      <resources>
354                         <resource>
355                            <directory>${basedir}/src/main/docker</directory>
356                            <filtering>true</filtering>
357                            <includes>
358                               <include>**/*</include>
359                            </includes>
360                         </resource>
361                         <resource>
362                            <directory>${basedir}</directory>
363                            <filtering>true</filtering>
364                            <includes>
365                               <include>bundleconfig-local/**</include>
366                            </includes>
367                         </resource>
368                         <resource>
369                            <directory>${basedir}/src/main/bin/</directory>
370                            <filtering>true</filtering>
371                            <includes>
372                               <include>**/*</include>
373                            </includes>
374                         </resource>
375                         <resource>
376                            <directory>${basedir}/config</directory>
377                            <filtering>true</filtering>
378                            <includes>
379                               <include>schema/**</include>
380                            </includes>
381                         </resource>
382                      </resources>
383                   </configuration>
384                </execution>
385             </executions>
386          </plugin>
387          <plugin>
388             <groupId>org.apache.maven.plugins</groupId>
389             <artifactId>maven-dependency-plugin</artifactId>
390             <executions>
391               <execution>
392                 <id>unpack</id>
393                 <phase>prepare-package</phase>
394                 <goals>
395                   <goal>unpack</goal>
396                 </goals>
397                 <configuration>
398                   <artifactItems>
399                     <artifactItem>
400                       <groupId>org.onap.aai.aai-common</groupId>
401                       <artifactId>aai-schema</artifactId>
402                       <version>1.3.0</version>
403                       <type>jar</type>
404                       <includes>/${shemaUnpackVersion}/oxm/</includes>
405                       <outputDirectory>${project.build.directory}/oxm</outputDirectory>
406                     </artifactItem>
407                   </artifactItems>
408                   </configuration>
409                </execution>
410             </executions>
411          </plugin>
412          <plugin>
413             <groupId>com.spotify</groupId>
414             <artifactId>docker-maven-plugin</artifactId>
415             <version>0.4.11</version>
416             <configuration>
417                <verbose>true</verbose>
418                <serverId>docker-hub</serverId>
419                <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
420                <dockerDirectory>${docker.location}</dockerDirectory>
421                <imageTags>
422                   <imageTag>latest</imageTag>
423                </imageTags>
424                <forceTags>true</forceTags>
425             </configuration>
426          </plugin>
427          <!-- license plugin -->
428          <!-- Uncomment this to add a license header to every source file
429   <plugin>
430     <groupId>com.mycila</groupId>
431     <artifactId>license-maven-plugin</artifactId>
432     <version>3.0</version>
433     <configuration>
434       <header>License.txt</header>
435       <includes>
436         <include>src/main/java/**</include>
437         <include>src/test/java/**</include>
438       </includes>
439     </configuration>
440     <executions>
441       <execution>
442         <goals>
443           <goal>format</goal>
444         </goals>
445         <phase>process-sources</phase>
446       </execution>
447     </executions>
448   </plugin> -->
449          <plugin>
450             <groupId>org.sonatype.plugins</groupId>
451             <artifactId>nexus-staging-maven-plugin</artifactId>
452             <version>1.6.7</version>
453             <extensions>true</extensions>
454             <configuration>
455                <nexusUrl>${nexusproxy}</nexusUrl>
456                <stagingProfileId>176c31dfe190a</stagingProfileId>
457                <serverId>ecomp-staging</serverId>
458             </configuration>
459          </plugin>
460          <plugin>
461             <groupId>org.apache.maven.plugins</groupId>
462             <artifactId>maven-deploy-plugin</artifactId>
463             <configuration>
464                <skip>true</skip>
465             </configuration>
466          </plugin>
467          <plugin>
468             <groupId>org.codehaus.mojo</groupId>
469             <artifactId>sonar-maven-plugin</artifactId>
470             <version>3.2</version>
471          </plugin>
472          <plugin>
473             <groupId>org.jacoco</groupId>
474             <artifactId>jacoco-maven-plugin</artifactId>
475             <version>0.7.7.201606060606</version>
476             <configuration>
477                <dumpOnExit>true</dumpOnExit>
478             </configuration>
479             <executions>
480                <execution>
481                   <id>jacoco-initialize-unit-tests</id>
482                   <goals>
483                      <goal>prepare-agent</goal>
484                   </goals>
485                   <configuration>
486                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec
487                      </destFile>
488                   </configuration>
489                </execution>
490             </executions>
491          </plugin>
492
493       </plugins>
494    </build>
495
496
497    <dependencyManagement>
498       <dependencies>
499          <dependency>
500             <groupId>org.apache.camel</groupId>
501             <artifactId>camel-spring-boot-dependencies</artifactId>
502             <version>${camel-spring-boot.version}</version>
503             <type>pom</type>
504             <scope>import</scope>
505          </dependency>
506          <dependency>
507             <groupId>org.apache.httpcomponents</groupId>
508             <artifactId>httpclient</artifactId>
509             <version>4.5.5</version>
510          </dependency>
511          <dependency>
512             <groupId>org.apache.httpcomponents</groupId>
513             <artifactId>httpcore</artifactId>
514             <version>4.4.1</version>
515          </dependency>
516          <dependency>
517             <groupId>org.json</groupId>
518             <artifactId>json</artifactId>
519             <version>20131018</version>
520          </dependency>
521       </dependencies>
522    </dependencyManagement>
523    <distributionManagement>
524       <repository>
525          <id>ecomp-releases</id>
526          <name>ECOMP Release Repository</name>
527          <url>${nexusproxy}/content/repositories/releases/</url>
528       </repository>
529       <snapshotRepository>
530          <id>ecomp-snapshots</id>
531          <name>ECOMP Snapshot Repository</name>
532          <url>${nexusproxy}/content/repositories/snapshots/</url>
533       </snapshotRepository>
534    </distributionManagement>
535 </project>