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