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 </sonar.coverage.jacoco.xmlReportPaths>
45 <!--Dependency Versions-->
46 <gson.version>2.8.6</gson.version>
47 <httpclient5.version>5.0.3</httpclient5.version>
48 <lombok.version>1.18.20</lombok.version>
49 <jdt.annotation.version>2.2.600</jdt.annotation.version>
50 <rxjava.version>3.0.12</rxjava.version>
51 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
52 <spring.boot.version>2.4.5</spring.boot.version>
53 <!--Plugins Versions-->
54 <sonar.scanner.version>3.8.0.2131</sonar.scanner.version>
55 <com.puppycrawl.tools.version>8.41</com.puppycrawl.tools.version>
56 <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
57 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
58 <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
59 <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
60 <spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
63 <dependencyManagement>
66 <groupId>${project.groupId}</groupId>
67 <artifactId>ves-nf-oam-adopter-artifacts</artifactId>
68 <version>${project.version}</version>
73 <groupId>com.google.code.gson</groupId>
74 <artifactId>gson</artifactId>
75 <version>${gson.version}</version>
78 <groupId>org.eclipse.jdt</groupId>
79 <artifactId>org.eclipse.jdt.annotation</artifactId>
80 <version>${jdt.annotation.version}</version>
83 <groupId>io.reactivex.rxjava3</groupId>
84 <artifactId>rxjava</artifactId>
85 <version>${rxjava.version}</version>
88 <groupId>org.apache.httpcomponents.client5</groupId>
89 <artifactId>httpclient5</artifactId>
90 <version>${httpclient5.version}</version>
93 <groupId>org.projectlombok</groupId>
94 <artifactId>lombok</artifactId>
95 <version>${lombok.version}</version>
98 <groupId>org.springframework.boot</groupId>
99 <artifactId>spring-boot-starter</artifactId>
100 <version>${spring.boot.version}</version>
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-starter-logging</artifactId>
107 <groupId>junit</groupId>
108 <artifactId>junit</artifactId>
113 <groupId>org.springframework.boot</groupId>
114 <artifactId>spring-boot-dependencies</artifactId>
115 <version>${spring.boot.version}</version>
117 <scope>import</scope>
120 <groupId>org.springframework.boot</groupId>
121 <artifactId>spring-boot-starter-logging</artifactId>
124 <groupId>junit</groupId>
125 <artifactId>junit</artifactId>
130 </dependencyManagement>
136 <groupId>org.sonarsource.scanner.maven</groupId>
137 <artifactId>sonar-maven-plugin</artifactId>
138 <version>${sonar.scanner.version}</version>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-compiler-plugin</artifactId>
143 <version>${maven-compiler-plugin.version}</version>
145 <release>${java.version}</release>
146 <forceJavacCompilerUse>true</forceJavacCompilerUse>
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-checkstyle-plugin</artifactId>
152 <version>${maven-checkstyle-plugin.version}</version>
155 <id>ves-nf-oam-adopter-java-style</id>
159 <phase>process-sources</phase>
161 <configLocation>ves-nf-oam-adopter-java-style.xml</configLocation>
163 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
165 <includeResources>true</includeResources>
166 <includeTestSourceDirectory>true</includeTestSourceDirectory>
167 <includeTestResources>true</includeTestResources>
168 <consoleOutput>true</consoleOutput>
169 <violationSeverity>warning</violationSeverity>
170 <failOnViolation>true</failOnViolation>
176 <groupId>com.puppycrawl.tools</groupId>
177 <artifactId>checkstyle</artifactId>
178 <version>${com.puppycrawl.tools.version}</version>
181 <groupId>${project.groupId}</groupId>
182 <artifactId>ves-nf-oam-adopter-checkstyle</artifactId>
183 <version>${project.version}</version>
188 <groupId>com.github.spotbugs</groupId>
189 <artifactId>spotbugs-maven-plugin</artifactId>
190 <version>${spotbugs-maven-plugin.version}</version>
193 <groupId>com.github.spotbugs</groupId>
194 <artifactId>spotbugs</artifactId>
195 <version>${spotbugs-maven-plugin.version}</version>
198 <groupId>${project.groupId}</groupId>
199 <artifactId>ves-nf-oam-adopter-spotbugs</artifactId>
200 <version>${project.version}</version>
206 <groupId>jp.skypencil.findbugs.slf4j</groupId>
207 <artifactId>bug-pattern</artifactId>
208 <version>1.5.0</version>
212 Enables analysis which takes more memory but finds more bugs.
213 If you run out of memory, changes the value of the effort element
217 <!-- Reports all bugs (other values are medium and max) -->
218 <threshold>Low</threshold>
219 <!-- Build fail if problems are found -->
220 <failOnError>true</failOnError>
221 <!-- References the excluded rules -->
222 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
223 <!-- Produces XML report -->
224 <xmlOutput>true</xmlOutput>
225 <!-- Configures the directory in which the XML report is created -->
226 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
230 Ensures that SpotBugs inspects source code when project is compiled.
233 <id>analyze-compile</id>
234 <phase>compile</phase>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-surefire-plugin</artifactId>
244 <version>3.0.0-M4</version>
246 <!--suppress UnresolvedMavenProperty -->
247 <argLine>${surefireArgLine}</argLine>
248 <useFile>false</useFile>
250 <include>**/*Test.java</include>
253 <exclude>**/IT*.java</exclude>
258 <groupId>org.jacoco</groupId>
259 <artifactId>jacoco-maven-plugin</artifactId>
260 <version>0.8.6</version>
263 <exclude>**/api/*</exclude>
264 <exclude>**/model/*</exclude>
265 <exclude>**/pojos/*</exclude>
266 <exclude>**/configurations/*</exclude>
267 <exclude>**/properties/*</exclude>
268 <exclude>**/config/*</exclude>
269 <exclude>**/dto/*</exclude>
270 <exclude>**/AdapterApplication.class</exclude>
275 <id>pre-unit-test</id>
277 <goal>prepare-agent</goal>
280 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
281 <propertyName>surefireArgLine</propertyName>
285 <id>post-unit-test</id>
291 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
292 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
296 <id>default-prepare-agent</id>
298 <goal>prepare-agent</goal>
302 <id>default-report</id>
303 <phase>prepare-package</phase>
309 <id>default-check</id>
314 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
317 <element>BUNDLE</element>
320 <counter>INSTRUCTION</counter>
321 <value>COVEREDRATIO</value>
322 <minimum>${minimum.coverage}</minimum>
332 <goal>report-aggregate</goal>
334 <phase>verify</phase>
337 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-enforcer-plugin</artifactId>
346 <version>${maven-enforcer-plugin.version}</version>
349 <id>enforce-maven</id>
355 <requireMavenVersion>
356 <version>3.6.0</version>
357 </requireMavenVersion>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-javadoc-plugin</artifactId>
366 <version>${maven-javadoc-plugin.version}</version>
367 <configuration combine.children="append">
368 <!-- Keep things quiet except for warnings/errors -->
373 <id>attach-javadocs</id>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-compiler-plugin</artifactId>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-checkstyle-plugin</artifactId>
392 <groupId>com.github.spotbugs</groupId>
393 <artifactId>spotbugs-maven-plugin</artifactId>
396 <groupId>org.jacoco</groupId>
397 <artifactId>jacoco-maven-plugin</artifactId>
400 <groupId>org.sonarsource.scanner.maven</groupId>
401 <artifactId>sonar-maven-plugin</artifactId>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-enforcer-plugin</artifactId>
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-javadoc-plugin</artifactId>
412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-surefire-plugin</artifactId>