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