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>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate>
41 <sonar.coverage.jacoco.xmlReportPaths>
42 ../ves-nf-oam-adopter-event-notifier/target/site/jacoco-ut/jacoco.xml,
43 ../ves-nf-oam-adopter-event-notifier/target/site/jacoco-aggregate/jacoco.xml
44 ../ves-nf-oam-adopter-snmp-manager/target/site/jacoco-ut/jacoco.xml,
45 ../ves-nf-oam-adopter-snmp-manager/target/site/jacoco-aggregate/jacoco.xml
46 </sonar.coverage.jacoco.xmlReportPaths>
47 <!--Dependency Versions-->
48 <commons-configuration2.version>2.7</commons-configuration2.version>
49 <commons-io.version>2.6</commons-io.version>
50 <commons-beanutils.version>1.9.4</commons-beanutils.version>
51 <gson.version>2.8.6</gson.version>
52 <httpclient5.version>5.0.3</httpclient5.version>
53 <jdt.annotation.version>2.2.600</jdt.annotation.version>
54 <lombok.version>1.18.20</lombok.version>
55 <rxjava.version>3.0.12</rxjava.version>
56 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
57 <spring.boot.version>2.4.5</spring.boot.version>
58 <snmp4j.version>3.4.4</snmp4j.version>
59 <spotbugs.version>4.2.3</spotbugs.version>
60 <!--Plugins Versions-->
61 <sonar.scanner.version>3.8.0.2131</sonar.scanner.version>
62 <com.puppycrawl.tools.version>8.41</com.puppycrawl.tools.version>
63 <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
64 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
65 <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
66 <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
67 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
70 <dependencyManagement>
73 <groupId>${project.groupId}</groupId>
74 <artifactId>ves-nf-oam-adopter-artifacts</artifactId>
75 <version>${project.version}</version>
80 <groupId>com.google.code.gson</groupId>
81 <artifactId>gson</artifactId>
82 <version>${gson.version}</version>
85 <groupId>org.eclipse.jdt</groupId>
86 <artifactId>org.eclipse.jdt.annotation</artifactId>
87 <version>${jdt.annotation.version}</version>
90 <groupId>io.reactivex.rxjava3</groupId>
91 <artifactId>rxjava</artifactId>
92 <version>${rxjava.version}</version>
95 <groupId>org.apache.httpcomponents.client5</groupId>
96 <artifactId>httpclient5</artifactId>
97 <version>${httpclient5.version}</version>
100 <groupId>org.projectlombok</groupId>
101 <artifactId>lombok</artifactId>
102 <version>${lombok.version}</version>
105 <groupId>org.snmp4j</groupId>
106 <artifactId>snmp4j</artifactId>
107 <version>${snmp4j.version}</version>
110 <groupId>org.apache.commons</groupId>
111 <artifactId>commons-configuration2</artifactId>
112 <version>${commons-configuration2.version}</version>
115 <groupId>commons-io</groupId>
116 <artifactId>commons-io</artifactId>
117 <version>${commons-io.version}</version>
120 <groupId>commons-beanutils</groupId>
121 <artifactId>commons-beanutils</artifactId>
122 <version>${commons-beanutils.version}</version>
125 <groupId>com.github.spotbugs</groupId>
126 <artifactId>spotbugs-annotations</artifactId>
127 <version>${spotbugs.version}</version>
130 <groupId>org.springframework.boot</groupId>
131 <artifactId>spring-boot-starter</artifactId>
132 <version>${spring.boot.version}</version>
135 <groupId>org.springframework.boot</groupId>
136 <artifactId>spring-boot-starter-logging</artifactId>
139 <groupId>junit</groupId>
140 <artifactId>junit</artifactId>
145 <groupId>org.springframework.boot</groupId>
146 <artifactId>spring-boot-dependencies</artifactId>
147 <version>${spring.boot.version}</version>
149 <scope>import</scope>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-logging</artifactId>
156 <groupId>junit</groupId>
157 <artifactId>junit</artifactId>
162 </dependencyManagement>
168 <groupId>org.sonarsource.scanner.maven</groupId>
169 <artifactId>sonar-maven-plugin</artifactId>
170 <version>${sonar.scanner.version}</version>
173 <groupId>org.apache.maven.plugins</groupId>
174 <artifactId>maven-compiler-plugin</artifactId>
175 <version>${maven-compiler-plugin.version}</version>
177 <release>${java.version}</release>
178 <forceJavacCompilerUse>true</forceJavacCompilerUse>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-checkstyle-plugin</artifactId>
184 <version>${maven-checkstyle-plugin.version}</version>
187 <id>ves-nf-oam-adopter-java-style</id>
191 <phase>process-sources</phase>
193 <configLocation>ves-nf-oam-adopter-java-style.xml</configLocation>
195 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
197 <includeResources>true</includeResources>
198 <includeTestSourceDirectory>true</includeTestSourceDirectory>
199 <includeTestResources>true</includeTestResources>
200 <consoleOutput>true</consoleOutput>
201 <violationSeverity>warning</violationSeverity>
202 <failOnViolation>true</failOnViolation>
208 <groupId>com.puppycrawl.tools</groupId>
209 <artifactId>checkstyle</artifactId>
210 <version>${com.puppycrawl.tools.version}</version>
213 <groupId>${project.groupId}</groupId>
214 <artifactId>ves-nf-oam-adopter-checkstyle</artifactId>
215 <version>${project.version}</version>
220 <groupId>com.github.spotbugs</groupId>
221 <artifactId>spotbugs-maven-plugin</artifactId>
222 <version>${spotbugs-maven-plugin.version}</version>
225 <groupId>com.github.spotbugs</groupId>
226 <artifactId>spotbugs</artifactId>
227 <version>${spotbugs-maven-plugin.version}</version>
230 <groupId>${project.groupId}</groupId>
231 <artifactId>ves-nf-oam-adopter-spotbugs</artifactId>
232 <version>${project.version}</version>
238 <groupId>jp.skypencil.findbugs.slf4j</groupId>
239 <artifactId>bug-pattern</artifactId>
240 <version>1.5.0</version>
244 Enables analysis which takes more memory but finds more bugs.
245 If you run out of memory, changes the value of the effort element
249 <!-- Reports all bugs (other values are medium and max) -->
250 <threshold>Low</threshold>
251 <!-- Build fail if problems are found -->
252 <failOnError>true</failOnError>
253 <!-- References the excluded rules -->
254 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
255 <!-- Produces XML report -->
256 <xmlOutput>true</xmlOutput>
257 <!-- Configures the directory in which the XML report is created -->
258 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
262 Ensures that SpotBugs inspects source code when project is compiled.
265 <id>analyze-compile</id>
266 <phase>compile</phase>
274 <groupId>org.apache.maven.plugins</groupId>
275 <artifactId>maven-surefire-plugin</artifactId>
276 <version>3.0.0-M4</version>
278 <!--suppress UnresolvedMavenProperty -->
279 <argLine>${surefireArgLine}</argLine>
280 <useFile>false</useFile>
282 <include>**/*Test.java</include>
285 <exclude>**/IT*.java</exclude>
290 <groupId>org.jacoco</groupId>
291 <artifactId>jacoco-maven-plugin</artifactId>
292 <version>0.8.6</version>
295 <exclude>**/api/*</exclude>
296 <exclude>**/model/*</exclude>
297 <exclude>**/pojos/*</exclude>
298 <exclude>**/configurations/*</exclude>
299 <exclude>**/properties/*</exclude>
300 <exclude>**/config/*</exclude>
301 <exclude>**/dto/*</exclude>
302 <exclude>**/AdapterApplication.class</exclude>
307 <id>pre-unit-test</id>
309 <goal>prepare-agent</goal>
312 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
313 <propertyName>surefireArgLine</propertyName>
317 <id>post-unit-test</id>
323 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
324 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
328 <id>default-prepare-agent</id>
330 <goal>prepare-agent</goal>
334 <id>default-report</id>
335 <phase>prepare-package</phase>
341 <id>default-check</id>
346 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
349 <element>BUNDLE</element>
352 <counter>INSTRUCTION</counter>
353 <value>COVEREDRATIO</value>
354 <minimum>${minimum.coverage}</minimum>
364 <goal>report-aggregate</goal>
366 <phase>verify</phase>
369 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-enforcer-plugin</artifactId>
378 <version>${maven-enforcer-plugin.version}</version>
381 <id>enforce-maven</id>
387 <requireMavenVersion>
388 <version>3.6.0</version>
389 </requireMavenVersion>
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-javadoc-plugin</artifactId>
398 <version>${maven-javadoc-plugin.version}</version>
399 <configuration combine.children="append">
400 <!-- Keep things quiet except for warnings/errors -->
405 <id>attach-javadocs</id>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-compiler-plugin</artifactId>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-checkstyle-plugin</artifactId>
424 <groupId>com.github.spotbugs</groupId>
425 <artifactId>spotbugs-maven-plugin</artifactId>
428 <groupId>org.jacoco</groupId>
429 <artifactId>jacoco-maven-plugin</artifactId>
432 <groupId>org.sonarsource.scanner.maven</groupId>
433 <artifactId>sonar-maven-plugin</artifactId>
436 <groupId>org.apache.maven.plugins</groupId>
437 <artifactId>maven-enforcer-plugin</artifactId>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-javadoc-plugin</artifactId>
444 <groupId>org.apache.maven.plugins</groupId>
445 <artifactId>maven-surefire-plugin</artifactId>