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