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 <maven.compile.plugin.version>3.8.0</maven.compile.plugin.version>
49 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
50 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
51 <docker-maven-plugin>0.30.0</docker-maven-plugin>
52 <version.dmaap>1.1.11</version.dmaap>
53 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
54 <surefire-maven-plugin.version>2.22.2</surefire-maven-plugin.version><!-- Version must be this for tests to be run. Do not remove! -->
55 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
56 <exec.skip>true</exec.skip>
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-starter-web</artifactId>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-thymeleaf</artifactId>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-webflux</artifactId>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-aop</artifactId>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-devtools</artifactId>
79 <optional>true</optional>
82 <groupId>org.springframework</groupId>
83 <artifactId>spring-webflux</artifactId>
86 <groupId>io.swagger.core.v3</groupId>
87 <artifactId>swagger-jaxrs2</artifactId>
88 <version>${swagger.version}</version>
91 <groupId>io.swagger.core.v3</groupId>
92 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
93 <version>${swagger.version}</version>
96 <groupId>javax.xml.bind</groupId>
97 <artifactId>jaxb-api</artifactId>
100 <groupId>org.immutables</groupId>
101 <artifactId>value</artifactId>
102 <version>${immutable.version}</version>
103 <scope>provided</scope>
106 <groupId>org.immutables</groupId>
107 <artifactId>gson</artifactId>
108 <version>${immutable.version}</version>
111 <groupId>org.json</groupId>
112 <artifactId>json</artifactId>
113 <version>${json.version}</version>
116 <groupId>commons-net</groupId>
117 <artifactId>commons-net</artifactId>
118 <version>${commons-net.version}</version>
121 <groupId>org.springframework.boot</groupId>
122 <artifactId>spring-boot-configuration-processor</artifactId>
123 <optional>true</optional>
126 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
127 <artifactId>cbs-client</artifactId>
128 <version>${sdk.version}</version>
131 <groupId>org.projectlombok</groupId>
132 <artifactId>lombok</artifactId>
133 <scope>provided</scope>
136 <groupId>javax.ws.rs</groupId>
137 <artifactId>javax.ws.rs-api</artifactId>
139 <!-- Actuator dependencies -->
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-starter-actuator</artifactId>
144 <!--REQUIRED TO GENERATE DOCUMENTATION -->
146 <groupId>io.springfox</groupId>
147 <artifactId>springfox-swagger2</artifactId>
148 <version>${springfox.version}</version>
151 <groupId>io.springfox</groupId>
152 <artifactId>springfox-swagger-ui</artifactId>
153 <version>${springfox.version}</version>
157 <groupId>org.springframework.boot</groupId>
158 <artifactId>spring-boot-starter-test</artifactId>
162 <groupId>org.awaitility</groupId>
163 <artifactId>awaitility</artifactId>
167 <groupId>io.projectreactor</groupId>
168 <artifactId>reactor-test</artifactId>
172 <groupId>org.junit.jupiter</groupId>
173 <artifactId>junit-jupiter-engine</artifactId>
177 <groupId>org.mockito</groupId>
178 <artifactId>mockito-junit-jupiter</artifactId>
182 <groupId>org.mockito</groupId>
183 <artifactId>mockito-core</artifactId>
187 <groupId>com.squareup.okhttp3</groupId>
188 <artifactId>mockwebserver</artifactId>
196 <groupId>org.springframework.boot</groupId>
197 <artifactId>spring-boot-maven-plugin</artifactId>
200 <groupId>net.revelc.code.formatter</groupId>
201 <artifactId>formatter-maven-plugin</artifactId>
202 <version>${formatter-maven-plugin.version}</version>
204 <lineEnding>LF</lineEnding>
205 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
207 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
208 spotless:apply process-sources -->
211 <groupId>com.diffplug.spotless</groupId>
212 <artifactId>spotless-maven-plugin</artifactId>
213 <version>${spotless-maven-plugin.version}</version>
215 <lineEndings>UNIX</lineEndings>
217 <removeUnusedImports/>
219 <order>com,java,javax,org</order>
223 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
224 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-surefire-plugin</artifactId>
230 <version>${surefire-maven-plugin.version}</version>
232 <skipTests>false</skipTests>
236 <artifactId>maven-failsafe-plugin</artifactId>
239 <groupId>org.codehaus.mojo</groupId>
240 <artifactId>build-helper-maven-plugin</artifactId>
244 <phase>generate-sources</phase>
246 <goal>add-source</goal>
250 <source>${project.build.directory}/generated-sources/annotations/</source>
257 <groupId>org.jacoco</groupId>
258 <artifactId>jacoco-maven-plugin</artifactId>
259 <version>${jacoco-maven-plugin.version}</version>
262 <id>default-prepare-agent</id>
264 <goal>prepare-agent</goal>
268 <id>default-report</id>
269 <phase>prepare-package</phase>
277 <groupId>io.fabric8</groupId>
278 <artifactId>docker-maven-plugin</artifactId>
279 <version>${docker-maven-plugin}</version>
280 <inherited>false</inherited>
283 <id>generate-policy-management-service-image</id>
284 <phase>package</phase>
291 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
293 <cleanup>try</cleanup>
294 <contextDir>${basedir}</contextDir>
295 <dockerFile>Dockerfile</dockerFile>
297 <JAR>${project.build.finalName}.jar</JAR>
300 <tag>${project.version}</tag>
308 <id>push-policy-management-service-image</id>
316 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
318 <contextDir>${basedir}</contextDir>
319 <dockerFile>Dockerfile</dockerFile>
321 <JAR>${project.build.finalName}.jar</JAR>
324 <tag>${project.version}</tag>