JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [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 | <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/springboot/spring-boot-setup/src/main/template/pom-template-jdk17.xml |
| 6 | Any updates needed should be made to that template and not to the generated |
| 7 | pom.xml file --> |
| 8 | <parent> |
| 9 | <groupId>org.springframework.boot</groupId> |
| 10 | <artifactId>spring-boot-starter-parent</artifactId> |
Dan Timoney | 43836a9 | 2023-06-22 16:04:02 -0400 | [diff] [blame] | 11 | <version>2.7.12</version> |
JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [diff] [blame] | 12 | <relativePath/> |
| 13 | </parent> |
| 14 | |
| 15 | <groupId>org.onap.ccsdk.parent</groupId> |
Dan Timoney | 43836a9 | 2023-06-22 16:04:02 -0400 | [diff] [blame] | 16 | <artifactId>spring-boot-27-starter-parent</artifactId> |
Dan Timoney | ce63934 | 2023-11-09 12:28:22 -0500 | [diff] [blame^] | 17 | <version>2.7.0-SNAPSHOT</version> |
JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [diff] [blame] | 18 | <packaging>pom</packaging> |
| 19 | |
| 20 | <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name> |
| 21 | <description>Root POM to be used in place of spring-boot parent for CCSDK based projects</description> |
| 22 | <url>http://wiki.onap.org</url> |
| 23 | <organization> |
| 24 | <name>ONAP</name> |
| 25 | </organization> |
| 26 | |
| 27 | <issueManagement> |
| 28 | <system>JIRA</system> |
| 29 | <url>https://jira.onap.org/</url> |
| 30 | </issueManagement> |
| 31 | |
| 32 | <distributionManagement> |
| 33 | <repository> |
| 34 | <id>ecomp-releases</id> |
| 35 | <url>${onap.nexus.release-url}</url> |
| 36 | </repository> |
| 37 | <snapshotRepository> |
| 38 | <id>ecomp-snapshots</id> |
| 39 | <url>${onap.nexus.snapshot-url}</url> |
| 40 | </snapshotRepository> |
| 41 | </distributionManagement> |
| 42 | |
| 43 | <properties> |
| 44 | <!-- Sonar properties --> |
| 45 | <sonar.scanner.version>3.7.0.1746</sonar.scanner.version> |
| 46 | <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version> |
| 47 | <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> |
| 48 | <!-- Default Sonar configuration --> |
| 49 | <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> |
| 50 | <!-- Note: This list should match jacoco-maven-plugin's exclusion list below --> |
| 51 | <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions> |
| 52 | |
| 53 | <!-- Jacoco properties --> |
| 54 | <jacoco.version>0.8.8</jacoco.version> |
| 55 | <!-- properties from oparent --> |
| 56 | |
| 57 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 58 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 59 | <!-- sitePath may be overridden in the inheriting POM if desired --> |
| 60 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
| 61 | |
| 62 | <!-- If following file exist, auto-generation of swagger.json will be done --> |
| 63 | <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties> |
| 64 | <!-- If following file exist, auto-generation of sdk will be done --> |
| 65 | <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json> |
| 66 | <!-- end of properties from oparent --> |
| 67 | |
| 68 | <!-- ONAP repositories --> |
| 69 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 70 | <onap.nexus.host>nexus.onap.org</onap.nexus.host> |
| 71 | <onap.nexus.port>443</onap.nexus.port> |
| 72 | <onap.nexus.protocol>https</onap.nexus.protocol> |
| 73 | <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url> |
| 74 | <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url> |
| 75 | <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url> |
| 76 | <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url> |
| 77 | <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id> |
| 78 | <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id> |
| 79 | |
| 80 | <java.version>17</java.version> |
| 81 | <maven.compile.plugin.version>3.10.0</maven.compile.plugin.version> |
| 82 | <maven-antrun-plugin.version>1.8</maven-antrun-plugin.version> |
| 83 | <features.file>features.xml</features.file> |
| 84 | <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath> |
| 85 | <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath> |
| 86 | <checkstyle.skip>true</checkstyle.skip> |
| 87 | |
| 88 | <!-- logging-analytics versions --> |
| 89 | <logging-analytics.version>1.6.9</logging-analytics.version> |
| 90 | |
| 91 | <!-- CCSDK component versions --> |
Dan Timoney | 43836a9 | 2023-06-22 16:04:02 -0400 | [diff] [blame] | 92 | <ccsdk.cds.version>(1.5.99999,1.6.99999-SNAPSHOT]</ccsdk.cds.version> |
| 93 | <ccsdk.features.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.features.version> |
| 94 | <ccsdk.distribution.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.distribution.version> |
| 95 | <ccsdk.sli.version>(1.6.99999, 1.7.99999-SNAPSHOT]</ccsdk.sli.version> |
JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [diff] [blame] | 96 | <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version> |
| 97 | <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version> |
| 98 | <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version> |
| 99 | <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version> |
| 100 | |
| 101 | <!-- Spring versions --> |
Dan Timoney | 43836a9 | 2023-06-22 16:04:02 -0400 | [diff] [blame] | 102 | <spring.boot.version>2.7.12</spring.boot.version> |
| 103 | <spring.version>5.3.27</spring.version> |
JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [diff] [blame] | 104 | |
| 105 | <!-- Kotlin versions --> |
| 106 | <kotlin.compiler.jvmTarget>1.11</kotlin.compiler.jvmTarget> |
| 107 | <kotlin.version>1.5.32</kotlin.version> |
| 108 | <kotlin.maven.version>1.5.32</kotlin.maven.version> |
| 109 | <kotlin.couroutines.version>1.5.2</kotlin.couroutines.version> |
| 110 | <kotlinpoet.version>1.5.0</kotlinpoet.version> |
| 111 | <kroto-plus.version>0.5.0</kroto-plus.version> |
| 112 | <nats.version>2.6.6</nats.version> |
| 113 | <nats.streaming.version>2.2.3</nats.streaming.version> |
| 114 | <mockk.version>1.9.3</mockk.version> |
| 115 | |
Dan Timoney | 43836a9 | 2023-06-22 16:04:02 -0400 | [diff] [blame] | 116 | |
| 117 | <antlr.version>4.12.0</antlr.version> |
| 118 | <antlr4.version>4.12.0</antlr4.version> |
| 119 | |
JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [diff] [blame] | 120 | <!-- Managed dependency versions --> |
| 121 | <dependency-list.file>direct-dependencies.txt</dependency-list.file> |
| 122 | </properties> |
| 123 | |
| 124 | <dependencyManagement> |
| 125 | <dependencies> |
| 126 | <!-- Note: If value in BOM conflicts with value inherited from |
| 127 | parent pom, inherited value takes precedence. This seems more like |
| 128 | a bug than a feature, but this is how maven 3.6 works --> |
| 129 | <dependency> |
| 130 | <groupId>org.onap.ccsdk.parent</groupId> |
| 131 | <artifactId>dependencies-bom</artifactId> |
Dan Timoney | ce63934 | 2023-11-09 12:28:22 -0500 | [diff] [blame^] | 132 | <version>2.7.0-SNAPSHOT</version> |
JohnKeeney | f51026a | 2023-03-01 19:15:13 +0000 | [diff] [blame] | 133 | <type>pom</type> |
| 134 | <scope>import</scope> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>com.fasterxml.jackson</groupId> |
| 138 | <artifactId>jackson-bom</artifactId> |
| 139 | <version>2.14.2</version> |
| 140 | <type>pom</type> |
| 141 | <scope>import</scope> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 145 | <artifactId>sli-common</artifactId> |
| 146 | <version>${ccsdk.sli.core.version}</version> |
| 147 | </dependency> |
| 148 | <dependency> |
| 149 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 150 | <artifactId>sli-provider</artifactId> |
| 151 | <version>${ccsdk.sli.core.version}</version> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 155 | <artifactId>ccsdk-sli</artifactId> |
| 156 | <version>${ccsdk.sli.core.version}</version> |
| 157 | <type>xml</type> |
| 158 | <classifier>features</classifier> |
| 159 | </dependency> |
| 160 | <dependency> |
| 161 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 162 | <artifactId>dblib-provider</artifactId> |
| 163 | <version>${ccsdk.sli.core.version}</version> |
| 164 | </dependency> |
| 165 | <dependency> |
| 166 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 167 | <artifactId>aai-service-provider</artifactId> |
| 168 | <version>${ccsdk.sli.adaptors.version}</version> |
| 169 | </dependency> |
| 170 | <dependency> |
| 171 | <groupId>org.onap.logging-analytics</groupId> |
| 172 | <artifactId>logging-slf4j</artifactId> |
| 173 | <version>${logging-analytics.version}</version> |
| 174 | </dependency> |
| 175 | <dependency> |
| 176 | <groupId>org.onap.logging-analytics</groupId> |
| 177 | <artifactId>logging-filter-base</artifactId> |
| 178 | <version>${logging-analytics.version}</version> |
| 179 | </dependency> |
| 180 | <dependency> |
| 181 | <groupId>org.liquibase</groupId> |
| 182 | <artifactId>liquibase-core</artifactId> |
| 183 | <version>4.4.2-nordix</version> |
| 184 | </dependency> |
| 185 | </dependencies> |
| 186 | </dependencyManagement> |
| 187 | |
| 188 | <repositories> |
| 189 | <repository> |
| 190 | <id>onap-public</id> |
| 191 | <url>${onap.nexus.public-url}</url> |
| 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>onap-staging</id> |
| 203 | <url>${onap.nexus.staging-url}</url> |
| 204 | <releases> |
| 205 | <enabled>true</enabled> |
| 206 | <updatePolicy>never</updatePolicy> |
| 207 | </releases> |
| 208 | <snapshots> |
| 209 | <enabled>true</enabled> |
| 210 | <updatePolicy>always</updatePolicy> |
| 211 | </snapshots> |
| 212 | </repository> |
| 213 | <repository> |
| 214 | <id>ecomp-release</id> |
| 215 | <name>onap-repository-releases</name> |
| 216 | <url>${onap.nexus.release-url}</url> |
| 217 | <releases> |
| 218 | <enabled>true</enabled> |
| 219 | <updatePolicy>never</updatePolicy> |
| 220 | </releases> |
| 221 | <snapshots> |
| 222 | <enabled>false</enabled> |
| 223 | </snapshots> |
| 224 | </repository> |
| 225 | <repository> |
| 226 | <id>ecomp-snapshot</id> |
| 227 | <name>onap-repository-snapshots</name> |
| 228 | <url>${onap.nexus.snapshot-url}</url> |
| 229 | <releases> |
| 230 | <enabled>false</enabled> |
| 231 | </releases> |
| 232 | <snapshots> |
| 233 | <enabled>true</enabled> |
| 234 | </snapshots> |
| 235 | </repository> |
| 236 | </repositories> |
| 237 | |
| 238 | <pluginRepositories> |
| 239 | <pluginRepository> |
| 240 | <id>onap-public</id> |
| 241 | <url>${onap.nexus.public-url}</url> |
| 242 | <releases> |
| 243 | <enabled>true</enabled> |
| 244 | </releases> |
| 245 | <snapshots> |
| 246 | <enabled>true</enabled> |
| 247 | </snapshots> |
| 248 | </pluginRepository> |
| 249 | <pluginRepository> |
| 250 | <id>onap-staging</id> |
| 251 | <url>${onap.nexus.staging-url}</url> |
| 252 | <releases> |
| 253 | <enabled>true</enabled> |
| 254 | </releases> |
| 255 | <snapshots> |
| 256 | <enabled>true</enabled> |
| 257 | </snapshots> |
| 258 | </pluginRepository> |
| 259 | <pluginRepository> |
| 260 | <id>onap-snapshot</id> |
| 261 | <url>${onap.nexus.snapshot-url}</url> |
| 262 | <releases> |
| 263 | <enabled>false</enabled> |
| 264 | </releases> |
| 265 | <snapshots> |
| 266 | <enabled>true</enabled> |
| 267 | </snapshots> |
| 268 | </pluginRepository> |
| 269 | |
| 270 | </pluginRepositories> |
| 271 | |
| 272 | <build> |
| 273 | <pluginManagement> |
| 274 | <plugins> |
| 275 | <!-- Plugins from ONAP oparent --> |
| 276 | <plugin> |
| 277 | <groupId>org.apache.maven.plugins</groupId> |
| 278 | <artifactId>maven-deploy-plugin</artifactId> |
| 279 | <!-- This version supports the "deployAtEnd" parameter --> |
| 280 | <version>2.8</version> |
| 281 | <configuration> |
| 282 | <skip/> |
| 283 | <deployAtEnd>true</deployAtEnd> |
| 284 | </configuration> |
| 285 | </plugin> |
| 286 | <plugin> |
| 287 | <groupId>org.apache.maven.plugins</groupId> |
| 288 | <artifactId>maven-site-plugin</artifactId> |
| 289 | <version>3.6</version> |
| 290 | <dependencies> |
| 291 | <dependency> |
| 292 | <groupId>org.apache.maven.wagon</groupId> |
| 293 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 294 | <version>2.10</version> |
| 295 | </dependency> |
| 296 | <dependency> |
| 297 | <groupId>org.apache.maven.doxia</groupId> |
| 298 | <artifactId>doxia-core</artifactId> |
| 299 | <version>1.7</version> |
| 300 | </dependency> |
| 301 | <dependency> |
| 302 | <groupId>org.apache.maven.doxia</groupId> |
| 303 | <artifactId>doxia-sink-api</artifactId> |
| 304 | <version>1.7</version> |
| 305 | </dependency> |
| 306 | <dependency> |
| 307 | <groupId>org.apache.maven.doxia</groupId> |
| 308 | <artifactId>doxia-logging-api</artifactId> |
| 309 | <version>1.7</version> |
| 310 | </dependency> |
| 311 | </dependencies> |
| 312 | <executions> |
| 313 | <execution> |
| 314 | <id>attach-descriptor</id> |
| 315 | <goals> |
| 316 | <goal>attach-descriptor</goal> |
| 317 | </goals> |
| 318 | </execution> |
| 319 | </executions> |
| 320 | </plugin> |
| 321 | <plugin> |
| 322 | <groupId>org.apache.maven.plugins</groupId> |
| 323 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 324 | <version>2.17</version> |
| 325 | <dependencies> |
| 326 | <dependency> |
| 327 | <groupId>org.onap.oparent</groupId> |
| 328 | <artifactId>checkstyle</artifactId> |
| 329 | <version>1.1.1</version> |
| 330 | </dependency> |
| 331 | </dependencies> |
| 332 | <executions> |
| 333 | <execution> |
| 334 | <id>check-license</id> |
| 335 | <goals> |
| 336 | <goal>check</goal> |
| 337 | </goals> |
| 338 | <phase>process-sources</phase> |
| 339 | <configuration> |
| 340 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 341 | <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation> |
| 342 | <includeResources>false</includeResources> |
| 343 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 344 | <includeTestResources>false</includeTestResources> |
| 345 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 346 | <excludes> |
| 347 | </excludes> |
| 348 | <failsOnError>false</failsOnError> |
| 349 | <consoleOutput>true</consoleOutput> |
| 350 | </configuration> |
| 351 | </execution> |
| 352 | <execution> |
| 353 | <id>check-style</id> |
| 354 | <goals> |
| 355 | <goal>check</goal> |
| 356 | </goals> |
| 357 | <phase>process-sources</phase> |
| 358 | <configuration> |
| 359 | <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml |
| 360 | with minor changes --> |
| 361 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 362 | <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory --> |
| 363 | <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory> |
| 364 | <includeResources>true</includeResources> |
| 365 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 366 | <includeTestResources>true</includeTestResources> |
| 367 | <excludes> |
| 368 | </excludes> |
| 369 | <failsOnError>false</failsOnError> |
| 370 | <consoleOutput>true</consoleOutput> |
| 371 | </configuration> |
| 372 | </execution> |
| 373 | </executions> |
| 374 | </plugin> |
| 375 | |
| 376 | <plugin> |
| 377 | <groupId>org.apache.maven.plugins</groupId> |
| 378 | <artifactId>maven-surefire-plugin</artifactId> |
| 379 | <configuration> |
| 380 | <!-- Sets the VM argument line used when unit tests are run. --> |
| 381 | <argLine>${surefireArgLine}</argLine> |
| 382 | <!-- Excludes integration tests when unit tests are run. --> |
| 383 | <excludes> |
| 384 | <exclude>**/IT*.java</exclude> |
| 385 | </excludes> |
| 386 | </configuration> |
| 387 | </plugin> |
| 388 | <plugin> |
| 389 | <groupId>org.apache.maven.plugins</groupId> |
| 390 | <artifactId>maven-failsafe-plugin</artifactId> |
| 391 | <executions> |
| 392 | <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. --> |
| 393 | <execution> |
| 394 | <id>integration-tests</id> |
| 395 | <goals> |
| 396 | <goal>integration-test</goal> |
| 397 | <goal>verify</goal> |
| 398 | </goals> |
| 399 | <configuration> |
| 400 | <!-- Sets the VM argument line used when integration tests are run. --> |
| 401 | <argLine>${failsafeArgLine}</argLine> |
| 402 | </configuration> |
| 403 | </execution> |
| 404 | </executions> |
| 405 | </plugin> |
| 406 | <plugin> |
| 407 | <groupId>org.apache.maven.plugins</groupId> |
| 408 | <artifactId>maven-compiler-plugin</artifactId> |
| 409 | <version>${maven.compile.plugin.version}</version> |
| 410 | <configuration> |
| 411 | <release>${java.version}</release> |
| 412 | <!--explicitly remove source and target--> |
| 413 | <source combine.self="override"/> |
| 414 | <target combine.self="override"/> |
| 415 | </configuration> |
| 416 | </plugin> |
| 417 | <plugin> |
| 418 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 419 | <artifactId>sonar-maven-plugin</artifactId> |
| 420 | <version>3.7.0.1746</version> |
| 421 | </plugin> |
| 422 | |
| 423 | <!-- End of plugins from ONAP oparent --> |
| 424 | |
| 425 | <plugin> |
| 426 | <groupId>org.apache.maven.plugins</groupId> |
| 427 | <artifactId>maven-javadoc-plugin</artifactId> |
| 428 | <configuration> |
| 429 | <failOnError>false</failOnError> |
| 430 | </configuration> |
| 431 | <executions> |
| 432 | <execution> |
| 433 | <id>aggregate</id> |
| 434 | <goals> |
| 435 | <goal>aggregate</goal> |
| 436 | </goals> |
| 437 | <phase>site</phase> |
| 438 | </execution> |
| 439 | </executions> |
| 440 | </plugin> |
| 441 | <plugin> |
| 442 | <groupId>com.github.ferstl</groupId> |
| 443 | <artifactId>depgraph-maven-plugin</artifactId> |
| 444 | <version>3.3.0</version> |
| 445 | <configuration> |
| 446 | <graphFormat>text</graphFormat> |
| 447 | <outputFileName>${dependency-list.file}</outputFileName> |
| 448 | <outputDirectory>${project.basedir}</outputDirectory> |
| 449 | <transitiveExcludes>*</transitiveExcludes> |
| 450 | <showVersions>true</showVersions> |
| 451 | <showGroupIds>true</showGroupIds> |
| 452 | </configuration> |
| 453 | </plugin> |
| 454 | </plugins> |
| 455 | </pluginManagement> |
| 456 | <plugins> |
| 457 | <!-- Plugins from ONAP oparent --> |
| 458 | <!-- Jacoco / Sonar --> |
| 459 | <plugin> |
| 460 | <groupId>org.jacoco</groupId> |
| 461 | <artifactId>jacoco-maven-plugin</artifactId> |
| 462 | <version>${jacoco.version}</version> |
| 463 | <executions> |
| 464 | <execution> |
| 465 | <id>pre-unit-test</id> |
| 466 | <goals> |
| 467 | <goal>prepare-agent</goal> |
| 468 | </goals> |
| 469 | <configuration> |
| 470 | <!-- Sets the path to the file which contains the execution data. --> |
| 471 | <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile> |
| 472 | <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> |
| 473 | <propertyName>surefireArgLine</propertyName> |
| 474 | </configuration> |
| 475 | </execution> |
| 476 | <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. --> |
| 477 | <execution> |
| 478 | <id>post-unit-test</id> |
| 479 | <phase>test</phase> |
| 480 | <goals> |
| 481 | <goal>report</goal> |
| 482 | </goals> |
| 483 | <configuration> |
| 484 | <!-- Sets the path to the file which contains the execution data. --> |
| 485 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
| 486 | <!-- Sets the output directory for the code coverage report. --> |
| 487 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> |
| 488 | </configuration> |
| 489 | </execution> |
| 490 | <execution> |
| 491 | <id>pre-integration-test</id> |
| 492 | <phase>pre-integration-test</phase> |
| 493 | <goals> |
| 494 | <goal>prepare-agent</goal> |
| 495 | </goals> |
| 496 | <configuration> |
| 497 | <!-- Sets the path to the file which contains the execution data. --> |
| 498 | <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile> |
| 499 | <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --> |
| 500 | <propertyName>failsafeArgLine</propertyName> |
| 501 | </configuration> |
| 502 | </execution> |
| 503 | <!-- Ensures that the code coverage report for integration tests after integration tests have been run. --> |
| 504 | <execution> |
| 505 | <id>post-integration-test</id> |
| 506 | <phase>post-integration-test</phase> |
| 507 | <goals> |
| 508 | <goal>report</goal> |
| 509 | </goals> |
| 510 | <configuration> |
| 511 | <!-- Sets the path to the file which contains the execution data. --> |
| 512 | <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile> |
| 513 | <!-- Sets the output directory for the code coverage report. --> |
| 514 | <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> |
| 515 | </configuration> |
| 516 | </execution> |
| 517 | <execution> |
| 518 | <id>default-prepare-agent</id> |
| 519 | <goals> |
| 520 | <goal>prepare-agent</goal> |
| 521 | </goals> |
| 522 | </execution> |
| 523 | <execution> |
| 524 | <id>default-report</id> |
| 525 | <phase>prepare-package</phase> |
| 526 | <goals> |
| 527 | <goal>report</goal> |
| 528 | </goals> |
| 529 | </execution> |
| 530 | <execution> |
| 531 | <id>default-check</id> |
| 532 | <goals> |
| 533 | <goal>check</goal> |
| 534 | </goals> |
| 535 | <configuration> |
| 536 | <rules> |
| 537 | <rule> |
| 538 | <element>PACKAGE</element> |
| 539 | <limits> |
| 540 | <limit> |
| 541 | <counter>COMPLEXITY</counter> |
| 542 | <value>COVEREDRATIO</value> |
| 543 | <minimum>0.0</minimum> |
| 544 | </limit> |
| 545 | </limits> |
| 546 | </rule> |
| 547 | </rules> |
| 548 | </configuration> |
| 549 | </execution> |
| 550 | </executions> |
| 551 | </plugin> |
| 552 | <plugin> |
| 553 | <groupId>org.apache.maven.plugins</groupId> |
| 554 | <artifactId>maven-deploy-plugin</artifactId> |
| 555 | </plugin> |
| 556 | <plugin> |
| 557 | <groupId>org.apache.maven.plugins</groupId> |
| 558 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 559 | </plugin> |
| 560 | <plugin> |
| 561 | <groupId>org.codehaus.mojo</groupId> |
| 562 | <artifactId>build-helper-maven-plugin</artifactId> |
| 563 | <version>1.12</version> |
| 564 | </plugin> |
| 565 | <!-- Jacoco / Sonar --> |
| 566 | <plugin> |
| 567 | <groupId>org.apache.maven.plugins</groupId> |
| 568 | <artifactId>maven-surefire-plugin</artifactId> |
| 569 | </plugin> |
| 570 | <plugin> |
| 571 | <groupId>org.apache.maven.plugins</groupId> |
| 572 | <artifactId>maven-failsafe-plugin</artifactId> |
| 573 | </plugin> |
| 574 | |
| 575 | <!-- End of plugins from ONAP oparent --> |
| 576 | <plugin> |
| 577 | <groupId>org.codehaus.mojo</groupId> |
| 578 | <artifactId>properties-maven-plugin</artifactId> |
| 579 | <version>1.0.0</version> |
| 580 | <executions> |
| 581 | <execution> |
| 582 | <goals> |
| 583 | <goal>set-system-properties</goal> |
| 584 | </goals> |
| 585 | <configuration> |
| 586 | <properties> |
| 587 | <property> |
| 588 | <name>maven.wagon.http.ssl.allowall</name> |
| 589 | <value>${ssl.allowall}</value> |
| 590 | </property> |
| 591 | <property> |
| 592 | <name>maven.wagon.http.ssl.insecure</name> |
| 593 | <value>${ssl.insecure}</value> |
| 594 | </property> |
| 595 | </properties> |
| 596 | </configuration> |
| 597 | </execution> |
| 598 | </executions> |
| 599 | </plugin> |
| 600 | <plugin> |
| 601 | <groupId>org.codehaus.mojo</groupId> |
| 602 | <artifactId>versions-maven-plugin</artifactId> |
| 603 | <version>2.5</version> |
| 604 | <configuration> |
| 605 | <processAllModules>true</processAllModules> |
| 606 | </configuration> |
| 607 | </plugin> |
| 608 | <plugin> |
| 609 | <artifactId>maven-scm-plugin</artifactId> |
| 610 | <version>1.8.1</version> |
| 611 | <configuration> |
| 612 | <tag>${project.artifactId}-${project.version}</tag> |
| 613 | </configuration> |
| 614 | </plugin> |
| 615 | <plugin> |
| 616 | <groupId>pl.project13.maven</groupId> |
| 617 | <artifactId>git-commit-id-plugin</artifactId> |
| 618 | <version>4.0.0</version> |
| 619 | <configuration> |
| 620 | <commitIdGenerationMode>full</commitIdGenerationMode> |
| 621 | <includeOnlyProperties> |
| 622 | <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty> |
| 623 | <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty> |
| 624 | </includeOnlyProperties> |
| 625 | </configuration> |
| 626 | </plugin> |
| 627 | </plugins> |
| 628 | </build> |
| 629 | |
| 630 | <reporting> |
| 631 | <plugins> |
| 632 | <plugin> |
| 633 | <artifactId>maven-javadoc-plugin</artifactId> |
| 634 | <version>2.10.4</version> |
| 635 | <configuration> |
| 636 | <failOnError>false</failOnError> |
| 637 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 638 | <docletArtifact> |
| 639 | <groupId>org.umlgraph</groupId> |
| 640 | <artifactId>umlgraph</artifactId> |
| 641 | <version>5.6</version> |
| 642 | </docletArtifact> |
| 643 | <additionalparam>-views</additionalparam> |
| 644 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 645 | <excludePackageNames>org.opendaylight.*</excludePackageNames> |
| 646 | </configuration> |
| 647 | <reportSets> |
| 648 | <reportSet> |
| 649 | <reports> |
| 650 | <report>javadoc-no-fork</report> |
| 651 | <report>test-javadoc-no-fork</report> |
| 652 | </reports> |
| 653 | </reportSet> |
| 654 | <reportSet> |
| 655 | <id>aggregate</id> |
| 656 | <reports> |
| 657 | <report>aggregate</report> |
| 658 | <report>test-aggregate</report> |
| 659 | </reports> |
| 660 | </reportSet> |
| 661 | </reportSets> |
| 662 | </plugin> |
| 663 | <plugin> |
| 664 | <groupId>org.apache.maven.plugins</groupId> |
| 665 | <artifactId>maven-jxr-plugin</artifactId> |
| 666 | <version>2.3</version> |
| 667 | <reportSets> |
| 668 | <reportSet> |
| 669 | <id>aggregate</id> |
| 670 | <reports> |
| 671 | <report>aggregate</report> |
| 672 | <report>test-aggregate</report> |
| 673 | </reports> |
| 674 | </reportSet> |
| 675 | </reportSets> |
| 676 | </plugin> |
| 677 | <plugin> |
| 678 | <artifactId>maven-surefire-plugin</artifactId> |
| 679 | <version>2.17</version> |
| 680 | </plugin> |
| 681 | <plugin> |
| 682 | <groupId>org.apache.maven.plugins</groupId> |
| 683 | <artifactId>maven-changelog-plugin</artifactId> |
| 684 | <version>2.3</version> |
| 685 | <reportSets> |
| 686 | <reportSet> |
| 687 | <id>dual-report</id> |
| 688 | <configuration> |
| 689 | <type>range</type> |
| 690 | <range>30</range> |
| 691 | </configuration> |
| 692 | <reports> |
| 693 | <report>changelog</report> |
| 694 | <report>file-activity</report> |
| 695 | </reports> |
| 696 | </reportSet> |
| 697 | </reportSets> |
| 698 | </plugin> |
| 699 | <plugin> |
| 700 | <groupId>org.codehaus.mojo</groupId> |
| 701 | <artifactId>taglist-maven-plugin</artifactId> |
| 702 | <version>2.4</version> |
| 703 | </plugin> |
| 704 | </plugins> |
| 705 | </reporting> |
| 706 | |
| 707 | <profiles> |
| 708 | <!-- Profiles from ONAP oparent --> |
| 709 | <profile> |
| 710 | <id>generate-json</id> |
| 711 | <activation> |
| 712 | <file> |
| 713 | <exists>${swagger-properties}</exists> |
| 714 | </file> |
| 715 | <property> |
| 716 | <name>swagger-sdk.generate-json</name> |
| 717 | </property> |
| 718 | </activation> |
| 719 | <build> |
| 720 | <plugins> |
| 721 | <plugin> |
| 722 | <groupId>org.codehaus.mojo</groupId> |
| 723 | <artifactId>properties-maven-plugin</artifactId> |
| 724 | <version>1.0.0</version> |
| 725 | <executions> |
| 726 | <execution> |
| 727 | <phase>initialize</phase> |
| 728 | <goals> |
| 729 | <goal>read-project-properties</goal> |
| 730 | </goals> |
| 731 | <configuration> |
| 732 | <files> |
| 733 | <file>${basedir}/src/main/resources/swagger.properties</file> |
| 734 | </files> |
| 735 | </configuration> |
| 736 | </execution> |
| 737 | </executions> |
| 738 | </plugin> |
| 739 | <plugin> |
| 740 | <groupId>com.github.kongchen</groupId> |
| 741 | <artifactId>swagger-maven-plugin</artifactId> |
| 742 | <version>3.1.4</version> |
| 743 | <configuration> |
| 744 | <apiSources> |
| 745 | <apiSource> |
| 746 | <locations>${api-rest-package}</locations> |
| 747 | <schemes>http,https</schemes> |
| 748 | <host>${api-host-ip}:${api-host-port}</host> |
| 749 | <basePath>${api-base-path}</basePath> |
| 750 | <info> |
| 751 | <title>${api-title}</title> |
| 752 | <version>${api-version}</version> |
| 753 | <description>${api-description}</description> |
| 754 | <license> |
| 755 | <name>${api-license}</name> |
| 756 | </license> |
| 757 | </info> |
| 758 | <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory> |
| 759 | </apiSource> |
| 760 | </apiSources> |
| 761 | </configuration> |
| 762 | <executions> |
| 763 | <execution> |
| 764 | <phase>compile</phase> |
| 765 | <goals> |
| 766 | <goal>generate</goal> |
| 767 | </goals> |
| 768 | </execution> |
| 769 | </executions> |
| 770 | </plugin> |
| 771 | <plugin> |
| 772 | <groupId>org.apache.maven.plugins</groupId> |
| 773 | <artifactId>maven-install-plugin</artifactId> |
| 774 | <version>2.3.1</version> |
| 775 | <executions> |
| 776 | <execution> |
| 777 | <id>install-file-id</id> |
| 778 | <phase>install</phase> |
| 779 | <goals> |
| 780 | <goal>install-file</goal> |
| 781 | </goals> |
| 782 | <configuration> |
| 783 | <file>${basedir}/src/main/resources/swagger.json</file> |
| 784 | <groupId>${project.groupId}</groupId> |
| 785 | <artifactId>${project.artifactId}-swagger-schema</artifactId> |
| 786 | <version>${project.version}</version> |
| 787 | <packaging>json</packaging> |
| 788 | </configuration> |
| 789 | </execution> |
| 790 | </executions> |
| 791 | </plugin> |
| 792 | </plugins> |
| 793 | </build> |
| 794 | </profile> |
| 795 | <profile> |
| 796 | <id>generate-sdk</id> |
| 797 | <activation> |
| 798 | <file> |
| 799 | <exists>${swagger-json}</exists> |
| 800 | </file> |
| 801 | <property> |
| 802 | <name>swagger-sdk.generate-java-sdk</name> |
| 803 | </property> |
| 804 | </activation> |
| 805 | <build> |
| 806 | <plugins> |
| 807 | <plugin> |
| 808 | <groupId>org.apache.maven.plugins</groupId> |
| 809 | <artifactId>maven-antrun-plugin</artifactId> |
| 810 | <version>${maven-antrun-plugin.version}</version> |
| 811 | <executions> |
| 812 | <execution> |
| 813 | <phase>initialize</phase> |
| 814 | <id>ant-create-script</id> |
| 815 | <configuration> |
| 816 | <exportAntProperties>true</exportAntProperties> |
| 817 | <tasks> |
| 818 | <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/> |
| 819 | <condition property="is_windows" value="true"> |
| 820 | <os family="windows"/> |
| 821 | </condition> |
| 822 | <condition property="isLinux" value="true"> |
| 823 | <os family="unix"/> |
| 824 | </condition> |
| 825 | <if> |
| 826 | <equals arg1="${is_windows}" arg2="true"/> |
| 827 | <then> |
| 828 | <property name="swagger.sdk.script.file" value="generated-source-script.bat"/> |
| 829 | <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/> |
| 830 | <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/> |
| 831 | </then> |
| 832 | <else> |
| 833 | <property name="swagger.sdk.script.file" value="generated-source-script.sh"/> |
| 834 | <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/> |
| 835 | <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/> |
| 836 | <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/> |
| 837 | </else> |
| 838 | </if> |
| 839 | </tasks> |
| 840 | </configuration> |
| 841 | <goals> |
| 842 | <goal>run</goal> |
| 843 | </goals> |
| 844 | </execution> |
| 845 | </executions> |
| 846 | <dependencies> |
| 847 | <dependency> |
| 848 | <groupId>ant-contrib</groupId> |
| 849 | <artifactId>ant-contrib</artifactId> |
| 850 | <version>1.0b3</version> |
| 851 | <exclusions> |
| 852 | <exclusion> |
| 853 | <groupId>ant</groupId> |
| 854 | <artifactId>ant</artifactId> |
| 855 | </exclusion> |
| 856 | </exclusions> |
| 857 | </dependency> |
| 858 | </dependencies> |
| 859 | </plugin> |
| 860 | <plugin> |
| 861 | <groupId>io.swagger</groupId> |
| 862 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 863 | <version>2.2.1</version> |
| 864 | <executions> |
| 865 | <execution> |
| 866 | <goals> |
| 867 | <goal>generate</goal> |
| 868 | </goals> |
| 869 | <configuration> |
| 870 | <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec> |
| 871 | <output>${project.build.directory}/generated-sources</output> |
| 872 | <language>java</language> |
| 873 | <configOptions> |
| 874 | <dateLibrary>joda</dateLibrary> |
| 875 | </configOptions> |
| 876 | <library>jersey2</library> |
| 877 | <groupId>${project.groupId}</groupId> |
| 878 | <artifactId>${project.artifactId}-java-sdk</artifactId> |
| 879 | <artifactVersion>${project.version}</artifactVersion> |
| 880 | <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage> |
| 881 | <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage> |
| 882 | <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage> |
| 883 | </configuration> |
| 884 | </execution> |
| 885 | </executions> |
| 886 | </plugin> |
| 887 | <plugin> |
| 888 | <groupId>org.codehaus.mojo</groupId> |
| 889 | <artifactId>exec-maven-plugin</artifactId> |
| 890 | <version>3.1.0</version> |
| 891 | <executions> |
| 892 | <execution> |
| 893 | <id>swagger-generate-sources</id> |
| 894 | <phase>generate-sources</phase> |
| 895 | <goals> |
| 896 | <goal>exec</goal> |
| 897 | </goals> |
| 898 | <configuration> |
| 899 | <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable> |
| 900 | </configuration> |
| 901 | </execution> |
| 902 | </executions> |
| 903 | </plugin> |
| 904 | <plugin> |
| 905 | <groupId>org.apache.maven.plugins</groupId> |
| 906 | <artifactId>maven-clean-plugin</artifactId> |
| 907 | <version>3.0.0</version> |
| 908 | <executions> |
| 909 | <execution> |
| 910 | <id>clean-generated-files</id> |
| 911 | <phase>generate-sources</phase> |
| 912 | <goals> |
| 913 | <goal>clean</goal> |
| 914 | </goals> |
| 915 | <configuration> |
| 916 | <filesets> |
| 917 | <fileset> |
| 918 | <directory>${project.build.directory}/generated-sources</directory> |
| 919 | </fileset> |
| 920 | </filesets> |
| 921 | </configuration> |
| 922 | </execution> |
| 923 | </executions> |
| 924 | </plugin> |
| 925 | </plugins> |
| 926 | </build> |
| 927 | <dependencies> |
| 928 | <dependency> |
| 929 | <groupId>org.onap.msb.swagger-sdk</groupId> |
| 930 | <artifactId>swagger-sdk</artifactId> |
| 931 | <version>1.0.0</version> |
| 932 | </dependency> |
| 933 | </dependencies> |
| 934 | </profile> |
| 935 | <profile> |
| 936 | <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html |
| 937 | q = http://memory-alpha.wikia.com/wiki/Q ;) |
| 938 | |
| 939 | The Quick profile is used during incremental local development, when you want to "just get that JAR built", |
| 940 | which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips |
| 941 | tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and |
| 942 | which all must run on Gerrit, but which are overhead during ongoing fast iterative local development. |
| 943 | |
| 944 | Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle |
| 945 | while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it |
| 946 | from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again. |
| 947 | --> |
| 948 | <id>q</id> |
| 949 | <properties> |
| 950 | <skipTests>true</skipTests> |
| 951 | <skipPush>true</skipPush> |
| 952 | <docker.skip.push>true</docker.skip.push> |
| 953 | <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests; |
| 954 | and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be |
| 955 | particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) --> |
| 956 | <skipIT>true</skipIT> |
| 957 | <skipITs>true</skipITs> |
| 958 | <skip.karaf.featureTest>true</skip.karaf.featureTest> |
| 959 | <jacoco.skip>true</jacoco.skip> |
| 960 | <maven.javadoc.skip>true</maven.javadoc.skip> |
| 961 | <maven.source.skip>true</maven.source.skip> |
| 962 | <checkstyle.skip>true</checkstyle.skip> |
| 963 | <findbugs.skip>true</findbugs.skip> |
| 964 | <spotbugs.skip>true</spotbugs.skip> |
| 965 | <pmd.skip>true</pmd.skip> |
| 966 | <cpd.skip>true</cpd.skip> |
| 967 | <maven.site.skip>true</maven.site.skip> |
| 968 | <invoker.skip>true</invoker.skip> |
| 969 | <enforcer.skip>true</enforcer.skip> |
| 970 | <duplicate-finder.skip>true</duplicate-finder.skip> |
| 971 | <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 --> |
| 972 | <maven.gitcommitid.skip>true</maven.gitcommitid.skip> |
| 973 | <modernizer.skip>true</modernizer.skip> |
| 974 | <format.skipExecute>true</format.skipExecute> |
| 975 | <format.skipValidate>true</format.skipValidate> |
| 976 | </properties> |
| 977 | </profile> |
| 978 | <profile> |
| 979 | <id>sonar-jacoco-aggregate</id> |
| 980 | <activation> |
| 981 | <property> |
| 982 | <name>onap.jacoco.aggregateFile</name> |
| 983 | </property> |
| 984 | </activation> |
| 985 | <build> |
| 986 | <plugins> |
| 987 | <plugin> |
| 988 | <groupId>org.jacoco</groupId> |
| 989 | <artifactId>jacoco-maven-plugin</artifactId> |
| 990 | <executions> |
| 991 | <execution> |
| 992 | <id>merge</id> |
| 993 | <goals> |
| 994 | <goal>merge</goal> |
| 995 | </goals> |
| 996 | <phase>generate-resources</phase> |
| 997 | <configuration> |
| 998 | <destFile>${onap.jacoco.aggregateFile}</destFile> |
| 999 | <fileSets> |
| 1000 | <fileSet> |
| 1001 | <directory>${project.basedir}</directory> |
| 1002 | <includes> |
| 1003 | <include>**/target/code-coverage/*.exec</include> |
| 1004 | </includes> |
| 1005 | </fileSet> |
| 1006 | </fileSets> |
| 1007 | </configuration> |
| 1008 | </execution> |
| 1009 | </executions> |
| 1010 | </plugin> |
| 1011 | </plugins> |
| 1012 | </build> |
| 1013 | </profile> |
| 1014 | <!-- End of profiles from ONAP oparent --> |
| 1015 | </profiles> |
| 1016 | </project> |