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.8</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>dmaap-adaptor</artifactId>
34 <version>1.0.1-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>20211205</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 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
60 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
61 <exec.skip>true</exec.skip>
65 <groupId>org.springdoc</groupId>
66 <artifactId>springdoc-openapi-ui</artifactId>
67 <version>1.6.3</version>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-web</artifactId>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-thymeleaf</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-webflux</artifactId>
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>org.immutables</groupId>
97 <artifactId>value</artifactId>
98 <version>${immutable.version}</version>
99 <scope>provided</scope>
102 <groupId>org.immutables</groupId>
103 <artifactId>gson</artifactId>
104 <version>${immutable.version}</version>
107 <groupId>org.json</groupId>
108 <artifactId>json</artifactId>
109 <version>${json.version}</version>
112 <groupId>org.projectlombok</groupId>
113 <artifactId>lombok</artifactId>
114 <scope>provided</scope>
116 <!-- Actuator dependencies -->
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-actuator</artifactId>
121 <!--REQUIRED TO GENERATE DOCUMENTATION -->
123 <groupId>io.springfox</groupId>
124 <artifactId>springfox-swagger2</artifactId>
125 <version>${springfox.version}</version>
128 <groupId>io.springfox</groupId>
129 <artifactId>springfox-swagger-ui</artifactId>
130 <version>${springfox.version}</version>
132 <!-- For development help -->
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-devtools</artifactId>
136 <optional>true</optional>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-configuration-processor</artifactId>
141 <optional>true</optional>
145 <groupId>org.springframework.boot</groupId>
146 <artifactId>spring-boot-starter-test</artifactId>
150 <groupId>org.awaitility</groupId>
151 <artifactId>awaitility</artifactId>
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>com.squareup.okhttp3</groupId>
176 <artifactId>mockwebserver</artifactId>
180 <groupId>io.projectreactor.kafka</groupId>
181 <artifactId>reactor-kafka</artifactId>
182 <version>1.3.9</version>
185 <groupId>com.google.guava</groupId>
186 <artifactId>guava</artifactId>
187 <version>31.0.1-jre</version>
193 <groupId>org.springframework.boot</groupId>
194 <artifactId>spring-boot-maven-plugin</artifactId>
197 <groupId>net.revelc.code.formatter</groupId>
198 <artifactId>formatter-maven-plugin</artifactId>
199 <version>${formatter-maven-plugin.version}</version>
201 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
203 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
204 spotless:apply process-sources -->
207 <groupId>com.diffplug.spotless</groupId>
208 <artifactId>spotless-maven-plugin</artifactId>
209 <version>${spotless-maven-plugin.version}</version>
212 <removeUnusedImports />
214 <order>com,java,javax,org</order>
218 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
219 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-surefire-plugin</artifactId>
226 <skipTests>false</skipTests>
230 <artifactId>maven-failsafe-plugin</artifactId>
233 <groupId>org.codehaus.mojo</groupId>
234 <artifactId>build-helper-maven-plugin</artifactId>
238 <phase>generate-sources</phase>
240 <goal>add-source</goal>
244 <source>${project.build.directory}/generated-sources/annotations/</source>
251 <groupId>org.jacoco</groupId>
252 <artifactId>jacoco-maven-plugin</artifactId>
253 <version>${jacoco-maven-plugin.version}</version>
256 <id>default-prepare-agent</id>
258 <goal>prepare-agent</goal>
262 <id>default-report</id>
263 <phase>prepare-package</phase>
271 <groupId>io.swagger.codegen.v3</groupId>
272 <artifactId>swagger-codegen-maven-plugin</artifactId>
273 <version>${swagger-codegen-maven-plugin.version}</version>
278 <goal>generate</goal>
281 <inputSpec>${project.basedir}/api/api.json</inputSpec>
282 <language>openapi-yaml</language>
283 <output>${project.basedir}/api</output>
285 <outputFile>api.yaml</outputFile>
292 <groupId>io.fabric8</groupId>
293 <artifactId>docker-maven-plugin</artifactId>
294 <version>${docker-maven-plugin}</version>
295 <inherited>false</inherited>
298 <id>generate-dmaap-adaptor-image</id>
299 <phase>package</phase>
304 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
307 <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
309 <cleanup>try</cleanup>
310 <contextDir>${basedir}</contextDir>
311 <dockerFile>Dockerfile</dockerFile>
313 <JAR>${project.build.finalName}.jar</JAR>
316 <tag>${project.version}</tag>
324 <id>push-dmaap-adaptor-image</id>
330 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
331 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
334 <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
336 <contextDir>${basedir}</contextDir>
337 <dockerFile>Dockerfile</dockerFile>
339 <JAR>${project.build.finalName}.jar</JAR>
342 <tag>${project.version}</tag>
352 <!-- support sonar in multi-module project -->
354 <groupId>org.sonarsource.scanner.maven</groupId>
355 <artifactId>sonar-maven-plugin</artifactId>
356 <version>${sonar-maven-plugin.version}</version>
361 <system>JIRA</system>
362 <url>https://jira.o-ran-sc.org/</url>