Merge "Add additional fields validation report"
[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.20.0</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       <camel-spring-boot.version>2.22.0</camel-spring-boot.version>
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
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>dom4j</groupId>
162          <artifactId>dom4j</artifactId>
163          <version>1.6.1</version>
164          <scope>provided</scope>
165       </dependency>
166
167       <dependency>
168          <groupId>com.att.aft</groupId>
169          <artifactId>dme2</artifactId>
170          <version>3.1.200</version>
171          <scope>provided</scope>
172       </dependency>
173       <!--<dependency>-->
174          <!--<groupId>org.onap.aai.aai-common</groupId>-->
175          <!--<artifactId>aai-schema</artifactId>-->
176          <!--<version>1.3.0-SNAPSHOT</version>-->
177       <!--</dependency>-->
178       <!--<dependency>-->
179         <!--<groupId>org.onap.aai.aai-common</groupId>-->
180          <!--<artifactId>aai-schema-ingest</artifactId>-->
181          <!--<version>1.2.2</version>-->
182          <!--<exclusions>-->
183              <!--<exclusion>-->
184                  <!--<groupId>com.google.guava</groupId>-->
185                  <!--<artifactId>guava</artifactId>-->
186              <!--</exclusion>-->
187          <!--</exclusions>-->
188       <!--</dependency>-->
189       <dependency>
190          <groupId>org.onap.aai.router-core</groupId>
191          <artifactId>router-core</artifactId>
192          <version>1.3.0-SNAPSHOT</version>
193       </dependency>
194
195       <dependency>
196          <groupId>org.json</groupId>
197          <artifactId>json</artifactId>
198       </dependency>
199
200       <dependency>
201          <groupId>com.google.code.gson</groupId>
202          <artifactId>gson</artifactId>
203          <version>2.6.2</version>
204       </dependency>
205
206       <dependency>
207          <groupId>org.eclipse.persistence</groupId>
208          <artifactId>eclipselink</artifactId>
209          <version>2.6.2</version>
210       </dependency>
211
212       <dependency>
213          <groupId>org.onap.aai.logging-service</groupId>
214          <artifactId>common-logging</artifactId>
215          <version>1.2.2</version>
216       </dependency>
217
218       <dependency>
219          <groupId>org.onap.aai.logging-service</groupId>
220          <artifactId>logging-api</artifactId>
221          <version>1.1.0</version>
222       </dependency>
223
224       <dependency>
225          <groupId>org.onap.aai</groupId>
226          <artifactId>rest-client</artifactId>
227          <version>1.1.0</version>
228       </dependency>
229
230     <dependency>
231         <groupId>com.google.guava</groupId>
232         <artifactId>guava</artifactId>
233         <version>${version.com.google.guava}</version>
234       </dependency>
235
236    </dependencies>
237
238    <build>
239       <finalName>${project.artifactId}</finalName>
240       <plugins>
241          <!-- Checkstyle plugin - used to report on compliance with -->
242          <!-- the Google style guide. -->
243          <plugin>
244             <groupId>org.apache.maven.plugins</groupId>
245             <artifactId>maven-site-plugin</artifactId>
246             <version>3.3</version>
247             <configuration>
248                <reportPlugins>
249                   <plugin>
250                      <groupId>org.apache.maven.plugins</groupId>
251                      <artifactId>maven-checkstyle-plugin</artifactId>
252                      <version>2.17</version>
253                      <reportSets>
254                         <reportSet>
255                            <reports>
256                               <report>checkstyle</report>
257                            </reports>
258                         </reportSet>
259                      </reportSets>
260                   </plugin>
261                </reportPlugins>
262             </configuration>
263          </plugin>
264          <plugin>
265             <groupId>org.springframework.boot</groupId>
266             <artifactId>spring-boot-maven-plugin</artifactId>
267          </plugin>
268          <plugin>
269             <groupId>org.apache.maven.plugins</groupId>
270             <artifactId>maven-resources-plugin</artifactId>
271             <version>2.7</version>
272             <executions>
273                <execution>
274                   <id>copy-docker-file</id>
275                   <phase>package</phase>
276                   <goals>
277                      <goal>copy-resources</goal>
278                   </goals>
279                   <configuration>
280                      <outputDirectory>target</outputDirectory>
281                      <overwrite>true</overwrite>
282                      <resources>
283                         <resource>
284                            <directory>${basedir}/src/main/docker</directory>
285                            <filtering>true</filtering>
286                            <includes>
287                               <include>**/*</include>
288                            </includes>
289                         </resource>
290                         <resource>
291                            <directory>${basedir}</directory>
292                            <filtering>true</filtering>
293                            <includes>
294                               <include>bundleconfig-local/**</include>
295                            </includes>
296                         </resource>
297                         <resource>
298                            <directory>${basedir}/src/main/bin/</directory>
299                            <filtering>true</filtering>
300                            <includes>
301                               <include>**/*</include>
302                            </includes>
303                         </resource>
304                         <resource>
305                            <directory>${basedir}/config</directory>
306                            <filtering>true</filtering>
307                            <includes>
308                               <include>schema/**</include>
309                            </includes>
310                         </resource>
311                      </resources>
312                   </configuration>
313                </execution>
314             </executions>
315          </plugin>
316          <plugin>
317             <groupId>org.apache.maven.plugins</groupId>
318             <artifactId>maven-dependency-plugin</artifactId>
319             <executions>
320               <execution>
321                 <id>unpack</id>
322                 <phase>prepare-package</phase>
323                 <goals>
324                   <goal>unpack</goal>
325                 </goals>
326                 <configuration>
327                   <artifactItems>
328                     <artifactItem>
329                       <groupId>org.onap.aai.aai-common</groupId>
330                       <artifactId>aai-schema</artifactId>
331                       <version>1.2.2</version>
332                       <type>jar</type>
333                       <includes>oxm/</includes>
334                       <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
335                     </artifactItem>
336                   </artifactItems>
337                   </configuration>
338                </execution>
339             </executions>
340          </plugin>
341          <plugin>
342             <groupId>com.spotify</groupId>
343             <artifactId>docker-maven-plugin</artifactId>
344             <version>0.4.11</version>
345             <configuration>
346                <verbose>true</verbose>
347                <serverId>docker-hub</serverId>
348                <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
349                <dockerDirectory>${docker.location}</dockerDirectory>
350                <imageTags>
351                   <imageTag>latest</imageTag>
352                </imageTags>
353                <forceTags>true</forceTags>
354             </configuration>
355          </plugin>
356          <!-- license plugin -->
357          <!-- Uncomment this to add a license header to every source file
358   <plugin>
359     <groupId>com.mycila</groupId>
360     <artifactId>license-maven-plugin</artifactId>
361     <version>3.0</version>
362     <configuration>
363       <header>License.txt</header>
364       <includes>
365         <include>src/main/java/**</include>
366         <include>src/test/java/**</include>
367       </includes>
368     </configuration>
369     <executions>
370       <execution>
371         <goals>
372           <goal>format</goal>
373         </goals>
374         <phase>process-sources</phase>
375       </execution>
376     </executions>
377   </plugin> -->
378          <plugin>
379             <groupId>org.sonatype.plugins</groupId>
380             <artifactId>nexus-staging-maven-plugin</artifactId>
381             <version>1.6.7</version>
382             <extensions>true</extensions>
383             <configuration>
384                <nexusUrl>${nexusproxy}</nexusUrl>
385                <stagingProfileId>176c31dfe190a</stagingProfileId>
386                <serverId>ecomp-staging</serverId>
387             </configuration>
388          </plugin>
389          <plugin>
390             <groupId>org.apache.maven.plugins</groupId>
391             <artifactId>maven-deploy-plugin</artifactId>
392             <configuration>
393                <skip>true</skip>
394             </configuration>
395          </plugin>
396          <plugin>
397             <groupId>org.codehaus.mojo</groupId>
398             <artifactId>sonar-maven-plugin</artifactId>
399             <version>3.2</version>
400          </plugin>
401          <plugin>
402             <groupId>org.jacoco</groupId>
403             <artifactId>jacoco-maven-plugin</artifactId>
404             <version>0.7.7.201606060606</version>
405             <configuration>
406                <dumpOnExit>true</dumpOnExit>
407             </configuration>
408             <executions>
409                <execution>
410                   <id>jacoco-initialize-unit-tests</id>
411                   <goals>
412                      <goal>prepare-agent</goal>
413                   </goals>
414                   <configuration>
415                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec
416                      </destFile>
417                   </configuration>
418                </execution>
419             </executions>
420          </plugin>
421
422       </plugins>
423    </build>
424
425
426    <dependencyManagement>
427       <dependencies>
428          <dependency>
429             <groupId>org.apache.camel</groupId>
430             <artifactId>camel-spring-boot-dependencies</artifactId>
431             <version>${camel-spring-boot.version}</version>
432             <type>pom</type>
433             <scope>import</scope>
434          </dependency>
435          <dependency>
436             <groupId>org.apache.httpcomponents</groupId>
437             <artifactId>httpclient</artifactId>
438             <version>4.5.5</version>
439          </dependency>
440          <dependency>
441             <groupId>org.apache.httpcomponents</groupId>
442             <artifactId>httpcore</artifactId>
443             <version>4.4.1</version>
444          </dependency>
445          <dependency>
446             <groupId>org.json</groupId>
447             <artifactId>json</artifactId>
448             <version>20131018</version>
449          </dependency>
450       </dependencies>
451    </dependencyManagement>
452    <distributionManagement>
453       <repository>
454          <id>ecomp-releases</id>
455          <name>ECOMP Release Repository</name>
456          <url>${nexusproxy}/content/repositories/releases/</url>
457       </repository>
458       <snapshotRepository>
459          <id>ecomp-snapshots</id>
460          <name>ECOMP Snapshot Repository</name>
461          <url>${nexusproxy}/content/repositories/snapshots/</url>
462       </snapshotRepository>
463    </distributionManagement>
464 </project>