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