Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <parent> |
| 6 | <groupId>org.onap.oparent</groupId> |
| 7 | <artifactId>oparent</artifactId> |
Dan Timoney | 59d34e4 | 2022-07-25 09:36:01 -0400 | [diff] [blame] | 8 | <version>3.3.1</version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 9 | <relativePath/> |
| 10 | </parent> |
| 11 | |
| 12 | <groupId>org.onap.ccsdk.parent</groupId> |
| 13 | <artifactId>oparent</artifactId> |
Dan Timoney | ce63934 | 2023-11-09 12:28:22 -0500 | [diff] [blame] | 14 | <version>2.7.0-SNAPSHOT</version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 15 | <packaging>pom</packaging> |
| 16 | |
| 17 | <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name> |
| 18 | <description>Root POM to be used in place of oparent for CCSDK based projects</description> |
| 19 | <url>http://wiki.onap.org</url> |
| 20 | <organization> |
| 21 | <name>ONAP</name> |
| 22 | </organization> |
| 23 | |
| 24 | <issueManagement> |
| 25 | <system>JIRA</system> |
| 26 | <url>https://jira.onap.org/</url> |
| 27 | </issueManagement> |
Singal, Kapil (ks220y) | 7bc072e | 2021-06-09 17:31:32 -0400 | [diff] [blame] | 28 | <distributionManagement> |
| 29 | <repository> |
| 30 | <id>ecomp-releases</id> |
| 31 | <url>${onap.nexus.release-url}</url> |
| 32 | </repository> |
| 33 | <snapshotRepository> |
| 34 | <id>ecomp-snapshots</id> |
| 35 | <url>${onap.nexus.snapshot-url}</url> |
| 36 | </snapshotRepository> |
| 37 | </distributionManagement> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 38 | |
| 39 | <properties> |
| 40 | <!-- Sonar properties --> |
| 41 | <sonar.scanner.version>3.7.0.1746</sonar.scanner.version> |
| 42 | <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version> |
| 43 | <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> |
| 44 | <!-- Default Sonar configuration --> |
| 45 | <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> |
| 46 | <!-- Note: This list should match jacoco-maven-plugin's exclusion list below --> |
| 47 | <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions> |
| 48 | |
| 49 | <!-- Jacoco properties --> |
Dan Timoney | 5ed8b04 | 2023-02-08 07:40:23 -0500 | [diff] [blame] | 50 | <jacoco.version>0.8.8</jacoco.version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 51 | <!-- ONAP repositories --> |
| 52 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 53 | <onap.nexus.host>nexus.onap.org</onap.nexus.host> |
| 54 | <onap.nexus.port>443</onap.nexus.port> |
| 55 | <onap.nexus.protocol>https</onap.nexus.protocol> |
| 56 | <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url> |
| 57 | <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url> |
| 58 | <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url> |
| 59 | <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url> |
| 60 | <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id> |
| 61 | <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id> |
| 62 | |
Dan Timoney | 5ed8b04 | 2023-02-08 07:40:23 -0500 | [diff] [blame] | 63 | <java.version>17</java.version> |
| 64 | <maven-surefire-plugin.version>3.0.0-M8</maven-surefire-plugin.version> |
| 65 | <maven-failsafe-plugin.version>3.0.0-M8</maven-failsafe-plugin.version> |
Dan Timoney | eef985c | 2023-01-31 09:02:33 -0500 | [diff] [blame] | 66 | <bundle.plugin.version>5.1.1</bundle.plugin.version> |
Dan Timoney | 5ed8b04 | 2023-02-08 07:40:23 -0500 | [diff] [blame] | 67 | <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 68 | <checkstyle.skip>true</checkstyle.skip> |
Dan Timoney | 59d34e4 | 2022-07-25 09:36:01 -0400 | [diff] [blame] | 69 | <logback.version>1.2.11</logback.version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 70 | |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 71 | <!-- CCSDK component versions --> |
Dan Timoney | 655aa0b | 2023-11-10 11:05:33 -0500 | [diff] [blame] | 72 | <ccsdk.cds.version>(1.6.9999, 1.7.99999-SNAPSHOT]</ccsdk.cds.version> |
| 73 | <ccsdk.features.version>(1.6.99999, 1.7.99999-SNAPSHOT]</ccsdk.features.version> |
| 74 | <ccsdk.sli.version>(1.7.99999, 1.8.99999-SNAPSHOT]</ccsdk.sli.version> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 75 | <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version> |
| 76 | <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version> |
| 77 | <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version> |
| 78 | <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version> |
Timoney, Dan (dt5972) | fec4cef | 2022-10-24 15:10:54 -0400 | [diff] [blame] | 79 | <ccsdk.distribution.version>(1.4.9999, 1.5.99999-SNAPSHOT]</ccsdk.distribution.version> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 80 | |
Dan Timoney | 156d2a9 | 2022-01-03 11:49:40 -0500 | [diff] [blame] | 81 | <log4j.version>2.17.1</log4j.version> |
| 82 | <log4j2.version>2.17.1</log4j2.version> |
Michael DÜrre | 7bb133e | 2022-01-18 10:06:31 +0100 | [diff] [blame] | 83 | <mariadb.connector.version>2.7.5</mariadb.connector.version> |
Singal, Kapil (ks220y) | b2db3c4 | 2021-06-08 12:00:17 -0400 | [diff] [blame] | 84 | <fasterxml.jackson.version>2.10.5</fasterxml.jackson.version> |
Dan Timoney | d9c8dcb | 2021-08-23 11:36:27 -0400 | [diff] [blame] | 85 | <velocity.version>2.3</velocity.version> |
highstreetherbert | 54f98a1 | 2022-12-08 16:51:41 +0100 | [diff] [blame] | 86 | <dmaap.listener.version>1.1.14</dmaap.listener.version> |
efiacor | d04c3e4 | 2022-11-23 16:01:13 +0000 | [diff] [blame] | 87 | <sdc.client.version>2.0.0</sdc.client.version> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 88 | <sdc.tosca.version>1.6.5</sdc.tosca.version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 89 | |
Dan Timoney | 43836a9 | 2023-06-22 16:04:02 -0400 | [diff] [blame] | 90 | <antlr.version>4.12.0</antlr.version> |
| 91 | <antlr4.version>4.12.0</antlr4.version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 92 | </properties> |
| 93 | |
| 94 | <dependencyManagement> |
| 95 | <dependencies> |
| 96 | <dependency> |
Michael DÜrre | 67cb8d5 | 2021-04-12 13:11:00 +0200 | [diff] [blame] | 97 | <!-- keep groupId and version as plain and not as var, |
| 98 | otherwise ccsdk/distribution/dependencies is not resolving correctly --> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 99 | <groupId>org.onap.ccsdk.parent</groupId> |
| 100 | <artifactId>dependencies-bom</artifactId> |
Dan Timoney | ce63934 | 2023-11-09 12:28:22 -0500 | [diff] [blame] | 101 | <version>2.7.0-SNAPSHOT</version> |
Dan Timoney | 5700b85 | 2021-01-29 12:38:52 -0500 | [diff] [blame] | 102 | <type>pom</type> |
Singal, Kapil (ks220y) | e1d0e25 | 2021-02-01 22:06:16 -0500 | [diff] [blame] | 103 | <scope>import</scope> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 104 | </dependency> |
| 105 | <dependency> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 106 | <groupId>org.springframework.boot</groupId> |
| 107 | <artifactId>spring-boot-dependencies</artifactId> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 108 | <version>2.3.8.RELEASE</version> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 109 | <type>pom</type> |
Singal, Kapil (ks220y) | 9714cfc | 2021-05-17 13:23:11 -0400 | [diff] [blame] | 110 | <scope>import</scope> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 111 | </dependency> |
Dan Timoney | 4b9f4f2 | 2021-03-22 15:09:59 -0400 | [diff] [blame] | 112 | <dependency> |
| 113 | <groupId>org.antlr</groupId> |
| 114 | <artifactId>antlr4-runtime</artifactId> |
| 115 | <version>${antlr.version}</version> |
| 116 | </dependency> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 117 | <dependency> |
Michael DÜrre | 7bb133e | 2022-01-18 10:06:31 +0100 | [diff] [blame] | 118 | <groupId>org.mariadb.jdbc</groupId> |
| 119 | <artifactId>mariadb-java-client</artifactId> |
| 120 | <version>${mariadb.connector.version}</version> |
| 121 | </dependency> |
| 122 | <dependency> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 123 | <groupId>org.onap.sdc.sdc-distribution-client</groupId> |
| 124 | <artifactId>sdc-distribution-client</artifactId> |
| 125 | <version>${sdc.client.version}</version> |
| 126 | <scope>compile</scope> |
| 127 | </dependency> |
| 128 | <dependency> |
| 129 | <groupId>org.onap.sdc.sdc-tosca</groupId> |
| 130 | <artifactId>sdc-tosca</artifactId> |
| 131 | <version>${sdc.tosca.version}</version> |
| 132 | <scope>compile</scope> |
| 133 | </dependency> |
| 134 | <dependency> |
| 135 | <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId> |
| 136 | <artifactId>dmaapClient</artifactId> |
| 137 | <version>${dmaap.listener.version}</version> |
| 138 | </dependency> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 139 | </dependencies> |
| 140 | </dependencyManagement> |
Dan Timoney | a265d5b | 2020-11-25 08:23:08 -0500 | [diff] [blame] | 141 | <dependencies> |
| 142 | <dependency> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 143 | <groupId>javax.annotation</groupId> |
| 144 | <artifactId>javax.annotation-api</artifactId> |
| 145 | <version>1.3.2</version> |
| 146 | </dependency> |
| 147 | <dependency> |
| 148 | <groupId>junit</groupId> |
| 149 | <artifactId>junit</artifactId> |
| 150 | <scope>test</scope> |
| 151 | </dependency> |
| 152 | <dependency> |
Dan Timoney | a265d5b | 2020-11-25 08:23:08 -0500 | [diff] [blame] | 153 | <groupId>org.slf4j</groupId> |
| 154 | <artifactId>slf4j-api</artifactId> |
| 155 | <scope>provided</scope> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>org.slf4j</groupId> |
| 159 | <artifactId>slf4j-simple</artifactId> |
| 160 | <scope>test</scope> |
| 161 | </dependency> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 162 | <dependency> |
| 163 | <groupId>org.mockito</groupId> |
| 164 | <artifactId>mockito-core</artifactId> |
Dan Timoney | 29e355f | 2022-07-21 08:21:16 -0400 | [diff] [blame] | 165 | <version>3.12.4</version> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 166 | <scope>test</scope> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>org.testng</groupId> |
| 170 | <artifactId>testng</artifactId> |
| 171 | <version>6.11</version> |
| 172 | <scope>test</scope> |
| 173 | </dependency> |
Dan Timoney | a265d5b | 2020-11-25 08:23:08 -0500 | [diff] [blame] | 174 | </dependencies> |
| 175 | |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 176 | <repositories> |
| 177 | <repository> |
| 178 | <id>onap-public</id> |
Singal, Kapil (ks220y) | 9714cfc | 2021-05-17 13:23:11 -0400 | [diff] [blame] | 179 | <url>${onap.nexus.public-url}</url> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 180 | <releases> |
| 181 | <enabled>true</enabled> |
| 182 | <updatePolicy>never</updatePolicy> |
| 183 | </releases> |
| 184 | <snapshots> |
| 185 | <enabled>true</enabled> |
| 186 | <updatePolicy>always</updatePolicy> |
| 187 | </snapshots> |
| 188 | </repository> |
| 189 | <repository> |
| 190 | <id>onap-staging</id> |
Singal, Kapil (ks220y) | 9714cfc | 2021-05-17 13:23:11 -0400 | [diff] [blame] | 191 | <url>${onap.nexus.staging-url}</url> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 192 | <releases> |
| 193 | <enabled>true</enabled> |
| 194 | <updatePolicy>never</updatePolicy> |
| 195 | </releases> |
| 196 | <snapshots> |
| 197 | <enabled>true</enabled> |
| 198 | <updatePolicy>always</updatePolicy> |
| 199 | </snapshots> |
| 200 | </repository> |
| 201 | <repository> |
| 202 | <id>ecomp-release</id> |
| 203 | <name>onap-repository-releases</name> |
Singal, Kapil (ks220y) | 9714cfc | 2021-05-17 13:23:11 -0400 | [diff] [blame] | 204 | <url>${onap.nexus.release-url}</url> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 205 | <releases> |
| 206 | <enabled>true</enabled> |
| 207 | <updatePolicy>never</updatePolicy> |
| 208 | </releases> |
| 209 | <snapshots> |
| 210 | <enabled>false</enabled> |
| 211 | </snapshots> |
| 212 | </repository> |
| 213 | <repository> |
| 214 | <id>ecomp-snapshot</id> |
| 215 | <name>onap-repository-snapshots</name> |
Singal, Kapil (ks220y) | 9714cfc | 2021-05-17 13:23:11 -0400 | [diff] [blame] | 216 | <url>${onap.nexus.snapshot-url}</url> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 217 | <releases> |
| 218 | <enabled>false</enabled> |
| 219 | </releases> |
| 220 | <snapshots> |
| 221 | <enabled>true</enabled> |
| 222 | </snapshots> |
| 223 | </repository> |
| 224 | </repositories> |
Singal, Kapil (ks220y) | 9714cfc | 2021-05-17 13:23:11 -0400 | [diff] [blame] | 225 | <pluginRepositories> |
| 226 | <pluginRepository> |
| 227 | <id>onap-public</id> |
| 228 | <url>${onap.nexus.public-url}</url> |
| 229 | <releases> |
| 230 | <enabled>true</enabled> |
| 231 | </releases> |
| 232 | <snapshots> |
| 233 | <enabled>true</enabled> |
| 234 | </snapshots> |
| 235 | </pluginRepository> |
| 236 | <pluginRepository> |
| 237 | <id>onap-staging</id> |
| 238 | <url>${onap.nexus.staging-url}</url> |
| 239 | <releases> |
| 240 | <enabled>true</enabled> |
| 241 | </releases> |
| 242 | <snapshots> |
| 243 | <enabled>true</enabled> |
| 244 | </snapshots> |
| 245 | </pluginRepository> |
| 246 | <pluginRepository> |
| 247 | <id>onap-snapshot</id> |
| 248 | <url>${onap.nexus.snapshot-url}</url> |
| 249 | <releases> |
| 250 | <enabled>false</enabled> |
| 251 | </releases> |
| 252 | <snapshots> |
| 253 | <enabled>true</enabled> |
| 254 | </snapshots> |
| 255 | </pluginRepository> |
| 256 | <!-- Black Duck plugin dependencies --> |
| 257 | <pluginRepository> |
| 258 | <id>JCenter</id> |
| 259 | <name>JCenter Repository</name> |
| 260 | <url>http://jcenter.bintray.com</url> |
| 261 | </pluginRepository> |
| 262 | <pluginRepository> |
| 263 | <id>Restlet</id> |
| 264 | <name>Restlet Repository</name> |
| 265 | <url>http://maven.restlet.com</url> |
| 266 | </pluginRepository> |
| 267 | </pluginRepositories> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 268 | |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 269 | <build> |
| 270 | <pluginManagement> |
| 271 | <plugins> |
| 272 | <plugin> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 273 | <groupId>org.apache.maven.plugins</groupId> |
Singal, Kapil (ks220y) | e1d0e25 | 2021-02-01 22:06:16 -0500 | [diff] [blame] | 274 | <artifactId>maven-deploy-plugin</artifactId> |
| 275 | <!-- This version supports the "deployAtEnd" parameter --> |
| 276 | <version>2.8</version> |
| 277 | <configuration> |
| 278 | <skip/> |
| 279 | <deployAtEnd>true</deployAtEnd> |
| 280 | </configuration> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 281 | </plugin> |
| 282 | <plugin> |
| 283 | <groupId>org.apache.maven.plugins</groupId> |
| 284 | <artifactId>maven-compiler-plugin</artifactId> |
| 285 | <version>${maven-compiler-plugin.version}</version> |
| 286 | <configuration> |
| 287 | <release>${java.version}</release> |
| 288 | <!--explicitly remove source and target--> |
| 289 | <source combine.self="override"/> |
| 290 | <target combine.self="override"/> |
| 291 | </configuration> |
Singal, Kapil (ks220y) | e1d0e25 | 2021-02-01 22:06:16 -0500 | [diff] [blame] | 292 | </plugin> |
| 293 | <plugin> |
| 294 | <groupId>org.apache.maven.plugins</groupId> |
Dan Timoney | 161996d | 2020-12-09 07:37:08 -0500 | [diff] [blame] | 295 | <artifactId>maven-resources-plugin</artifactId> |
| 296 | <version>3.2.0</version> |
| 297 | </plugin> |
| 298 | <plugin> |
Dan Timoney | a265d5b | 2020-11-25 08:23:08 -0500 | [diff] [blame] | 299 | <groupId>org.antlr</groupId> |
| 300 | <artifactId>antlr4-maven-plugin</artifactId> |
Dan Timoney | 4b9f4f2 | 2021-03-22 15:09:59 -0400 | [diff] [blame] | 301 | <version>${antlr.version}</version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 302 | </plugin> |
| 303 | </plugins> |
| 304 | </pluginManagement> |
| 305 | <plugins> |
| 306 | <!-- Jacoco / Sonar --> |
| 307 | <plugin> |
| 308 | <groupId>org.jacoco</groupId> |
| 309 | <artifactId>jacoco-maven-plugin</artifactId> |
| 310 | <version>${jacoco.version}</version> |
| 311 | <executions> |
| 312 | <execution> |
| 313 | <id>pre-unit-test</id> |
| 314 | <goals> |
| 315 | <goal>prepare-agent</goal> |
| 316 | </goals> |
| 317 | <configuration> |
| 318 | <!-- Sets the path to the file which contains the execution data. --> |
| 319 | <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile> |
Singal, Kapil (ks220y) | b473d3c | 2021-06-07 19:47:37 -0400 | [diff] [blame] | 320 | <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 321 | <propertyName>surefireArgLine</propertyName> |
| 322 | </configuration> |
| 323 | </execution> |
Singal, Kapil (ks220y) | b473d3c | 2021-06-07 19:47:37 -0400 | [diff] [blame] | 324 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 325 | <execution> |
| 326 | <id>post-unit-test</id> |
| 327 | <phase>test</phase> |
| 328 | <goals> |
| 329 | <goal>report</goal> |
| 330 | </goals> |
| 331 | <configuration> |
| 332 | <!-- Sets the path to the file which contains the execution data. --> |
| 333 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
| 334 | <!-- Sets the output directory for the code coverage report. --> |
| 335 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> |
| 336 | </configuration> |
| 337 | </execution> |
| 338 | <execution> |
| 339 | <id>pre-integration-test</id> |
| 340 | <phase>pre-integration-test</phase> |
| 341 | <goals> |
| 342 | <goal>prepare-agent</goal> |
| 343 | </goals> |
| 344 | <configuration> |
| 345 | <!-- Sets the path to the file which contains the execution data. --> |
| 346 | <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile> |
Singal, Kapil (ks220y) | b473d3c | 2021-06-07 19:47:37 -0400 | [diff] [blame] | 347 | <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 348 | <propertyName>failsafeArgLine</propertyName> |
| 349 | </configuration> |
| 350 | </execution> |
Singal, Kapil (ks220y) | b473d3c | 2021-06-07 19:47:37 -0400 | [diff] [blame] | 351 | <!-- Ensures that the code coverage report for integration tests after integration tests have been run. --> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 352 | <execution> |
| 353 | <id>post-integration-test</id> |
| 354 | <phase>post-integration-test</phase> |
| 355 | <goals> |
| 356 | <goal>report</goal> |
| 357 | </goals> |
| 358 | <configuration> |
| 359 | <!-- Sets the path to the file which contains the execution data. --> |
| 360 | <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile> |
| 361 | <!-- Sets the output directory for the code coverage report. --> |
| 362 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> |
| 363 | </configuration> |
| 364 | </execution> |
| 365 | <execution> |
| 366 | <id>default-prepare-agent</id> |
| 367 | <goals> |
| 368 | <goal>prepare-agent</goal> |
| 369 | </goals> |
| 370 | </execution> |
| 371 | <execution> |
| 372 | <id>default-report</id> |
| 373 | <phase>prepare-package</phase> |
| 374 | <goals> |
| 375 | <goal>report</goal> |
| 376 | </goals> |
| 377 | </execution> |
| 378 | <execution> |
| 379 | <id>default-check</id> |
| 380 | <goals> |
| 381 | <goal>check</goal> |
| 382 | </goals> |
| 383 | <configuration> |
| 384 | <rules> |
| 385 | <rule> |
| 386 | <element>PACKAGE</element> |
| 387 | <limits> |
| 388 | <limit> |
| 389 | <counter>COMPLEXITY</counter> |
| 390 | <value>COVEREDRATIO</value> |
| 391 | <minimum>0.0</minimum> |
| 392 | </limit> |
| 393 | </limits> |
| 394 | </rule> |
| 395 | </rules> |
| 396 | </configuration> |
| 397 | </execution> |
| 398 | </executions> |
| 399 | </plugin> |
| 400 | <plugin> |
| 401 | <groupId>org.codehaus.mojo</groupId> |
| 402 | <artifactId>versions-maven-plugin</artifactId> |
| 403 | <version>2.5</version> |
| 404 | <configuration> |
| 405 | <processAllModules>true</processAllModules> |
| 406 | </configuration> |
| 407 | </plugin> |
| 408 | <plugin> |
| 409 | <groupId>org.apache.felix</groupId> |
| 410 | <artifactId>maven-bundle-plugin</artifactId> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 411 | <version>${bundle.plugin.version}</version> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 412 | <extensions>true</extensions> |
| 413 | </plugin> |
Dan Timoney | a265d5b | 2020-11-25 08:23:08 -0500 | [diff] [blame] | 414 | <plugin> |
| 415 | <groupId>org.eclipse.m2e</groupId> |
| 416 | <artifactId>lifecycle-mapping</artifactId> |
| 417 | <version>1.0.0</version> |
| 418 | <configuration> |
| 419 | <lifecycleMappingMetadata> |
| 420 | <pluginExecutions> |
| 421 | <pluginExecution> |
| 422 | <pluginExecutionFilter> |
| 423 | <groupId>org.apache.felix</groupId> |
| 424 | <artifactId>maven-bundle-plugin</artifactId> |
| 425 | <versionRange>[1.0,)</versionRange> |
| 426 | <goals> |
| 427 | <goal>manifest</goal> |
| 428 | </goals> |
| 429 | </pluginExecutionFilter> |
| 430 | <action> |
| 431 | <execute /> |
| 432 | <ignore /> |
| 433 | </action> |
| 434 | </pluginExecution> |
| 435 | </pluginExecutions> |
| 436 | </lifecycleMappingMetadata> |
| 437 | </configuration> |
| 438 | </plugin> |
Dan Timoney | d7746ae | 2020-03-20 15:36:38 -0400 | [diff] [blame] | 439 | </plugins> |
| 440 | </build> |
| 441 | |
| 442 | <profiles> |
| 443 | <profile> |
| 444 | <id>sonar-jacoco-aggregate</id> |
| 445 | <activation> |
| 446 | <property> |
| 447 | <name>onap.jacoco.aggregateFile</name> |
| 448 | </property> |
| 449 | </activation> |
| 450 | <build> |
| 451 | <plugins> |
| 452 | <plugin> |
| 453 | <groupId>org.jacoco</groupId> |
| 454 | <artifactId>jacoco-maven-plugin</artifactId> |
| 455 | <executions> |
| 456 | <execution> |
| 457 | <id>merge</id> |
| 458 | <goals> |
| 459 | <goal>merge</goal> |
| 460 | </goals> |
| 461 | <phase>generate-resources</phase> |
| 462 | <configuration> |
| 463 | <destFile>${onap.jacoco.aggregateFile}</destFile> |
| 464 | <fileSets> |
| 465 | <fileSet> |
| 466 | <directory>${project.basedir}</directory> |
| 467 | <includes> |
| 468 | <include>**/target/code-coverage/*.exec</include> |
| 469 | </includes> |
| 470 | </fileSet> |
| 471 | </fileSets> |
| 472 | </configuration> |
| 473 | </execution> |
| 474 | </executions> |
| 475 | </plugin> |
| 476 | </plugins> |
| 477 | </build> |
| 478 | </profile> |
| 479 | </profiles> |
| 480 | </project> |