2 ============LICENSE_START=======================================================
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
12 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.aai</groupId>
28 <artifactId>champ</artifactId>
29 <version>1.6.0-SNAPSHOT</version>
32 <groupId>org.onap.aai.champ</groupId>
33 <artifactId>champ-service</artifactId>
36 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
37 <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
38 <common.logging.version>1.2.2</common.logging.version>
40 <version.org.apache.commons.commons-lang3>3.7</version.org.apache.commons.commons-lang3>
41 <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
42 <version.org.springframework.boot.spring-boot-dependencies>1.5.21.RELEASE</version.org.springframework.boot.spring-boot-dependencies>
43 <!-- Minimum code coverage percentage. Please update this figure as coverage increases to prevent any drops in
44 coverage caused by new changes. Note that this figure cannot be lower than the ONAP requirement of 0.55 -->
45 <jacoco.line.coverage.limit>0.16</jacoco.line.coverage.limit>
47 <!-- docker related properties -->
48 <docker.image.name>champ</docker.image.name>
49 <docker.fabric.version>0.28.0</docker.fabric.version>
50 <aai.docker.version>1.0.0</aai.docker.version>
51 <aai.build.directory>${project.build.directory}/${project.artifactId}-build/
52 </aai.build.directory>
53 <aai.docker.namespace>onap</aai.docker.namespace>
54 <aai.base.image>alpine</aai.base.image>
55 <aai.base.image.version>1.6.0</aai.base.image.version>
56 <!-- This will be used for the docker images as the default format of maven build has issues -->
57 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
60 <dependencyManagement>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-dependencies</artifactId>
65 <version>${version.org.springframework.boot.spring-boot-dependencies}</version>
71 <groupId>org.apache.httpcomponents</groupId>
72 <artifactId>httpclient</artifactId>
73 <version>4.5.3</version>
77 <groupId>org.apache.httpcomponents</groupId>
78 <artifactId>httpclient-cache</artifactId>
79 <version>4.5.3</version>
82 </dependencyManagement>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-web</artifactId>
90 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-starter-tomcat</artifactId>
94 <groupId>ch.qos.logback</groupId>
95 <artifactId>logback-classic</artifactId>
101 <groupId>org.springframework.boot</groupId>
102 <artifactId>spring-boot-starter-jetty</artifactId>
106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-starter-test</artifactId>
111 <groupId>org.powermock</groupId>
112 <artifactId>powermock-module-junit4</artifactId>
113 <version>1.7.4</version>
117 <groupId>org.javassist</groupId>
118 <artifactId>javassist</artifactId>
123 <groupId>org.powermock</groupId>
124 <artifactId>powermock-api-mockito</artifactId>
125 <version>1.7.4</version>
129 <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
131 <groupId>org.javassist</groupId>
132 <artifactId>javassist</artifactId>
133 <version>3.22.0-GA</version>
137 <groupId>org.springframework.boot</groupId>
138 <artifactId>spring-boot-starter-jersey</artifactId>
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-starter-tomcat</artifactId>
148 <groupId>org.json</groupId>
149 <artifactId>json</artifactId>
150 <version>20160212</version>
154 <groupId>commons-io</groupId>
155 <artifactId>commons-io</artifactId>
156 <version>2.4</version>
160 <groupId>com.google.code.gson</groupId>
161 <artifactId>gson</artifactId>
162 <version>2.6.2</version>
166 <groupId>com.google.guava</groupId>
167 <artifactId>guava</artifactId>
171 <groupId>${common.logging.groupid}</groupId>
172 <artifactId>common-logging</artifactId>
173 <version>${common.logging.version}</version>
176 <groupId>ch.qos.logback</groupId>
177 <artifactId>logback-classic</artifactId>
180 <groupId>ch.qos.logback</groupId>
181 <artifactId>logback-core</artifactId>
184 <groupId>org.slf4j</groupId>
185 <artifactId>slf4j-api</artifactId>
191 <groupId>org.eclipse.persistence</groupId>
192 <artifactId>eclipselink</artifactId>
193 <version>2.6.2</version>
197 <groupId>org.apache.commons</groupId>
198 <artifactId>commons-lang3</artifactId>
199 <version>3.7</version>
203 <groupId>org.onap.aai.champ.champ-lib</groupId>
204 <artifactId>champ-core</artifactId>
205 <version>${project.version}</version>
206 <scope>compile</scope>
209 <groupId>org.apache.hbase</groupId>
210 <artifactId>hbase-client</artifactId>
213 <groupId>log4j</groupId>
214 <artifactId>log4j</artifactId>
217 <groupId>log4j</groupId>
218 <artifactId>apache-log4j-extras</artifactId>
221 <groupId>org.slf4j</groupId>
222 <artifactId>slf4j-api</artifactId>
228 <groupId>org.hamcrest</groupId>
229 <artifactId>hamcrest-library</artifactId>
234 <groupId>org.skyscreamer</groupId>
235 <artifactId>jsonassert</artifactId>
236 <version>1.5.0</version>
241 <groupId>ch.qos.logback</groupId>
242 <artifactId>logback-classic</artifactId>
243 <version>1.2.3</version>
247 <groupId>ch.qos.logback</groupId>
248 <artifactId>logback-core</artifactId>
249 <version>1.2.3</version>
253 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
254 <artifactId>dmaapClient</artifactId>
255 <version>1.1.5</version>
259 <distributionManagement>
261 <id>ecomp-releases</id>
262 <name>ECOMP Release Repository</name>
263 <url>${onap.nexus.url}/content/repositories/releases/</url>
266 <id>ecomp-snapshots</id>
267 <name>ECOMP Snapshot Repository</name>
268 <url>${onap.nexus.url}/content/repositories/snapshots/</url>
269 </snapshotRepository>
270 </distributionManagement>
273 <finalName>${project.artifactId}</finalName>
276 <groupId>org.springframework.boot</groupId>
277 <artifactId>spring-boot-maven-plugin</artifactId>
284 <goal>repackage</goal>
291 <artifactId>maven-assembly-plugin</artifactId>
294 <descriptor>src/main/assembly/descriptor.xml</descriptor>
299 <id>make-assembly</id>
300 <phase>package</phase>
309 <groupId>com.mycila</groupId>
310 <artifactId>license-maven-plugin</artifactId>
311 <version>3.0</version>
313 <header>License.txt</header>
315 <include>src/main/java/**</include>
316 <include>src/test/java/**</include>
317 <include>pom.xml</include>
319 <skipExistingHeaders>true</skipExistingHeaders>
324 <!-- Set goal to "format" to auto update license headers -->
327 <phase>process-sources</phase>
332 <groupId>org.apache.maven.plugins</groupId>
333 <artifactId>maven-deploy-plugin</artifactId>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-site-plugin</artifactId>
348 <groupId>org.codehaus.mojo</groupId>
349 <artifactId>build-helper-maven-plugin</artifactId>
350 <version>3.0.0</version>
353 <phase>pre-clean</phase>
354 <id>parse-version</id>
356 <goal>parse-version</goal>
362 <groupId>org.codehaus.groovy.maven</groupId>
363 <artifactId>gmaven-plugin</artifactId>
364 <version>1.0</version>
367 <phase>pre-clean</phase>
373 def userAaiBaseImage = session.userProperties['aai.base.image']
374 def userAaiCommonVersion = session.userProperties['aai.base.image.version']
375 if (userAaiCommonVersion != null) {
376 project.properties['aai.base.image.version'] = userAaiCommonVersion
378 if (userAaiBaseImage != null) {
379 project.properties['aai.base.image'] = userAaiBaseImage
381 log.info 'Base image flavour: ' + project.properties['aai.base.image']
382 log.info 'Base image version: ' + project.properties['aai.base.image.version']
389 <groupId>io.fabric8</groupId>
390 <artifactId>docker-maven-plugin</artifactId>
391 <version>${docker.fabric.version}</version>
393 <verbose>true</verbose>
394 <apiVersion>1.23</apiVersion>
397 <name>${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l
403 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
404 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
406 <cleanup>try</cleanup>
407 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
412 <directory>${aai.build.directory}</directory>
413 <outputDirectory>/${project.artifactId}</outputDirectory>
424 <id>clean-images</id>
425 <phase>pre-clean</phase>
430 <removeAll>true</removeAll>
434 <id>generate-images</id>
435 <phase>package</phase>
442 <phase>deploy</phase>