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 | 337f366 | 2019-09-06 18:11:51 +0200 | [diff] [blame] | 29 | <version>4.1.2-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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 100 | |
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> |
| 110 | <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url> |
| 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> |
| 400 | <version>2.1.10</version> |
| 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> |
| 466 | <groupId>org.onap.policy.engine</groupId> |
| 467 | <artifactId>PolicyEngineAPI</artifactId> |
| 468 | <version>1.3.3</version> |
| 469 | <exclusions> |
| 470 | <exclusion> |
| 471 | <groupId>com.google.guava</groupId> |
| 472 | <artifactId>guava</artifactId> |
| 473 | </exclusion> |
| 474 | <exclusion> |
| 475 | <artifactId>log4j</artifactId> |
| 476 | <groupId>log4j</groupId> |
| 477 | </exclusion> |
| 478 | <exclusion> |
| 479 | <groupId>org.slf4j</groupId> |
| 480 | <artifactId>slf4j-log4j12</artifactId> |
| 481 | </exclusion> |
| 482 | <exclusion> |
| 483 | <artifactId>apache-log4j-extras</artifactId> |
| 484 | <groupId>log4j</groupId> |
| 485 | </exclusion> |
| 486 | <exclusion> |
| 487 | <groupId>mysql</groupId> |
| 488 | <artifactId>mysql-connector-java</artifactId> |
| 489 | </exclusion> |
| 490 | <exclusion> |
| 491 | <groupId>commons-io</groupId> |
| 492 | <artifactId>commons-io</artifactId> |
| 493 | </exclusion> |
| 494 | <exclusion> |
| 495 | <artifactId>grizzly-http-server</artifactId> |
| 496 | <groupId>org.glassfish.grizzly</groupId> |
| 497 | </exclusion> |
| 498 | <exclusion> |
| 499 | <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId> |
| 500 | <artifactId>dmaapClient</artifactId> |
| 501 | </exclusion> |
| 502 | <exclusion> |
| 503 | <groupId>org.onap.policy.common</groupId> |
| 504 | <artifactId>integrity-monitor</artifactId> |
| 505 | </exclusion> |
| 506 | <exclusion> |
| 507 | <groupId>org.onap.policy.common</groupId> |
| 508 | <artifactId>integrity-audit</artifactId> |
| 509 | </exclusion> |
| 510 | <exclusion> |
| 511 | <groupId>com.fasterxml.jackson.core</groupId> |
| 512 | <artifactId>jackson-databind</artifactId> |
| 513 | </exclusion> |
| 514 | <exclusion> |
| 515 | <groupId>org.onap.aaf.cadi</groupId> |
| 516 | <artifactId>cadi-aaf</artifactId> |
| 517 | </exclusion> |
| 518 | <exclusion> |
| 519 | <groupId>javax.jms</groupId> |
| 520 | <artifactId>jms</artifactId> |
| 521 | </exclusion> |
| 522 | <exclusion> |
| 523 | <groupId>commons-fileupload</groupId> |
| 524 | <artifactId>commons-fileupload</artifactId> |
| 525 | </exclusion> |
| 526 | <exclusion> |
| 527 | <groupId>com.att.research.xacml</groupId> |
| 528 | <artifactId>xacml</artifactId> |
| 529 | </exclusion> |
| 530 | </exclusions> |
| 531 | </dependency> |
| 532 | <dependency> |
| 533 | <groupId>org.onap.policy.common</groupId> |
| 534 | <artifactId>ONAP-Logging</artifactId> |
| 535 | <version>1.2.3</version> |
| 536 | <exclusions> |
| 537 | <exclusion> |
| 538 | <artifactId>log4j</artifactId> |
| 539 | <groupId>log4j</groupId> |
| 540 | </exclusion> |
| 541 | <exclusion> |
| 542 | <groupId>org.slf4j</groupId> |
| 543 | <artifactId>slf4j-log4j12</artifactId> |
| 544 | </exclusion> |
| 545 | <exclusion> |
| 546 | <artifactId>apache-log4j-extras</artifactId> |
| 547 | <groupId>log4j</groupId> |
| 548 | </exclusion> |
| 549 | </exclusions> |
| 550 | </dependency> |
| 551 | <dependency> |
| 552 | <groupId>org.onap.policy.drools-applications.controlloop.common</groupId> |
| 553 | <artifactId>policy-yaml</artifactId> |
| 554 | <version>1.2.3</version> |
| 555 | <exclusions> |
| 556 | <exclusion> |
| 557 | <artifactId>log4j</artifactId> |
| 558 | <groupId>log4j</groupId> |
| 559 | </exclusion> |
| 560 | <exclusion> |
| 561 | <groupId>org.slf4j</groupId> |
| 562 | <artifactId>slf4j-log4j12</artifactId> |
| 563 | </exclusion> |
| 564 | <exclusion> |
| 565 | <artifactId>apache-log4j-extras</artifactId> |
| 566 | <groupId>log4j</groupId> |
| 567 | </exclusion> |
| 568 | </exclusions> |
| 569 | </dependency> |
| 570 | <dependency> |
| 571 | <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId> |
| 572 | <artifactId>sdc</artifactId> |
| 573 | <version>1.2.3</version> |
| 574 | <exclusions> |
| 575 | <exclusion> |
| 576 | <artifactId>log4j</artifactId> |
| 577 | <groupId>log4j</groupId> |
| 578 | </exclusion> |
| 579 | <exclusion> |
| 580 | <groupId>org.slf4j</groupId> |
| 581 | <artifactId>slf4j-log4j12</artifactId> |
| 582 | </exclusion> |
| 583 | <exclusion> |
| 584 | <artifactId>apache-log4j-extras</artifactId> |
| 585 | <groupId>log4j</groupId> |
| 586 | </exclusion> |
| 587 | </exclusions> |
| 588 | </dependency> |
| 589 | <dependency> |
| 590 | <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId> |
| 591 | <artifactId>aai</artifactId> |
| 592 | <version>1.2.3</version> |
| 593 | <exclusions> |
| 594 | <exclusion> |
| 595 | <artifactId>log4j</artifactId> |
| 596 | <groupId>log4j</groupId> |
| 597 | </exclusion> |
| 598 | <exclusion> |
| 599 | <groupId>org.slf4j</groupId> |
| 600 | <artifactId>slf4j-log4j12</artifactId> |
| 601 | </exclusion> |
| 602 | <exclusion> |
| 603 | <artifactId>apache-log4j-extras</artifactId> |
| 604 | <groupId>log4j</groupId> |
| 605 | </exclusion> |
| 606 | </exclusions> |
| 607 | </dependency> |
| 608 | <dependency> |
| 609 | <groupId>org.apache.commons</groupId> |
| 610 | <artifactId>commons-csv</artifactId> |
| 611 | <version>1.3</version> |
| 612 | </dependency> |
| 613 | <!-- Other dependencies to fix nexus IQ reported vulnerabilities --> |
| 614 | <dependency> |
| 615 | <groupId>org.codehaus.plexus</groupId> |
| 616 | <artifactId>plexus-utils</artifactId> |
| 617 | <version>3.0.24</version> |
| 618 | </dependency> |
| 619 | <dependency> |
| 620 | <groupId>org.jboss.spec.javax.ws.rs</groupId> |
| 621 | <artifactId>jboss-jaxrs-api_2.0_spec</artifactId> |
| 622 | <version>1.0.1.Final</version> |
| 623 | </dependency> |
| 624 | <dependency> |
| 625 | <groupId>com.google.guava</groupId> |
| 626 | <artifactId>guava</artifactId> |
| 627 | <version>27.0-jre</version> |
| 628 | </dependency> |
sebdet | e77e0ff | 2019-09-09 13:18:35 +0200 | [diff] [blame^] | 629 | <dependency> |
| 630 | <groupId>commons-codec</groupId> |
| 631 | <artifactId>commons-codec</artifactId> |
| 632 | <version>1.13</version> |
| 633 | </dependency> |
sebdet | 101193d | 2019-09-05 18:25:59 +0200 | [diff] [blame] | 634 | <!-- Remove the MYSQL connector and replace it by Mariadb --> |
| 635 | <dependency> |
| 636 | <groupId>org.mariadb.jdbc</groupId> |
| 637 | <artifactId>mariadb-java-client</artifactId> |
| 638 | <version>2.2.1</version> |
| 639 | </dependency> |
| 640 | <!-- For SDC Controller --> |
| 641 | <dependency> |
| 642 | <groupId>org.onap.sdc.sdc-distribution-client</groupId> |
| 643 | <artifactId>sdc-distribution-client</artifactId> |
| 644 | <version>1.3.0</version> |
| 645 | </dependency> |
| 646 | <dependency> |
| 647 | <groupId>org.onap.sdc.sdc-tosca</groupId> |
| 648 | <artifactId>sdc-tosca</artifactId> |
| 649 | <version>1.5.1</version> |
| 650 | </dependency> |
| 651 | <!-- TESTING --> |
| 652 | <dependency> |
| 653 | <groupId>org.assertj</groupId> |
| 654 | <artifactId>assertj-core</artifactId> |
| 655 | <version>3.10.0</version> |
| 656 | <scope>test</scope> |
| 657 | </dependency> |
| 658 | <dependency> |
| 659 | <groupId>org.mockito</groupId> |
| 660 | <artifactId>mockito-core</artifactId> |
| 661 | <version>1.10.19</version> |
| 662 | <scope>test</scope> |
| 663 | </dependency> |
| 664 | </dependencies> |
| 665 | |
| 666 | <build> |
| 667 | <finalName>clamp</finalName> |
| 668 | |
| 669 | <testResources> |
| 670 | <testResource> |
| 671 | <directory>src/test/resources</directory> |
| 672 | <excludes> |
| 673 | <exclude>**/*.jks</exclude> |
| 674 | <exclude>**/*.csar</exclude> |
| 675 | </excludes> |
| 676 | <filtering>true</filtering> |
| 677 | </testResource> |
| 678 | <testResource> |
| 679 | <directory>src/test/resources/https</directory> |
| 680 | <includes> |
| 681 | <include>**.jks</include> |
| 682 | </includes> |
| 683 | <filtering>false</filtering> |
| 684 | <targetPath>https</targetPath> |
| 685 | </testResource> |
| 686 | <testResource> |
| 687 | <directory>src/test/resources/example/sdc</directory> |
| 688 | <includes> |
| 689 | <include>**.csar</include> |
| 690 | </includes> |
| 691 | <filtering>false</filtering> |
| 692 | <targetPath>example/sdc</targetPath> |
| 693 | </testResource> |
| 694 | </testResources> |
| 695 | <resources> |
| 696 | <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise |
| 697 | they will be broken and unreadable --> |
| 698 | <resource> |
| 699 | <directory>src/main/resources</directory> |
| 700 | <filtering>true</filtering> |
| 701 | <excludes> |
| 702 | <exclude>clds/aaf/**</exclude> |
| 703 | </excludes> |
| 704 | </resource> |
| 705 | <resource> |
| 706 | <directory>src/main/resources</directory> |
| 707 | <filtering>false</filtering> |
| 708 | <includes> |
| 709 | <include>clds/aaf/**</include> |
| 710 | </includes> |
| 711 | </resource> |
| 712 | <resource> |
| 713 | <directory>${ui.react.src}</directory> |
| 714 | <includes> |
| 715 | <include>src/**</include> |
| 716 | <include>public/**</include> |
| 717 | <include>package.json</include> |
| 718 | <include>package-lock.json</include> |
| 719 | </includes> |
| 720 | <filtering>true</filtering> |
| 721 | <targetPath>${project.build.directory}/${ui.react.src}</targetPath> |
| 722 | </resource> |
| 723 | </resources> |
| 724 | |
| 725 | <plugins> |
| 726 | <plugin> |
| 727 | <groupId>de.jpdigital</groupId> |
| 728 | <artifactId>hibernate52-ddl-maven-plugin</artifactId> |
| 729 | <version>2.2.0</version> |
| 730 | <dependencies> |
| 731 | <dependency> |
Determe, Sebastien (sd378r) | f785516 | 2018-04-27 14:02:39 +0200 | [diff] [blame] | 732 | <groupId>javax.xml.bind</groupId> |
| 733 | <artifactId>jaxb-api</artifactId> |
| 734 | <version>2.3.0</version> |
sebdet | 101193d | 2019-09-05 18:25:59 +0200 | [diff] [blame] | 735 | </dependency> |
| 736 | </dependencies> |
| 737 | <executions> |
| 738 | <execution> |
| 739 | <phase>process-classes</phase> |
| 740 | <goals> |
| 741 | <goal>gen-ddl</goal> |
| 742 | </goals> |
sebdet | e442200 | 2018-10-16 17:47:54 +0200 | [diff] [blame] | 743 | <configuration> |
sebdet | 101193d | 2019-09-05 18:25:59 +0200 | [diff] [blame] | 744 | <packages> |
| 745 | <param>org.onap.clamp.dao.model</param> |
| 746 | </packages> |
| 747 | <dialects> |
| 748 | <param>MARIADB53</param> |
| 749 | </dialects> |
| 750 | <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory> |
| 751 | <outputFileNameSuffix>create-tables</outputFileNameSuffix> |
| 752 | <!-- <createDropStatements>true</createDropStatements> --> |
| 753 | <omitDialectFromFileName>true</omitDialectFromFileName> |
sebdet | e442200 | 2018-10-16 17:47:54 +0200 | [diff] [blame] | 754 | </configuration> |
sebdet | 101193d | 2019-09-05 18:25:59 +0200 | [diff] [blame] | 755 | </execution> |
| 756 | </executions> |
| 757 | |
| 758 | </plugin> |
| 759 | <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate |
| 760 | a list of .adoc files containing the APIs info in more structured way --> |
| 761 | <plugin> |
| 762 | <groupId>io.github.swagger2markup</groupId> |
| 763 | <artifactId>swagger2markup-maven-plugin</artifactId> |
| 764 | <version>1.3.3</version> |
| 765 | <dependencies> |
| 766 | <dependency> |
| 767 | <groupId>io.github.swagger2markup</groupId> |
| 768 | <artifactId>swagger2markup-import-files-ext</artifactId> |
| 769 | <version>1.3.3</version> |
| 770 | </dependency> |
| 771 | <dependency> |
| 772 | <groupId>io.github.swagger2markup</groupId> |
| 773 | <artifactId>swagger2markup-spring-restdocs-ext</artifactId> |
| 774 | <version>1.3.3</version> |
| 775 | </dependency> |
| 776 | </dependencies> |
| 777 | <configuration> |
| 778 | <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput> |
| 779 | <outputDir>${project.build.directory}/asciidoc/generated</outputDir> |
| 780 | <config> |
| 781 | <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage> |
| 782 | </config> |
| 783 | </configuration> |
| 784 | <executions> |
| 785 | <execution> |
| 786 | <phase>post-integration-test</phase> |
| 787 | <goals> |
| 788 | <goal>convertSwagger2markup</goal> |
| 789 | </goals> |
| 790 | </execution> |
| 791 | </executions> |
| 792 | </plugin> |
| 793 | |
| 794 | <!-- Run the generated asciidoc through Asciidoctor to generate other documentation |
| 795 | types, such as PDFs or HTML5 --> |
| 796 | <plugin> |
| 797 | <groupId>org.asciidoctor</groupId> |
| 798 | <artifactId>asciidoctor-maven-plugin</artifactId> |
| 799 | <version>1.5.7.1</version> |
| 800 | <dependencies> |
| 801 | <dependency> |
| 802 | <groupId>org.asciidoctor</groupId> |
| 803 | <artifactId>asciidoctorj-pdf</artifactId> |
| 804 | <version>1.5.0-alpha.10.1</version> |
| 805 | </dependency> |
| 806 | </dependencies> |
| 807 | <configuration> |
| 808 | <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory> |
| 809 | <sourceDocumentName>swagger.adoc</sourceDocumentName> |
| 810 | <attributes> |
| 811 | <doctype>book</doctype> |
| 812 | <toc>left</toc> |
| 813 | <toclevels>3</toclevels> |
| 814 | <numbered /> |
| 815 | <hardbreaks /> |
| 816 | <sectlinks /> |
| 817 | <sectanchors /> |
| 818 | <generated>${project.build.directory}/asciidoc/generated</generated> |
| 819 | </attributes> |
| 820 | </configuration> |
| 821 | |
| 822 | <executions> |
| 823 | <execution> |
| 824 | <id>output-html</id> |
| 825 | <phase>post-integration-test</phase> |
| 826 | <goals> |
| 827 | <goal>process-asciidoc</goal> |
| 828 | </goals> |
| 829 | <configuration> |
| 830 | <backend>html5</backend> |
| 831 | <outputDirectory>${project.basedir}/docs/swagger</outputDirectory> |
| 832 | <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory> |
| 833 | </configuration> |
| 834 | </execution> |
| 835 | <execution> |
| 836 | <id>output-pdf</id> |
| 837 | <phase>post-integration-test</phase> |
| 838 | <goals> |
| 839 | <goal>process-asciidoc</goal> |
| 840 | </goals> |
| 841 | <configuration> |
| 842 | <backend>pdf</backend> |
| 843 | <outputDirectory>${project.basedir}/docs/swagger</outputDirectory> |
| 844 | </configuration> |
| 845 | </execution> |
| 846 | </executions> |
| 847 | </plugin> |
| 848 | <plugin> |
| 849 | <groupId>org.codehaus.groovy.maven</groupId> |
| 850 | <artifactId>gmaven-plugin</artifactId> |
| 851 | <version>1.0</version> |
| 852 | <executions> |
| 853 | <execution> |
| 854 | <phase>validate</phase> |
| 855 | <goals> |
| 856 | <goal>execute</goal> |
| 857 | </goals> |
| 858 | <configuration> |
| 859 | <source>${project.basedir}/src/main/script/TagVersion.groovy</source> |
| 860 | </configuration> |
| 861 | </execution> |
| 862 | </executions> |
| 863 | </plugin> |
| 864 | <plugin> |
| 865 | <groupId>org.apache.maven.plugins</groupId> |
| 866 | <artifactId>maven-jar-plugin</artifactId> |
| 867 | <version>3.0.2</version> |
| 868 | <executions> |
| 869 | <execution> |
| 870 | <id>jar-with-only-classes</id> |
| 871 | <phase>package</phase> |
| 872 | <goals> |
| 873 | <goal>jar</goal> |
| 874 | </goals> |
| 875 | <configuration> |
| 876 | <classifier>classes</classifier> |
| 877 | <includes> |
| 878 | <include>org/**</include> |
| 879 | </includes> |
| 880 | </configuration> |
| 881 | </execution> |
| 882 | </executions> |
| 883 | </plugin> |
| 884 | <plugin> |
| 885 | <groupId>org.codehaus.mojo</groupId> |
| 886 | <artifactId>build-helper-maven-plugin</artifactId> |
| 887 | <version>3.0.0</version> |
| 888 | <executions> |
| 889 | <execution> |
| 890 | <goals> |
| 891 | <goal>attach-artifact</goal> |
| 892 | </goals> |
| 893 | <phase>package</phase> |
| 894 | <configuration> |
| 895 | <artifacts> |
| 896 | <artifact> |
| 897 | <file>${project.build.directory}/clamp-classes.jar</file> |
| 898 | <type>jar</type> |
| 899 | <classifier>classes</classifier> |
| 900 | </artifact> |
| 901 | </artifacts> |
| 902 | </configuration> |
| 903 | </execution> |
| 904 | <execution> |
| 905 | <id>reserve-port-for-tests</id> |
| 906 | <phase>process-resources</phase> |
| 907 | <goals> |
| 908 | <goal>reserve-network-port</goal> |
| 909 | </goals> |
| 910 | <configuration> |
| 911 | <portNames> |
| 912 | <portName>docker.mariadb.port.host</portName> |
| 913 | <portName>docker.http-cache.port.host</portName> |
| 914 | <portName>clamp.it.tests.http-redirected</portName> |
| 915 | <portName>clamp.it.tests.https</portName> |
| 916 | <portName>clamp.it.tests.http</portName> |
| 917 | </portNames> |
| 918 | </configuration> |
| 919 | </execution> |
| 920 | </executions> |
| 921 | </plugin> |
| 922 | |
| 923 | <plugin> |
| 924 | <groupId>org.springframework.boot</groupId> |
| 925 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 926 | <!-- Temporary fix --> |
| 927 | <version>1.5.13.RELEASE</version> |
| 928 | <!-- <version>${springboot.version}</version> --> |
| 929 | <executions> |
| 930 | <execution> |
| 931 | <goals> |
| 932 | <goal>repackage</goal> |
| 933 | </goals> |
| 934 | <phase>package</phase> |
| 935 | </execution> |
| 936 | </executions> |
| 937 | </plugin> |
| 938 | <plugin> |
| 939 | <groupId>org.apache.maven.plugins</groupId> |
| 940 | <artifactId>maven-surefire-plugin</artifactId> |
| 941 | <version>2.22.1</version> |
| 942 | <configuration> |
| 943 | <forkCount>1C</forkCount> |
| 944 | <reuseForks>true</reuseForks> |
| 945 | <useSystemClassLoader>false</useSystemClassLoader> |
| 946 | <argLine>${surefireArgLine}</argLine> |
| 947 | </configuration> |
| 948 | </plugin> |
| 949 | |
| 950 | <plugin> |
| 951 | <groupId>org.apache.maven.plugins</groupId> |
| 952 | <artifactId>maven-failsafe-plugin</artifactId> |
| 953 | <version>2.22.1</version> |
| 954 | <executions> |
| 955 | <execution> |
| 956 | <id>integration-tests</id> |
| 957 | <goals> |
| 958 | <goal>integration-test</goal> |
| 959 | <goal>verify</goal> |
| 960 | </goals> |
| 961 | <configuration> |
| 962 | <additionalClasspathElements> |
| 963 | <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement> |
| 964 | </additionalClasspathElements> |
| 965 | <includes> |
| 966 | <include>**/*ItCase.java</include> |
| 967 | </includes> |
| 968 | <forkCount>1</forkCount> |
| 969 | <reuseForks>true</reuseForks> |
| 970 | <useSystemClassLoader>false</useSystemClassLoader> |
| 971 | <argLine>${failsafeArgLine}</argLine> |
| 972 | </configuration> |
| 973 | </execution> |
| 974 | </executions> |
| 975 | |
| 976 | </plugin> |
| 977 | <plugin> |
| 978 | <groupId>io.fabric8</groupId> |
| 979 | <artifactId>docker-maven-plugin</artifactId> |
| 980 | <version>0.27.2</version> |
| 981 | <dependencies> |
| 982 | <dependency> |
| 983 | <groupId>org.apache.httpcomponents</groupId> |
| 984 | <artifactId>httpclient</artifactId> |
| 985 | <version>4.5.5</version> |
| 986 | </dependency> |
| 987 | </dependencies> |
| 988 | <configuration> |
| 989 | <verbose>true</verbose> |
| 990 | <apiVersion>1.35</apiVersion> |
| 991 | <images> |
| 992 | <image> |
| 993 | <name>library/mariadb:10.3.12</name> |
| 994 | <alias>mariadb</alias> |
| 995 | <run> |
| 996 | <env> |
| 997 | <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD> |
| 998 | </env> |
| 999 | <hostname>mariadb</hostname> |
| 1000 | <volumes> |
| 1001 | <bind> |
| 1002 | <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume> |
| 1003 | <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume> |
| 1004 | </bind> |
| 1005 | </volumes> |
| 1006 | <wait> |
| 1007 | <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log> |
| 1008 | <time>600000</time> |
| 1009 | </wait> |
| 1010 | <ports> |
| 1011 | <port>${docker.mariadb.port.host}:3306</port> |
| 1012 | </ports> |
| 1013 | </run> |
| 1014 | </image> |
| 1015 | <image> |
| 1016 | <name>library/python:2-slim</name> |
| 1017 | <alias>python</alias> |
| 1018 | <run> |
| 1019 | <hostname>python</hostname> |
| 1020 | <volumes> |
| 1021 | <bind> |
| 1022 | <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume> |
| 1023 | <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume> |
| 1024 | </bind> |
| 1025 | </volumes> |
| 1026 | <wait> |
| 1027 | <tcp> |
| 1028 | <ports> |
| 1029 | <port>8080</port> |
| 1030 | </ports> |
| 1031 | <mode>direct</mode> |
| 1032 | </tcp> |
| 1033 | <time>120000</time> |
| 1034 | </wait> |
| 1035 | <ports> |
| 1036 | <port>${docker.http-cache.port.host}:8080</port> |
| 1037 | </ports> |
| 1038 | <workingDir>/usr/src/http-cache-app</workingDir> |
| 1039 | <cmd> |
| 1040 | <shell>./start_http_cache.sh ${python.http.proxy.param} |
| 1041 | --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell> |
| 1042 | </cmd> |
| 1043 | </run> |
| 1044 | </image> |
| 1045 | <image> |
| 1046 | <name>onap/clamp-backend</name> |
| 1047 | <alias>onap-clamp-backend</alias> |
| 1048 | <run> |
| 1049 | <skip>true</skip> |
| 1050 | </run> |
| 1051 | <build> |
| 1052 | <cleanup>true</cleanup> |
| 1053 | <tags> |
| 1054 | <tag>latest</tag> |
| 1055 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 1056 | <tag>${project.docker.latesttag.version}</tag> |
| 1057 | </tags> |
| 1058 | <!-- A relative path is looked up in ${project.basedir}/src/main/docker by |
| 1059 | default --> |
| 1060 | <dockerFile>backend/Dockerfile</dockerFile> |
| 1061 | <assembly> |
| 1062 | <descriptor>backend/backend-files.xml</descriptor> |
| 1063 | <name>onap-clamp-backend</name> |
| 1064 | </assembly> |
| 1065 | </build> |
| 1066 | </image> |
| 1067 | <image> |
| 1068 | <name>onap/clamp-frontend</name> |
| 1069 | <alias>onap-clamp-frontend</alias> |
| 1070 | <run> |
| 1071 | <skip>true</skip> |
| 1072 | </run> |
| 1073 | <build> |
| 1074 | <cleanup>true</cleanup> |
| 1075 | <tags> |
| 1076 | <tag>latest</tag> |
| 1077 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 1078 | <tag>${project.docker.latesttag.version}</tag> |
| 1079 | </tags> |
| 1080 | <!-- A relative path is looked up in ${project.basedir}/src/main/docker by |
| 1081 | default --> |
| 1082 | <dockerFile>frontend/Dockerfile</dockerFile> |
| 1083 | <assembly> |
| 1084 | <descriptor>frontend/frontend-files.xml</descriptor> |
| 1085 | <name>onap-clamp-frontend</name> |
| 1086 | </assembly> |
| 1087 | </build> |
| 1088 | </image> |
| 1089 | <image> |
| 1090 | <name>onap/clamp-dashboard-elasticsearch</name> |
| 1091 | <alias>onap-clamp-dashboard-elasticsearch</alias> |
| 1092 | <run> |
| 1093 | <skip>true</skip> |
| 1094 | </run> |
| 1095 | <build> |
| 1096 | <cleanup>true</cleanup> |
| 1097 | <tags> |
| 1098 | <tag>latest</tag> |
| 1099 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 1100 | <tag>${project.docker.latesttag.version}</tag> |
| 1101 | </tags> |
| 1102 | <dockerFile>elasticsearch/Dockerfile</dockerFile> |
| 1103 | </build> |
| 1104 | </image> |
| 1105 | <image> |
| 1106 | <name>onap/clamp-dashboard-logstash</name> |
| 1107 | <alias>onap-clamp-dashboard-logstash</alias> |
| 1108 | <run> |
| 1109 | <skip>true</skip> |
| 1110 | </run> |
| 1111 | <build> |
| 1112 | <cleanup>true</cleanup> |
| 1113 | <tags> |
| 1114 | <tag>latest</tag> |
| 1115 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 1116 | <tag>${project.docker.latesttag.version}</tag> |
| 1117 | </tags> |
| 1118 | <dockerFile>logstash/Dockerfile</dockerFile> |
| 1119 | </build> |
| 1120 | </image> |
| 1121 | <image> |
| 1122 | <name>onap/clamp-dashboard-kibana</name> |
| 1123 | <alias>onap-clamp-dashboard-kibana</alias> |
| 1124 | <run> |
| 1125 | <skip>true</skip> |
| 1126 | </run> |
| 1127 | <build> |
| 1128 | <cleanup>true</cleanup> |
| 1129 | <tags> |
| 1130 | <tag>latest</tag> |
| 1131 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 1132 | <tag>${project.docker.latesttag.version}</tag> |
| 1133 | </tags> |
| 1134 | <dockerFile>kibana/Dockerfile</dockerFile> |
| 1135 | </build> |
| 1136 | </image> |
| 1137 | </images> |
| 1138 | </configuration> |
| 1139 | |
| 1140 | <executions> |
| 1141 | <execution> |
| 1142 | <id>generate-images</id> |
| 1143 | <phase>install</phase> |
| 1144 | <goals> |
| 1145 | <goal>build</goal> |
| 1146 | </goals> |
| 1147 | </execution> |
| 1148 | <execution> |
| 1149 | <id>push-images</id> |
| 1150 | <phase>deploy</phase> |
| 1151 | <goals> |
| 1152 | <goal>push</goal> |
| 1153 | </goals> |
| 1154 | </execution> |
| 1155 | <execution> |
| 1156 | <id>docker-start-for-it</id> |
| 1157 | <phase>pre-integration-test</phase> |
| 1158 | <goals> |
| 1159 | <goal>start</goal> |
| 1160 | </goals> |
| 1161 | </execution> |
| 1162 | <execution> |
| 1163 | <id>docker-stop-for-it</id> |
| 1164 | <phase>post-integration-test</phase> |
| 1165 | <goals> |
| 1166 | <goal>stop</goal> |
| 1167 | </goals> |
| 1168 | </execution> |
| 1169 | </executions> |
| 1170 | </plugin> |
| 1171 | |
| 1172 | <plugin> |
| 1173 | <groupId>org.jacoco</groupId> |
| 1174 | <artifactId>jacoco-maven-plugin</artifactId> |
| 1175 | <version>0.8.2</version> |
| 1176 | <configuration> |
| 1177 | <dumpOnExit>true</dumpOnExit> |
| 1178 | <append>true</append> |
| 1179 | <includes> |
| 1180 | <include>org.onap.clamp.*</include> |
| 1181 | </includes> |
| 1182 | </configuration> |
| 1183 | <executions> |
| 1184 | <execution> |
| 1185 | <id>pre-unit-test</id> |
| 1186 | <goals> |
| 1187 | <goal>prepare-agent</goal> |
| 1188 | </goals> |
| 1189 | <configuration> |
| 1190 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 1191 | <propertyName>surefireArgLine</propertyName> |
| 1192 | <!-- <append>true</append> --> |
| 1193 | </configuration> |
| 1194 | </execution> |
| 1195 | <execution> |
| 1196 | <id>pre-integration-test</id> |
| 1197 | <phase>pre-integration-test</phase> |
| 1198 | <goals> |
| 1199 | <goal>prepare-agent</goal> |
| 1200 | </goals> |
| 1201 | <configuration> |
| 1202 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 1203 | <propertyName>failsafeArgLine</propertyName> |
| 1204 | <!-- <append>true</append> --> |
| 1205 | </configuration> |
| 1206 | </execution> |
| 1207 | <execution> |
| 1208 | <goals> |
| 1209 | <goal>merge</goal> |
| 1210 | </goals> |
| 1211 | <phase>post-integration-test</phase> |
| 1212 | <configuration> |
| 1213 | <fileSets> |
| 1214 | <fileSet |
| 1215 | implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 1216 | <directory>${project.build.directory}/coverage-reports</directory> |
| 1217 | <includes> |
| 1218 | <include>*.exec</include> |
| 1219 | </includes> |
| 1220 | </fileSet> |
| 1221 | </fileSets> |
| 1222 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile> |
| 1223 | </configuration> |
| 1224 | </execution> |
| 1225 | </executions> |
| 1226 | </plugin> |
| 1227 | |
| 1228 | <!-- This plugin will be useful when we will have multi-modules project --> |
| 1229 | <plugin> |
| 1230 | <groupId>org.codehaus.mojo</groupId> |
| 1231 | <artifactId>versions-maven-plugin</artifactId> |
| 1232 | <version>1.3.1</version> |
| 1233 | </plugin> |
| 1234 | |
| 1235 | <plugin> |
| 1236 | <groupId>com.github.eirslett</groupId> |
| 1237 | <artifactId>frontend-maven-plugin</artifactId> |
| 1238 | <version>1.8.0</version> |
| 1239 | <configuration> |
| 1240 | <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory> |
| 1241 | <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> |
| 1242 | </configuration> |
| 1243 | <executions> |
| 1244 | <execution> |
| 1245 | <id>install_node_and_npm</id> |
| 1246 | <goals> |
| 1247 | <goal>install-node-and-npm</goal> |
| 1248 | </goals> |
| 1249 | <phase>generate-sources</phase> |
| 1250 | <configuration> |
| 1251 | <nodeVersion>v12.10.0</nodeVersion> |
| 1252 | <npmVersion>6.10.3</npmVersion> |
| 1253 | </configuration> |
| 1254 | </execution> |
| 1255 | <execution> |
| 1256 | <id>npm_install</id> |
| 1257 | <goals> |
| 1258 | <goal>npm</goal> |
| 1259 | </goals> |
| 1260 | <phase>compile</phase> |
| 1261 | <configuration> |
| 1262 | <arguments>install</arguments> |
| 1263 | </configuration> |
| 1264 | </execution> |
| 1265 | <execution> |
| 1266 | <id>npm_test</id> |
| 1267 | <goals> |
| 1268 | <goal>npm</goal> |
| 1269 | </goals> |
| 1270 | <phase>test</phase> |
| 1271 | <configuration> |
| 1272 | <arguments>run-script test:coverage</arguments> |
| 1273 | </configuration> |
| 1274 | </execution> |
| 1275 | <execution> |
| 1276 | <id>npm_publish</id> |
| 1277 | <goals> |
| 1278 | <goal>npm</goal> |
| 1279 | </goals> |
| 1280 | <phase>deploy</phase> |
| 1281 | <configuration> |
| 1282 | <skip>true</skip> |
| 1283 | <arguments>publish --registry ${npm.publish.url}</arguments> |
| 1284 | </configuration> |
| 1285 | </execution> |
| 1286 | </executions> |
| 1287 | </plugin> |
| 1288 | </plugins> |
| 1289 | </build> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1290 | </project> |