1 <?xml version="1.0" encoding="UTF-8"?>
3 * ============LICENSE_START=======================================================
5 * ================================================================================
6 * Copyright (C) 2021 AT&T Intellectual Property. 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"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.o-ran-sc.oam</groupId>
29 <artifactId>ves-nf-oam-adopter-parent-lite</artifactId>
30 <version>1.0.0-SNAPSHOT</version>
31 <relativePath>../ves-nf-oam-adopter-parent-lite/pom.xml</relativePath>
34 <artifactId>ves-nf-oam-adopter-parent</artifactId>
35 <packaging>pom</packaging>
38 <!-- Code coverate & Sonar -->
39 <minimum.coverage>0.9</minimum.coverage>
40 <jacoco.reportDirectory.aggregate>
41 ${project.reporting.outputDirectory}/jacoco-aggregate
42 </jacoco.reportDirectory.aggregate>
43 <sonar.coverage.jacoco.xmlReportPaths>
44 ../ves-nf-oam-adopter-event-notifier/target/site/jacoco-ut/jacoco.xml,
45 ../ves-nf-oam-adopter-event-notifier/target/site/jacoco-aggregate/jacoco.xml,
46 ../ves-nf-oam-adopter-snmp-manager/target/site/jacoco-ut/jacoco.xml,
47 ../ves-nf-oam-adopter-snmp-manager/target/site/jacoco-aggregate/jacoco.xml,
48 ../ves-nf-oam-adopter-pm-manager/target/site/jacoco-ut/jacoco.xml,
49 ../ves-nf-oam-adopter-pm-manager/target/site/jacoco-aggregate/jacoco.xml,
50 ../ves-nf-oam-adopter-pm-sb-rest-client/target/site/jacoco-ut/jacoco.xml,
51 ../ves-nf-oam-adopter-pm-sb-rest-client/target/site/jacoco-aggregate/jacoco.xml
52 </sonar.coverage.jacoco.xmlReportPaths>
53 <sonar.scanner.version>3.8.0.2131</sonar.scanner.version>
54 <!--Dependency Versions-->
55 <commons-configuration2.version>2.7</commons-configuration2.version>
56 <commons-io.version>2.6</commons-io.version>
57 <commons-beanutils.version>1.9.4</commons-beanutils.version>
58 <gson.version>2.8.6</gson.version>
59 <guava.version>30.1-jre</guava.version>
60 <httpclient5.version>5.0.3</httpclient5.version>
61 <jdt.annotation.version>2.2.600</jdt.annotation.version>
62 <lombok.version>1.18.20</lombok.version>
63 <rxjava.version>3.0.12</rxjava.version>
64 <snmp4j.version>3.4.4</snmp4j.version>
65 <spotbugs.version>4.2.3</spotbugs.version>
66 <spring.boot.version>2.4.5</spring.boot.version>
67 <swagger-annotations.version>2.1.9</swagger-annotations.version>
68 <!--Plugins Versions-->
69 <com.puppycrawl.tools.version>8.41</com.puppycrawl.tools.version>
70 <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
71 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
72 <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
73 <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
74 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
75 <swagger-codegen-maven-plugin.version>3.0.25</swagger-codegen-maven-plugin.version>
76 <!--Image properties-->
77 <base.image>library/openjdk:11-jre-slim</base.image>
78 <base.config>${project.basedir}/configuration/</base.config>
79 <image.workdir>/o-ran-ves-adapter/</image.workdir>
80 <nexus.repository>nexus3.o-ran-sc.org:10003/o-ran-sc/</nexus.repository>
83 <dependencyManagement>
86 <groupId>${project.groupId}</groupId>
87 <artifactId>ves-nf-oam-adopter-artifacts</artifactId>
88 <version>${project.version}</version>
93 <groupId>io.swagger.core.v3</groupId>
94 <artifactId>swagger-annotations</artifactId>
95 <version>${swagger-annotations.version}</version>
98 <groupId>com.google.code.gson</groupId>
99 <artifactId>gson</artifactId>
100 <version>${gson.version}</version>
103 <groupId>org.eclipse.jdt</groupId>
104 <artifactId>org.eclipse.jdt.annotation</artifactId>
105 <version>${jdt.annotation.version}</version>
108 <groupId>io.reactivex.rxjava3</groupId>
109 <artifactId>rxjava</artifactId>
110 <version>${rxjava.version}</version>
113 <groupId>org.apache.httpcomponents.client5</groupId>
114 <artifactId>httpclient5</artifactId>
115 <version>${httpclient5.version}</version>
118 <groupId>org.projectlombok</groupId>
119 <artifactId>lombok</artifactId>
120 <version>${lombok.version}</version>
123 <groupId>org.snmp4j</groupId>
124 <artifactId>snmp4j</artifactId>
125 <version>${snmp4j.version}</version>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-configuration2</artifactId>
130 <version>${commons-configuration2.version}</version>
133 <groupId>commons-io</groupId>
134 <artifactId>commons-io</artifactId>
135 <version>${commons-io.version}</version>
138 <groupId>commons-beanutils</groupId>
139 <artifactId>commons-beanutils</artifactId>
140 <version>${commons-beanutils.version}</version>
143 <groupId>com.google.guava</groupId>
144 <artifactId>guava</artifactId>
145 <version>${guava.version}</version>
148 <groupId>com.github.spotbugs</groupId>
149 <artifactId>spotbugs-annotations</artifactId>
150 <version>${spotbugs.version}</version>
153 <groupId>io.swagger.core.v3</groupId>
154 <artifactId>swagger-annotations</artifactId>
155 <version>${swagger-annotations.version}</version>
158 <groupId>org.springframework.boot</groupId>
159 <artifactId>spring-boot-starter</artifactId>
160 <version>${spring.boot.version}</version>
163 <groupId>org.springframework.boot</groupId>
164 <artifactId>spring-boot-starter-logging</artifactId>
167 <groupId>junit</groupId>
168 <artifactId>junit</artifactId>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-dependencies</artifactId>
175 <version>${spring.boot.version}</version>
177 <scope>import</scope>
180 <groupId>org.springframework.boot</groupId>
181 <artifactId>spring-boot-starter-logging</artifactId>
184 <groupId>junit</groupId>
185 <artifactId>junit</artifactId>
190 </dependencyManagement>
196 <groupId>org.sonarsource.scanner.maven</groupId>
197 <artifactId>sonar-maven-plugin</artifactId>
198 <version>${sonar.scanner.version}</version>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-compiler-plugin</artifactId>
203 <version>${maven-compiler-plugin.version}</version>
205 <release>${java.version}</release>
206 <forceJavacCompilerUse>true</forceJavacCompilerUse>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-checkstyle-plugin</artifactId>
212 <version>${maven-checkstyle-plugin.version}</version>
215 <id>ves-nf-oam-adopter-java-style</id>
219 <phase>process-sources</phase>
221 <configLocation>ves-nf-oam-adopter-java-style.xml</configLocation>
223 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
225 <includeResources>true</includeResources>
226 <includeTestSourceDirectory>true</includeTestSourceDirectory>
227 <includeTestResources>true</includeTestResources>
228 <consoleOutput>true</consoleOutput>
229 <violationSeverity>warning</violationSeverity>
230 <failOnViolation>true</failOnViolation>
236 <groupId>com.puppycrawl.tools</groupId>
237 <artifactId>checkstyle</artifactId>
238 <version>${com.puppycrawl.tools.version}</version>
241 <groupId>${project.groupId}</groupId>
242 <artifactId>ves-nf-oam-adopter-checkstyle</artifactId>
243 <version>${project.version}</version>
248 <groupId>com.github.spotbugs</groupId>
249 <artifactId>spotbugs-maven-plugin</artifactId>
250 <version>${spotbugs-maven-plugin.version}</version>
253 <groupId>com.github.spotbugs</groupId>
254 <artifactId>spotbugs</artifactId>
255 <version>${spotbugs-maven-plugin.version}</version>
258 <groupId>${project.groupId}</groupId>
259 <artifactId>ves-nf-oam-adopter-spotbugs</artifactId>
260 <version>${project.version}</version>
266 <groupId>jp.skypencil.findbugs.slf4j</groupId>
267 <artifactId>bug-pattern</artifactId>
268 <version>1.5.0</version>
272 Enables analysis which takes more memory but finds more bugs.
273 If you run out of memory, changes the value of the effort element
277 <!-- Reports all bugs (other values are medium and max) -->
278 <threshold>Low</threshold>
279 <!-- Build fail if problems are found -->
280 <failOnError>true</failOnError>
281 <!-- References the excluded rules -->
282 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
283 <!-- Produces XML report -->
284 <xmlOutput>true</xmlOutput>
285 <!-- Configures the directory in which the XML report is created -->
286 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
290 Ensures that SpotBugs inspects source code when project is compiled.
293 <id>analyze-compile</id>
294 <phase>compile</phase>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-surefire-plugin</artifactId>
304 <version>3.0.0-M4</version>
306 <!--suppress UnresolvedMavenProperty -->
307 <argLine>${surefireArgLine}</argLine>
308 <useFile>false</useFile>
310 <include>**/*Test.java</include>
313 <exclude>**/IT*.java</exclude>
318 <groupId>org.jacoco</groupId>
319 <artifactId>jacoco-maven-plugin</artifactId>
320 <version>0.8.6</version>
323 <exclude>**/api/*</exclude>
324 <exclude>**/model/*</exclude>
325 <exclude>**/pojos/*</exclude>
326 <exclude>**/configurations/*</exclude>
327 <exclude>**/properties/*</exclude>
328 <exclude>**/config/*</exclude>
329 <exclude>**/dto/*</exclude>
330 <exclude>**/AdapterApplication.class</exclude>
335 <id>pre-unit-test</id>
337 <goal>prepare-agent</goal>
340 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
341 <propertyName>surefireArgLine</propertyName>
345 <id>post-unit-test</id>
351 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
352 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
356 <id>default-prepare-agent</id>
358 <goal>prepare-agent</goal>
362 <id>default-report</id>
363 <phase>prepare-package</phase>
369 <id>default-check</id>
374 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
377 <element>BUNDLE</element>
380 <counter>INSTRUCTION</counter>
381 <value>COVEREDRATIO</value>
382 <minimum>${minimum.coverage}</minimum>
392 <goal>report-aggregate</goal>
394 <phase>verify</phase>
397 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-enforcer-plugin</artifactId>
406 <version>${maven-enforcer-plugin.version}</version>
409 <id>enforce-maven</id>
415 <requireMavenVersion>
416 <version>3.6.0</version>
417 </requireMavenVersion>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-javadoc-plugin</artifactId>
426 <version>${maven-javadoc-plugin.version}</version>
427 <configuration combine.children="append">
428 <!-- Keep things quiet except for warnings/errors -->
433 <id>attach-javadocs</id>
441 <groupId>org.springframework.boot</groupId>
442 <artifactId>spring-boot-maven-plugin</artifactId>
443 <version>${spring.boot.version}</version>
447 <goal>repackage</goal>
456 <groupId>org.apache.maven.plugins</groupId>
457 <artifactId>maven-compiler-plugin</artifactId>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-checkstyle-plugin</artifactId>
464 <groupId>com.github.spotbugs</groupId>
465 <artifactId>spotbugs-maven-plugin</artifactId>
468 <groupId>org.jacoco</groupId>
469 <artifactId>jacoco-maven-plugin</artifactId>
472 <groupId>org.sonarsource.scanner.maven</groupId>
473 <artifactId>sonar-maven-plugin</artifactId>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-enforcer-plugin</artifactId>
480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-javadoc-plugin</artifactId>
484 <groupId>org.apache.maven.plugins</groupId>
485 <artifactId>maven-surefire-plugin</artifactId>