1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2021 Nordix Foundation
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 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>2.5.3</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>dmaap-adaptor</artifactId>
34 <version>1.1.0-SNAPSHOT</version>
37 <name>The Apache Software License, Version 2.0</name>
38 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
43 <id>onap-releases</id>
44 <name>onap-releases</name>
45 <url>https://nexus.onap.org/content/repositories/releases/</url>
49 <java.version>11</java.version>
50 <springfox.version>3.0.0</springfox.version>
51 <immutable.version>2.8.2</immutable.version>
52 <swagger.version>2.1.6</swagger.version>
53 <json.version>20190722</json.version>
54 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
55 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
56 <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
57 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
58 <docker-maven-plugin>0.30.0</docker-maven-plugin>
59 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
60 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
61 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
62 <exec.skip>true</exec.skip>
66 <groupId>org.springdoc</groupId>
67 <artifactId>springdoc-openapi-ui</artifactId>
68 <version>1.5.4</version>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-web</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-thymeleaf</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-webflux</artifactId>
83 <groupId>org.springframework</groupId>
84 <artifactId>spring-webflux</artifactId>
87 <groupId>io.swagger.core.v3</groupId>
88 <artifactId>swagger-jaxrs2</artifactId>
89 <version>${swagger.version}</version>
92 <groupId>io.swagger.core.v3</groupId>
93 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
94 <version>${swagger.version}</version>
98 <groupId>org.immutables</groupId>
99 <artifactId>value</artifactId>
100 <version>${immutable.version}</version>
101 <scope>provided</scope>
104 <groupId>org.immutables</groupId>
105 <artifactId>gson</artifactId>
106 <version>${immutable.version}</version>
109 <groupId>org.json</groupId>
110 <artifactId>json</artifactId>
111 <version>${json.version}</version>
114 <groupId>org.projectlombok</groupId>
115 <artifactId>lombok</artifactId>
116 <scope>provided</scope>
118 <!-- Actuator dependencies -->
120 <groupId>org.springframework.boot</groupId>
121 <artifactId>spring-boot-starter-actuator</artifactId>
123 <!--REQUIRED TO GENERATE DOCUMENTATION -->
125 <groupId>io.springfox</groupId>
126 <artifactId>springfox-swagger2</artifactId>
127 <version>${springfox.version}</version>
130 <groupId>io.springfox</groupId>
131 <artifactId>springfox-swagger-ui</artifactId>
132 <version>${springfox.version}</version>
134 <!-- For development help -->
136 <groupId>org.springframework.boot</groupId>
137 <artifactId>spring-boot-devtools</artifactId>
138 <optional>true</optional>
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-configuration-processor</artifactId>
143 <optional>true</optional>
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-starter-test</artifactId>
152 <groupId>org.awaitility</groupId>
153 <artifactId>awaitility</artifactId>
157 <groupId>io.projectreactor</groupId>
158 <artifactId>reactor-test</artifactId>
162 <groupId>org.junit.jupiter</groupId>
163 <artifactId>junit-jupiter-engine</artifactId>
167 <groupId>org.mockito</groupId>
168 <artifactId>mockito-junit-jupiter</artifactId>
172 <groupId>org.mockito</groupId>
173 <artifactId>mockito-core</artifactId>
177 <groupId>com.squareup.okhttp3</groupId>
178 <artifactId>mockwebserver</artifactId>
182 <groupId>io.projectreactor.kafka</groupId>
183 <artifactId>reactor-kafka</artifactId>
184 <version>1.3.7</version>
187 <groupId>com.google.guava</groupId>
188 <artifactId>guava</artifactId>
189 <version>31.0.1-jre</version>
195 <groupId>org.springframework.boot</groupId>
196 <artifactId>spring-boot-maven-plugin</artifactId>
199 <groupId>net.revelc.code.formatter</groupId>
200 <artifactId>formatter-maven-plugin</artifactId>
201 <version>${formatter-maven-plugin.version}</version>
203 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
205 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
206 spotless:apply process-sources -->
209 <groupId>com.diffplug.spotless</groupId>
210 <artifactId>spotless-maven-plugin</artifactId>
211 <version>${spotless-maven-plugin.version}</version>
214 <removeUnusedImports />
216 <order>com,java,javax,org</order>
220 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
221 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-surefire-plugin</artifactId>
228 <skipTests>false</skipTests>
232 <artifactId>maven-failsafe-plugin</artifactId>
235 <groupId>org.codehaus.mojo</groupId>
236 <artifactId>build-helper-maven-plugin</artifactId>
240 <phase>generate-sources</phase>
242 <goal>add-source</goal>
246 <source>${project.build.directory}/generated-sources/annotations/</source>
253 <groupId>org.jacoco</groupId>
254 <artifactId>jacoco-maven-plugin</artifactId>
255 <version>${jacoco-maven-plugin.version}</version>
258 <id>default-prepare-agent</id>
260 <goal>prepare-agent</goal>
264 <id>default-report</id>
265 <phase>prepare-package</phase>
273 <groupId>io.swagger.codegen.v3</groupId>
274 <artifactId>swagger-codegen-maven-plugin</artifactId>
275 <version>${swagger-codegen-maven-plugin.version}</version>
280 <goal>generate</goal>
283 <inputSpec>${project.basedir}/api/api.json</inputSpec>
284 <language>openapi-yaml</language>
285 <output>${project.basedir}/api</output>
287 <outputFile>api.yaml</outputFile>
294 <groupId>io.fabric8</groupId>
295 <artifactId>docker-maven-plugin</artifactId>
296 <version>${docker-maven-plugin}</version>
297 <inherited>false</inherited>
300 <id>generate-dmaap-adaptor-image</id>
301 <phase>package</phase>
306 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
309 <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
311 <cleanup>try</cleanup>
312 <contextDir>${basedir}</contextDir>
313 <dockerFile>Dockerfile</dockerFile>
315 <JAR>${project.build.finalName}.jar</JAR>
318 <tag>${project.version}</tag>
326 <id>push-dmaap-adaptor-image</id>
332 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
333 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
336 <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
338 <contextDir>${basedir}</contextDir>
339 <dockerFile>Dockerfile</dockerFile>
341 <JAR>${project.build.finalName}.jar</JAR>
344 <tag>${project.version}</tag>
354 <!-- support sonar in multi-module project -->
356 <groupId>org.sonarsource.scanner.maven</groupId>
357 <artifactId>sonar-maven-plugin</artifactId>
358 <version>${sonar-maven-plugin.version}</version>
363 <system>JIRA</system>
364 <url>https://jira.o-ran-sc.org/</url>