1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
5 ~ ================================================================================
6 ~ Copyright (C) 2020 Nordix Foundation. All rights reserved.
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=======================================================
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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.ccsdk.parent</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>2.1.0-SNAPSHOT</version>
33 <groupId>org.onap.ccsdk.oran</groupId>
34 <artifactId>a1-policy-management-service</artifactId>
35 <version>1.1.0-SNAPSHOT</version>
37 <name>ccsdk-oran :: ${project.artifactId}</name>
40 <java.version.source>11</java.version.source>
41 <java.version.target>11</java.version.target>
42 <springfox.version>2.9.2</springfox.version>
43 <immutable.version>2.8.2</immutable.version>
44 <sdk.version>1.1.6</sdk.version>
45 <swagger.version>2.0.0</swagger.version>
46 <json.version>20190722</json.version>
47 <commons-net.version>3.6</commons-net.version>
48 <commons-io.version>2.5</commons-io.version>
49 <maven.compile.plugin.version>3.8.0</maven.compile.plugin.version>
50 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
51 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
52 <docker-maven-plugin>0.30.0</docker-maven-plugin>
53 <version.dmaap>1.1.11</version.dmaap>
54 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
55 <surefire-maven-plugin.version>2.22.2</surefire-maven-plugin.version><!-- Version must be this for tests to be run. Do not remove! -->
56 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
57 <exec.skip>true</exec.skip>
58 <ccsdk.project.version>${project.version}</ccsdk.project.version>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-starter-web</artifactId>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-thymeleaf</artifactId>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-webflux</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-aop</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-devtools</artifactId>
81 <optional>true</optional>
84 <groupId>org.springframework</groupId>
85 <artifactId>spring-webflux</artifactId>
88 <groupId>io.swagger.core.v3</groupId>
89 <artifactId>swagger-jaxrs2</artifactId>
90 <version>${swagger.version}</version>
93 <groupId>io.swagger.core.v3</groupId>
94 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
95 <version>${swagger.version}</version>
98 <groupId>javax.xml.bind</groupId>
99 <artifactId>jaxb-api</artifactId>
102 <groupId>org.immutables</groupId>
103 <artifactId>value</artifactId>
104 <version>${immutable.version}</version>
105 <scope>provided</scope>
108 <groupId>org.immutables</groupId>
109 <artifactId>gson</artifactId>
110 <version>${immutable.version}</version>
113 <groupId>org.json</groupId>
114 <artifactId>json</artifactId>
115 <version>${json.version}</version>
118 <groupId>commons-net</groupId>
119 <artifactId>commons-net</artifactId>
120 <version>${commons-net.version}</version>
123 <groupId>org.springframework.boot</groupId>
124 <artifactId>spring-boot-configuration-processor</artifactId>
125 <optional>true</optional>
128 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
129 <artifactId>cbs-client</artifactId>
130 <version>${sdk.version}</version>
133 <groupId>org.projectlombok</groupId>
134 <artifactId>lombok</artifactId>
135 <scope>provided</scope>
138 <groupId>javax.ws.rs</groupId>
139 <artifactId>javax.ws.rs-api</artifactId>
141 <!-- Actuator dependencies -->
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter-actuator</artifactId>
146 <!--REQUIRED TO GENERATE DOCUMENTATION -->
148 <groupId>io.springfox</groupId>
149 <artifactId>springfox-swagger2</artifactId>
150 <version>${springfox.version}</version>
153 <groupId>io.springfox</groupId>
154 <artifactId>springfox-swagger-ui</artifactId>
155 <version>${springfox.version}</version>
159 <groupId>org.springframework.boot</groupId>
160 <artifactId>spring-boot-starter-test</artifactId>
164 <groupId>org.awaitility</groupId>
165 <artifactId>awaitility</artifactId>
169 <groupId>io.projectreactor</groupId>
170 <artifactId>reactor-test</artifactId>
174 <groupId>org.junit.jupiter</groupId>
175 <artifactId>junit-jupiter-engine</artifactId>
179 <groupId>org.mockito</groupId>
180 <artifactId>mockito-junit-jupiter</artifactId>
184 <groupId>org.mockito</groupId>
185 <artifactId>mockito-core</artifactId>
189 <groupId>com.squareup.okhttp3</groupId>
190 <artifactId>mockwebserver</artifactId>
194 <groupId>commons-io</groupId>
195 <artifactId>commons-io</artifactId>
196 <version>${commons-io.version}</version>
204 <groupId>org.codehaus.groovy.maven</groupId>
205 <artifactId>gmaven-plugin</artifactId>
208 <phase>validate</phase>
213 <source>${basedir}/TagVersion.groovy</source>
219 <groupId>org.springframework.boot</groupId>
220 <artifactId>spring-boot-maven-plugin</artifactId>
223 <groupId>net.revelc.code.formatter</groupId>
224 <artifactId>formatter-maven-plugin</artifactId>
225 <version>${formatter-maven-plugin.version}</version>
227 <lineEnding>LF</lineEnding>
228 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
230 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
231 spotless:apply process-sources -->
234 <groupId>com.diffplug.spotless</groupId>
235 <artifactId>spotless-maven-plugin</artifactId>
236 <version>${spotless-maven-plugin.version}</version>
238 <lineEndings>UNIX</lineEndings>
240 <removeUnusedImports/>
242 <order>com,java,javax,org</order>
246 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
247 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-surefire-plugin</artifactId>
253 <version>${surefire-maven-plugin.version}</version>
255 <skipTests>false</skipTests>
259 <artifactId>maven-failsafe-plugin</artifactId>
262 <groupId>org.codehaus.mojo</groupId>
263 <artifactId>build-helper-maven-plugin</artifactId>
267 <phase>generate-sources</phase>
269 <goal>add-source</goal>
273 <source>${project.build.directory}/generated-sources/annotations/</source>
280 <groupId>org.jacoco</groupId>
281 <artifactId>jacoco-maven-plugin</artifactId>
282 <version>${jacoco-maven-plugin.version}</version>
285 <id>default-prepare-agent</id>
287 <goal>prepare-agent</goal>
291 <id>default-report</id>
292 <phase>prepare-package</phase>
300 <groupId>io.fabric8</groupId>
301 <artifactId>docker-maven-plugin</artifactId>
302 <version>${docker-maven-plugin}</version>
303 <inherited>false</inherited>
306 <id>generate-policy-management-service-image</id>
307 <phase>package</phase>
314 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
316 <cleanup>try</cleanup>
317 <contextDir>${basedir}</contextDir>
318 <dockerFile>Dockerfile</dockerFile>
320 <JAR>${project.build.finalName}.jar</JAR>
323 <tag>${project.version}</tag>
331 <id>push-policy-management-service-image</id>
339 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
341 <contextDir>${basedir}</contextDir>
342 <dockerFile>Dockerfile</dockerFile>
344 <JAR>${project.build.finalName}.jar</JAR>
347 <tag>${project.docker.latestminortag.version}</tag>
348 <tag>${project.docker.latestfulltag.version}</tag>
349 <tag>${project.docker.latesttagtimestamp.version}</tag>