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. |
lukegleeson | 7e243c9 | 2023-04-20 15:32:12 +0100 | [diff] [blame] | 6 | Modifications Copyright (C) 2021-2023 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"> |
| 25 | <parent> |
| 26 | <groupId>org.onap.oparent</groupId> |
| 27 | <artifactId>oparent</artifactId> |
Rishi.Chail | 47b0b18 | 2021-01-28 03:19:47 +0000 | [diff] [blame] | 28 | <version>3.2.0</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 29 | <relativePath/> |
| 30 | </parent> |
| 31 | <modelVersion>4.0.0</modelVersion> |
| 32 | |
| 33 | <groupId>org.onap.cps</groupId> |
| 34 | <artifactId>cps-parent</artifactId> |
egernug | bdac440 | 2023-07-21 13:27:24 +0100 | [diff] [blame] | 35 | <version>3.3.6-SNAPSHOT</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 36 | <packaging>pom</packaging> |
| 37 | |
| 38 | <properties> |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 39 | <app>org.onap.cps.Application</app> |
egernug | 2b8268f | 2023-07-03 10:09:09 +0100 | [diff] [blame] | 40 | <java.version>17</java.version> |
ToineSiebelink | 7fcffe5 | 2023-07-24 12:23:05 +0100 | [diff] [blame] | 41 | <minimum-coverage>1.00</minimum-coverage> |
leventecsanyi | abf3244 | 2022-12-07 16:22:39 +0100 | [diff] [blame] | 42 | <postgres.version>42.5.1</postgres.version> |
Claudio David Gasparini | d45b2dc | 2021-01-13 13:28:07 +0100 | [diff] [blame] | 43 | |
| 44 | <jacoco.reportDirectory.aggregate>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate> |
| 45 | <sonar.coverage.jacoco.xmlReportPaths> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 46 | ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml |
Claudio David Gasparini | d45b2dc | 2021-01-13 13:28:07 +0100 | [diff] [blame] | 47 | </sonar.coverage.jacoco.xmlReportPaths> |
waqas.ikram | cb0256d | 2023-06-16 13:05:04 +0100 | [diff] [blame] | 48 | <parent.directory>${project.basedir}/..</parent.directory> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 49 | </properties> |
| 50 | |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 51 | <profiles> |
| 52 | <profile> |
| 53 | <id>Windows</id> |
| 54 | <activation> |
| 55 | <os> |
| 56 | <family>Windows</family> |
| 57 | </os> |
| 58 | </activation> |
| 59 | <properties> |
| 60 | <script.executor>python</script.executor> |
| 61 | </properties> |
| 62 | </profile> |
| 63 | <profile> |
| 64 | <id>unix</id> |
| 65 | <activation> |
| 66 | <os> |
| 67 | <family>unix</family> |
| 68 | </os> |
| 69 | </activation> |
| 70 | <properties> |
| 71 | <script.executor>python3</script.executor> |
| 72 | </properties> |
| 73 | </profile> |
| 74 | </profiles> |
| 75 | |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 76 | <dependencyManagement> |
| 77 | <dependencies> |
| 78 | <dependency> |
| 79 | <groupId>org.onap.cps</groupId> |
| 80 | <artifactId>cps-dependencies</artifactId> |
| 81 | <version>${project.version}</version> |
| 82 | <type>pom</type> |
| 83 | <scope>import</scope> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.onap.cps</groupId> |
| 87 | <artifactId>cps-bom</artifactId> |
| 88 | <version>${project.version}</version> |
| 89 | <type>pom</type> |
| 90 | <scope>import</scope> |
| 91 | </dependency> |
| 92 | </dependencies> |
| 93 | </dependencyManagement> |
| 94 | |
| 95 | <build> |
| 96 | <resources> |
| 97 | <resource> |
| 98 | <directory>src/main/resources</directory> |
| 99 | <filtering>true</filtering> |
| 100 | </resource> |
| 101 | <resource> |
| 102 | <directory>target/generated-sources/license</directory> |
| 103 | <includes> |
| 104 | <include>third-party-licenses.txt</include> |
| 105 | </includes> |
| 106 | </resource> |
| 107 | <resource> |
| 108 | <directory>target/generated-resources/licenses</directory> |
| 109 | <includes> |
| 110 | <include>*.*</include> |
| 111 | </includes> |
| 112 | <targetPath>third-party-licenses</targetPath> |
| 113 | </resource> |
| 114 | </resources> |
| 115 | <pluginManagement> |
| 116 | <plugins> |
| 117 | <plugin> |
| 118 | <groupId>org.springframework.boot</groupId> |
| 119 | <artifactId>spring-boot-maven-plugin</artifactId> |
JosephKeenan | 274d161 | 2022-03-23 15:01:33 +0000 | [diff] [blame] | 120 | <version>2.6.4</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 121 | <executions> |
| 122 | <execution> |
| 123 | <goals> |
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 124 | <goal>build-info</goal> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 125 | <goal>repackage</goal> |
| 126 | </goals> |
| 127 | </execution> |
| 128 | </executions> |
| 129 | </plugin> |
Bruno Sakoto | 6c34718 | 2021-07-22 15:25:23 -0400 | [diff] [blame] | 130 | <plugin> |
| 131 | <groupId>org.apache.maven.plugins</groupId> |
| 132 | <artifactId>maven-surefire-plugin</artifactId> |
| 133 | <version>3.0.0-M5</version> |
| 134 | </plugin> |
puthuparambil.aditya | 4759811 | 2020-11-02 11:31:39 +0000 | [diff] [blame] | 135 | <!-- Swagger code generation. --> |
| 136 | <plugin> |
| 137 | <groupId>io.swagger.codegen.v3</groupId> |
| 138 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 139 | <executions> |
| 140 | <execution> |
| 141 | <id>openapi-yaml-gen</id> |
| 142 | <goals> |
| 143 | <goal>generate</goal> |
| 144 | </goals> |
| 145 | <phase>compile</phase> |
| 146 | <configuration> |
| 147 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 148 | <language>openapi-yaml</language> |
| 149 | </configuration> |
| 150 | </execution> |
| 151 | </executions> |
puthuparambil.aditya | 4759811 | 2020-11-02 11:31:39 +0000 | [diff] [blame] | 152 | </plugin> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 153 | <plugin> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 154 | <groupId>com.github.spotbugs</groupId> |
| 155 | <artifactId>spotbugs-maven-plugin</artifactId> |
egernug | 2b8268f | 2023-07-03 10:09:09 +0100 | [diff] [blame] | 156 | <version>4.4.2</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 157 | <dependencies> |
| 158 | <dependency> |
| 159 | <groupId>com.github.spotbugs</groupId> |
| 160 | <artifactId>spotbugs</artifactId> |
shivasubedi | 34c30f8 | 2021-07-07 16:30:36 +0100 | [diff] [blame] | 161 | <version>4.2.0</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>${project.groupId}</groupId> |
| 165 | <artifactId>spotbugs</artifactId> |
| 166 | <version>${project.version}</version> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 --> |
| 170 | <groupId>org.slf4j</groupId> |
| 171 | <artifactId>slf4j-simple</artifactId> |
shivasubedi | 34c30f8 | 2021-07-07 16:30:36 +0100 | [diff] [blame] | 172 | <version>1.8.0-beta4</version> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 173 | </dependency> |
| 174 | </dependencies> |
| 175 | <configuration> |
| 176 | <plugins> |
| 177 | <plugin> |
| 178 | <groupId>jp.skypencil.findbugs.slf4j</groupId> |
| 179 | <artifactId>bug-pattern</artifactId> |
| 180 | <version>1.5.0</version> |
| 181 | </plugin> |
| 182 | </plugins> |
| 183 | <!-- |
| 184 | Enables analysis which takes more memory but finds more bugs. |
| 185 | If you run out of memory, changes the value of the effort element |
| 186 | to 'Low'. |
| 187 | --> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 188 | <addSourceDirs>true</addSourceDirs> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 189 | <effort>Max</effort> |
| 190 | <!-- Reports all bugs (other values are medium and max) --> |
| 191 | <threshold>Low</threshold> |
| 192 | <!-- Build doesn't fail if problems are found --> |
Claudio David Gasparini | 9afc8d1 | 2021-01-11 16:42:30 +0100 | [diff] [blame] | 193 | <failOnError>true</failOnError> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 194 | <!-- References the excluded rules --> |
| 195 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile> |
| 196 | <!-- Produces XML report --> |
| 197 | <xmlOutput>true</xmlOutput> |
| 198 | <!-- Configures the directory in which the XML report is created --> |
| 199 | <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory> |
| 200 | </configuration> |
| 201 | <executions> |
| 202 | <!-- |
| 203 | Ensures that SpotBugs inspects source code when project is compiled. |
| 204 | --> |
| 205 | <execution> |
| 206 | <id>analyze-compile</id> |
| 207 | <phase>compile</phase> |
| 208 | <goals> |
| 209 | <goal>check</goal> |
| 210 | </goals> |
| 211 | </execution> |
| 212 | </executions> |
| 213 | </plugin> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 214 | <plugin> |
| 215 | <groupId>org.jsonschema2pojo</groupId> |
| 216 | <artifactId>jsonschema2pojo-maven-plugin</artifactId> |
shivasubedi | 34c30f8 | 2021-07-07 16:30:36 +0100 | [diff] [blame] | 217 | <version>1.1.1</version> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 218 | <configuration> |
| 219 | <targetVersion>${java.version}</targetVersion> |
| 220 | </configuration> |
| 221 | <executions> |
| 222 | <execution> |
| 223 | <goals> |
| 224 | <goal>generate</goal> |
| 225 | </goals> |
| 226 | </execution> |
| 227 | </executions> |
| 228 | </plugin> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 229 | </plugins> |
| 230 | </pluginManagement> |
| 231 | <plugins> |
| 232 | <plugin> |
| 233 | <groupId>org.apache.maven.plugins</groupId> |
| 234 | <artifactId>maven-compiler-plugin</artifactId> |
| 235 | <configuration> |
| 236 | <source>${java.version}</source> |
| 237 | <target>${java.version}</target> |
| 238 | </configuration> |
| 239 | </plugin> |
| 240 | <plugin> |
| 241 | <groupId>org.apache.maven.plugins</groupId> |
| 242 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 243 | <executions> |
| 244 | <execution> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 245 | <id>onap-license</id> |
| 246 | <goals> |
| 247 | <goal>check</goal> |
| 248 | </goals> |
| 249 | <phase>process-sources</phase> |
| 250 | <configuration> |
| 251 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 252 | <includeResources>false</includeResources> |
| 253 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 254 | <includeTestResources>false</includeTestResources> |
| 255 | <sourceDirectories> |
| 256 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 257 | </sourceDirectories> |
| 258 | <consoleOutput>false</consoleOutput> |
| 259 | <violationSeverity>warning</violationSeverity> |
| 260 | <failOnViolation>true</failOnViolation> |
| 261 | </configuration> |
| 262 | </execution> |
| 263 | <execution> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 264 | <id>onap-java-style</id> |
| 265 | <goals> |
| 266 | <goal>check</goal> |
| 267 | </goals> |
| 268 | <phase>process-sources</phase> |
| 269 | <configuration> |
| 270 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 271 | <sourceDirectories> |
| 272 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 273 | </sourceDirectories> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 274 | <includeResources>true</includeResources> |
| 275 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 276 | <includeTestResources>true</includeTestResources> |
| 277 | <consoleOutput>false</consoleOutput> |
| 278 | <violationSeverity>warning</violationSeverity> |
| 279 | <failOnViolation>true</failOnViolation> |
| 280 | </configuration> |
| 281 | </execution> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 282 | <execution> |
| 283 | <id>cps-java-style</id> |
| 284 | <goals> |
| 285 | <goal>check</goal> |
| 286 | </goals> |
| 287 | <phase>process-sources</phase> |
| 288 | <configuration> |
| 289 | <configLocation>cps-java-style.xml</configLocation> |
| 290 | <sourceDirectories> |
| 291 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 292 | </sourceDirectories> |
| 293 | <includeResources>true</includeResources> |
| 294 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 295 | <includeTestResources>true</includeTestResources> |
| 296 | <consoleOutput>true</consoleOutput> |
| 297 | <violationSeverity>warning</violationSeverity> |
| 298 | <failOnViolation>true</failOnViolation> |
| 299 | </configuration> |
| 300 | </execution> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 301 | </executions> |
| 302 | <dependencies> |
| 303 | <dependency> |
| 304 | <groupId>org.onap.oparent</groupId> |
| 305 | <artifactId>checkstyle</artifactId> |
ToineSiebelink | a0bbb4e | 2023-04-19 12:04:50 +0100 | [diff] [blame] | 306 | <version>3.2.0</version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 307 | </dependency> |
Claudio David Gasparini | 35b2b44 | 2020-12-01 14:53:40 +0100 | [diff] [blame] | 308 | <dependency> |
| 309 | <groupId>${project.groupId}</groupId> |
| 310 | <artifactId>checkstyle</artifactId> |
| 311 | <version>${project.version}</version> |
| 312 | </dependency> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 313 | </dependencies> |
| 314 | </plugin> |
| 315 | <!-- Mandatory plugins for using Spock --> |
| 316 | <plugin> |
| 317 | <!-- The gmavenplus plugin is used to compile Groovy code. |
| 318 | To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki --> |
| 319 | <groupId>org.codehaus.gmavenplus</groupId> |
| 320 | <artifactId>gmavenplus-plugin</artifactId> |
| 321 | <version>1.9.0</version> |
| 322 | <executions> |
| 323 | <execution> |
| 324 | <goals> |
| 325 | <goal>compileTests</goal> |
| 326 | </goals> |
| 327 | </execution> |
| 328 | </executions> |
| 329 | </plugin> |
| 330 | <!-- Required because names of spec classes don't match default |
| 331 | Surefire patterns (`*Test` etc.) --> |
| 332 | <plugin> |
| 333 | <groupId>org.apache.maven.plugins</groupId> |
| 334 | <artifactId>maven-surefire-plugin</artifactId> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 335 | <configuration> |
puthuparambil.aditya | 008c0ad | 2020-12-14 15:46:30 +0000 | [diff] [blame] | 336 | <!--suppress UnresolvedMavenProperty --> |
Claudio David Gasparini | 13cc64d | 2020-12-02 18:47:09 +0100 | [diff] [blame] | 337 | <argLine>${surefireArgLine}</argLine> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 338 | <useFile>false</useFile> |
| 339 | <includes> |
| 340 | <include>**/*Spec.java</include> |
| 341 | <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests --> |
| 342 | </includes> |
Claudio David Gasparini | 13cc64d | 2020-12-02 18:47:09 +0100 | [diff] [blame] | 343 | <excludes> |
| 344 | <exclude>**/IT*.java</exclude> |
| 345 | </excludes> |
Ruslan Kashapov | bf02f20 | 2020-12-17 10:38:53 +0200 | [diff] [blame] | 346 | <environmentVariables> |
| 347 | <!-- |
| 348 | disable privileged container usage to cleanup the test containers; |
| 349 | these will be removed automatically on jvm termination; |
| 350 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 351 | --> |
| 352 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 353 | <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] | 354 | </environmentVariables> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 355 | </configuration> |
| 356 | </plugin> |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 357 | <plugin> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 358 | <groupId>org.jacoco</groupId> |
| 359 | <artifactId>jacoco-maven-plugin</artifactId> |
egernug | 2b8268f | 2023-07-03 10:09:09 +0100 | [diff] [blame] | 360 | <version>0.8.10</version> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 361 | <configuration> |
ToineSiebelink | 7fcffe5 | 2023-07-24 12:23:05 +0100 | [diff] [blame] | 362 | <!--All exclusions below are referring to generated code--> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 363 | <excludes> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 364 | <exclude>org/onap/cps/event/model/*</exclude> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 365 | <exclude>org/onap/cps/rest/model/*</exclude> |
| 366 | <exclude>org/onap/cps/cpspath/parser/antlr4/*</exclude> |
DylanB95EST | 4f4178c | 2021-07-02 13:30:42 +0100 | [diff] [blame] | 367 | <exclude>org/onap/cps/ncmp/rest/model/*</exclude> |
ToineSiebelink | 7fcffe5 | 2023-07-24 12:23:05 +0100 | [diff] [blame] | 368 | <exclude>org/onap/cps/**/*MapperImpl.class</exclude> |
| 369 | <exclude>org/onap/cps/ncmp/rest/stub/*</exclude> |
Bruno Sakoto | f549c7c | 2021-05-18 16:02:30 -0400 | [diff] [blame] | 370 | </excludes> |
| 371 | </configuration> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 372 | <executions> |
| 373 | <execution> |
| 374 | <id>default-prepare-agent</id> |
| 375 | <goals> |
| 376 | <goal>prepare-agent</goal> |
| 377 | </goals> |
| 378 | </execution> |
| 379 | <execution> |
| 380 | <id>coverage-check</id> |
| 381 | <goals> |
| 382 | <goal>check</goal> |
| 383 | </goals> |
| 384 | <configuration> |
Claudio David Gasparini | 13cc64d | 2020-12-02 18:47:09 +0100 | [diff] [blame] | 385 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
Claudio David Gasparini | 87c74a1 | 2020-11-18 08:38:01 +0100 | [diff] [blame] | 386 | <rules> |
| 387 | <rule> |
| 388 | <element>BUNDLE</element> |
| 389 | <limits> |
| 390 | <limit> |
| 391 | <counter>INSTRUCTION</counter> |
| 392 | <value>COVEREDRATIO</value> |
| 393 | <minimum>${minimum-coverage}</minimum> |
| 394 | </limit> |
| 395 | </limits> |
| 396 | </rule> |
| 397 | </rules> |
| 398 | </configuration> |
| 399 | </execution> |
| 400 | </executions> |
Claudio David Gasparini | 900ba02 | 2020-11-08 22:18:36 +0100 | [diff] [blame] | 401 | </plugin> |
Claudio David Gasparini | 9f93f79 | 2020-12-18 14:37:27 +0100 | [diff] [blame] | 402 | <plugin> |
| 403 | <groupId>com.github.spotbugs</groupId> |
| 404 | <artifactId>spotbugs-maven-plugin</artifactId> |
| 405 | </plugin> |
Claudio David Gasparini | 7492aea | 2021-01-13 08:34:00 +0100 | [diff] [blame] | 406 | <plugin> |
| 407 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 408 | <artifactId>sonar-maven-plugin</artifactId> |
egernug | 2b8268f | 2023-07-03 10:09:09 +0100 | [diff] [blame] | 409 | <version>3.9.1.2184</version> |
Claudio David Gasparini | 7492aea | 2021-01-13 08:34:00 +0100 | [diff] [blame] | 410 | </plugin> |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 411 | <plugin> |
| 412 | <groupId>org.codehaus.mojo</groupId> |
| 413 | <artifactId>exec-maven-plugin</artifactId> |
| 414 | <version>1.6.0</version> |
| 415 | <executions> |
| 416 | <execution> |
| 417 | <id>generate-csv</id> |
| 418 | <phase>prepare-package</phase> |
| 419 | <goals> |
| 420 | <goal>exec</goal> |
| 421 | </goals> |
| 422 | </execution> |
| 423 | </executions> |
| 424 | <configuration> |
| 425 | <executable>${script.executor}</executable> |
waqas.ikram | cb0256d | 2023-06-16 13:05:04 +0100 | [diff] [blame] | 426 | <workingDirectory>${parent.directory}/cps-ri/src/main/resources/</workingDirectory> |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 427 | <arguments> |
| 428 | <argument>yangResourceCsvGenerator.py</argument> |
| 429 | <argument>dmi-registry@2021-12-13</argument> |
lukegleeson | 0cbc448 | 2022-02-10 10:58:29 +0000 | [diff] [blame] | 430 | <argument>dmi-registry@2022-02-10</argument> |
Lathish | ba6d14f | 2022-05-10 10:41:05 +0100 | [diff] [blame] | 431 | <argument>dmi-registry@2022-05-10</argument> |
DylanB95EST | 63132ce | 2021-12-14 16:34:38 +0000 | [diff] [blame] | 432 | </arguments> |
| 433 | </configuration> |
| 434 | </plugin> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 435 | </plugins> |
| 436 | </build> |
Rishi.Chail | 7572907 | 2021-04-08 14:23:32 +0100 | [diff] [blame] | 437 | </project> |