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 | ================================================================================ |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 6 | Copyright (C) 2017-2018 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 | =================================================================== |
| 22 | ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 23 | --> |
| 24 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 25 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 26 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 27 | <modelVersion>4.0.0</modelVersion> |
| 28 | <groupId>org.onap.clamp</groupId> |
| 29 | <artifactId>clds</artifactId> |
| 30 | <version>2.0.0-SNAPSHOT</version> |
| 31 | <name>clamp</name> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 32 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 33 | <parent> |
| 34 | <groupId>org.onap.oparent</groupId> |
| 35 | <artifactId>oparent</artifactId> |
Determe, Sebastien (sd378r) | b3737db | 2018-03-15 10:43:48 +0100 | [diff] [blame] | 36 | <version>1.1.0</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 37 | </parent> |
Determe, Sebastien (sd378r) | a66fe45 | 2017-08-08 06:42:49 -0700 | [diff] [blame] | 38 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 39 | <description> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 40 | This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part. |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 41 | |
| 42 | By Default "mvn clean install" command will execute also the unit tests |
| 43 | and the integration tests. The integration tests require a docker engine running. |
| 44 | |
Determe, Sebastien (sd378r) | 08b9492 | 2018-03-27 10:25:41 +0200 | [diff] [blame] | 45 | If you want to skip the integration test you can by doing: |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 46 | "mvn clean install -DskipITs=true" |
| 47 | |
| 48 | For Spring it's possible to specify the application.properties location |
| 49 | "mvn clean install -Dspring.config.location=classpath:application-test.properties" |
| 50 | |
| 51 | The application.properties contains the location of the CLAMP parameters files: |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 52 | - org.onap.clamp.config.files.cldsReference=classpath:/clds/clds-reference.properties |
| 53 | - org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config.properties |
| 54 | - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json |
| 55 | - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties |
ChrisC | ae04cf3 | 2018-02-05 05:21:59 -0800 | [diff] [blame] | 56 | |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 57 | </description> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 58 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 59 | <properties> |
Jessica Wagantall | 0a689de | 2018-04-04 18:29:29 -0700 | [diff] [blame] | 60 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 61 | <clamp.project.version>${project.version}</clamp.project.version> |
| 62 | <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp> |
| 63 | <maven.compiler.source>1.8</maven.compiler.source> |
| 64 | <maven.compiler.target>1.8</maven.compiler.target> |
| 65 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 66 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 67 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 68 | <docker.mariadb.port.host>3306</docker.mariadb.port.host> |
Determe, Sebastien (sd378r) | 378d05b | 2018-03-23 14:46:56 +0100 | [diff] [blame] | 69 | <docker.http-cache.port.host>8085</docker.http-cache.port.host> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 70 | <project.scm.id>git-server</project.scm.id> |
| 71 | <java.version>1.8</java.version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 72 | |
Bertozzi, Julien (jb379x) | 009f713 | 2018-03-08 15:53:57 -0500 | [diff] [blame] | 73 | <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version> |
| 74 | <guava.version>20.0</guava.version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 75 | <eelf.core.version>1.0.0</eelf.core.version> |
| 76 | <camel.version>2.20.1</camel.version> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 77 | <springboot.version>1.5.10.RELEASE</springboot.version> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 78 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 79 | <sonar.language>java</sonar.language> |
| 80 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 81 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 82 | <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath> |
| 83 | <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 84 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> |
| 85 | <sonar.projectVersion>${project.version}</sonar.projectVersion> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 86 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 87 | <docker.push.registry>localhost:5000</docker.push.registry> |
| 88 | <skip.docker.build>true</skip.docker.build> |
| 89 | <skip.docker.push>true</skip.docker.push> |
| 90 | <skip.staging.artifacts>false</skip.staging.artifacts> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 91 | <http.proxy></http.proxy> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 92 | </properties> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 93 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 94 | <distributionManagement> |
| 95 | <repository> |
| 96 | <id>ecomp-releases</id> |
| 97 | <name>Clamp Release Repository</name> |
| 98 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 99 | </repository> |
| 100 | <snapshotRepository> |
| 101 | <id>ecomp-snapshots</id> |
| 102 | <name>Clamp Snapshot Repository</name> |
| 103 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 104 | </snapshotRepository> |
| 105 | <site> |
| 106 | <id>ecomp-site</id> |
| 107 | <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url> |
| 108 | </site> |
| 109 | </distributionManagement> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 110 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 111 | <repositories> |
| 112 | <repository> |
| 113 | <id>central</id> |
| 114 | <name>Maven 2 repository 2</name> |
| 115 | <url>http://repo2.maven.org/maven2/</url> |
| 116 | </repository> |
| 117 | <repository> |
| 118 | <id>ecomp-releases</id> |
| 119 | <name>ONAP Release Repository</name> |
| 120 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 121 | </repository> |
| 122 | <repository> |
| 123 | <id>ecomp-staging</id> |
| 124 | <name>ONAP Staging Repository</name> |
| 125 | <url>https://nexus.onap.org/content/repositories/staging/</url> |
| 126 | </repository> |
| 127 | <repository> |
| 128 | <id>ecomp-snapshots</id> |
| 129 | <name>ONAP Snapshot Repository</name> |
| 130 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 131 | <snapshots> |
| 132 | <enabled>true</enabled> |
| 133 | </snapshots> |
| 134 | <releases> |
| 135 | <enabled>false</enabled> |
| 136 | </releases> |
| 137 | </repository> |
| 138 | <repository> |
| 139 | <id>spring-repo</id> |
| 140 | <name>Spring repo</name> |
| 141 | <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url> |
| 142 | </repository> |
| 143 | <repository> |
| 144 | <id>repository.jboss.org-public</id> |
| 145 | <name>JBoss.org Maven repository</name> |
| 146 | <url>https://repository.jboss.org/nexus/content/groups/public</url> |
| 147 | </repository> |
| 148 | </repositories> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 149 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 150 | <dependencyManagement> |
| 151 | <dependencies> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 152 | <!-- Spring Boot BOM --> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 153 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 154 | <groupId>org.springframework.boot</groupId> |
| 155 | <artifactId>spring-boot-dependencies</artifactId> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 156 | <version>${springboot.version}</version> |
| 157 | <type>pom</type> |
| 158 | <scope>import</scope> |
| 159 | </dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 160 | <!-- Camel BOM --> |
| 161 | <dependency> |
| 162 | <groupId>org.apache.camel</groupId> |
| 163 | <artifactId>camel-spring-boot-dependencies</artifactId> |
| 164 | <version>${camel.version}</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 165 | <type>pom</type> |
| 166 | <scope>import</scope> |
| 167 | </dependency> |
| 168 | </dependencies> |
| 169 | </dependencyManagement> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 170 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 171 | <dependencies> |
Bertozzi, Julien (jb379x) | 009f713 | 2018-03-08 15:53:57 -0500 | [diff] [blame] | 172 | <!-- Swagger requires at least v20 and policy is bringing version 14 --> |
| 173 | <dependency> |
| 174 | <groupId>com.google.guava</groupId> |
| 175 | <artifactId>guava</artifactId> |
| 176 | <version>${guava.version}</version> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>io.swagger.core.v3</groupId> |
| 180 | <artifactId>swagger-jaxrs2</artifactId> |
| 181 | <version>${swagger.jaxrs2.version}</version> |
| 182 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 183 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 184 | <groupId>com.att.eelf</groupId> |
| 185 | <artifactId>eelf-core</artifactId> |
| 186 | <version>${eelf.core.version}</version> |
| 187 | </dependency> |
| 188 | <!-- For CAMEL --> |
| 189 | <dependency> |
| 190 | <groupId>org.apache.camel</groupId> |
| 191 | <artifactId>camel-spring-boot-starter</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 192 | </dependency> |
| 193 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 194 | <groupId>org.apache.camel</groupId> |
| 195 | <artifactId>camel-jaxb-starter</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 196 | </dependency> |
| 197 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 198 | <groupId>org.apache.camel</groupId> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 199 | <artifactId>camel-servlet-starter</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 200 | </dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 201 | <!-- Spring famework --> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 202 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 203 | <groupId>org.springframework.boot</groupId> |
| 204 | <artifactId>spring-boot-starter-web</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 205 | </dependency> |
| 206 | <dependency> |
| 207 | <groupId>org.springframework.boot</groupId> |
| 208 | <artifactId>spring-boot-starter-tomcat</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 209 | </dependency> |
| 210 | <dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 211 | <groupId>com.paypal.springboot</groupId> |
| 212 | <artifactId>resteasy-spring-boot-starter</artifactId> |
| 213 | <version>2.3.4-RELEASE</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 214 | </dependency> |
| 215 | <dependency> |
| 216 | <groupId>org.springframework</groupId> |
| 217 | <artifactId>spring-jdbc</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 218 | </dependency> |
| 219 | <dependency> |
| 220 | <groupId>org.springframework.boot</groupId> |
| 221 | <artifactId>spring-boot-starter-security</artifactId> |
| 222 | </dependency> |
| 223 | <dependency> |
| 224 | <groupId>org.springframework.boot</groupId> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 225 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 226 | </dependency> |
| 227 | <dependency> |
| 228 | <groupId>org.springframework.boot</groupId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 229 | <artifactId>spring-boot-starter-test</artifactId> |
| 230 | <scope>test</scope> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 231 | <exclusions> |
| 232 | <exclusion> |
| 233 | <groupId>com.vaadin.external.google</groupId> |
| 234 | <artifactId>android-json</artifactId> |
| 235 | </exclusion> |
| 236 | </exclusions> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 237 | </dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 238 | <!-- Others dependencies --> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 239 | <dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 240 | <groupId>ch.qos.logback</groupId> |
| 241 | <artifactId>logback-core</artifactId> |
| 242 | <version>1.2.3</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 243 | </dependency> |
| 244 | <dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 245 | <groupId>ch.qos.logback</groupId> |
| 246 | <artifactId>logback-classic</artifactId> |
| 247 | <version>1.2.3</version> |
| 248 | </dependency> |
| 249 | <dependency> |
| 250 | <groupId>commons-dbcp</groupId> |
| 251 | <artifactId>commons-dbcp</artifactId> |
| 252 | <version>1.4</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 253 | </dependency> |
| 254 | <dependency> |
| 255 | <groupId>commons-io</groupId> |
| 256 | <artifactId>commons-io</artifactId> |
| 257 | <version>2.6</version> |
| 258 | </dependency> |
| 259 | <dependency> |
| 260 | <groupId>com.googlecode.json-simple</groupId> |
| 261 | <artifactId>json-simple</artifactId> |
| 262 | </dependency> |
| 263 | <dependency> |
| 264 | <groupId>org.apache.commons</groupId> |
| 265 | <artifactId>commons-vfs2</artifactId> |
Determe, Sebastien (sd378r) | 886191e | 2018-03-02 11:42:06 +0100 | [diff] [blame] | 266 | <version>2.2</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 267 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 268 | <dependency> |
| 269 | <groupId>joda-time</groupId> |
| 270 | <artifactId>joda-time</artifactId> |
| 271 | </dependency> |
| 272 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 273 | <groupId>org.slf4j</groupId> |
| 274 | <artifactId>slf4j-api</artifactId> |
| 275 | </dependency> |
| 276 | <dependency> |
| 277 | <groupId>javax.ws.rs</groupId> |
| 278 | <artifactId>javax.ws.rs-api</artifactId> |
| 279 | <version>2.0</version> |
| 280 | </dependency> |
| 281 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 282 | <groupId>junit</groupId> |
| 283 | <artifactId>junit</artifactId> |
| 284 | </dependency> |
| 285 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 286 | <groupId>javax.transaction</groupId> |
| 287 | <artifactId>jta</artifactId> |
| 288 | <version>1.1</version> |
| 289 | </dependency> |
| 290 | <dependency> |
| 291 | <groupId>javax.persistence</groupId> |
| 292 | <artifactId>persistence-api</artifactId> |
| 293 | <version>1.0.2</version> |
| 294 | </dependency> |
| 295 | <dependency> |
| 296 | <groupId>org.hibernate</groupId> |
| 297 | <artifactId>hibernate-annotations</artifactId> |
| 298 | <version>3.5.6-Final</version> |
| 299 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 300 | <dependency> |
| 301 | <groupId>dom4j</groupId> |
| 302 | <artifactId>dom4j</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 303 | </dependency> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 304 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 305 | <dependency> |
| 306 | <groupId>org.onap.policy.engine</groupId> |
| 307 | <artifactId>PolicyEngineAPI</artifactId> |
| 308 | <version>1.1.0</version> |
| 309 | <exclusions> |
| 310 | <exclusion> |
Bertozzi, Julien (jb379x) | 009f713 | 2018-03-08 15:53:57 -0500 | [diff] [blame] | 311 | <groupId>com.google.guava</groupId> |
| 312 | <artifactId>guava</artifactId> |
| 313 | </exclusion> |
| 314 | <exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 315 | <artifactId>log4j</artifactId> |
| 316 | <groupId>log4j</groupId> |
| 317 | </exclusion> |
| 318 | <exclusion> |
| 319 | <groupId>org.slf4j</groupId> |
| 320 | <artifactId>slf4j-log4j12</artifactId> |
| 321 | </exclusion> |
| 322 | <exclusion> |
| 323 | <artifactId>apache-log4j-extras</artifactId> |
| 324 | <groupId>log4j</groupId> |
| 325 | </exclusion> |
| 326 | <exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 327 | <groupId>mysql</groupId> |
| 328 | <artifactId>mysql-connector-java</artifactId> |
| 329 | </exclusion> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 330 | <exclusion> |
| 331 | <groupId>commons-io</groupId> |
| 332 | <artifactId>commons-io</artifactId> |
| 333 | </exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 334 | </exclusions> |
| 335 | </dependency> |
| 336 | <dependency> |
| 337 | <groupId>org.onap.policy.common</groupId> |
| 338 | <artifactId>ONAP-Logging</artifactId> |
| 339 | <version>1.1.0</version> |
| 340 | <exclusions> |
| 341 | <exclusion> |
| 342 | <artifactId>log4j</artifactId> |
| 343 | <groupId>log4j</groupId> |
| 344 | </exclusion> |
| 345 | <exclusion> |
| 346 | <groupId>org.slf4j</groupId> |
| 347 | <artifactId>slf4j-log4j12</artifactId> |
| 348 | </exclusion> |
| 349 | <exclusion> |
| 350 | <artifactId>apache-log4j-extras</artifactId> |
| 351 | <groupId>log4j</groupId> |
| 352 | </exclusion> |
| 353 | </exclusions> |
| 354 | </dependency> |
| 355 | <dependency> |
| 356 | <groupId>org.onap.policy.engine</groupId> |
| 357 | <artifactId>PolicyEngineUtils</artifactId> |
| 358 | <version>1.1.0</version> |
| 359 | <exclusions> |
| 360 | <exclusion> |
| 361 | <artifactId>log4j</artifactId> |
| 362 | <groupId>log4j</groupId> |
| 363 | </exclusion> |
| 364 | <exclusion> |
| 365 | <groupId>org.slf4j</groupId> |
| 366 | <artifactId>slf4j-log4j12</artifactId> |
| 367 | </exclusion> |
| 368 | <exclusion> |
| 369 | <artifactId>apache-log4j-extras</artifactId> |
| 370 | <groupId>log4j</groupId> |
| 371 | </exclusion> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 372 | <exclusion> |
| 373 | <groupId>mysql</groupId> |
| 374 | <artifactId>mysql-connector-java</artifactId> |
| 375 | </exclusion> |
| 376 | <exclusion> |
| 377 | <groupId>org.mariadb.jdbc</groupId> |
| 378 | <artifactId>mariadb-java-client</artifactId> |
| 379 | </exclusion> |
Determe, Sebastien (sd378r) | 57867d1 | 2018-02-15 16:04:12 +0100 | [diff] [blame] | 380 | <exclusion> |
| 381 | <groupId>com.att.nsa</groupId> |
| 382 | <artifactId>dmaapClient</artifactId> |
| 383 | </exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 384 | </exclusions> |
| 385 | </dependency> |
| 386 | <dependency> |
| 387 | <groupId>org.onap.policy.drools-applications</groupId> |
| 388 | <artifactId>policy-yaml</artifactId> |
| 389 | <version>1.1.0</version> |
| 390 | <exclusions> |
| 391 | <exclusion> |
| 392 | <artifactId>log4j</artifactId> |
| 393 | <groupId>log4j</groupId> |
| 394 | </exclusion> |
| 395 | <exclusion> |
| 396 | <groupId>org.slf4j</groupId> |
| 397 | <artifactId>slf4j-log4j12</artifactId> |
| 398 | </exclusion> |
| 399 | <exclusion> |
| 400 | <artifactId>apache-log4j-extras</artifactId> |
| 401 | <groupId>log4j</groupId> |
| 402 | </exclusion> |
| 403 | </exclusions> |
| 404 | </dependency> |
| 405 | <dependency> |
| 406 | <groupId>org.onap.policy.drools-applications</groupId> |
| 407 | <artifactId>sdc</artifactId> |
| 408 | <version>1.1.0</version> |
| 409 | <exclusions> |
| 410 | <exclusion> |
| 411 | <artifactId>log4j</artifactId> |
| 412 | <groupId>log4j</groupId> |
| 413 | </exclusion> |
| 414 | <exclusion> |
| 415 | <groupId>org.slf4j</groupId> |
| 416 | <artifactId>slf4j-log4j12</artifactId> |
| 417 | </exclusion> |
| 418 | <exclusion> |
| 419 | <artifactId>apache-log4j-extras</artifactId> |
| 420 | <groupId>log4j</groupId> |
| 421 | </exclusion> |
| 422 | </exclusions> |
| 423 | </dependency> |
| 424 | <dependency> |
| 425 | <groupId>org.onap.policy.drools-applications</groupId> |
| 426 | <artifactId>aai</artifactId> |
| 427 | <version>1.1.0</version> |
| 428 | <exclusions> |
| 429 | <exclusion> |
| 430 | <artifactId>log4j</artifactId> |
| 431 | <groupId>log4j</groupId> |
| 432 | </exclusion> |
| 433 | <exclusion> |
| 434 | <groupId>org.slf4j</groupId> |
| 435 | <artifactId>slf4j-log4j12</artifactId> |
| 436 | </exclusion> |
| 437 | <exclusion> |
| 438 | <artifactId>apache-log4j-extras</artifactId> |
| 439 | <groupId>log4j</groupId> |
| 440 | </exclusion> |
| 441 | </exclusions> |
| 442 | </dependency> |
| 443 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 444 | <groupId>org.apache.commons</groupId> |
| 445 | <artifactId>commons-csv</artifactId> |
| 446 | <version>1.3</version> |
| 447 | </dependency> |
| 448 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 449 | <groupId>com.sun.faces</groupId> |
| 450 | <artifactId>jsf-api</artifactId> |
| 451 | <version>2.1.7</version> |
| 452 | </dependency> |
| 453 | <dependency> |
| 454 | <groupId>com.sun.faces</groupId> |
| 455 | <artifactId>jsf-impl</artifactId> |
| 456 | <version>2.1.7</version> |
| 457 | </dependency> |
Determe, Sebastien (sd378r) | 886191e | 2018-03-02 11:42:06 +0100 | [diff] [blame] | 458 | <!-- Other dependencies to fix nexus IQ reported vulnerabilities --> |
| 459 | <dependency> |
| 460 | <groupId>org.codehaus.plexus</groupId> |
| 461 | <artifactId>plexus-utils</artifactId> |
| 462 | <version>3.0.24</version> |
| 463 | </dependency> |
| 464 | <dependency> |
| 465 | <groupId>commons-fileupload</groupId> |
| 466 | <artifactId>commons-fileupload</artifactId> |
| 467 | <version>1.3.3</version> |
| 468 | </dependency> |
| 469 | <dependency> |
| 470 | <groupId>org.jboss.spec.javax.ws.rs</groupId> |
| 471 | <artifactId>jboss-jaxrs-api_2.0_spec</artifactId> |
| 472 | <version>1.0.1.Final</version> |
| 473 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 474 | <!-- Remove the MYSQL connector and replace it by Mariadb --> |
| 475 | <dependency> |
| 476 | <groupId>org.mariadb.jdbc</groupId> |
| 477 | <artifactId>mariadb-java-client</artifactId> |
Determe, Sebastien (sd378r) | 373a927 | 2018-02-20 18:19:39 +0100 | [diff] [blame] | 478 | <version>2.2.1</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 479 | </dependency> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 480 | <!-- For SDC Controller --> |
| 481 | <dependency> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 482 | <groupId>org.onap.sdc.sdc-distribution-client</groupId> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 483 | <artifactId>sdc-distribution-client</artifactId> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 484 | <version>1.3.0</version> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 485 | </dependency> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 486 | <dependency> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 487 | <groupId>org.onap.sdc.sdc-tosca</groupId> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 488 | <artifactId>sdc-tosca</artifactId> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 489 | <version>1.3.3</version> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 490 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 491 | </dependencies> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 492 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 493 | <build> |
| 494 | <finalName>clamp</finalName> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 495 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 496 | <testResources> |
| 497 | <testResource> |
| 498 | <directory>src/test/resources</directory> |
| 499 | <excludes> |
| 500 | <exclude>**/*.jks</exclude> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 501 | <exclude>**/*.csar</exclude> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 502 | </excludes> |
| 503 | <filtering>true</filtering> |
| 504 | </testResource> |
| 505 | <testResource> |
| 506 | <directory>src/test/resources/https</directory> |
| 507 | <includes> |
| 508 | <include>**.jks</include> |
| 509 | </includes> |
| 510 | <filtering>false</filtering> |
| 511 | <targetPath>https</targetPath> |
| 512 | </testResource> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 513 | <testResource> |
| 514 | <directory>src/test/resources/example/sdc</directory> |
| 515 | <includes> |
| 516 | <include>**.csar</include> |
| 517 | </includes> |
| 518 | <filtering>false</filtering> |
| 519 | <targetPath>example/sdc</targetPath> |
| 520 | </testResource> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 521 | </testResources> |
| 522 | <resources> |
| 523 | <resource> |
| 524 | <directory>src/main/resources</directory> |
| 525 | <filtering>true</filtering> |
| 526 | </resource> |
| 527 | <resource> |
| 528 | <directory>src/main/docker</directory> |
| 529 | <includes> |
| 530 | <include>**/*</include> |
| 531 | </includes> |
| 532 | <filtering>true</filtering> |
| 533 | </resource> |
| 534 | </resources> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 535 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 536 | <plugins> |
| 537 | <plugin> |
| 538 | <groupId>org.codehaus.groovy.maven</groupId> |
| 539 | <artifactId>gmaven-plugin</artifactId> |
| 540 | <version>1.0</version> |
| 541 | <executions> |
| 542 | <execution> |
| 543 | <phase>validate</phase> |
| 544 | <goals> |
| 545 | <goal>execute</goal> |
| 546 | </goals> |
| 547 | <configuration> |
| 548 | <source>${project.basedir}/src/main/script/TagVersion.groovy</source> |
| 549 | </configuration> |
| 550 | </execution> |
| 551 | </executions> |
| 552 | </plugin> |
| 553 | <plugin> |
| 554 | <groupId>org.apache.maven.plugins</groupId> |
| 555 | <artifactId>maven-jar-plugin</artifactId> |
| 556 | <version>3.0.2</version> |
| 557 | <executions> |
| 558 | <execution> |
| 559 | <id>jar-with-only-classes</id> |
| 560 | <phase>package</phase> |
| 561 | <goals> |
| 562 | <goal>jar</goal> |
| 563 | </goals> |
| 564 | <configuration> |
| 565 | <classifier>classes</classifier> |
| 566 | <includes> |
| 567 | <include>org/**</include> |
| 568 | </includes> |
| 569 | </configuration> |
| 570 | </execution> |
| 571 | </executions> |
| 572 | </plugin> |
| 573 | <plugin> |
| 574 | <groupId>org.codehaus.mojo</groupId> |
| 575 | <artifactId>build-helper-maven-plugin</artifactId> |
| 576 | <version>3.0.0</version> |
| 577 | <executions> |
| 578 | <execution> |
| 579 | <goals> |
| 580 | <goal>attach-artifact</goal> |
| 581 | </goals> |
| 582 | <phase>package</phase> |
| 583 | <configuration> |
| 584 | <artifacts> |
| 585 | <artifact> |
| 586 | <file>${project.build.directory}/clamp-classes.jar</file> |
| 587 | <type>jar</type> |
| 588 | <classifier>classes</classifier> |
| 589 | </artifact> |
| 590 | </artifacts> |
| 591 | </configuration> |
| 592 | </execution> |
| 593 | </executions> |
| 594 | </plugin> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 595 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 596 | <plugin> |
| 597 | <groupId>org.springframework.boot</groupId> |
| 598 | <artifactId>spring-boot-maven-plugin</artifactId> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 599 | <version>${springboot.version}</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 600 | <executions> |
| 601 | <execution> |
| 602 | <goals> |
| 603 | <goal>repackage</goal> |
| 604 | </goals> |
| 605 | <phase>package</phase> |
| 606 | </execution> |
| 607 | </executions> |
| 608 | </plugin> |
| 609 | <plugin> |
| 610 | <groupId>org.sonatype.plugins</groupId> |
| 611 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 612 | <version>1.6.7</version> |
| 613 | <extensions>true</extensions> |
| 614 | <configuration> |
| 615 | <nexusUrl>https://nexus.onap.org</nexusUrl> |
| 616 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 617 | <serverId>ecomp-staging</serverId> |
| 618 | <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo> |
| 619 | </configuration> |
| 620 | </plugin> |
| 621 | <plugin> |
| 622 | <groupId>com.spotify</groupId> |
| 623 | <artifactId>docker-maven-plugin</artifactId> |
| 624 | <version>1.0.0</version> |
| 625 | <configuration> |
| 626 | <imageName>onap/clamp</imageName> |
| 627 | <dockerDirectory>src/main/docker</dockerDirectory> |
| 628 | <serverId>docker-hub</serverId> |
| 629 | <imageTags> |
| 630 | <imageTag>latest</imageTag> |
| 631 | <imageTag>${project.docker.latesttagtimestamp.version}</imageTag> |
| 632 | <imageTag>${project.docker.latesttag.version}</imageTag> |
| 633 | </imageTags> |
| 634 | <forceTags>true</forceTags> |
| 635 | <resources> |
| 636 | <resource> |
| 637 | <targetPath>/</targetPath> |
| 638 | <directory>${project.build.directory}</directory> |
| 639 | <include>${project.build.finalName}.jar</include> |
| 640 | </resource> |
| 641 | <resource> |
| 642 | <targetPath>/</targetPath> |
| 643 | <directory>${project.build.directory}</directory> |
| 644 | <include>etc/config/**</include> |
| 645 | </resource> |
| 646 | <resource> |
| 647 | <targetPath>/</targetPath> |
| 648 | <directory>${project.build.directory}</directory> |
| 649 | <include>etc/keystore/**</include> |
| 650 | </resource> |
| 651 | </resources> |
| 652 | </configuration> |
| 653 | <executions> |
| 654 | <execution> |
| 655 | <id>build-image</id> |
| 656 | <phase>package</phase> |
| 657 | <goals> |
| 658 | <goal>build</goal> |
| 659 | </goals> |
| 660 | <configuration> |
| 661 | <skipDockerBuild>${skip.docker.build}</skipDockerBuild> |
| 662 | <buildArgs> |
| 663 | <http_proxy>${env.HTTP_PROXY}</http_proxy> |
| 664 | <https_proxy>${env.HTTPS_PROXY}</https_proxy> |
| 665 | </buildArgs> |
| 666 | </configuration> |
| 667 | </execution> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 668 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 669 | <execution> |
| 670 | <id>tag-image-latest-timestamp</id> |
| 671 | <phase>package</phase> |
| 672 | <goals> |
| 673 | <goal>tag</goal> |
| 674 | </goals> |
| 675 | <configuration> |
| 676 | <image>onap/clamp</image> |
| 677 | <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName> |
| 678 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 679 | </configuration> |
| 680 | </execution> |
| 681 | <execution> |
| 682 | <id>push-image-latest-timestamp</id> |
| 683 | <phase>deploy</phase> |
| 684 | <goals> |
| 685 | <goal>push</goal> |
| 686 | </goals> |
| 687 | <configuration> |
| 688 | <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName> |
| 689 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 690 | </configuration> |
| 691 | </execution> |
| 692 | <execution> |
| 693 | <id>tag-image-latest</id> |
| 694 | <phase>package</phase> |
| 695 | <goals> |
| 696 | <goal>tag</goal> |
| 697 | </goals> |
| 698 | <configuration> |
| 699 | <image>onap/clamp</image> |
| 700 | <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName> |
| 701 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 702 | </configuration> |
| 703 | </execution> |
| 704 | <execution> |
| 705 | <id>push-image-latest</id> |
| 706 | <phase>deploy</phase> |
| 707 | <goals> |
| 708 | <goal>push</goal> |
| 709 | </goals> |
| 710 | <configuration> |
| 711 | <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName> |
| 712 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 713 | </configuration> |
| 714 | </execution> |
| 715 | <execution> |
| 716 | <id>tag-image</id> |
| 717 | <phase>package</phase> |
| 718 | <goals> |
| 719 | <goal>tag</goal> |
| 720 | </goals> |
| 721 | <configuration> |
| 722 | <image>onap/clamp</image> |
| 723 | <newName>${docker.push.registry}/onap/clamp:latest</newName> |
| 724 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 725 | </configuration> |
| 726 | </execution> |
| 727 | <execution> |
| 728 | <id>push-image</id> |
| 729 | <phase>deploy</phase> |
| 730 | <goals> |
| 731 | <goal>push</goal> |
| 732 | </goals> |
| 733 | <configuration> |
| 734 | <imageName>${docker.push.registry}/onap/clamp:latest</imageName> |
| 735 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 736 | </configuration> |
| 737 | </execution> |
| 738 | </executions> |
| 739 | </plugin> |
| 740 | <plugin> |
| 741 | <groupId>org.apache.maven.plugins</groupId> |
| 742 | <artifactId>maven-surefire-plugin</artifactId> |
| 743 | <version>2.19.1</version> |
| 744 | <configuration> |
| 745 | <forkCount>1</forkCount> |
| 746 | <reuseForks>false</reuseForks> |
| 747 | </configuration> |
| 748 | </plugin> |
Determe, Sebastien (sd378r) | c06db6e | 2017-09-22 16:52:51 +0200 | [diff] [blame] | 749 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 750 | <plugin> |
| 751 | <groupId>org.apache.maven.plugins</groupId> |
| 752 | <artifactId>maven-failsafe-plugin</artifactId> |
| 753 | <version>2.16</version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 754 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 755 | <executions> |
| 756 | <execution> |
| 757 | <id>integration-tests</id> |
| 758 | <goals> |
| 759 | <goal>integration-test</goal> |
| 760 | <goal>verify</goal> |
| 761 | </goals> |
| 762 | <configuration> |
| 763 | <includes> |
| 764 | <include>**/*ItCase.java</include> |
| 765 | </includes> |
| 766 | <forkCount>1</forkCount> |
| 767 | <reuseForks>false</reuseForks> |
| 768 | </configuration> |
| 769 | </execution> |
| 770 | </executions> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 771 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 772 | </plugin> |
| 773 | <plugin> |
| 774 | <groupId>io.fabric8</groupId> |
| 775 | <artifactId>docker-maven-plugin</artifactId> |
| 776 | <version>0.16.5</version> |
| 777 | <configuration> |
| 778 | <verbose>true</verbose> |
| 779 | <apiVersion>1.23</apiVersion> |
| 780 | <images> |
| 781 | <image> |
| 782 | <name>mariadb:10.1.11</name> |
| 783 | <alias>mariadb</alias> |
| 784 | <run> |
| 785 | <env> |
| 786 | <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD> |
| 787 | </env> |
| 788 | <hostname>mariadb</hostname> |
| 789 | <volumes> |
| 790 | <bind> |
| 791 | <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume> |
| 792 | <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume> |
| 793 | </bind> |
| 794 | </volumes> |
| 795 | <wait> |
| 796 | <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log> |
Determe, Sebastien (sd378r) | b588fbc | 2018-02-13 17:25:12 +0100 | [diff] [blame] | 797 | <time>600000</time> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 798 | </wait> |
| 799 | <ports> |
| 800 | <port>${docker.mariadb.port.host}:3306</port> |
| 801 | </ports> |
| 802 | </run> |
| 803 | </image> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 804 | <image> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 805 | <name>python:2-slim</name> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 806 | <alias>python</alias> |
| 807 | <run> |
| 808 | <hostname>python</hostname> |
| 809 | <volumes> |
| 810 | <bind> |
| 811 | <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume> |
ehautot | 153c829 | 2018-03-15 17:49:50 +0100 | [diff] [blame] | 812 | <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 813 | </bind> |
| 814 | </volumes> |
| 815 | <wait> |
| 816 | <tcp> |
| 817 | <ports> |
| 818 | <port>8080</port> |
| 819 | </ports> |
| 820 | <mode>direct</mode> |
| 821 | </tcp> |
| 822 | <time>120000</time> |
| 823 | </wait> |
| 824 | <ports> |
| 825 | <port>${docker.http-cache.port.host}:8080</port> |
| 826 | </ports> |
| 827 | <workingDir>/usr/src/http-cache-app</workingDir> |
| 828 | <cmd> |
Determe, Sebastien (sd378r) | 6044573 | 2018-04-04 12:03:37 +0200 | [diff] [blame] | 829 | <shell>./start_http_cache.sh ${http.proxy} --python_proxyaddress localhost:${docker.http-cache.port.host}</shell> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 830 | </cmd> |
| 831 | </run> |
| 832 | </image> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 833 | </images> |
| 834 | <skip>${skipITs}</skip> |
| 835 | </configuration> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 836 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 837 | <executions> |
| 838 | <execution> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 839 | <id>docker-start-for-it</id> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 840 | <phase>pre-integration-test</phase> |
| 841 | <goals> |
| 842 | <goal>start</goal> |
| 843 | </goals> |
| 844 | <configuration> |
| 845 | <skip>${skipITs}</skip> |
| 846 | </configuration> |
| 847 | </execution> |
| 848 | <execution> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 849 | <id>docker-stop-for-it</id> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 850 | <phase>post-integration-test</phase> |
| 851 | <goals> |
| 852 | <goal>stop</goal> |
| 853 | </goals> |
| 854 | <configuration> |
| 855 | <skip>${skipITs}</skip> |
| 856 | </configuration> |
| 857 | </execution> |
| 858 | </executions> |
| 859 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 860 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 861 | <plugin> |
| 862 | <groupId>org.jacoco</groupId> |
| 863 | <artifactId>jacoco-maven-plugin</artifactId> |
| 864 | <version>0.7.7.201606060606</version> |
| 865 | <configuration> |
| 866 | <dumpOnExit>true</dumpOnExit> |
| 867 | <includes> |
| 868 | <include>org.onap.clamp.*</include> |
| 869 | </includes> |
| 870 | </configuration> |
| 871 | <executions> |
| 872 | <execution> |
| 873 | <id>pre-unit-test</id> |
| 874 | <goals> |
| 875 | <goal>prepare-agent</goal> |
| 876 | </goals> |
| 877 | <configuration> |
| 878 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 879 | <!-- <append>true</append> --> |
| 880 | </configuration> |
| 881 | </execution> |
| 882 | <execution> |
| 883 | <id>pre-integration-test</id> |
| 884 | <phase>pre-integration-test</phase> |
| 885 | <goals> |
| 886 | <goal>prepare-agent</goal> |
| 887 | </goals> |
| 888 | <configuration> |
| 889 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 890 | <!-- <append>true</append> --> |
| 891 | </configuration> |
| 892 | </execution> |
| 893 | <execution> |
| 894 | <goals> |
| 895 | <goal>merge</goal> |
| 896 | </goals> |
| 897 | <phase>post-integration-test</phase> |
| 898 | <configuration> |
| 899 | <fileSets> |
| 900 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 901 | <directory>${project.build.directory}/coverage-reports</directory> |
| 902 | <includes> |
| 903 | <include>*.exec</include> |
| 904 | </includes> |
| 905 | </fileSet> |
| 906 | </fileSets> |
| 907 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile> |
| 908 | </configuration> |
| 909 | </execution> |
| 910 | </executions> |
| 911 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 912 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 913 | <!-- This plugin will be useful when we will have multi-modules project --> |
| 914 | <plugin> |
| 915 | <groupId>org.codehaus.mojo</groupId> |
| 916 | <artifactId>versions-maven-plugin</artifactId> |
| 917 | <version>1.3.1</version> |
| 918 | </plugin> |
| 919 | </plugins> |
| 920 | </build> |
| 921 | <profiles> |
| 922 | <profile> |
| 923 | <id>docker</id> |
| 924 | <properties> |
| 925 | <skip.staging.artifacts>true</skip.staging.artifacts> |
| 926 | <skip.docker.build>false</skip.docker.build> |
| 927 | <skip.docker.tag>false</skip.docker.tag> |
| 928 | <skip.docker.push>false</skip.docker.push> |
| 929 | </properties> |
| 930 | </profile> |
| 931 | </profiles> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 932 | </project> |