Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ONAP POLICY-CLAMP |
| 5 | ================================================================================ |
| 6 | Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved. |
| 7 | Modifications Copyright (C) 2021 Nordix Foundation. |
| 8 | ================================================================================ |
| 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | you may not use this file except in compliance with the License. |
| 11 | You may obtain a copy of the License at |
| 12 | |
| 13 | http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | |
| 15 | Unless required by applicable law or agreed to in writing, software |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 20 | ============LICENSE_END============================================ |
| 21 | =================================================================== |
| 22 | --> |
| 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 24 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | |
| 28 | <parent> |
| 29 | <groupId>org.onap.policy.clamp</groupId> |
| 30 | <artifactId>policy-clamp</artifactId> |
| 31 | <version>6.1.2-SNAPSHOT</version> |
| 32 | </parent> |
| 33 | |
| 34 | <artifactId>policy-clamp-runtime</artifactId> |
| 35 | <name>${project.artifactId}</name> |
| 36 | |
| 37 | <description> |
| 38 | This is the MAVEN project that builds everything for ONAP POLICY-CLAMP. |
| 39 | Docker engine is normally required to perfom all possible tasks (including integration tests) |
| 40 | |
| 41 | It can build: |
| 42 | - The ONAP POLICY-CLAMP JAR that contains CLAMP back-end code. |
| 43 | - The DOCKER images for: |
| 44 | * POLICY-CLAMP backend (Java Spring) |
| 45 | * POLICY-CLAMP frontend (Javascript React) |
| 46 | |
| 47 | It can test: |
| 48 | - The POLICY-CLAMP backend, JAVA unit testing |
| 49 | - The POLICY-CLAMP backend, JAVA integration tests (with Spring + docker mariadb database + docker policy/dcae |
| 50 | emulator written in python) |
| 51 | - The POLICY-CLAMP frontend, Javascript tests (NodeJS(NPM) + JEST and Enzyme for React) |
| 52 | |
| 53 | The test coverage for dev's can be found after a "clean install" build in: |
| 54 | - Clamp backend: target/jacoco-dev.exec (unit tests + integration tests merged) |
| 55 | or separately target/coverage-reports/jacoco.exec and target/coverage-reports/jacoco-it.exec |
| 56 | - Clamp frontend: target/ui-react/coverage |
| 57 | |
| 58 | Useful mvn commands: |
| 59 | - mvn clean install: Build Clamp backend JAR + unit tests + integration tests + NPM tests (+coverage for all) |
| 60 | - mvn clean install -DskipITs=true: Build Clamp backend JAR + unit tests + NPM tests (+coverage for all), it |
| 61 | does not require a DOCKER engine |
| 62 | - mvn clean install -DskipTests -P docker: Build Clamp backend JAR + all docker images |
| 63 | |
| 64 | To start POLICY-CLAMP (Build it before): |
| 65 | - Use docker-compose file in ./extra/docker/clamp/docker-compose.yml |
| 66 | - Use the script located in ./extra/bin/start-backend.sh + start-frontend.sh |
| 67 | - Use your IDE to use the Jar or start NVM/NPM |
| 68 | |
| 69 | </description> |
| 70 | |
| 71 | <properties> |
| 72 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 73 | <clamp.project.version>${project.version}</clamp.project.version> |
| 74 | <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 75 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 76 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 77 | <sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/jacoco-html-xml-reports/jacoco.xml |
| 78 | </sonar.coverage.jacoco.xmlReportPaths> |
| 79 | <sonar.projectVersion>${project.version}</sonar.projectVersion> |
| 80 | <sonar.log.level>DEBUG</sonar.log.level> |
| 81 | <sonar.nodejs.executable>${project.build.directory}/${ui.react.src}/node/node</sonar.nodejs.executable> |
| 82 | <sonar.verbose>true</sonar.verbose> |
| 83 | <sonar.sources>src/main,${project.build.directory}/${ui.react.src}/src</sonar.sources> |
| 84 | <sonar.exclusions>src/main/resources/**</sonar.exclusions> |
| 85 | <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled> |
| 86 | <sonar.javascript.lcov.reportPaths>${project.build.directory}/${ui.react.src}/coverage/lcov.info |
| 87 | </sonar.javascript.lcov.reportPaths> |
| 88 | <sonar.coverage.exclusions> |
| 89 | src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js |
| 90 | </sonar.coverage.exclusions> |
| 91 | <docker.push.registry>localhost:5000</docker.push.registry> |
| 92 | <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry> |
| 93 | <docker.skip.build>true</docker.skip.build> |
| 94 | <docker.skip.push>true</docker.skip.push> |
| 95 | <docker.skip.tag>true</docker.skip.tag> |
| 96 | <skip.staging.artifacts>false</skip.staging.artifacts> |
| 97 | <python.http.proxy.param/> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 98 | <ui.react.src>ui-react</ui.react.src> |
| 99 | <ui.react.lib.src>ui-react-lib</ui.react.lib.src> |
| 100 | <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url> |
| 101 | </properties> |
| 102 | |
| 103 | <profiles> |
| 104 | <!-- BEGIN: NOT USABLE profiles, those are defined when specific flags are enabled --> |
| 105 | <profile> |
| 106 | <id>without-test</id> |
| 107 | <activation> |
| 108 | <property> |
| 109 | <name>maven.test.skip</name> |
| 110 | <value>true</value> |
| 111 | </property> |
| 112 | </activation> |
| 113 | <properties> |
| 114 | <docker.skip.run>true</docker.skip.run> |
| 115 | <docker.skip>true</docker.skip> |
| 116 | </properties> |
| 117 | </profile> |
| 118 | <profile> |
| 119 | <id>without-IT-only</id> |
| 120 | <activation> |
| 121 | <property> |
| 122 | <name>skipITs</name> |
| 123 | <value>true</value> |
| 124 | </property> |
| 125 | </activation> |
| 126 | <properties> |
| 127 | <docker.skip.run>true</docker.skip.run> |
| 128 | <docker.skip>true</docker.skip> |
| 129 | </properties> |
| 130 | </profile> |
| 131 | <profile> |
| 132 | <id>without-IT-only2</id> |
| 133 | <activation> |
| 134 | <property> |
| 135 | <name>skipTests</name> |
| 136 | <value>true</value> |
| 137 | </property> |
| 138 | </activation> |
| 139 | <properties> |
| 140 | <docker.skip.run>true</docker.skip.run> |
| 141 | <docker.skip>true</docker.skip> |
| 142 | </properties> |
| 143 | </profile> |
| 144 | <!-- END: NOT USABLE profiles, those are defined when specific flags are enabled --> |
| 145 | <profile> |
| 146 | <id>docker</id> |
| 147 | <properties> |
| 148 | <skip.staging.artifacts>true</skip.staging.artifacts> |
| 149 | <docker.skip.build>false</docker.skip.build> |
| 150 | <docker.skip.tag>false</docker.skip.tag> |
| 151 | <docker.skip.push>false</docker.skip.push> |
| 152 | <docker.skip>false</docker.skip> |
| 153 | </properties> |
| 154 | </profile> |
| 155 | </profiles> |
| 156 | |
| 157 | <dependencyManagement> |
| 158 | <dependencies> |
| 159 | <!-- Spring Boot BOM --> |
| 160 | <dependency> |
| 161 | <groupId>org.springframework.boot</groupId> |
| 162 | <artifactId>spring-boot-dependencies</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 163 | <version>${version.springboot}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 164 | <type>pom</type> |
| 165 | <scope>import</scope> |
| 166 | </dependency> |
| 167 | <!-- Camel BOM --> |
| 168 | <dependency> |
| 169 | <groupId>org.apache.camel.springboot</groupId> |
| 170 | <artifactId>camel-spring-boot-bom</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 171 | <version>${version.camel}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 172 | <type>pom</type> |
| 173 | <scope>import</scope> |
| 174 | </dependency> |
| 175 | </dependencies> |
| 176 | </dependencyManagement> |
| 177 | |
| 178 | <dependencies> |
| 179 | <dependency> |
| 180 | <groupId>com.att.eelf</groupId> |
| 181 | <artifactId>eelf-core</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 182 | <version>${version.eelf.core}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 183 | <exclusions> |
| 184 | <exclusion> |
| 185 | <groupId>org.powermock</groupId> |
| 186 | <artifactId>powermock-module-junit4</artifactId> |
| 187 | </exclusion> |
| 188 | <exclusion> |
| 189 | <groupId>org.powermock</groupId> |
| 190 | <artifactId>powermock-api-mockito</artifactId> |
| 191 | </exclusion> |
| 192 | </exclusions> |
| 193 | </dependency> |
| 194 | <dependency> |
| 195 | <groupId>org.codehaus.janino</groupId> |
| 196 | <artifactId>janino</artifactId> |
| 197 | <version>3.0.8</version> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>org.apache.tomcat.embed</groupId> |
| 201 | <artifactId>tomcat-embed-core</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 202 | <version>${version.tomcat}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 203 | </dependency> |
| 204 | <dependency> |
| 205 | <groupId>org.apache.tomcat.embed</groupId> |
| 206 | <artifactId>tomcat-embed-el</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 207 | <version>${version.tomcat}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 208 | </dependency> |
| 209 | <dependency> |
| 210 | <groupId>org.apache.tomcat.embed</groupId> |
| 211 | <artifactId>tomcat-embed-websocket</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 212 | <version>${version.tomcat}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 213 | </dependency> |
| 214 | <dependency> |
| 215 | <groupId>org.apache.tomcat</groupId> |
| 216 | <artifactId>tomcat-annotations-api</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 217 | <version>${version.tomcat}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 218 | </dependency> |
| 219 | <!-- For CAMEL --> |
| 220 | <dependency> |
| 221 | <groupId>org.apache.camel.springboot</groupId> |
| 222 | <artifactId>camel-http-starter</artifactId> |
| 223 | </dependency> |
| 224 | <dependency> |
| 225 | <groupId>org.apache.camel.springboot</groupId> |
| 226 | <artifactId>camel-spring-boot-starter</artifactId> |
| 227 | </dependency> |
| 228 | <dependency> |
| 229 | <groupId>org.apache.camel.springboot</groupId> |
| 230 | <artifactId>camel-jaxb-starter</artifactId> |
| 231 | </dependency> |
| 232 | <dependency> |
| 233 | <groupId>org.apache.camel.springboot</groupId> |
| 234 | <artifactId>camel-servlet-starter</artifactId> |
| 235 | </dependency> |
| 236 | <dependency> |
| 237 | <groupId>org.apache.camel.springboot</groupId> |
| 238 | <artifactId>camel-gson-starter</artifactId> |
| 239 | </dependency> |
| 240 | <dependency> |
| 241 | <groupId>org.apache.camel.springboot</groupId> |
| 242 | <artifactId>camel-swagger-java-starter</artifactId> |
| 243 | <exclusions> |
| 244 | <exclusion> |
| 245 | <groupId>javax.ws.rs</groupId> |
| 246 | <artifactId>jsr311-api</artifactId> |
| 247 | </exclusion> |
| 248 | <exclusion> |
| 249 | <groupId>org.slf4j</groupId> |
| 250 | <artifactId>slf4j-ext</artifactId> |
| 251 | </exclusion> |
| 252 | </exclusions> |
| 253 | </dependency> |
| 254 | <!-- Spring famework --> |
| 255 | <dependency> |
| 256 | <groupId>org.springframework.boot</groupId> |
| 257 | <artifactId>spring-boot-starter-web</artifactId> |
| 258 | <exclusions> |
| 259 | <exclusion> |
| 260 | <groupId>org.springframework.boot</groupId> |
| 261 | <artifactId>spring-boot-starter-json</artifactId> |
| 262 | </exclusion> |
| 263 | </exclusions> |
| 264 | </dependency> |
| 265 | <dependency> |
| 266 | <groupId>org.springframework.boot</groupId> |
| 267 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 268 | <exclusions> |
| 269 | <exclusion> |
| 270 | <groupId>org.glassfish</groupId> |
| 271 | <artifactId>jakarta.el</artifactId> |
| 272 | </exclusion> |
| 273 | </exclusions> |
| 274 | </dependency> |
| 275 | <dependency> |
| 276 | <groupId>org.springframework</groupId> |
| 277 | <artifactId>spring-jdbc</artifactId> |
| 278 | </dependency> |
| 279 | <dependency> |
| 280 | <groupId>org.springframework.boot</groupId> |
| 281 | <artifactId>spring-boot-starter-security</artifactId> |
| 282 | </dependency> |
| 283 | <dependency> |
| 284 | <groupId>org.springframework.boot</groupId> |
| 285 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 286 | </dependency> |
| 287 | <dependency> |
| 288 | <groupId>org.springframework.boot</groupId> |
| 289 | <artifactId>spring-boot-starter-test</artifactId> |
| 290 | <scope>test</scope> |
| 291 | <exclusions> |
| 292 | <exclusion> |
| 293 | <groupId>com.vaadin.external.google</groupId> |
| 294 | <artifactId>android-json</artifactId> |
| 295 | </exclusion> |
| 296 | </exclusions> |
| 297 | </dependency> |
| 298 | <dependency> |
| 299 | <groupId>org.springframework.boot</groupId> |
| 300 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 301 | </dependency> |
| 302 | <!-- Policy dependencies mainly for the models required --> |
| 303 | <dependency> |
| 304 | <groupId>org.onap.policy.models</groupId> |
| 305 | <artifactId>policy-models-pdp</artifactId> |
| 306 | <version>${policy.models.version}</version> |
| 307 | <exclusions> |
| 308 | <exclusion> |
| 309 | <groupId>org.eclipse.jetty</groupId> |
| 310 | <artifactId>jetty-server</artifactId> |
| 311 | </exclusion> |
| 312 | <exclusion> |
| 313 | <groupId>org.glassfish.jersey.containers</groupId> |
| 314 | <artifactId>jersey-container-servlet</artifactId> |
| 315 | </exclusion> |
| 316 | <exclusion> |
| 317 | <groupId>org.jetbrains.kotlin</groupId> |
| 318 | <artifactId>kotlin-reflect</artifactId> |
| 319 | </exclusion> |
| 320 | <exclusion> |
| 321 | <groupId>org.jetbrains.kotlin</groupId> |
| 322 | <artifactId>kotlin-stdlib</artifactId> |
| 323 | </exclusion> |
| 324 | <exclusion> |
| 325 | <groupId>org.jetbrains.kotlin</groupId> |
| 326 | <artifactId>kotlin-stdlib-common</artifactId> |
| 327 | </exclusion> |
| 328 | </exclusions> |
| 329 | </dependency> |
| 330 | |
| 331 | <!-- Others dependencies --> |
| 332 | <!-- Jaxws is required for AAF --> |
| 333 | <dependency> |
| 334 | <groupId>javax.xml.ws</groupId> |
| 335 | <artifactId>jaxws-api</artifactId> |
| 336 | <version>2.3.1</version> |
| 337 | </dependency> |
| 338 | <dependency> |
| 339 | <groupId>org.onap.aaf.authz</groupId> |
| 340 | <artifactId>aaf-cadi-aaf</artifactId> |
| 341 | <version>2.1.15</version> |
| 342 | <exclusions> |
| 343 | <exclusion> |
| 344 | <groupId>javax.servlet</groupId> |
| 345 | <artifactId>servlet-api</artifactId> |
| 346 | </exclusion> |
| 347 | <exclusion> |
| 348 | <groupId>log4j</groupId> |
| 349 | <artifactId>log4j</artifactId> |
| 350 | </exclusion> |
| 351 | </exclusions> |
| 352 | </dependency> |
| 353 | <dependency> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 354 | <groupId>commons-io</groupId> |
| 355 | <artifactId>commons-io</artifactId> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 356 | </dependency> |
| 357 | <dependency> |
| 358 | <groupId>com.googlecode.json-simple</groupId> |
| 359 | <artifactId>json-simple</artifactId> |
| 360 | <version>1.1.1</version> |
| 361 | </dependency> |
| 362 | <dependency> |
| 363 | <groupId>org.apache.commons</groupId> |
| 364 | <artifactId>commons-vfs2</artifactId> |
| 365 | <version>2.8.0</version> |
| 366 | <exclusions> |
| 367 | <exclusion> |
| 368 | <groupId>com.squareup.okhttp</groupId> |
| 369 | <artifactId>okhttp</artifactId> |
| 370 | </exclusion> |
| 371 | </exclusions> |
| 372 | </dependency> |
| 373 | <dependency> |
| 374 | <groupId>org.slf4j</groupId> |
| 375 | <artifactId>slf4j-api</artifactId> |
| 376 | </dependency> |
| 377 | <dependency> |
| 378 | <groupId>javax.transaction</groupId> |
| 379 | <artifactId>jta</artifactId> |
| 380 | <version>1.1</version> |
| 381 | </dependency> |
| 382 | <dependency> |
| 383 | <groupId>javax.persistence</groupId> |
| 384 | <artifactId>persistence-api</artifactId> |
| 385 | <version>1.0.2</version> |
| 386 | </dependency> |
| 387 | <!-- Other dependencies to fix nexus IQ reported vulnerabilities --> |
| 388 | <dependency> |
| 389 | <groupId>commons-codec</groupId> |
| 390 | <artifactId>commons-codec</artifactId> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 391 | </dependency> |
| 392 | <dependency> |
| 393 | <groupId>org.codehaus.plexus</groupId> |
| 394 | <artifactId>plexus-utils</artifactId> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 395 | </dependency> |
| 396 | <dependency> |
| 397 | <groupId>org.jboss.spec.javax.ws.rs</groupId> |
| 398 | <artifactId>jboss-jaxrs-api_2.0_spec</artifactId> |
| 399 | <version>1.0.1.Final</version> |
| 400 | </dependency> |
| 401 | |
| 402 | |
| 403 | <!-- Remove the MYSQL connector and replace it by Mariadb --> |
| 404 | <dependency> |
| 405 | <groupId>org.mariadb.jdbc</groupId> |
| 406 | <artifactId>mariadb-java-client</artifactId> |
| 407 | <version>2.7.2</version> |
| 408 | </dependency> |
| 409 | <!-- For SDC Controller --> |
| 410 | <dependency> |
| 411 | <groupId>org.onap.sdc.sdc-distribution-client</groupId> |
| 412 | <artifactId>sdc-distribution-client</artifactId> |
| 413 | <version>1.4.1</version> |
| 414 | </dependency> |
| 415 | <dependency> |
| 416 | <groupId>org.onap.sdc.sdc-tosca</groupId> |
| 417 | <artifactId>sdc-tosca</artifactId> |
| 418 | <version>1.5.1</version> |
| 419 | <exclusions> |
| 420 | <exclusion> |
| 421 | <groupId>com.fasterxml.jackson.core</groupId> |
| 422 | <artifactId>jackson-databind</artifactId> |
| 423 | </exclusion> |
| 424 | </exclusions> |
| 425 | </dependency> |
| 426 | <dependency> |
| 427 | <groupId>org.yaml</groupId> |
| 428 | <artifactId>snakeyaml</artifactId> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 429 | </dependency> |
| 430 | <dependency> |
| 431 | <groupId>org.dom4j</groupId> |
| 432 | <artifactId>dom4j</artifactId> |
| 433 | <version>2.1.3</version> |
| 434 | </dependency> |
| 435 | |
| 436 | <!-- TESTING --> |
| 437 | <dependency> |
| 438 | <groupId>org.junit.vintage</groupId> |
| 439 | <artifactId>junit-vintage-engine</artifactId> |
| 440 | <version>5.7.1</version> |
| 441 | <scope>test</scope> |
| 442 | </dependency> |
| 443 | <dependency> |
| 444 | <groupId>org.assertj</groupId> |
| 445 | <artifactId>assertj-core</artifactId> |
| 446 | <version>3.10.0</version> |
| 447 | <scope>test</scope> |
| 448 | </dependency> |
| 449 | <dependency> |
| 450 | <groupId>com.github.docker-java</groupId> |
| 451 | <artifactId>docker-java-core</artifactId> |
| 452 | <version>3.2.7</version> |
| 453 | <scope>test</scope> |
| 454 | <exclusions> |
| 455 | <exclusion> |
| 456 | <groupId>com.fasterxml.jackson.core</groupId> |
| 457 | <artifactId>jackson-databind</artifactId> |
| 458 | </exclusion> |
| 459 | </exclusions> |
| 460 | </dependency> |
| 461 | <dependency> |
| 462 | <groupId>com.github.docker-java</groupId> |
| 463 | <artifactId>docker-java</artifactId> |
| 464 | <version>3.2.7</version> |
| 465 | <scope>test</scope> |
| 466 | </dependency> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 467 | </dependencies> |
| 468 | |
| 469 | <build> |
| 470 | <finalName>policy-clamp-backend</finalName> |
| 471 | |
| 472 | <testResources> |
| 473 | <testResource> |
| 474 | <directory>src/main/resources</directory> |
| 475 | <filtering>true</filtering> |
| 476 | <excludes> |
| 477 | <exclude>clds/aaf/**</exclude> |
| 478 | </excludes> |
| 479 | </testResource> |
| 480 | <testResource> |
| 481 | <directory>src/main/resources</directory> |
| 482 | <filtering>false</filtering> |
| 483 | <includes> |
| 484 | <include>clds/aaf/**</include> |
| 485 | </includes> |
| 486 | </testResource> |
| 487 | <testResource> |
| 488 | <directory>src/test/resources</directory> |
| 489 | <excludes> |
| 490 | <exclude>**/*.jks</exclude> |
| 491 | <exclude>**/*.csar</exclude> |
| 492 | </excludes> |
| 493 | <filtering>true</filtering> |
| 494 | </testResource> |
| 495 | <testResource> |
| 496 | <directory>src/test/resources/https</directory> |
| 497 | <includes> |
| 498 | <include>**.jks</include> |
| 499 | </includes> |
| 500 | <filtering>false</filtering> |
| 501 | <targetPath>https</targetPath> |
| 502 | </testResource> |
| 503 | <testResource> |
| 504 | <directory>src/test/resources/example/sdc</directory> |
| 505 | <includes> |
| 506 | <include>**.csar</include> |
| 507 | </includes> |
| 508 | <filtering>false</filtering> |
| 509 | <targetPath>example/sdc</targetPath> |
| 510 | </testResource> |
| 511 | </testResources> |
| 512 | <resources> |
| 513 | <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise |
| 514 | they will be broken and unreadable --> |
| 515 | <resource> |
| 516 | <directory>src/main/resources</directory> |
| 517 | <filtering>true</filtering> |
| 518 | <excludes> |
| 519 | <exclude>clds/aaf/**</exclude> |
| 520 | </excludes> |
| 521 | </resource> |
| 522 | <resource> |
| 523 | <directory>src/main/resources</directory> |
| 524 | <filtering>false</filtering> |
| 525 | <includes> |
| 526 | <include>clds/aaf/**</include> |
| 527 | </includes> |
| 528 | </resource> |
| 529 | <resource> |
| 530 | <directory>${ui.react.src}</directory> |
| 531 | <excludes> |
| 532 | <exclude>node_modules</exclude> |
| 533 | </excludes> |
| 534 | <includes> |
| 535 | <include>src/**</include> |
| 536 | <include>public/**</include> |
| 537 | <include>package.json</include> |
| 538 | <include>package-lock.json</include> |
| 539 | </includes> |
| 540 | <filtering>true</filtering> |
| 541 | <targetPath>${project.build.directory}/${ui.react.src}</targetPath> |
| 542 | </resource> |
| 543 | <resource> |
| 544 | <directory>${ui.react.src}</directory> |
| 545 | <includes> |
| 546 | <include>src/**</include> |
| 547 | </includes> |
| 548 | <excludes> |
| 549 | <exclude>**/__snapshots__/**</exclude> |
| 550 | <exclude>**/**.test.js</exclude> |
| 551 | </excludes> |
| 552 | <filtering>true</filtering> |
| 553 | <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath> |
| 554 | </resource> |
| 555 | <resource> |
| 556 | <directory>${ui.react.lib.src}</directory> |
| 557 | <includes> |
| 558 | <include>**</include> |
| 559 | </includes> |
| 560 | <excludes> |
| 561 | <exclude>node_modules/**</exclude> |
| 562 | <exclude>package-lock.json</exclude> |
| 563 | </excludes> |
| 564 | <filtering>true</filtering> |
| 565 | <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath> |
| 566 | </resource> |
| 567 | </resources> |
| 568 | |
| 569 | <plugins> |
| 570 | <plugin> |
| 571 | <groupId>de.jpdigital</groupId> |
| 572 | <artifactId>hibernate52-ddl-maven-plugin</artifactId> |
| 573 | <version>2.2.0</version> |
| 574 | <dependencies> |
| 575 | <dependency> |
| 576 | <groupId>javax.xml.bind</groupId> |
| 577 | <artifactId>jaxb-api</artifactId> |
| 578 | <version>2.3.0</version> |
| 579 | </dependency> |
| 580 | </dependencies> |
| 581 | <executions> |
| 582 | <execution> |
| 583 | <phase>process-classes</phase> |
| 584 | <goals> |
| 585 | <goal>gen-ddl</goal> |
| 586 | </goals> |
| 587 | <configuration> |
| 588 | <packages> |
| 589 | <param>org.onap.policy.clamp</param> |
| 590 | </packages> |
| 591 | <dialects> |
| 592 | <param>MARIADB53</param> |
| 593 | </dialects> |
| 594 | <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory> |
| 595 | <outputFileNameSuffix>create-tables</outputFileNameSuffix> |
| 596 | <!-- <createDropStatements>true</createDropStatements> --> |
| 597 | <omitDialectFromFileName>true</omitDialectFromFileName> |
| 598 | </configuration> |
| 599 | </execution> |
| 600 | </executions> |
| 601 | |
| 602 | </plugin> |
| 603 | <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate |
| 604 | a list of .adoc files containing the APIs info in more structured way --> |
| 605 | <plugin> |
| 606 | <groupId>io.github.swagger2markup</groupId> |
| 607 | <artifactId>swagger2markup-maven-plugin</artifactId> |
| 608 | <version>1.3.3</version> |
| 609 | <dependencies> |
| 610 | <dependency> |
| 611 | <groupId>io.github.swagger2markup</groupId> |
| 612 | <artifactId>swagger2markup-import-files-ext</artifactId> |
| 613 | <version>1.3.3</version> |
| 614 | </dependency> |
| 615 | <dependency> |
| 616 | <groupId>io.github.swagger2markup</groupId> |
| 617 | <artifactId>swagger2markup-spring-restdocs-ext</artifactId> |
| 618 | <version>1.3.3</version> |
| 619 | </dependency> |
| 620 | </dependencies> |
| 621 | <configuration> |
saul.gill | ee7faff | 2021-06-09 14:24:00 +0100 | [diff] [blame] | 622 | <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 623 | <outputDir>${project.build.directory}/asciidoc/generated</outputDir> |
| 624 | <config> |
| 625 | <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage> |
| 626 | </config> |
| 627 | </configuration> |
| 628 | <executions> |
| 629 | <execution> |
| 630 | <phase>post-integration-test</phase> |
| 631 | <goals> |
| 632 | <goal>convertSwagger2markup</goal> |
| 633 | </goals> |
| 634 | </execution> |
| 635 | </executions> |
| 636 | </plugin> |
| 637 | |
| 638 | <!-- Run the generated asciidoc through Asciidoctor to generate other documentation |
| 639 | types, such as PDFs or HTML5 --> |
| 640 | <plugin> |
| 641 | <groupId>org.asciidoctor</groupId> |
| 642 | <artifactId>asciidoctor-maven-plugin</artifactId> |
| 643 | <version>1.5.7.1</version> |
| 644 | <dependencies> |
| 645 | <dependency> |
| 646 | <groupId>org.asciidoctor</groupId> |
| 647 | <artifactId>asciidoctorj-pdf</artifactId> |
| 648 | <version>1.5.0-alpha.10.1</version> |
| 649 | </dependency> |
| 650 | </dependencies> |
| 651 | <configuration> |
| 652 | <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory> |
| 653 | <sourceDocumentName>swagger.adoc</sourceDocumentName> |
| 654 | <attributes> |
| 655 | <doctype>book</doctype> |
| 656 | <toc>left</toc> |
| 657 | <toclevels>3</toclevels> |
| 658 | <numbered/> |
| 659 | <hardbreaks/> |
| 660 | <sectlinks/> |
| 661 | <sectanchors/> |
| 662 | <generated>${project.build.directory}/asciidoc/generated</generated> |
| 663 | </attributes> |
| 664 | </configuration> |
| 665 | |
| 666 | <executions> |
| 667 | <execution> |
| 668 | <id>output-html</id> |
| 669 | <phase>post-integration-test</phase> |
| 670 | <goals> |
| 671 | <goal>process-asciidoc</goal> |
| 672 | </goals> |
| 673 | <configuration> |
| 674 | <backend>html5</backend> |
| 675 | <outputDirectory>${project.basedir}/docs/swagger</outputDirectory> |
| 676 | <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory> |
| 677 | </configuration> |
| 678 | </execution> |
| 679 | <execution> |
| 680 | <id>output-pdf</id> |
| 681 | <phase>post-integration-test</phase> |
| 682 | <goals> |
| 683 | <goal>process-asciidoc</goal> |
| 684 | </goals> |
| 685 | <configuration> |
| 686 | <backend>pdf</backend> |
| 687 | <outputDirectory>${project.basedir}/docs/swagger</outputDirectory> |
| 688 | </configuration> |
| 689 | </execution> |
| 690 | </executions> |
| 691 | </plugin> |
| 692 | <plugin> |
| 693 | <groupId>org.codehaus.groovy.maven</groupId> |
| 694 | <artifactId>gmaven-plugin</artifactId> |
| 695 | <version>1.0</version> |
| 696 | <executions> |
| 697 | <execution> |
| 698 | <id>docker-tags</id> |
| 699 | <phase>validate</phase> |
| 700 | <goals> |
| 701 | <goal>execute</goal> |
| 702 | </goals> |
| 703 | <configuration> |
| 704 | <source>${project.basedir}/src/main/script/TagVersion.groovy</source> |
| 705 | </configuration> |
| 706 | </execution> |
| 707 | <execution> |
| 708 | <id>npm-repos-selection</id> |
| 709 | <phase>validate</phase> |
| 710 | <goals> |
| 711 | <goal>execute</goal> |
| 712 | </goals> |
| 713 | <configuration> |
| 714 | <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source> |
| 715 | </configuration> |
| 716 | </execution> |
| 717 | </executions> |
| 718 | </plugin> |
| 719 | <plugin> |
| 720 | <groupId>org.apache.maven.plugins</groupId> |
| 721 | <artifactId>maven-jar-plugin</artifactId> |
| 722 | <version>3.2.0</version> |
| 723 | <executions> |
| 724 | <execution> |
| 725 | <id>jar-with-only-classes</id> |
| 726 | <phase>package</phase> |
| 727 | <goals> |
| 728 | <goal>jar</goal> |
| 729 | </goals> |
| 730 | <configuration> |
| 731 | <classifier>classes</classifier> |
| 732 | <includes> |
| 733 | <include>org/**</include> |
| 734 | </includes> |
| 735 | </configuration> |
| 736 | </execution> |
| 737 | </executions> |
| 738 | </plugin> |
| 739 | <plugin> |
| 740 | <groupId>org.codehaus.mojo</groupId> |
| 741 | <artifactId>build-helper-maven-plugin</artifactId> |
| 742 | <version>3.2.0</version> |
| 743 | <executions> |
| 744 | <execution> |
| 745 | <goals> |
| 746 | <goal>attach-artifact</goal> |
| 747 | </goals> |
| 748 | <phase>package</phase> |
| 749 | <configuration> |
| 750 | <artifacts> |
| 751 | <artifact> |
| 752 | <file>${project.build.directory}/policy-clamp-backend-classes.jar</file> |
| 753 | <type>jar</type> |
| 754 | <classifier>classes</classifier> |
| 755 | </artifact> |
| 756 | </artifacts> |
| 757 | </configuration> |
| 758 | </execution> |
| 759 | <execution> |
| 760 | <id>reserve-port-for-tests</id> |
| 761 | <phase>process-resources</phase> |
| 762 | <goals> |
| 763 | <goal>reserve-network-port</goal> |
| 764 | </goals> |
| 765 | <configuration> |
| 766 | <portNames> |
| 767 | <portName>docker.mariadb.port.host</portName> |
| 768 | <portName>docker.http-cache.port.host</portName> |
| 769 | <portName>clamp.it.tests.http-redirected</portName> |
| 770 | <portName>clamp.it.tests.robotframework.http</portName> |
| 771 | <portName>clamp.it.tests.https</portName> |
| 772 | <portName>clamp.it.tests.http</portName> |
| 773 | </portNames> |
| 774 | </configuration> |
| 775 | </execution> |
| 776 | </executions> |
| 777 | </plugin> |
| 778 | |
| 779 | <plugin> |
| 780 | <groupId>org.springframework.boot</groupId> |
| 781 | <artifactId>spring-boot-maven-plugin</artifactId> |
ryanSheehan | d00977c | 2021-06-09 17:36:27 +0100 | [diff] [blame] | 782 | <version>${version.springboot}</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 783 | <executions> |
| 784 | <execution> |
| 785 | <goals> |
| 786 | <goal>repackage</goal> |
| 787 | </goals> |
| 788 | <phase>package</phase> |
| 789 | </execution> |
| 790 | </executions> |
| 791 | </plugin> |
| 792 | <plugin> |
| 793 | <groupId>org.apache.maven.plugins</groupId> |
| 794 | <artifactId>maven-surefire-plugin</artifactId> |
| 795 | <version>2.22.2</version> |
| 796 | <configuration> |
| 797 | <forkCount>1C</forkCount> |
| 798 | <reuseForks>true</reuseForks> |
| 799 | <useSystemClassLoader>false</useSystemClassLoader> |
| 800 | <argLine>${surefireArgLine}</argLine> |
| 801 | </configuration> |
| 802 | </plugin> |
| 803 | |
| 804 | <plugin> |
| 805 | <groupId>org.apache.maven.plugins</groupId> |
| 806 | <artifactId>maven-failsafe-plugin</artifactId> |
| 807 | <version>2.22.2</version> |
| 808 | <executions> |
| 809 | <execution> |
| 810 | <id>integration-tests</id> |
| 811 | <goals> |
| 812 | <goal>integration-test</goal> |
| 813 | <goal>verify</goal> |
| 814 | </goals> |
| 815 | <configuration> |
| 816 | <additionalClasspathElements> |
| 817 | <additionalClasspathElement>${project.build.directory}/classes |
| 818 | </additionalClasspathElement> |
| 819 | </additionalClasspathElements> |
| 820 | <includes> |
| 821 | <include>**/*ItCase.java</include> |
| 822 | </includes> |
| 823 | <forkCount>1C</forkCount> |
| 824 | <reuseForks>true</reuseForks> |
| 825 | <useSystemClassLoader>false</useSystemClassLoader> |
| 826 | <argLine>${failsafeArgLine}</argLine> |
| 827 | </configuration> |
| 828 | </execution> |
| 829 | </executions> |
| 830 | </plugin> |
| 831 | <plugin> |
| 832 | <groupId>io.fabric8</groupId> |
| 833 | <artifactId>docker-maven-plugin</artifactId> |
| 834 | <version>0.35.0</version> |
| 835 | <dependencies> |
| 836 | <dependency> |
| 837 | <groupId>org.apache.httpcomponents</groupId> |
| 838 | <artifactId>httpclient</artifactId> |
| 839 | <version>4.5.5</version> |
| 840 | </dependency> |
| 841 | </dependencies> |
| 842 | <configuration> |
| 843 | <verbose>true</verbose> |
| 844 | <apiVersion>1.35</apiVersion> |
| 845 | <images> |
| 846 | <image> |
| 847 | <name>docker.io/mariadb:10.5.4</name> |
| 848 | <alias>mariadb</alias> |
| 849 | <run> |
| 850 | <env> |
| 851 | <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD> |
| 852 | </env> |
| 853 | <hostname>mariadb</hostname> |
| 854 | <volumes> |
| 855 | <bind> |
| 856 | <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume> |
| 857 | <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume> |
| 858 | </bind> |
| 859 | </volumes> |
| 860 | <wait> |
| 861 | <log>port: 3306</log> |
| 862 | <time>300000</time> |
| 863 | <exec> |
| 864 | <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop> |
| 865 | </exec> |
| 866 | </wait> |
| 867 | <ports> |
| 868 | <port>${docker.mariadb.port.host}:3306</port> |
| 869 | </ports> |
| 870 | <network> |
| 871 | <mode>bridge</mode> |
| 872 | </network> |
| 873 | </run> |
| 874 | </image> |
| 875 | <image> |
| 876 | <name>docker.io/python:2-slim</name> |
| 877 | <alias>python</alias> |
| 878 | <run> |
| 879 | <hostname>python</hostname> |
| 880 | <volumes> |
| 881 | <bind> |
| 882 | <volume> |
| 883 | ${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app |
| 884 | </volume> |
| 885 | <volume> |
| 886 | ${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache |
| 887 | </volume> |
| 888 | </bind> |
| 889 | </volumes> |
| 890 | <wait> |
| 891 | <tcp> |
| 892 | <ports> |
| 893 | <port>8080</port> |
| 894 | </ports> |
| 895 | <mode>direct</mode> |
| 896 | </tcp> |
| 897 | <time>120000</time> |
| 898 | </wait> |
| 899 | <ports> |
| 900 | <port>${docker.http-cache.port.host}:8080</port> |
| 901 | </ports> |
| 902 | <workingDir>/usr/src/http-cache-app</workingDir> |
| 903 | <cmd> |
| 904 | <shell>./start_http_cache.sh ${python.http.proxy.param} |
| 905 | --python_proxyaddress=localhost:${docker.http-cache.port.host} |
| 906 | </shell> |
| 907 | </cmd> |
| 908 | <network> |
| 909 | <mode>bridge</mode> |
| 910 | </network> |
| 911 | </run> |
| 912 | </image> |
| 913 | <image> |
| 914 | <name>onap/policy-clamp-backend</name> |
| 915 | <alias>onap-policy-clamp-backend</alias> |
| 916 | <run> |
| 917 | <skip>true</skip> |
| 918 | </run> |
| 919 | <build> |
| 920 | <cleanup>true</cleanup> |
| 921 | <tags> |
| 922 | <tag>latest</tag> |
| 923 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 924 | <tag>${project.docker.latesttag.version}</tag> |
| 925 | </tags> |
| 926 | <!-- A relative path is looked up in ${project.basedir}/src/main/docker by |
| 927 | default --> |
| 928 | <dockerFile>backend/Dockerfile</dockerFile> |
| 929 | <assembly> |
| 930 | <descriptor>backend/backend-files.xml</descriptor> |
| 931 | <name>onap-policy-clamp-backend</name> |
| 932 | </assembly> |
| 933 | </build> |
| 934 | </image> |
| 935 | <image> |
| 936 | <name>onap/policy-clamp-frontend</name> |
| 937 | <alias>onap-policy-clamp-frontend</alias> |
| 938 | <run> |
| 939 | <skip>true</skip> |
| 940 | </run> |
| 941 | <build> |
| 942 | <cleanup>true</cleanup> |
| 943 | <tags> |
| 944 | <tag>latest</tag> |
| 945 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 946 | <tag>${project.docker.latesttag.version}</tag> |
| 947 | </tags> |
| 948 | <!-- A relative path is looked up in ${project.basedir}/src/main/docker by |
| 949 | default --> |
| 950 | <dockerFile>frontend/Dockerfile</dockerFile> |
| 951 | <assembly> |
| 952 | <descriptor>frontend/frontend-files.xml</descriptor> |
| 953 | <name>onap-policy-clamp-frontend</name> |
| 954 | </assembly> |
| 955 | </build> |
| 956 | </image> |
| 957 | </images> |
| 958 | </configuration> |
| 959 | |
| 960 | <executions> |
| 961 | <execution> |
| 962 | <id>generate-images</id> |
| 963 | <phase>install</phase> |
| 964 | <goals> |
| 965 | <goal>build</goal> |
| 966 | </goals> |
| 967 | </execution> |
| 968 | <execution> |
| 969 | <id>push-images</id> |
| 970 | <phase>deploy</phase> |
| 971 | <goals> |
| 972 | <goal>push</goal> |
| 973 | </goals> |
| 974 | </execution> |
| 975 | <execution> |
| 976 | <id>docker-start-for-it</id> |
| 977 | <phase>pre-integration-test</phase> |
| 978 | <goals> |
| 979 | <goal>start</goal> |
| 980 | </goals> |
| 981 | </execution> |
| 982 | <execution> |
| 983 | <id>docker-stop-for-it</id> |
| 984 | <phase>post-integration-test</phase> |
| 985 | <goals> |
| 986 | <goal>stop</goal> |
| 987 | </goals> |
| 988 | </execution> |
| 989 | </executions> |
| 990 | </plugin> |
| 991 | |
| 992 | <plugin> |
| 993 | <groupId>org.jacoco</groupId> |
| 994 | <artifactId>jacoco-maven-plugin</artifactId> |
| 995 | <version>0.8.5</version> |
| 996 | <configuration> |
| 997 | <dumpOnExit>true</dumpOnExit> |
| 998 | <append>true</append> |
| 999 | <includes> |
| 1000 | <include>org/onap/policy/clamp/**</include> |
| 1001 | </includes> |
| 1002 | </configuration> |
| 1003 | <executions> |
| 1004 | <execution> |
| 1005 | <id>pre-unit-test</id> |
| 1006 | <goals> |
| 1007 | <goal>prepare-agent</goal> |
| 1008 | </goals> |
| 1009 | <configuration> |
| 1010 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 1011 | <propertyName>surefireArgLine</propertyName> |
| 1012 | <!-- <append>true</append> --> |
| 1013 | </configuration> |
| 1014 | </execution> |
| 1015 | <execution> |
| 1016 | <id>pre-integration-test</id> |
| 1017 | <phase>pre-integration-test</phase> |
| 1018 | <goals> |
| 1019 | <goal>prepare-agent</goal> |
| 1020 | </goals> |
| 1021 | <configuration> |
| 1022 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 1023 | <propertyName>failsafeArgLine</propertyName> |
| 1024 | <!-- <append>true</append> --> |
| 1025 | <!-- Need to overwrite the policy integration parent flag --> |
| 1026 | <skip>false</skip> |
| 1027 | </configuration> |
| 1028 | </execution> |
| 1029 | <execution> |
| 1030 | <goals> |
| 1031 | <goal>merge</goal> |
| 1032 | </goals> |
| 1033 | <phase>post-integration-test</phase> |
| 1034 | <configuration> |
| 1035 | <fileSets> |
| 1036 | <fileSet |
| 1037 | implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 1038 | <directory>${project.build.directory}/coverage-reports</directory> |
| 1039 | <includes> |
| 1040 | <include>*.exec</include> |
| 1041 | </includes> |
| 1042 | </fileSet> |
| 1043 | </fileSets> |
| 1044 | <destFile>${project.build.directory}/jacoco.exec</destFile> |
| 1045 | </configuration> |
| 1046 | </execution> |
| 1047 | <execution> |
| 1048 | <id>report-xml</id> |
| 1049 | <goals> |
| 1050 | <goal>report</goal> |
| 1051 | </goals> |
| 1052 | <configuration> |
| 1053 | <!-- Setting explicit path, so that we remember where it picks them up from --> |
| 1054 | <dataFile>${project.build.directory}/jacoco.exec</dataFile> |
| 1055 | <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory> |
| 1056 | </configuration> |
| 1057 | </execution> |
| 1058 | </executions> |
| 1059 | </plugin> |
| 1060 | |
| 1061 | <!-- This plugin will be useful when we will have multi-modules project --> |
| 1062 | <plugin> |
| 1063 | <groupId>org.codehaus.mojo</groupId> |
| 1064 | <artifactId>versions-maven-plugin</artifactId> |
| 1065 | <version>1.3.1</version> |
| 1066 | </plugin> |
| 1067 | |
| 1068 | <plugin> |
| 1069 | <groupId>com.github.eirslett</groupId> |
| 1070 | <artifactId>frontend-maven-plugin</artifactId> |
| 1071 | <version>1.11.3</version> |
| 1072 | <configuration> |
| 1073 | <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory> |
| 1074 | <npmDownloadRoot>${repo.npm}</npmDownloadRoot> |
| 1075 | </configuration> |
| 1076 | <executions> |
| 1077 | <execution> |
| 1078 | <id>install_node_and_npm</id> |
| 1079 | <goals> |
| 1080 | <goal>install-node-and-npm</goal> |
| 1081 | </goals> |
| 1082 | <phase>generate-sources</phase> |
| 1083 | <configuration> |
| 1084 | <nodeVersion>v14.16.1</nodeVersion> |
| 1085 | <npmVersion>6.14.13</npmVersion> |
| 1086 | </configuration> |
| 1087 | </execution> |
| 1088 | <execution> |
| 1089 | <id>npm_install</id> |
| 1090 | <goals> |
| 1091 | <goal>npm</goal> |
| 1092 | </goals> |
| 1093 | <phase>compile</phase> |
| 1094 | <configuration> |
| 1095 | <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> |
| 1096 | <arguments>install</arguments> |
| 1097 | </configuration> |
| 1098 | </execution> |
| 1099 | <execution> |
| 1100 | <id>npm_test</id> |
| 1101 | <goals> |
| 1102 | <goal>npm</goal> |
| 1103 | </goals> |
| 1104 | <phase>test</phase> |
| 1105 | <configuration> |
| 1106 | <skip>${maven.test.skip}</skip> |
| 1107 | <arguments>run-script test:coverage</arguments> |
| 1108 | <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> |
| 1109 | </configuration> |
| 1110 | </execution> |
| 1111 | <execution> |
| 1112 | <id>npm_install_lib</id> |
| 1113 | <goals> |
| 1114 | <goal>npm</goal> |
| 1115 | </goals> |
| 1116 | <phase>deploy</phase> |
| 1117 | <configuration> |
| 1118 | <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory> |
| 1119 | <arguments>install</arguments> |
| 1120 | </configuration> |
| 1121 | </execution> |
| 1122 | <execution> |
| 1123 | <id>npm_build_lib</id> |
| 1124 | <goals> |
| 1125 | <goal>npm</goal> |
| 1126 | </goals> |
| 1127 | <phase>deploy</phase> |
| 1128 | <configuration> |
| 1129 | <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory> |
| 1130 | <arguments>run build</arguments> |
| 1131 | </configuration> |
| 1132 | </execution> |
| 1133 | <execution> |
| 1134 | <id>npm_publish</id> |
| 1135 | <goals> |
| 1136 | <goal>npm</goal> |
| 1137 | </goals> |
| 1138 | <phase>deploy</phase> |
| 1139 | <configuration> |
| 1140 | <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory> |
| 1141 | <arguments>publish</arguments> |
| 1142 | </configuration> |
| 1143 | </execution> |
| 1144 | </executions> |
| 1145 | </plugin> |
| 1146 | <plugin> |
| 1147 | <groupId>org.apache.maven.plugins</groupId> |
| 1148 | <artifactId>maven-compiler-plugin</artifactId> |
| 1149 | <version>3.8.1</version> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 1150 | </plugin> |
| 1151 | <plugin> |
| 1152 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 1153 | <artifactId>sonar-maven-plugin</artifactId> |
| 1154 | <version>3.7.0.1746</version> |
| 1155 | </plugin> |
| 1156 | <plugin> |
| 1157 | <groupId>org.codehaus.mojo</groupId> |
| 1158 | <artifactId>exec-maven-plugin</artifactId> |
Sirisha_Manchikanti | f83411a | 2021-05-07 15:17:52 +0100 | [diff] [blame] | 1159 | <executions> |
| 1160 | <execution> |
| 1161 | <id>libIndexCheck</id> |
| 1162 | <phase>validate</phase> |
| 1163 | <goals> |
| 1164 | <goal>exec</goal> |
| 1165 | </goals> |
| 1166 | </execution> |
| 1167 | </executions> |
| 1168 | <configuration> |
| 1169 | <executable>bash</executable> |
| 1170 | <arguments> |
| 1171 | <argument>${project.basedir}/src/main/script/checkLibIndex.sh</argument> |
| 1172 | </arguments> |
| 1173 | </configuration> |
| 1174 | </plugin> |
| 1175 | <!-- Plugin to generate a X509 Certificate for https tests --> |
| 1176 | <plugin> |
| 1177 | <groupId>org.codehaus.mojo</groupId> |
| 1178 | <artifactId>keytool-maven-plugin</artifactId> |
| 1179 | <version>1.5</version> |
| 1180 | <executions> |
| 1181 | <execution> |
| 1182 | <id>add-certificate-for-dev</id> |
| 1183 | <configuration> |
| 1184 | <keystore>${project.build.directory}/classes/clds/aaf/org.onap.clamp.p12</keystore> |
| 1185 | <storepass>China in the Spring</storepass> |
| 1186 | <alias>clamptest</alias> |
| 1187 | <storetype>PKCS12</storetype> |
| 1188 | <keyalg>RSA</keyalg> |
| 1189 | <dname>cn=CN, ou=OU, o=O, c=C</dname> |
| 1190 | <validity>365</validity> |
| 1191 | </configuration> |
| 1192 | <goals> |
| 1193 | <goal>generateKeyPair</goal> |
| 1194 | </goals> |
| 1195 | <phase>generate-resources</phase> |
| 1196 | </execution> |
| 1197 | <execution> |
| 1198 | <id>add-certificate-for-test</id> |
| 1199 | <configuration> |
| 1200 | <keystore>${project.build.directory}/test-classes/clds/aaf/org.onap.clamp.p12</keystore> |
| 1201 | <storepass>China in the Spring</storepass> |
| 1202 | <alias>clamptest</alias> |
| 1203 | <storetype>PKCS12</storetype> |
| 1204 | <keyalg>RSA</keyalg> |
| 1205 | <dname>cn=CN, ou=OU, o=O, c=C</dname> |
| 1206 | <validity>365</validity> |
| 1207 | </configuration> |
| 1208 | <goals> |
| 1209 | <goal>generateKeyPair</goal> |
| 1210 | </goals> |
| 1211 | <phase>generate-test-resources</phase> |
| 1212 | </execution> |
| 1213 | </executions> |
| 1214 | </plugin> |
| 1215 | </plugins> |
| 1216 | </build> |
| 1217 | </project> |