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=======================================================
22 <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">
23 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.ccsdk.parent</groupId>
27 <artifactId>spring-boot-starter-parent</artifactId>
28 <version>2.0.0-SNAPSHOT</version>
32 <groupId>org.onap.ccsdk.oran</groupId>
33 <artifactId>a1-policy-management-service</artifactId>
34 <version>1.0.0-SNAPSHOT</version>
36 <name>ccsdk-oran :: ${project.artifactId}</name>
40 <url>https://jira.onap.org/</url>
45 <id>onap-releases</id>
46 <name>onap-releases</name>
47 <url>https://nexus.onap.org/content/repositories/releases/</url>
52 <java.version.source>11</java.version.source>
53 <java.version.target>11</java.version.target>
54 <springfox.version>2.9.2</springfox.version>
55 <immutable.version>2.8.2</immutable.version>
56 <sdk.version>1.1.6</sdk.version>
57 <swagger.version>2.0.0</swagger.version>
58 <json.version>20190722</json.version>
59 <commons-net.version>3.6</commons-net.version>
60 <maven.compile.plugin.version>3.8.0</maven.compile.plugin.version>
61 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
62 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
63 <surefire-maven-plugin.version>2.22.2</surefire-maven-plugin.version>
64 <docker-maven-plugin>0.30.0</docker-maven-plugin>
65 <version.dmaap>1.1.11</version.dmaap>
66 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
67 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
68 <exec.skip>true</exec.skip>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter-web</artifactId>
76 <groupId>org.springframework.boot</groupId>
77 <artifactId>spring-boot-starter-thymeleaf</artifactId>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-webflux</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-aop</artifactId>
88 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-devtools</artifactId>
90 <optional>true</optional>
93 <groupId>org.springframework</groupId>
94 <artifactId>spring-webflux</artifactId>
97 <groupId>io.swagger.core.v3</groupId>
98 <artifactId>swagger-jaxrs2</artifactId>
99 <version>${swagger.version}</version>
102 <groupId>io.swagger.core.v3</groupId>
103 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
104 <version>${swagger.version}</version>
107 <groupId>javax.xml.bind</groupId>
108 <artifactId>jaxb-api</artifactId>
111 <groupId>org.immutables</groupId>
112 <artifactId>value</artifactId>
113 <version>${immutable.version}</version>
114 <scope>provided</scope>
117 <groupId>org.immutables</groupId>
118 <artifactId>gson</artifactId>
119 <version>${immutable.version}</version>
122 <groupId>org.json</groupId>
123 <artifactId>json</artifactId>
124 <version>${json.version}</version>
127 <groupId>commons-net</groupId>
128 <artifactId>commons-net</artifactId>
129 <version>${commons-net.version}</version>
132 <groupId>org.springframework.boot</groupId>
133 <artifactId>spring-boot-configuration-processor</artifactId>
134 <optional>true</optional>
137 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
138 <artifactId>cbs-client</artifactId>
139 <version>${sdk.version}</version>
142 <groupId>org.projectlombok</groupId>
143 <artifactId>lombok</artifactId>
144 <scope>provided</scope>
147 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
148 <artifactId>dmaapClient</artifactId>
149 <version>${version.dmaap}</version>
152 <groupId>javax.ws.rs</groupId>
153 <artifactId>javax.ws.rs-api</artifactId>
156 <groupId>org.glassfish.jersey.inject</groupId>
157 <artifactId>jersey-hk2</artifactId>
159 <!-- Actuator dependencies -->
161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-starter-actuator</artifactId>
164 <!--REQUIRED TO GENERATE DOCUMENTATION -->
166 <groupId>io.springfox</groupId>
167 <artifactId>springfox-swagger2</artifactId>
168 <version>${springfox.version}</version>
171 <groupId>io.springfox</groupId>
172 <artifactId>springfox-swagger-ui</artifactId>
173 <version>${springfox.version}</version>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-starter-test</artifactId>
182 <groupId>org.awaitility</groupId>
183 <artifactId>awaitility</artifactId>
187 <groupId>io.projectreactor</groupId>
188 <artifactId>reactor-test</artifactId>
192 <groupId>org.junit.jupiter</groupId>
193 <artifactId>junit-jupiter-engine</artifactId>
197 <groupId>org.mockito</groupId>
198 <artifactId>mockito-junit-jupiter</artifactId>
202 <groupId>org.mockito</groupId>
203 <artifactId>mockito-core</artifactId>
207 <groupId>com.squareup.okhttp3</groupId>
208 <artifactId>mockwebserver</artifactId>
215 <groupId>org.springframework.boot</groupId>
216 <artifactId>spring-boot-maven-plugin</artifactId>
219 <groupId>net.revelc.code.formatter</groupId>
220 <artifactId>formatter-maven-plugin</artifactId>
221 <version>${formatter-maven-plugin.version}</version>
223 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
225 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
226 spotless:apply process-sources -->
229 <groupId>com.diffplug.spotless</groupId>
230 <artifactId>spotless-maven-plugin</artifactId>
231 <version>${spotless-maven-plugin.version}</version>
234 <removeUnusedImports />
236 <order>com,java,javax,org</order>
240 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
241 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-surefire-plugin</artifactId>
247 <version>${surefire-maven-plugin.version}</version>
249 <skipTests>false</skipTests>
253 <artifactId>maven-failsafe-plugin</artifactId>
256 <groupId>org.codehaus.mojo</groupId>
257 <artifactId>build-helper-maven-plugin</artifactId>
261 <phase>generate-sources</phase>
263 <goal>add-source</goal>
267 <source>${project.build.directory}/generated-sources/annotations/</source>
274 <groupId>org.jacoco</groupId>
275 <artifactId>jacoco-maven-plugin</artifactId>
276 <version>${jacoco-maven-plugin.version}</version>
279 <id>default-prepare-agent</id>
281 <goal>prepare-agent</goal>
285 <id>default-report</id>
286 <phase>prepare-package</phase>
294 <groupId>io.fabric8</groupId>
295 <artifactId>docker-maven-plugin</artifactId>
296 <version>${docker-maven-plugin}</version>
297 <inherited>false</inherited>
300 <id>generate-policy-management-service-image</id>
301 <phase>package</phase>
308 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
310 <cleanup>try</cleanup>
311 <contextDir>${basedir}</contextDir>
312 <dockerFile>Dockerfile</dockerFile>
314 <JAR>${project.build.finalName}.jar</JAR>
317 <tag>${project.version}</tag>
325 <id>push-policy-management-service-image</id>
333 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
335 <contextDir>${basedir}</contextDir>
336 <dockerFile>Dockerfile</dockerFile>
338 <JAR>${project.build.finalName}.jar</JAR>
341 <tag>${project.version}</tag>