Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Bruno Sakoto | 5c7c489 | 2021-02-08 21:51:05 -0500 | [diff] [blame] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (c) 2021 Pantheon.tech. |
| 5 | Modifications Copyright (C) 2021 Bell Canada. |
danielhanrahan | c72a013 | 2024-02-09 17:40:18 +0000 | [diff] [blame] | 6 | Modifications Copyright (C) 2021-2024 Nordix Foundation. |
Bruno Sakoto | 5c7c489 | 2021-02-08 21:51:05 -0500 | [diff] [blame] | 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 |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 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========================================================= |
| 20 | --> |
| 21 | |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 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"> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 25 | |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 26 | <!-- Project Metadata --> |
| 27 | <modelVersion>4.0.0</modelVersion> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 28 | <groupId>org.onap.cps</groupId> |
| 29 | <artifactId>cps-parent</artifactId> |
egernug | 7cd33c3 | 2024-11-29 12:49:10 +0000 | [diff] [blame^] | 30 | <version>3.5.6-SNAPSHOT</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 31 | <packaging>pom</packaging> |
| 32 | |
| 33 | <properties> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 34 | <!-- Set UTF-8 encoding for consistent builds across platforms --> |
| 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 36 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 37 | <!-- Application Configuration --> |
| 38 | <app>org.onap.cps.Application</app> |
| 39 | |
| 40 | <!-- Parent Directory Configuration --> |
| 41 | <parent.directory>${project.basedir}/..</parent.directory> |
| 42 | |
| 43 | <!-- Global properties for version management --> |
| 44 | <bug.pattern.version>1.5.0</bug.pattern.version> |
| 45 | <dependency.check.version>9.2.0</dependency.check.version> |
sourabh_sourabh | ea5b0a8 | 2024-11-11 16:40:59 +0000 | [diff] [blame] | 46 | <git.commit.id.version>9.0.1</git.commit.id.version> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 47 | <gmavenplus.plugin.version>4.0.1</gmavenplus.plugin.version> |
| 48 | <jacoco.version>0.8.11</jacoco.version> |
| 49 | <java.version>17</java.version> |
| 50 | <jsonschema2pojo.maven.plugin.version>1.2.1</jsonschema2pojo.maven.plugin.version> |
| 51 | <maven.checkstyle.plugin.version>3.3.1</maven.checkstyle.plugin.version> |
| 52 | <maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version> |
| 53 | <maven.compiler.release>17</maven.compiler.release> |
sourabh_sourabh | ea5b0a8 | 2024-11-11 16:40:59 +0000 | [diff] [blame] | 54 | <maven.failsafe.plugin.version>3.5.2</maven.failsafe.plugin.version> |
| 55 | <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 56 | <maven.site.plugin.version>4.0.0-M13</maven.site.plugin.version> |
sourabh_sourabh | ea5b0a8 | 2024-11-11 16:40:59 +0000 | [diff] [blame] | 57 | <maven.surefire.plugin.version>3.3.1</maven.surefire.plugin.version> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 58 | <postgres.version>42.5.1</postgres.version> |
| 59 | <slf4j.simple.version>2.0.6</slf4j.simple.version> |
| 60 | <sonar.version>4.0.0.4121</sonar.version> |
| 61 | <spotbugs.plugin.version>4.8.6.4</spotbugs.plugin.version> |
| 62 | <spotbugs.version>4.8.6</spotbugs.version> |
sourabh_sourabh | ea5b0a8 | 2024-11-11 16:40:59 +0000 | [diff] [blame] | 63 | <spring.boot.maven.plugin.version>3.3.1</spring.boot.maven.plugin.version> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 64 | <swagger.codegen.version>1.2.1</swagger.codegen.version> |
| 65 | |
| 66 | <!-- Reporting paths and coverage --> |
| 67 | <jacoco.execFile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco.execFile> |
| 68 | <jacoco.outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</jacoco.outputDirectory> |
Claudio David Gasparini | d45b2dc | 2021-01-13 13:28:07 +0100 | [diff] [blame] | 69 | <jacoco.reportDirectory.aggregate>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 70 | <minimum-coverage>1.00</minimum-coverage> |
Claudio David Gasparini | d45b2dc | 2021-01-13 13:28:07 +0100 | [diff] [blame] | 71 | <sonar.coverage.jacoco.xmlReportPaths> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 72 | ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml |
Claudio David Gasparini | d45b2dc | 2021-01-13 13:28:07 +0100 | [diff] [blame] | 73 | </sonar.coverage.jacoco.xmlReportPaths> |
sourabh_sourabh | 00da0af | 2024-11-13 13:42:42 +0000 | [diff] [blame] | 74 | |
| 75 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 76 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 77 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> |
| 78 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 79 | </properties> |
| 80 | |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 81 | <distributionManagement> |
| 82 | <repository> |
| 83 | <id>ecomp-releases</id> |
sourabh_sourabh | 00da0af | 2024-11-13 13:42:42 +0000 | [diff] [blame] | 84 | <name>ECOMP Release Repository</name> |
| 85 | <url>${onap.nexus.url}${releaseNexusPath}</url> |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 86 | </repository> |
| 87 | <snapshotRepository> |
| 88 | <id>ecomp-snapshots</id> |
sourabh_sourabh | 00da0af | 2024-11-13 13:42:42 +0000 | [diff] [blame] | 89 | <name>ECOMP Snapshot Repository</name> |
| 90 | <url>${onap.nexus.url}${snapshotNexusPath}</url> |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 91 | </snapshotRepository> |
| 92 | </distributionManagement> |
| 93 | |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 94 | <!-- Dependency Management, Profiles, Build, and Plugins --> |
| 95 | |
| 96 | <dependencyManagement> |
| 97 | <dependencies> |
| 98 | <dependency> |
| 99 | <groupId>org.onap.cps</groupId> |
| 100 | <artifactId>cps-dependencies</artifactId> |
| 101 | <version>${project.version}</version> |
| 102 | <type>pom</type> |
| 103 | <scope>import</scope> |
| 104 | </dependency> |
| 105 | <dependency> |
| 106 | <groupId>org.onap.cps</groupId> |
| 107 | <artifactId>cps-bom</artifactId> |
| 108 | <version>${project.version}</version> |
| 109 | <type>pom</type> |
| 110 | <scope>import</scope> |
| 111 | </dependency> |
| 112 | </dependencies> |
| 113 | </dependencyManagement> |
| 114 | |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 115 | <profiles> |
| 116 | <profile> |
| 117 | <id>Windows</id> |
| 118 | <activation> |
| 119 | <os> |
| 120 | <family>Windows</family> |
| 121 | </os> |
| 122 | </activation> |
| 123 | <properties> |
| 124 | <script.executor>python</script.executor> |
| 125 | </properties> |
| 126 | </profile> |
| 127 | <profile> |
| 128 | <id>unix</id> |
| 129 | <activation> |
| 130 | <os> |
| 131 | <family>unix</family> |
| 132 | </os> |
| 133 | </activation> |
| 134 | <properties> |
| 135 | <script.executor>python3</script.executor> |
| 136 | </properties> |
| 137 | </profile> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 138 | <profile> |
| 139 | <id>dependency-vulnerability-check</id> |
| 140 | <build> |
| 141 | <plugins> |
| 142 | <plugin> |
| 143 | <groupId>org.owasp</groupId> |
| 144 | <artifactId>dependency-check-maven</artifactId> |
| 145 | <version>${dependency.check.version}</version> |
| 146 | <executions> |
| 147 | <execution> |
| 148 | <goals> |
| 149 | <goal>aggregate</goal> |
| 150 | </goals> |
| 151 | </execution> |
| 152 | </executions> |
| 153 | </plugin> |
| 154 | </plugins> |
| 155 | </build> |
| 156 | </profile> |
sourabh_sourabh | ea5b0a8 | 2024-11-11 16:40:59 +0000 | [diff] [blame] | 157 | <!-- Performance tests are run with maven-failsafe-plugin using a separate profile, so they will |
| 158 | not affect Jacoco coverage. Heap size is set here to ensure consistent test environment. --> |
| 159 | <profile> |
| 160 | <id>include-performance</id> |
| 161 | <properties> |
| 162 | <failsafeArgLine>-Xms512m -Xmx512m</failsafeArgLine> |
| 163 | </properties> |
| 164 | <build> |
| 165 | <plugins> |
| 166 | <plugin> |
| 167 | <groupId>org.apache.maven.plugins</groupId> |
| 168 | <artifactId>maven-failsafe-plugin</artifactId> |
| 169 | <version>${maven.failsafe.plugin.version}</version> |
| 170 | <configuration> |
| 171 | <includes> |
| 172 | <include>**/*PerfTest.java</include> |
| 173 | </includes> |
| 174 | </configuration> |
| 175 | <executions> |
| 176 | <execution> |
| 177 | <goals> |
| 178 | <goal>integration-test</goal> |
| 179 | <goal>verify</goal> |
| 180 | </goals> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | </plugin> |
| 184 | </plugins> |
| 185 | </build> |
| 186 | </profile> |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 187 | </profiles> |
| 188 | |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 189 | <build> |
| 190 | <resources> |
| 191 | <resource> |
| 192 | <directory>src/main/resources</directory> |
| 193 | <filtering>true</filtering> |
| 194 | </resource> |
| 195 | <resource> |
| 196 | <directory>target/generated-sources/license</directory> |
| 197 | <includes> |
| 198 | <include>third-party-licenses.txt</include> |
| 199 | </includes> |
| 200 | </resource> |
| 201 | <resource> |
| 202 | <directory>target/generated-resources/licenses</directory> |
| 203 | <includes> |
| 204 | <include>*.*</include> |
| 205 | </includes> |
| 206 | <targetPath>third-party-licenses</targetPath> |
| 207 | </resource> |
| 208 | </resources> |
| 209 | <pluginManagement> |
| 210 | <plugins> |
| 211 | <plugin> |
| 212 | <groupId>org.springframework.boot</groupId> |
| 213 | <artifactId>spring-boot-maven-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 214 | <version>${spring.boot.maven.plugin.version}</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 215 | <executions> |
| 216 | <execution> |
| 217 | <goals> |
| 218 | <goal>repackage</goal> |
| 219 | </goals> |
| 220 | </execution> |
| 221 | </executions> |
| 222 | </plugin> |
Bruno Sakoto | 6c34718 | 2021-07-22 15:25:23 -0400 | [diff] [blame] | 223 | <plugin> |
mpriyank | ff99139 | 2024-10-16 11:59:49 +0100 | [diff] [blame] | 224 | <groupId>io.github.git-commit-id</groupId> |
| 225 | <artifactId>git-commit-id-maven-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 226 | <version>${git.commit.id.version}</version> |
mpriyank | ff99139 | 2024-10-16 11:59:49 +0100 | [diff] [blame] | 227 | <executions> |
| 228 | <execution> |
| 229 | <id>get-git-info</id> |
| 230 | <goals> |
| 231 | <goal>revision</goal> |
| 232 | </goals> |
| 233 | <phase>package</phase> |
| 234 | </execution> |
| 235 | </executions> |
| 236 | </plugin> |
puthuparambil.aditya | 4759811 | 2020-11-02 11:31:39 +0000 | [diff] [blame] | 237 | <!-- Swagger code generation. --> |
| 238 | <plugin> |
| 239 | <groupId>io.swagger.codegen.v3</groupId> |
| 240 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 241 | <executions> |
| 242 | <execution> |
| 243 | <id>openapi-yaml-gen</id> |
| 244 | <goals> |
| 245 | <goal>generate</goal> |
| 246 | </goals> |
| 247 | <phase>compile</phase> |
| 248 | <configuration> |
| 249 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 250 | <language>openapi-yaml</language> |
| 251 | </configuration> |
| 252 | </execution> |
| 253 | </executions> |
puthuparambil.aditya | 4759811 | 2020-11-02 11:31:39 +0000 | [diff] [blame] | 254 | </plugin> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 255 | <plugin> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 256 | <groupId>com.github.spotbugs</groupId> |
| 257 | <artifactId>spotbugs-maven-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 258 | <version>${spotbugs.plugin.version}</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 259 | <dependencies> |
| 260 | <dependency> |
| 261 | <groupId>com.github.spotbugs</groupId> |
| 262 | <artifactId>spotbugs</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 263 | <version>${spotbugs.version}</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 264 | </dependency> |
| 265 | <dependency> |
| 266 | <groupId>${project.groupId}</groupId> |
| 267 | <artifactId>spotbugs</artifactId> |
| 268 | <version>${project.version}</version> |
| 269 | </dependency> |
| 270 | <dependency> |
| 271 | <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 --> |
| 272 | <groupId>org.slf4j</groupId> |
| 273 | <artifactId>slf4j-simple</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 274 | <version>${slf4j.simple.version}</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 275 | </dependency> |
| 276 | </dependencies> |
| 277 | <configuration> |
| 278 | <plugins> |
| 279 | <plugin> |
| 280 | <groupId>jp.skypencil.findbugs.slf4j</groupId> |
| 281 | <artifactId>bug-pattern</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 282 | <version>${bug.pattern.version}</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 283 | </plugin> |
| 284 | </plugins> |
| 285 | <!-- |
| 286 | Enables analysis which takes more memory but finds more bugs. |
| 287 | If you run out of memory, changes the value of the effort element |
| 288 | to 'Low'. |
| 289 | --> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 290 | <addSourceDirs>true</addSourceDirs> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 291 | <effort>Max</effort> |
| 292 | <!-- Reports all bugs (other values are medium and max) --> |
| 293 | <threshold>Low</threshold> |
| 294 | <!-- Build doesn't fail if problems are found --> |
Claudio David Gasparini | 9afc8d1 | 2021-01-11 16:42:30 +0100 | [diff] [blame] | 295 | <failOnError>true</failOnError> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 296 | <!-- References the excluded rules --> |
| 297 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile> |
| 298 | <!-- Produces XML report --> |
| 299 | <xmlOutput>true</xmlOutput> |
| 300 | <!-- Configures the directory in which the XML report is created --> |
| 301 | <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory> |
| 302 | </configuration> |
| 303 | <executions> |
| 304 | <!-- |
| 305 | Ensures that SpotBugs inspects source code when project is compiled. |
| 306 | --> |
| 307 | <execution> |
| 308 | <id>analyze-compile</id> |
| 309 | <phase>compile</phase> |
| 310 | <goals> |
| 311 | <goal>check</goal> |
| 312 | </goals> |
| 313 | </execution> |
| 314 | </executions> |
| 315 | </plugin> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 316 | <plugin> |
| 317 | <groupId>org.jsonschema2pojo</groupId> |
| 318 | <artifactId>jsonschema2pojo-maven-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 319 | <version>${jsonschema2pojo.maven.plugin.version}</version> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 320 | <configuration> |
| 321 | <targetVersion>${java.version}</targetVersion> |
| 322 | </configuration> |
| 323 | <executions> |
| 324 | <execution> |
| 325 | <goals> |
| 326 | <goal>generate</goal> |
| 327 | </goals> |
| 328 | </execution> |
| 329 | </executions> |
| 330 | </plugin> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 331 | </plugins> |
| 332 | </pluginManagement> |
| 333 | <plugins> |
| 334 | <plugin> |
| 335 | <groupId>org.apache.maven.plugins</groupId> |
| 336 | <artifactId>maven-compiler-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 337 | <version>${maven.compiler.plugin.version}</version> |
| 338 | <configuration> |
| 339 | <encoding>${project.build.sourceEncoding}</encoding> |
| 340 | </configuration> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 341 | </plugin> |
| 342 | <plugin> |
| 343 | <groupId>org.apache.maven.plugins</groupId> |
| 344 | <artifactId>maven-checkstyle-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 345 | <version>${maven.checkstyle.plugin.version}</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 346 | <executions> |
| 347 | <execution> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 348 | <id>onap-license</id> |
| 349 | <goals> |
| 350 | <goal>check</goal> |
| 351 | </goals> |
| 352 | <phase>process-sources</phase> |
| 353 | <configuration> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 354 | <configLocation>cps-checkstyle/check-license.xml</configLocation> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 355 | <includeResources>false</includeResources> |
| 356 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 357 | <includeTestResources>false</includeTestResources> |
| 358 | <sourceDirectories> |
| 359 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 360 | </sourceDirectories> |
| 361 | <consoleOutput>false</consoleOutput> |
| 362 | <violationSeverity>warning</violationSeverity> |
| 363 | <failOnViolation>true</failOnViolation> |
| 364 | </configuration> |
| 365 | </execution> |
| 366 | <execution> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 367 | <id>cps-java-style</id> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 368 | <goals> |
| 369 | <goal>check</goal> |
| 370 | </goals> |
| 371 | <phase>process-sources</phase> |
| 372 | <configuration> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 373 | <configLocation>cps-checkstyle/cps-java-style.xml</configLocation> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 374 | <sourceDirectories> |
| 375 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 376 | </sourceDirectories> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 377 | <includeResources>true</includeResources> |
| 378 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 379 | <includeTestResources>true</includeTestResources> |
| 380 | <consoleOutput>false</consoleOutput> |
| 381 | <violationSeverity>warning</violationSeverity> |
| 382 | <failOnViolation>true</failOnViolation> |
| 383 | </configuration> |
| 384 | </execution> |
| 385 | </executions> |
| 386 | <dependencies> |
| 387 | <dependency> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 388 | <groupId>${project.groupId}</groupId> |
| 389 | <artifactId>checkstyle</artifactId> |
| 390 | <version>${project.version}</version> |
| 391 | </dependency> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 392 | </dependencies> |
| 393 | </plugin> |
| 394 | <!-- Mandatory plugins for using Spock --> |
| 395 | <plugin> |
| 396 | <!-- The gmavenplus plugin is used to compile Groovy code. |
| 397 | To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki --> |
| 398 | <groupId>org.codehaus.gmavenplus</groupId> |
| 399 | <artifactId>gmavenplus-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 400 | <version>${gmavenplus.plugin.version}</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 401 | <executions> |
| 402 | <execution> |
| 403 | <goals> |
| 404 | <goal>compileTests</goal> |
| 405 | </goals> |
| 406 | </execution> |
| 407 | </executions> |
| 408 | </plugin> |
| 409 | <!-- Required because names of spec classes don't match default |
| 410 | Surefire patterns (`*Test` etc.) --> |
| 411 | <plugin> |
| 412 | <groupId>org.apache.maven.plugins</groupId> |
| 413 | <artifactId>maven-surefire-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 414 | <version>${maven.surefire.plugin.version}</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 415 | <configuration> |
puthuparambil.aditya | 008c0ad | 2020-12-14 15:46:30 +0000 | [diff] [blame] | 416 | <!--suppress UnresolvedMavenProperty --> |
Claudio David Gasparini | 13cc64d | 2020-12-02 18:47:09 +0100 | [diff] [blame] | 417 | <argLine>${surefireArgLine}</argLine> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 418 | <useFile>false</useFile> |
| 419 | <includes> |
| 420 | <include>**/*Spec.java</include> |
| 421 | <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests --> |
| 422 | </includes> |
Claudio David Gasparini | 13cc64d | 2020-12-02 18:47:09 +0100 | [diff] [blame] | 423 | <excludes> |
danielhanrahan | c72a013 | 2024-02-09 17:40:18 +0000 | [diff] [blame] | 424 | <!-- maven-failsafe-plugin will run performance tests in the integration-test module, |
| 425 | so performance tests will not affect Jacoco coverage (jacoco-report module is configured |
| 426 | to aggregate results from tests run with maven-surefire-plugin only) --> |
| 427 | <exclude>**/*PerfTest.java</exclude> |
Claudio David Gasparini | 13cc64d | 2020-12-02 18:47:09 +0100 | [diff] [blame] | 428 | </excludes> |
Ruslan Kashapov | bf02f20 | 2020-12-17 10:38:53 +0200 | [diff] [blame] | 429 | <environmentVariables> |
| 430 | <!-- |
| 431 | disable privileged container usage to cleanup the test containers; |
| 432 | these will be removed automatically on jvm termination; |
| 433 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 434 | --> |
| 435 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 436 | <TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>${docker.pull.registry}/</TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX> |
Ruslan Kashapov | bf02f20 | 2020-12-17 10:38:53 +0200 | [diff] [blame] | 437 | </environmentVariables> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 438 | </configuration> |
| 439 | </plugin> |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 440 | <plugin> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 441 | <groupId>org.jacoco</groupId> |
| 442 | <artifactId>jacoco-maven-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 443 | <version>${jacoco.version}</version> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 444 | <configuration> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 445 | <!-- Exclude all generated classes or specific patterns if necessary --> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 446 | <excludes> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 447 | <exclude>org/onap/cps/events/model/*</exclude> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 448 | <exclude>org/onap/cps/rest/model/*</exclude> |
| 449 | <exclude>org/onap/cps/cpspath/parser/antlr4/*</exclude> |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 450 | <exclude>org/onap/cps/ncmp/rest/model/*</exclude> |
ToineSiebelink | 7fcffe5 | 2023-07-24 12:23:05 +0100 | [diff] [blame] | 451 | <exclude>org/onap/cps/**/*MapperImpl.class</exclude> |
| 452 | <exclude>org/onap/cps/ncmp/rest/stub/*</exclude> |
ToineSiebelink | d7914bc | 2024-07-04 15:15:36 +0100 | [diff] [blame] | 453 | <exclude>org/onap/cps/policyexecutor/stub/model/*</exclude> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 454 | <exclude>**/pom.xml</exclude> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 455 | </excludes> |
| 456 | </configuration> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 457 | <executions> |
| 458 | <execution> |
| 459 | <id>default-prepare-agent</id> |
| 460 | <goals> |
| 461 | <goal>prepare-agent</goal> |
| 462 | </goals> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 463 | <configuration> |
| 464 | <destFile>${jacoco.execFile}</destFile> |
| 465 | <propertyName>surefireArgLine</propertyName> |
| 466 | </configuration> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 467 | </execution> |
| 468 | <execution> |
| 469 | <id>coverage-check</id> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 470 | <phase>test</phase> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 471 | <goals> |
| 472 | <goal>check</goal> |
| 473 | </goals> |
| 474 | <configuration> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 475 | <dataFile>${jacoco.execFile}</dataFile> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 476 | <rules> |
| 477 | <rule> |
| 478 | <element>BUNDLE</element> |
| 479 | <limits> |
| 480 | <limit> |
| 481 | <counter>INSTRUCTION</counter> |
| 482 | <value>COVEREDRATIO</value> |
| 483 | <minimum>${minimum-coverage}</minimum> |
| 484 | </limit> |
| 485 | </limits> |
| 486 | </rule> |
| 487 | </rules> |
| 488 | </configuration> |
| 489 | </execution> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 490 | <execution> |
| 491 | <id>post-unit-test</id> |
| 492 | <phase>test</phase> |
| 493 | <goals> |
| 494 | <goal>report</goal> |
| 495 | </goals> |
| 496 | <configuration> |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 497 | <outputEncoding>${project.reporting.outputEncoding}</outputEncoding> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 498 | <!-- Sets the path to the file which contains the execution data. --> |
| 499 | <dataFile>${jacoco.execFile}</dataFile> |
| 500 | <!-- Sets the output directory for the code coverage report. --> |
| 501 | <outputDirectory>${jacoco.outputDirectory}</outputDirectory> |
| 502 | </configuration> |
| 503 | </execution> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 504 | </executions> |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 505 | </plugin> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 506 | |
| 507 | <!-- Sonar Plugin for Code Quality --> |
Claudio David Gasparini | 7492aea | 2021-01-13 08:34:00 +0100 | [diff] [blame] | 508 | <plugin> |
| 509 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 510 | <artifactId>sonar-maven-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 511 | <version>${sonar.version}</version> |
| 512 | </plugin> |
| 513 | |
| 514 | <!-- Maven Site Plugin for Site Generation --> |
| 515 | <plugin> |
| 516 | <groupId>org.apache.maven.plugins</groupId> |
| 517 | <artifactId>maven-site-plugin</artifactId> |
| 518 | <version>${maven.site.plugin.version}</version> |
| 519 | <executions> |
| 520 | <execution> |
| 521 | <id>default-site</id> |
| 522 | <phase>site</phase> |
| 523 | <goals><goal>site</goal></goals> |
| 524 | </execution> |
| 525 | </executions> |
Claudio David Gasparini | 7492aea | 2021-01-13 08:34:00 +0100 | [diff] [blame] | 526 | </plugin> |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 527 | <plugin> |
| 528 | <groupId>org.apache.maven.plugins</groupId> |
| 529 | <artifactId>maven-deploy-plugin</artifactId> |
| 530 | <version>3.1.2</version> |
| 531 | </plugin> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 532 | </plugins> |
| 533 | </build> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 534 | </project> |