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 </sonar.coverage.jacoco.xmlReportPaths>
49 <sonar.scanner.version>3.8.0.2131</sonar.scanner.version>
50 <!--Dependency Versions-->
51 <commons-configuration2.version>2.7</commons-configuration2.version>
52 <commons-io.version>2.6</commons-io.version>
53 <commons-beanutils.version>1.9.4</commons-beanutils.version>
54 <gson.version>2.8.6</gson.version>
55 <httpclient5.version>5.0.3</httpclient5.version>
56 <jdt.annotation.version>2.2.600</jdt.annotation.version>
57 <lombok.version>1.18.20</lombok.version>
58 <rxjava.version>3.0.12</rxjava.version>
59 <snmp4j.version>3.4.4</snmp4j.version>
60 <spotbugs.version>4.2.3</spotbugs.version>
61 <spring.boot.version>2.4.5</spring.boot.version>
62 <swagger-annotations.version>2.1.9</swagger-annotations.version>
63 <!--Plugins Versions-->
64 <com.puppycrawl.tools.version>8.41</com.puppycrawl.tools.version>
65 <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
66 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
67 <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
68 <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
69 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
70 <swagger-codegen-maven-plugin.version>3.0.25</swagger-codegen-maven-plugin.version>
71 <!--Image properties-->
72 <base.image>openjdk:11-jre-slim</base.image>
73 <base.config>${project.basedir}/configuration/</base.config>
74 <image.workdir>/o-ran-ves-adapter/</image.workdir>
75 <nexus.repository>nexus3.o-ran-sc.org:10003/o-ran-sc/</nexus.repository>
78 <dependencyManagement>
81 <groupId>${project.groupId}</groupId>
82 <artifactId>ves-nf-oam-adopter-artifacts</artifactId>
83 <version>${project.version}</version>
88 <groupId>io.swagger.core.v3</groupId>
89 <artifactId>swagger-annotations</artifactId>
90 <version>${swagger-annotations.version}</version>
93 <groupId>com.google.code.gson</groupId>
94 <artifactId>gson</artifactId>
95 <version>${gson.version}</version>
98 <groupId>org.eclipse.jdt</groupId>
99 <artifactId>org.eclipse.jdt.annotation</artifactId>
100 <version>${jdt.annotation.version}</version>
103 <groupId>io.reactivex.rxjava3</groupId>
104 <artifactId>rxjava</artifactId>
105 <version>${rxjava.version}</version>
108 <groupId>org.apache.httpcomponents.client5</groupId>
109 <artifactId>httpclient5</artifactId>
110 <version>${httpclient5.version}</version>
113 <groupId>org.projectlombok</groupId>
114 <artifactId>lombok</artifactId>
115 <version>${lombok.version}</version>
118 <groupId>org.snmp4j</groupId>
119 <artifactId>snmp4j</artifactId>
120 <version>${snmp4j.version}</version>
123 <groupId>org.apache.commons</groupId>
124 <artifactId>commons-configuration2</artifactId>
125 <version>${commons-configuration2.version}</version>
128 <groupId>commons-io</groupId>
129 <artifactId>commons-io</artifactId>
130 <version>${commons-io.version}</version>
133 <groupId>commons-beanutils</groupId>
134 <artifactId>commons-beanutils</artifactId>
135 <version>${commons-beanutils.version}</version>
138 <groupId>com.github.spotbugs</groupId>
139 <artifactId>spotbugs-annotations</artifactId>
140 <version>${spotbugs.version}</version>
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter</artifactId>
145 <version>${spring.boot.version}</version>
148 <groupId>org.springframework.boot</groupId>
149 <artifactId>spring-boot-starter-logging</artifactId>
152 <groupId>junit</groupId>
153 <artifactId>junit</artifactId>
158 <groupId>org.springframework.boot</groupId>
159 <artifactId>spring-boot-dependencies</artifactId>
160 <version>${spring.boot.version}</version>
162 <scope>import</scope>
165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-starter-logging</artifactId>
169 <groupId>junit</groupId>
170 <artifactId>junit</artifactId>
175 </dependencyManagement>
181 <groupId>org.sonarsource.scanner.maven</groupId>
182 <artifactId>sonar-maven-plugin</artifactId>
183 <version>${sonar.scanner.version}</version>
186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-compiler-plugin</artifactId>
188 <version>${maven-compiler-plugin.version}</version>
190 <release>${java.version}</release>
191 <forceJavacCompilerUse>true</forceJavacCompilerUse>
195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-checkstyle-plugin</artifactId>
197 <version>${maven-checkstyle-plugin.version}</version>
200 <id>ves-nf-oam-adopter-java-style</id>
204 <phase>process-sources</phase>
206 <configLocation>ves-nf-oam-adopter-java-style.xml</configLocation>
208 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
210 <includeResources>true</includeResources>
211 <includeTestSourceDirectory>true</includeTestSourceDirectory>
212 <includeTestResources>true</includeTestResources>
213 <consoleOutput>true</consoleOutput>
214 <violationSeverity>warning</violationSeverity>
215 <failOnViolation>true</failOnViolation>
221 <groupId>com.puppycrawl.tools</groupId>
222 <artifactId>checkstyle</artifactId>
223 <version>${com.puppycrawl.tools.version}</version>
226 <groupId>${project.groupId}</groupId>
227 <artifactId>ves-nf-oam-adopter-checkstyle</artifactId>
228 <version>${project.version}</version>
233 <groupId>com.github.spotbugs</groupId>
234 <artifactId>spotbugs-maven-plugin</artifactId>
235 <version>${spotbugs-maven-plugin.version}</version>
238 <groupId>com.github.spotbugs</groupId>
239 <artifactId>spotbugs</artifactId>
240 <version>${spotbugs-maven-plugin.version}</version>
243 <groupId>${project.groupId}</groupId>
244 <artifactId>ves-nf-oam-adopter-spotbugs</artifactId>
245 <version>${project.version}</version>
251 <groupId>jp.skypencil.findbugs.slf4j</groupId>
252 <artifactId>bug-pattern</artifactId>
253 <version>1.5.0</version>
257 Enables analysis which takes more memory but finds more bugs.
258 If you run out of memory, changes the value of the effort element
262 <!-- Reports all bugs (other values are medium and max) -->
263 <threshold>Low</threshold>
264 <!-- Build fail if problems are found -->
265 <failOnError>true</failOnError>
266 <!-- References the excluded rules -->
267 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
268 <!-- Produces XML report -->
269 <xmlOutput>true</xmlOutput>
270 <!-- Configures the directory in which the XML report is created -->
271 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
275 Ensures that SpotBugs inspects source code when project is compiled.
278 <id>analyze-compile</id>
279 <phase>compile</phase>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-surefire-plugin</artifactId>
289 <version>3.0.0-M4</version>
291 <!--suppress UnresolvedMavenProperty -->
292 <argLine>${surefireArgLine}</argLine>
293 <useFile>false</useFile>
295 <include>**/*Test.java</include>
298 <exclude>**/IT*.java</exclude>
303 <groupId>org.jacoco</groupId>
304 <artifactId>jacoco-maven-plugin</artifactId>
305 <version>0.8.6</version>
308 <exclude>**/api/*</exclude>
309 <exclude>**/model/*</exclude>
310 <exclude>**/pojos/*</exclude>
311 <exclude>**/configurations/*</exclude>
312 <exclude>**/properties/*</exclude>
313 <exclude>**/config/*</exclude>
314 <exclude>**/dto/*</exclude>
315 <exclude>**/AdapterApplication.class</exclude>
320 <id>pre-unit-test</id>
322 <goal>prepare-agent</goal>
325 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
326 <propertyName>surefireArgLine</propertyName>
330 <id>post-unit-test</id>
336 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
337 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
341 <id>default-prepare-agent</id>
343 <goal>prepare-agent</goal>
347 <id>default-report</id>
348 <phase>prepare-package</phase>
354 <id>default-check</id>
359 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
362 <element>BUNDLE</element>
365 <counter>INSTRUCTION</counter>
366 <value>COVEREDRATIO</value>
367 <minimum>${minimum.coverage}</minimum>
377 <goal>report-aggregate</goal>
379 <phase>verify</phase>
382 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-enforcer-plugin</artifactId>
391 <version>${maven-enforcer-plugin.version}</version>
394 <id>enforce-maven</id>
400 <requireMavenVersion>
401 <version>3.6.0</version>
402 </requireMavenVersion>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-javadoc-plugin</artifactId>
411 <version>${maven-javadoc-plugin.version}</version>
412 <configuration combine.children="append">
413 <!-- Keep things quiet except for warnings/errors -->
418 <id>attach-javadocs</id>
426 <groupId>org.springframework.boot</groupId>
427 <artifactId>spring-boot-maven-plugin</artifactId>
428 <version>${spring.boot.version}</version>
432 <goal>repackage</goal>
441 <groupId>org.apache.maven.plugins</groupId>
442 <artifactId>maven-compiler-plugin</artifactId>
445 <groupId>org.apache.maven.plugins</groupId>
446 <artifactId>maven-checkstyle-plugin</artifactId>
449 <groupId>com.github.spotbugs</groupId>
450 <artifactId>spotbugs-maven-plugin</artifactId>
453 <groupId>org.jacoco</groupId>
454 <artifactId>jacoco-maven-plugin</artifactId>
457 <groupId>org.sonarsource.scanner.maven</groupId>
458 <artifactId>sonar-maven-plugin</artifactId>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-enforcer-plugin</artifactId>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-javadoc-plugin</artifactId>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-surefire-plugin</artifactId>