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