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