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