Upversion data-router after 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.12.RELEASE</version>
29       <relativePath />
30    </parent>
31    <groupId>org.onap.aai.data-router</groupId>
32    <artifactId>data-router</artifactId>
33    <version>1.2.2-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    </properties>
71
72    <dependencies>
73     <dependency>
74             <groupId>ch.qos.logback</groupId>
75             <artifactId>logback-core</artifactId>
76             <version>${logback.version}</version>
77         </dependency>
78         <dependency>
79             <groupId>ch.qos.logback</groupId>
80             <artifactId>logback-classic</artifactId>
81             <version>${logback.version}</version>
82         </dependency>
83         <dependency>
84             <groupId>ch.qos.logback</groupId>
85             <artifactId>logback-access</artifactId>
86             <version>${logback.version}</version>
87         </dependency>
88       <dependency>
89          <groupId>org.apache.camel</groupId>
90          <artifactId>camel-spring-boot-starter</artifactId>
91       </dependency>
92       <dependency>
93          <groupId>org.apache.camel</groupId>
94          <artifactId>camel-core</artifactId>
95          <version>2.20.1</version>
96       </dependency>
97       <dependency>
98          <groupId>org.apache.camel</groupId>
99          <artifactId>camel-servlet-starter</artifactId>
100       </dependency>
101       <dependency>
102          <groupId>org.apache.camel</groupId>
103          <artifactId>camel-cxf</artifactId>
104          <version>2.20.1</version>
105       </dependency>
106       <!-- Spring dependencies -->
107       <dependency>
108          <groupId>org.springframework.boot</groupId>
109          <artifactId>spring-boot-starter-web</artifactId>
110
111       </dependency>
112       <dependency>
113          <groupId>org.springframework.boot</groupId>
114          <artifactId>spring-boot-starter</artifactId>
115       </dependency>
116       <dependency>
117          <groupId>org.springframework.boot</groupId>
118          <artifactId>spring-boot-starter-actuator</artifactId>
119       </dependency>
120       <dependency>
121          <groupId>javax.ws.rs</groupId>
122          <artifactId>javax.ws.rs-api</artifactId>
123          <version>2.0.1</version>
124       </dependency>
125       <dependency>
126          <groupId>org.powermock</groupId>
127          <artifactId>powermock-module-junit4</artifactId>
128          <version>1.6.2</version>
129          <scope>test</scope>
130       </dependency>
131
132       <dependency>
133          <groupId>org.powermock</groupId>
134          <artifactId>powermock-api-mockito</artifactId>
135          <version>1.6.2</version>
136          <scope>test</scope>
137       </dependency>
138
139       <dependency>
140          <groupId>org.powermock</groupId>
141          <artifactId>powermock-module-javaagent</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-junit4-rule-agent</artifactId>
149          <version>1.6.2</version>
150          <scope>test</scope>
151       </dependency>
152       <dependency>
153          <groupId>dom4j</groupId>
154          <artifactId>dom4j</artifactId>
155          <version>1.6.1</version>
156          <scope>provided</scope>
157       </dependency>
158
159       <dependency>
160          <groupId>com.att.aft</groupId>
161          <artifactId>dme2</artifactId>
162          <version>3.1.200</version>
163          <scope>provided</scope>
164       </dependency>
165       <dependency>
166          <groupId>org.onap.aai.aai-common</groupId>
167          <artifactId>aai-schema</artifactId>
168          <version>1.2.4</version>
169       </dependency>
170       <dependency>
171          <groupId>org.onap.aai.router-core</groupId>
172          <artifactId>router-core</artifactId>
173          <version>1.2.1</version>
174       </dependency>
175
176       <dependency>
177          <groupId>org.json</groupId>
178          <artifactId>json</artifactId>
179       </dependency>
180
181       <dependency>
182          <groupId>com.google.code.gson</groupId>
183          <artifactId>gson</artifactId>
184          <version>2.6.2</version>
185       </dependency>
186
187       <dependency>
188          <groupId>org.eclipse.persistence</groupId>
189          <artifactId>eclipselink</artifactId>
190          <version>2.6.2</version>
191       </dependency>
192
193       <dependency>
194          <groupId>org.onap.aai.logging-service</groupId>
195          <artifactId>common-logging</artifactId>
196          <version>1.2.2</version>
197       </dependency>
198
199       <dependency>
200          <groupId>org.onap.aai.logging-service</groupId>
201          <artifactId>logging-api</artifactId>
202          <version>1.1.0</version>
203       </dependency>
204
205       <dependency>
206          <groupId>org.onap.aai</groupId>
207          <artifactId>rest-client</artifactId>
208          <version>1.1.0</version>
209       </dependency>
210
211
212
213    </dependencies>
214
215    <build>
216       <finalName>${project.artifactId}</finalName>
217       <plugins>
218          <!-- Checkstyle plugin - used to report on compliance with -->
219          <!-- the Google style guide. -->
220          <plugin>
221             <groupId>org.apache.maven.plugins</groupId>
222             <artifactId>maven-site-plugin</artifactId>
223             <version>3.3</version>
224             <configuration>
225                <reportPlugins>
226                   <plugin>
227                      <groupId>org.apache.maven.plugins</groupId>
228                      <artifactId>maven-checkstyle-plugin</artifactId>
229                      <version>2.17</version>
230                      <reportSets>
231                         <reportSet>
232                            <reports>
233                               <report>checkstyle</report>
234                            </reports>
235                         </reportSet>
236                      </reportSets>
237                   </plugin>
238                </reportPlugins>
239             </configuration>
240          </plugin>
241          <plugin>
242             <groupId>org.springframework.boot</groupId>
243             <artifactId>spring-boot-maven-plugin</artifactId>
244          </plugin>
245          <plugin>
246             <groupId>org.apache.maven.plugins</groupId>
247             <artifactId>maven-resources-plugin</artifactId>
248             <version>2.7</version>
249             <executions>
250                <execution>
251                   <id>copy-docker-file</id>
252                   <phase>package</phase>
253                   <goals>
254                      <goal>copy-resources</goal>
255                   </goals>
256                   <configuration>
257                      <outputDirectory>target</outputDirectory>
258                      <overwrite>true</overwrite>
259                      <resources>
260                         <resource>
261                            <directory>${basedir}/src/main/docker</directory>
262                            <filtering>true</filtering>
263                            <includes>
264                               <include>**/*</include>
265                            </includes>
266                         </resource>
267                         <resource>
268                            <directory>${basedir}</directory>
269                            <filtering>true</filtering>
270                            <includes>
271                               <include>bundleconfig-local/**</include>
272                            </includes>
273                         </resource>
274                         <resource>
275                            <directory>${basedir}/src/main/bin/</directory>
276                            <filtering>true</filtering>
277                            <includes>
278                               <include>**/*</include>
279                            </includes>
280                         </resource>
281                      </resources>
282                   </configuration>
283                </execution>
284             </executions>
285          </plugin>
286          <plugin>
287             <groupId>com.spotify</groupId>
288             <artifactId>docker-maven-plugin</artifactId>
289             <version>0.4.11</version>
290             <configuration>
291                <verbose>true</verbose>
292                <serverId>docker-hub</serverId>
293                <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
294                <dockerDirectory>${docker.location}</dockerDirectory>
295                <imageTags>
296                   <imageTag>latest</imageTag>
297                </imageTags>
298                <forceTags>true</forceTags>
299             </configuration>
300          </plugin>
301          <!-- license plugin -->
302          <!-- Uncomment this to add a license header to every source file 
303             <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> 
304             <version>3.0</version> <configuration> <header>License.txt</header> <includes> 
305             <include>src/main/java/**</include> <include>src/test/java/**</include> </includes> 
306             </configuration> <executions> <execution> <goals> <goal>format</goal> </goals> 
307             <phase>process-sources</phase> </execution> </executions> </plugin> -->
308          <plugin>
309             <groupId>org.sonatype.plugins</groupId>
310             <artifactId>nexus-staging-maven-plugin</artifactId>
311             <version>1.6.7</version>
312             <extensions>true</extensions>
313             <configuration>
314                <nexusUrl>${nexusproxy}</nexusUrl>
315                <stagingProfileId>176c31dfe190a</stagingProfileId>
316                <serverId>ecomp-staging</serverId>
317             </configuration>
318          </plugin>
319          <plugin>
320             <groupId>org.apache.maven.plugins</groupId>
321             <artifactId>maven-deploy-plugin</artifactId>
322             <configuration>
323                <skip>true</skip>
324             </configuration>
325          </plugin>
326          <plugin>
327             <groupId>org.codehaus.mojo</groupId>
328             <artifactId>sonar-maven-plugin</artifactId>
329             <version>3.2</version>
330          </plugin>
331          <plugin>
332             <groupId>org.jacoco</groupId>
333             <artifactId>jacoco-maven-plugin</artifactId>
334             <version>0.7.7.201606060606</version>
335             <configuration>
336                <dumpOnExit>true</dumpOnExit>
337             </configuration>
338             <executions>
339                <execution>
340                   <id>jacoco-initialize-unit-tests</id>
341                   <goals>
342                      <goal>prepare-agent</goal>
343                   </goals>
344                   <configuration>
345                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec
346                      </destFile>
347                   </configuration>
348                </execution>
349             </executions>
350          </plugin>
351
352       </plugins>
353    </build>
354
355
356    <dependencyManagement>
357       <dependencies>
358          <dependency>
359             <groupId>org.apache.camel</groupId>
360             <artifactId>camel-spring-boot-dependencies</artifactId>
361             <version>${camel-spring-boot.version}</version>
362             <type>pom</type>
363             <scope>import</scope>
364          </dependency>
365          <dependency>
366             <groupId>org.apache.httpcomponents</groupId>
367             <artifactId>httpclient</artifactId>
368             <version>4.5.5</version>
369          </dependency>
370          <dependency>
371             <groupId>org.apache.httpcomponents</groupId>
372             <artifactId>httpcore</artifactId>
373             <version>4.4.1</version>
374          </dependency>
375          <dependency>
376             <groupId>org.json</groupId>
377             <artifactId>json</artifactId>
378             <version>20131018</version>
379          </dependency>
380       </dependencies>
381    </dependencyManagement>
382    <distributionManagement>
383       <repository>
384          <id>ecomp-releases</id>
385          <name>ECOMP Release Repository</name>
386          <url>${nexusproxy}/content/repositories/releases/</url>
387       </repository>
388       <snapshotRepository>
389          <id>ecomp-snapshots</id>
390          <name>ECOMP Snapshot Repository</name>
391          <url>${nexusproxy}/content/repositories/snapshots/</url>
392       </snapshotRepository>
393    </distributionManagement>
394 </project>