1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ========================LICENSE_START=================================
3 * O-RAN-SC * %% * Copyright (C) 2019 Nordix Foundation * %% * Licensed under
4 the Apache License, Version 2.0 (the "License"); * you may not use this file
5 except in compliance with the License. * You may obtain a copy of the License
6 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
7 applicable law or agreed to in writing, software * distributed under the
8 License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. * See the License for the specific
10 language governing permissions and * limitations under the License. * ========================LICENSE_END=================================== -->
11 <project xmlns="http://maven.apache.org/POM/4.0.0"
12 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
16 <groupId>org.springframework.boot</groupId>
17 <artifactId>spring-boot-starter-parent</artifactId>
18 <version>2.1.6.RELEASE</version>
21 <groupId>org.o-ran-sc.nonrtric</groupId>
22 <artifactId>policy-agent</artifactId>
23 <version>1.0.0-SNAPSHOT</version>
26 <name>The Apache Software License, Version 2.0</name>
27 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
32 <id>onap-releases</id>
33 <name>onap-releases</name>
34 <url>https://nexus.onap.org/content/repositories/releases/</url>
38 <java.version>11</java.version>
39 <springfox.version>2.8.0</springfox.version>
40 <immutable.version>2.7.1</immutable.version>
41 <sdk.version>1.1.6</sdk.version>
42 <swagger.version>2.0.0</swagger.version>
43 <json.version>20180130</json.version>
44 <commons-net.version>3.3</commons-net.version>
45 <awaitility.version>4.0.1</awaitility.version>
46 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
47 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
48 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
49 <docker-maven-plugin>0.30.0</docker-maven-plugin>
50 <version.dmaap>1.1.9</version.dmaap>
51 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
55 <groupId>org.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-web</artifactId>
59 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-starter-thymeleaf</artifactId>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-starter-webflux</artifactId>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-devtools</artifactId>
69 <optional>true</optional>
72 <groupId>org.springframework</groupId>
73 <artifactId>spring-webflux</artifactId>
76 <groupId>io.swagger.core.v3</groupId>
77 <artifactId>swagger-jaxrs2</artifactId>
78 <version>${swagger.version}</version>
81 <groupId>io.swagger.core.v3</groupId>
82 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
83 <version>${swagger.version}</version>
86 <groupId>javax.xml.bind</groupId>
87 <artifactId>jaxb-api</artifactId>
90 <groupId>org.immutables</groupId>
91 <artifactId>value</artifactId>
92 <version>${immutable.version}</version>
93 <scope>provided</scope>
96 <groupId>org.immutables</groupId>
97 <artifactId>gson</artifactId>
98 <version>${immutable.version}</version>
101 <groupId>org.json</groupId>
102 <artifactId>json</artifactId>
103 <version>${json.version}</version>
106 <groupId>commons-net</groupId>
107 <artifactId>commons-net</artifactId>
108 <version>${commons-net.version}</version>
112 <groupId>org.springframework.boot</groupId>
113 <artifactId>spring-boot-starter-test</artifactId>
117 <groupId>org.springframework.boot</groupId>
118 <artifactId>spring-boot-configuration-processor</artifactId>
119 <optional>true</optional>
122 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
123 <artifactId>cbs-client</artifactId>
124 <version>${sdk.version}</version>
127 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
128 <artifactId>dmaap-client</artifactId>
129 <version>${sdk.version}</version>
132 <groupId>org.projectlombok</groupId>
133 <artifactId>lombok</artifactId>
134 <scope>provided</scope>
136 <!--REQUIRED TO GENERATE DOCUMENTATION -->
138 <groupId>io.springfox</groupId>
139 <artifactId>springfox-swagger2</artifactId>
140 <version>${springfox.version}</version>
143 <groupId>io.springfox</groupId>
144 <artifactId>springfox-swagger-ui</artifactId>
145 <version>${springfox.version}</version>
149 <groupId>org.awaitility</groupId>
150 <artifactId>awaitility</artifactId>
151 <version>${awaitility.version}</version>
155 <groupId>io.projectreactor</groupId>
156 <artifactId>reactor-test</artifactId>
160 <groupId>org.junit.jupiter</groupId>
161 <artifactId>junit-jupiter-engine</artifactId>
165 <groupId>org.mockito</groupId>
166 <artifactId>mockito-junit-jupiter</artifactId>
170 <groupId>org.mockito</groupId>
171 <artifactId>mockito-core</artifactId>
175 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
176 <artifactId>dmaapClient</artifactId>
177 <version>${version.dmaap}</version>
180 <groupId>javax.ws.rs</groupId>
181 <artifactId>javax.ws.rs-api</artifactId>
182 <version>${javax.ws.rs-api.version}</version>
185 <groupId>org.glassfish.jersey.inject</groupId>
186 <artifactId>jersey-hk2</artifactId>
192 <groupId>org.springframework.boot</groupId>
193 <artifactId>spring-boot-maven-plugin</artifactId>
196 <groupId>net.revelc.code.formatter</groupId>
197 <artifactId>formatter-maven-plugin</artifactId>
198 <version>${formatter-maven-plugin.version}</version>
200 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
202 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
203 spotless:apply process-sources -->
206 <groupId>com.diffplug.spotless</groupId>
207 <artifactId>spotless-maven-plugin</artifactId>
208 <version>${spotless-maven-plugin.version}</version>
211 <removeUnusedImports />
213 <order>com,java,javax,org</order>
217 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
218 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-surefire-plugin</artifactId>
225 <skipTests>false</skipTests>
229 <artifactId>maven-failsafe-plugin</artifactId>
232 <groupId>org.codehaus.mojo</groupId>
233 <artifactId>build-helper-maven-plugin</artifactId>
237 <phase>generate-sources</phase>
239 <goal>add-source</goal>
243 <source>${project.build.directory}/generated-sources/annotations/</source>
250 <groupId>io.fabric8</groupId>
251 <artifactId>docker-maven-plugin</artifactId>
252 <version>${docker-maven-plugin}</version>
253 <inherited>false</inherited>
256 <id>generate-policy-agent-image</id>
257 <phase>package</phase>
262 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
265 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
267 <cleanup>try</cleanup>
268 <contextDir>${basedir}</contextDir>
269 <dockerFile>Dockerfile</dockerFile>
271 <JAR>${project.build.finalName}.jar</JAR>
274 <tag>${project.version}</tag>
282 <id>push-policy-agent-image</id>
288 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
289 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
292 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
294 <contextDir>${basedir}</contextDir>
295 <dockerFile>Dockerfile</dockerFile>
297 <JAR>${project.build.finalName}.jar</JAR>
300 <tag>${project.version}</tag>
312 <system>JIRA</system>
313 <url>https://jira.o-ran-sc.org/</url>