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 </sonar.coverage.jacoco.xmlReportPaths>
51 <sonar.scanner.version>3.8.0.2131</sonar.scanner.version>
52 <!--Dependency Versions-->
53 <commons-configuration2.version>2.7</commons-configuration2.version>
54 <commons-io.version>2.6</commons-io.version>
55 <commons-beanutils.version>1.9.4</commons-beanutils.version>
56 <gson.version>2.8.6</gson.version>
57 <guava.version>30.1-jre</guava.version>
58 <httpclient5.version>5.0.3</httpclient5.version>
59 <jdt.annotation.version>2.2.600</jdt.annotation.version>
60 <lombok.version>1.18.20</lombok.version>
61 <rxjava.version>3.0.12</rxjava.version>
62 <snmp4j.version>3.4.4</snmp4j.version>
63 <spotbugs.version>4.2.3</spotbugs.version>
64 <spring.boot.version>2.4.5</spring.boot.version>
65 <swagger-annotations.version>2.1.9</swagger-annotations.version>
66 <!--Plugins Versions-->
67 <com.puppycrawl.tools.version>8.41</com.puppycrawl.tools.version>
68 <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
69 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
70 <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
71 <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
72 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
73 <swagger-codegen-maven-plugin.version>3.0.25</swagger-codegen-maven-plugin.version>
74 <!--Image properties-->
75 <base.image>openjdk:11-jre-slim</base.image>
76 <base.config>${project.basedir}/configuration/</base.config>
77 <image.workdir>/o-ran-ves-adapter/</image.workdir>
78 <nexus.repository>nexus3.o-ran-sc.org:10003/o-ran-sc/</nexus.repository>
81 <dependencyManagement>
84 <groupId>${project.groupId}</groupId>
85 <artifactId>ves-nf-oam-adopter-artifacts</artifactId>
86 <version>${project.version}</version>
91 <groupId>io.swagger.core.v3</groupId>
92 <artifactId>swagger-annotations</artifactId>
93 <version>${swagger-annotations.version}</version>
96 <groupId>com.google.code.gson</groupId>
97 <artifactId>gson</artifactId>
98 <version>${gson.version}</version>
101 <groupId>org.eclipse.jdt</groupId>
102 <artifactId>org.eclipse.jdt.annotation</artifactId>
103 <version>${jdt.annotation.version}</version>
106 <groupId>io.reactivex.rxjava3</groupId>
107 <artifactId>rxjava</artifactId>
108 <version>${rxjava.version}</version>
111 <groupId>org.apache.httpcomponents.client5</groupId>
112 <artifactId>httpclient5</artifactId>
113 <version>${httpclient5.version}</version>
116 <groupId>org.projectlombok</groupId>
117 <artifactId>lombok</artifactId>
118 <version>${lombok.version}</version>
121 <groupId>org.snmp4j</groupId>
122 <artifactId>snmp4j</artifactId>
123 <version>${snmp4j.version}</version>
126 <groupId>org.apache.commons</groupId>
127 <artifactId>commons-configuration2</artifactId>
128 <version>${commons-configuration2.version}</version>
131 <groupId>commons-io</groupId>
132 <artifactId>commons-io</artifactId>
133 <version>${commons-io.version}</version>
136 <groupId>commons-beanutils</groupId>
137 <artifactId>commons-beanutils</artifactId>
138 <version>${commons-beanutils.version}</version>
141 <groupId>com.google.guava</groupId>
142 <artifactId>guava</artifactId>
143 <version>${guava.version}</version>
146 <groupId>com.github.spotbugs</groupId>
147 <artifactId>spotbugs-annotations</artifactId>
148 <version>${spotbugs.version}</version>
151 <groupId>org.springframework.boot</groupId>
152 <artifactId>spring-boot-starter</artifactId>
153 <version>${spring.boot.version}</version>
156 <groupId>org.springframework.boot</groupId>
157 <artifactId>spring-boot-starter-logging</artifactId>
160 <groupId>junit</groupId>
161 <artifactId>junit</artifactId>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-dependencies</artifactId>
168 <version>${spring.boot.version}</version>
170 <scope>import</scope>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-logging</artifactId>
177 <groupId>junit</groupId>
178 <artifactId>junit</artifactId>
183 </dependencyManagement>
189 <groupId>org.sonarsource.scanner.maven</groupId>
190 <artifactId>sonar-maven-plugin</artifactId>
191 <version>${sonar.scanner.version}</version>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-compiler-plugin</artifactId>
196 <version>${maven-compiler-plugin.version}</version>
198 <release>${java.version}</release>
199 <forceJavacCompilerUse>true</forceJavacCompilerUse>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-checkstyle-plugin</artifactId>
205 <version>${maven-checkstyle-plugin.version}</version>
208 <id>ves-nf-oam-adopter-java-style</id>
212 <phase>process-sources</phase>
214 <configLocation>ves-nf-oam-adopter-java-style.xml</configLocation>
216 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
218 <includeResources>true</includeResources>
219 <includeTestSourceDirectory>true</includeTestSourceDirectory>
220 <includeTestResources>true</includeTestResources>
221 <consoleOutput>true</consoleOutput>
222 <violationSeverity>warning</violationSeverity>
223 <failOnViolation>true</failOnViolation>
229 <groupId>com.puppycrawl.tools</groupId>
230 <artifactId>checkstyle</artifactId>
231 <version>${com.puppycrawl.tools.version}</version>
234 <groupId>${project.groupId}</groupId>
235 <artifactId>ves-nf-oam-adopter-checkstyle</artifactId>
236 <version>${project.version}</version>
241 <groupId>com.github.spotbugs</groupId>
242 <artifactId>spotbugs-maven-plugin</artifactId>
243 <version>${spotbugs-maven-plugin.version}</version>
246 <groupId>com.github.spotbugs</groupId>
247 <artifactId>spotbugs</artifactId>
248 <version>${spotbugs-maven-plugin.version}</version>
251 <groupId>${project.groupId}</groupId>
252 <artifactId>ves-nf-oam-adopter-spotbugs</artifactId>
253 <version>${project.version}</version>
259 <groupId>jp.skypencil.findbugs.slf4j</groupId>
260 <artifactId>bug-pattern</artifactId>
261 <version>1.5.0</version>
265 Enables analysis which takes more memory but finds more bugs.
266 If you run out of memory, changes the value of the effort element
270 <!-- Reports all bugs (other values are medium and max) -->
271 <threshold>Low</threshold>
272 <!-- Build fail if problems are found -->
273 <failOnError>true</failOnError>
274 <!-- References the excluded rules -->
275 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
276 <!-- Produces XML report -->
277 <xmlOutput>true</xmlOutput>
278 <!-- Configures the directory in which the XML report is created -->
279 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
283 Ensures that SpotBugs inspects source code when project is compiled.
286 <id>analyze-compile</id>
287 <phase>compile</phase>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-surefire-plugin</artifactId>
297 <version>3.0.0-M4</version>
299 <!--suppress UnresolvedMavenProperty -->
300 <argLine>${surefireArgLine}</argLine>
301 <useFile>false</useFile>
303 <include>**/*Test.java</include>
306 <exclude>**/IT*.java</exclude>
311 <groupId>org.jacoco</groupId>
312 <artifactId>jacoco-maven-plugin</artifactId>
313 <version>0.8.6</version>
316 <exclude>**/api/*</exclude>
317 <exclude>**/model/*</exclude>
318 <exclude>**/pojos/*</exclude>
319 <exclude>**/configurations/*</exclude>
320 <exclude>**/properties/*</exclude>
321 <exclude>**/config/*</exclude>
322 <exclude>**/dto/*</exclude>
323 <exclude>**/AdapterApplication.class</exclude>
328 <id>pre-unit-test</id>
330 <goal>prepare-agent</goal>
333 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
334 <propertyName>surefireArgLine</propertyName>
338 <id>post-unit-test</id>
344 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
345 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
349 <id>default-prepare-agent</id>
351 <goal>prepare-agent</goal>
355 <id>default-report</id>
356 <phase>prepare-package</phase>
362 <id>default-check</id>
367 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
370 <element>BUNDLE</element>
373 <counter>INSTRUCTION</counter>
374 <value>COVEREDRATIO</value>
375 <minimum>${minimum.coverage}</minimum>
385 <goal>report-aggregate</goal>
387 <phase>verify</phase>
390 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-enforcer-plugin</artifactId>
399 <version>${maven-enforcer-plugin.version}</version>
402 <id>enforce-maven</id>
408 <requireMavenVersion>
409 <version>3.6.0</version>
410 </requireMavenVersion>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-javadoc-plugin</artifactId>
419 <version>${maven-javadoc-plugin.version}</version>
420 <configuration combine.children="append">
421 <!-- Keep things quiet except for warnings/errors -->
426 <id>attach-javadocs</id>
434 <groupId>org.springframework.boot</groupId>
435 <artifactId>spring-boot-maven-plugin</artifactId>
436 <version>${spring.boot.version}</version>
440 <goal>repackage</goal>
449 <groupId>org.apache.maven.plugins</groupId>
450 <artifactId>maven-compiler-plugin</artifactId>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-checkstyle-plugin</artifactId>
457 <groupId>com.github.spotbugs</groupId>
458 <artifactId>spotbugs-maven-plugin</artifactId>
461 <groupId>org.jacoco</groupId>
462 <artifactId>jacoco-maven-plugin</artifactId>
465 <groupId>org.sonarsource.scanner.maven</groupId>
466 <artifactId>sonar-maven-plugin</artifactId>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-enforcer-plugin</artifactId>
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-javadoc-plugin</artifactId>
477 <groupId>org.apache.maven.plugins</groupId>
478 <artifactId>maven-surefire-plugin</artifactId>