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