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