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 | ================================================================================ |
| 6 | Copyright (C) 2017 AT&T Intellectual Property. All rights |
| 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" |
| 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> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 30 | <version>1.0.1-SNAPSHOT</version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 31 | <name>ONAP CLAMP</name> |
| 32 | |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 33 | <!-- <parent> --> |
| 34 | <!-- <groupId>org.onap.oparent</groupId> --> |
| 35 | <!-- <artifactId>oparent</artifactId> --> |
| 36 | <!-- <version>1.0.0-SNAPSHOT</version> --> |
| 37 | <!-- </parent> --> |
Determe, Sebastien (sd378r) | a66fe45 | 2017-08-08 06:42:49 -0700 | [diff] [blame] | 38 | |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 39 | <description> |
| 40 | This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code. |
| 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 | |
| 45 | If you want to skip the intergation test you can by doing: |
| 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) | 50b6d18 | 2017-08-08 05:51:05 -0700 | [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 | 6c9759e | 2017-08-30 01:13:58 -0700 | [diff] [blame] | 56 | |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 57 | </description> |
| 58 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 59 | <properties> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 60 | <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format> |
| 61 | <clamp.project.version>${project.version}</clamp.project.version> |
| 62 | <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 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> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 66 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 67 | |
| 68 | <docker.mariadb.port.host>3306</docker.mariadb.port.host> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 69 | <sdk.java.common.logging>0.0.3-oss</sdk.java.common.logging> |
| 70 | <project.scm.id>git-server</project.scm.id> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 71 | <java.version>1.8</java.version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 72 | <csi.logging>6.1.0.6-oss</csi.logging> |
| 73 | <sdk.camel.rest>6.2.0.6-oss</sdk.camel.rest> |
| 74 | <sdk.camunda.core>6.1.0.3-oss</sdk.camunda.core> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 75 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 76 | <sonar.language>java</sonar.language> |
| 77 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 78 | <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| 79 | <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath> |
| 80 | <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> |
| 81 | <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> |
| 82 | <sonar.projectVersion>${project.version}</sonar.projectVersion> |
| 83 | |
JulienBe | 027c363 | 2017-06-22 12:04:24 +0200 | [diff] [blame] | 84 | <docker.push.registry>localhost:5000</docker.push.registry> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 85 | <skip.docker.build>true</skip.docker.build> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 86 | <skip.docker.push>true</skip.docker.push> |
| 87 | <skip.staging.artifacts>false</skip.staging.artifacts> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 88 | </properties> |
| 89 | |
| 90 | <distributionManagement> |
| 91 | <repository> |
| 92 | <id>ecomp-releases</id> |
| 93 | <name>Clamp Release Repository</name> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 94 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 95 | </repository> |
| 96 | <snapshotRepository> |
| 97 | <id>ecomp-snapshots</id> |
| 98 | <name>Clamp Snapshot Repository</name> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 99 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 100 | </snapshotRepository> |
| 101 | <site> |
| 102 | <id>ecomp-site</id> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 103 | <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 104 | </site> |
| 105 | </distributionManagement> |
| 106 | |
| 107 | <repositories> |
| 108 | <repository> |
| 109 | <id>central</id> |
| 110 | <name>Maven 2 repository 2</name> |
| 111 | <url>http://repo2.maven.org/maven2/</url> |
| 112 | </repository> |
| 113 | <repository> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 114 | <id>ecomp-releases</id> |
| 115 | <name>ONAP Release Repository</name> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 116 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 117 | </repository> |
| 118 | <repository> |
| 119 | <id>ecomp-staging</id> |
| 120 | <name>ONAP Staging Repository</name> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 121 | <url>https://nexus.onap.org/content/repositories/staging/</url> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 122 | </repository> |
| 123 | <repository> |
| 124 | <id>ecomp-snapshots</id> |
| 125 | <name>ONAP Snapshot Repository</name> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 126 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 127 | <snapshots> |
| 128 | <enabled>true</enabled> |
| 129 | </snapshots> |
| 130 | <releases> |
| 131 | <enabled>false</enabled> |
| 132 | </releases> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 133 | </repository> |
| 134 | <repository> |
| 135 | <id>spring-repo</id> |
| 136 | <name>Spring repo</name> |
| 137 | <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url> |
| 138 | </repository> |
| 139 | <repository> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 140 | <id>repository.jboss.org-public</id> |
| 141 | <name>JBoss.org Maven repository</name> |
| 142 | <url>https://repository.jboss.org/nexus/content/groups/public</url> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 143 | </repository> |
| 144 | </repositories> |
| 145 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 146 | <dependencyManagement> |
| 147 | <dependencies> |
| 148 | <dependency> |
| 149 | <!-- Import dependency management from Spring Boot --> |
| 150 | <groupId>org.springframework.boot</groupId> |
| 151 | <artifactId>spring-boot-dependencies</artifactId> |
| 152 | <version>1.4.1.RELEASE</version> |
| 153 | <type>pom</type> |
| 154 | <scope>import</scope> |
| 155 | </dependency> |
| 156 | </dependencies> |
| 157 | </dependencyManagement> |
| 158 | |
| 159 | <dependencies> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 160 | |
| 161 | <dependency> |
| 162 | <groupId>com.googlecode.json-simple</groupId> |
| 163 | <artifactId>json-simple</artifactId> |
| 164 | <version>1.1</version> |
| 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>org.apache.commons</groupId> |
| 168 | <artifactId>commons-vfs2</artifactId> |
| 169 | <version>2.0</version> |
| 170 | </dependency> |
| 171 | |
| 172 | <dependency> |
| 173 | <groupId>org.springframework.security</groupId> |
| 174 | <artifactId>spring-security-test</artifactId> |
| 175 | |
| 176 | <scope>test</scope> |
| 177 | </dependency> |
| 178 | |
| 179 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 180 | <!-- Dependencies of parent pom start --> |
| 181 | <dependency> |
| 182 | <groupId>com.att.ajsc</groupId> |
| 183 | <artifactId>sdk-java-common-logging</artifactId> |
| 184 | <version>${sdk.java.common.logging}</version> |
| 185 | </dependency> |
| 186 | <dependency> |
| 187 | <groupId>org.springframework.boot</groupId> |
| 188 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 189 | <scope>compile</scope> |
| 190 | </dependency> |
| 191 | <dependency> |
| 192 | <groupId>org.springframework.boot</groupId> |
| 193 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 194 | </dependency> |
| 195 | <dependency> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 196 | <groupId>org.springframework.boot</groupId> |
| 197 | <artifactId>spring-boot-starter-security</artifactId> |
| 198 | </dependency> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 199 | <dependency> |
| 200 | <groupId>org.springframework.boot</groupId> |
| 201 | <artifactId>spring-boot-starter-test</artifactId> |
| 202 | <scope>test</scope> |
| 203 | </dependency> |
| 204 | <dependency> |
| 205 | <groupId>joda-time</groupId> |
| 206 | <artifactId>joda-time</artifactId> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>org.springframework</groupId> |
| 210 | <artifactId>spring-context</artifactId> |
| 211 | </dependency> |
| 212 | <dependency> |
| 213 | <groupId>org.slf4j</groupId> |
| 214 | <artifactId>slf4j-api</artifactId> |
| 215 | </dependency> |
| 216 | <dependency> |
| 217 | <groupId>javax.ws.rs</groupId> |
| 218 | <artifactId>javax.ws.rs-api</artifactId> |
| 219 | <version>2.0</version> |
| 220 | </dependency> |
| 221 | <dependency> |
| 222 | <groupId>org.springframework</groupId> |
| 223 | <artifactId>spring-test</artifactId> |
| 224 | </dependency> |
| 225 | <dependency> |
| 226 | <groupId>junit</groupId> |
| 227 | <artifactId>junit</artifactId> |
| 228 | </dependency> |
| 229 | <dependency> |
| 230 | <groupId>org.mockito</groupId> |
| 231 | <artifactId>mockito-all</artifactId> |
| 232 | <version>1.9.5</version> |
| 233 | </dependency> |
| 234 | <dependency> |
| 235 | <groupId>commons-logging</groupId> |
| 236 | <artifactId>commons-logging</artifactId> |
| 237 | <version>1.1.1</version> |
| 238 | </dependency> |
| 239 | <dependency> |
| 240 | <groupId>org.springframework</groupId> |
| 241 | <artifactId>spring-aspects</artifactId> |
| 242 | </dependency> |
| 243 | <dependency> |
| 244 | <groupId>com.fasterxml.jackson.core</groupId> |
| 245 | <artifactId>jackson-core</artifactId> |
| 246 | </dependency> |
| 247 | <dependency> |
| 248 | <groupId>com.fasterxml.jackson.core</groupId> |
| 249 | <artifactId>jackson-databind</artifactId> |
| 250 | </dependency> |
| 251 | <dependency> |
| 252 | <groupId>org.springframework</groupId> |
| 253 | <artifactId>spring-webmvc</artifactId> |
| 254 | </dependency> |
| 255 | <dependency> |
| 256 | <groupId>org.springframework.boot</groupId> |
| 257 | <artifactId>spring-boot-starter-web</artifactId> |
| 258 | </dependency> |
| 259 | <dependency> |
| 260 | <groupId>log4j</groupId> |
| 261 | <artifactId>log4j</artifactId> |
| 262 | <version>1.2.17</version> |
| 263 | </dependency> |
| 264 | <dependency> |
| 265 | <groupId>org.springframework.boot</groupId> |
| 266 | <artifactId>spring-boot</artifactId> |
| 267 | </dependency> |
| 268 | <dependency> |
| 269 | <groupId>org.springframework.boot</groupId> |
| 270 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 271 | </dependency> |
| 272 | <dependency> |
| 273 | <groupId>javax.transaction</groupId> |
| 274 | <artifactId>jta</artifactId> |
| 275 | <version>1.1</version> |
| 276 | </dependency> |
| 277 | <dependency> |
| 278 | <groupId>javax.persistence</groupId> |
| 279 | <artifactId>persistence-api</artifactId> |
| 280 | <version>1.0.2</version> |
| 281 | </dependency> |
| 282 | <dependency> |
| 283 | <groupId>org.hibernate</groupId> |
| 284 | <artifactId>hibernate-annotations</artifactId> |
| 285 | <version>3.5.6-Final</version> |
| 286 | </dependency> |
| 287 | <dependency> |
| 288 | <groupId>org.apache.geronimo.specs</groupId> |
| 289 | <artifactId>geronimo-jpa_2.0_spec</artifactId> |
| 290 | <version>1.1</version> |
| 291 | </dependency> |
| 292 | <dependency> |
| 293 | <groupId>dom4j</groupId> |
| 294 | <artifactId>dom4j</artifactId> |
| 295 | <version>1.6.1</version> |
| 296 | </dependency> |
| 297 | <!-- Dependencies of parent pom end --> |
| 298 | <dependency> |
| 299 | <groupId>com.att.ajsc</groupId> |
| 300 | <artifactId>sdk-java-camel-rest</artifactId> |
| 301 | <version>${sdk.camel.rest}</version> |
| 302 | </dependency> |
| 303 | <dependency> |
| 304 | <groupId>io.swagger</groupId> |
| 305 | <artifactId>swagger-core</artifactId> |
| 306 | <version>1.5.8</version> |
| 307 | </dependency> |
| 308 | <dependency> |
| 309 | <groupId>io.swagger</groupId> |
| 310 | <artifactId>swagger-annotations</artifactId> |
| 311 | <version>1.5.8</version> |
| 312 | </dependency> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 313 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 314 | <!-- Camunda Core --> |
| 315 | <dependency> |
| 316 | <groupId>com.att.ajsc</groupId> |
| 317 | <artifactId>sdk-java-camunda-core</artifactId> |
| 318 | <version>${sdk.camunda.core}</version> |
| 319 | </dependency> |
| 320 | <!-- Spring Mail --> |
| 321 | <dependency> |
| 322 | <groupId>org.springframework</groupId> |
| 323 | <artifactId>spring-context-support</artifactId> |
| 324 | </dependency> |
| 325 | <!-- CSI Logging --> |
| 326 | <dependency> |
| 327 | <groupId>com.att.ajsc</groupId> |
| 328 | <artifactId>sdk-java-common-interceptors</artifactId> |
| 329 | <version>${csi.logging}</version> |
| 330 | <exclusions> |
| 331 | <exclusion> |
| 332 | <groupId>org.eclipse.jetty.orbit</groupId> |
| 333 | <artifactId>javax.servlet</artifactId> |
| 334 | </exclusion> |
| 335 | <exclusion> |
| 336 | <groupId>com.att.ajsc</groupId> |
| 337 | <artifactId>ajsc-core</artifactId> |
| 338 | </exclusion> |
| 339 | </exclusions> |
| 340 | </dependency> |
| 341 | <!-- CSI Logging End --> |
| 342 | <dependency> |
Pamela Dragosh | 1736336 | 2017-08-01 11:07:43 -0400 | [diff] [blame] | 343 | <groupId>org.onap.policy.engine</groupId> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 344 | <artifactId>PolicyEngineAPI</artifactId> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 345 | <version>1.1.0</version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 346 | <exclusions> |
| 347 | <exclusion> |
| 348 | <artifactId>log4j</artifactId> |
| 349 | <groupId>log4j</groupId> |
| 350 | </exclusion> |
| 351 | <exclusion> |
| 352 | <groupId>org.slf4j</groupId> |
| 353 | <artifactId>slf4j-log4j12</artifactId> |
| 354 | </exclusion> |
| 355 | <exclusion> |
| 356 | <artifactId>apache-log4j-extras</artifactId> |
| 357 | <groupId>log4j</groupId> |
| 358 | </exclusion> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 359 | <exclusion> |
| 360 | <artifactId>jackson-databind</artifactId> |
| 361 | <groupId>com.fasterxml.jackson.core</groupId> |
| 362 | </exclusion> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 363 | </exclusions> |
| 364 | </dependency> |
| 365 | <dependency> |
Pamela Dragosh | 1736336 | 2017-08-01 11:07:43 -0400 | [diff] [blame] | 366 | <groupId>org.onap.policy.common</groupId> |
| 367 | <artifactId>ONAP-Logging</artifactId> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 368 | <version>1.1.0</version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 369 | <exclusions> |
| 370 | <exclusion> |
| 371 | <artifactId>log4j</artifactId> |
| 372 | <groupId>log4j</groupId> |
| 373 | </exclusion> |
| 374 | <exclusion> |
| 375 | <groupId>org.slf4j</groupId> |
| 376 | <artifactId>slf4j-log4j12</artifactId> |
| 377 | </exclusion> |
| 378 | <exclusion> |
| 379 | <artifactId>apache-log4j-extras</artifactId> |
| 380 | <groupId>log4j</groupId> |
| 381 | </exclusion> |
| 382 | </exclusions> |
| 383 | </dependency> |
| 384 | <dependency> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 385 | <groupId>org.onap.policy.engine</groupId> |
| 386 | <artifactId>ControlloopPolicy</artifactId> |
| 387 | <version>1.1.0-SNAPSHOT</version> |
| 388 | <exclusions> |
| 389 | <exclusion> |
| 390 | <artifactId>log4j</artifactId> |
| 391 | <groupId>log4j</groupId> |
| 392 | </exclusion> |
| 393 | <exclusion> |
| 394 | <groupId>org.slf4j</groupId> |
| 395 | <artifactId>slf4j-log4j12</artifactId> |
| 396 | </exclusion> |
| 397 | <exclusion> |
| 398 | <artifactId>apache-log4j-extras</artifactId> |
| 399 | <groupId>log4j</groupId> |
| 400 | </exclusion> |
| 401 | </exclusions> |
| 402 | </dependency> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 403 | <dependency> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 404 | <groupId>com.fasterxml.jackson.core</groupId> |
| 405 | <artifactId>jackson-databind</artifactId> |
| 406 | <version>2.6.3</version> |
| 407 | </dependency> |
| 408 | <dependency> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 409 | <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 410 | <artifactId>jackson-dataformat-yaml</artifactId> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 411 | <version>2.6.3</version> |
| 412 | </dependency> |
| 413 | <dependency> |
| 414 | <groupId>org.apache.commons</groupId> |
| 415 | <artifactId>commons-csv</artifactId> |
| 416 | <version>1.3</version> |
| 417 | </dependency> |
| 418 | <dependency> |
| 419 | <groupId>org.jboss.resteasy</groupId> |
| 420 | <artifactId>resteasy-client</artifactId> |
| 421 | <version>3.0.8.Final</version> |
| 422 | </dependency> |
| 423 | <dependency> |
| 424 | <groupId>com.sun.faces</groupId> |
| 425 | <artifactId>jsf-api</artifactId> |
| 426 | <version>2.1.7</version> |
| 427 | </dependency> |
| 428 | <dependency> |
| 429 | <groupId>com.sun.faces</groupId> |
| 430 | <artifactId>jsf-impl</artifactId> |
| 431 | <version>2.1.7</version> |
| 432 | </dependency> |
| 433 | |
| 434 | </dependencies> |
| 435 | |
| 436 | <build> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 437 | <finalName>clamp</finalName> |
| 438 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 439 | <testResources> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 440 | <testResource> |
| 441 | <directory>src/test/resources</directory> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 442 | <excludes> |
| 443 | <exclude>**/*.jks</exclude> |
| 444 | </excludes> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 445 | <filtering>true</filtering> |
| 446 | </testResource> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 447 | <testResource> |
| 448 | <directory>src/test/resources/https</directory> |
| 449 | <includes> |
| 450 | <include>**.jks</include> |
| 451 | </includes> |
| 452 | <filtering>false</filtering> |
| 453 | <targetPath>https</targetPath> |
| 454 | </testResource> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 455 | </testResources> |
| 456 | <resources> |
| 457 | <resource> |
| 458 | <directory>src/main/resources</directory> |
| 459 | <filtering>true</filtering> |
| 460 | </resource> |
| 461 | <resource> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 462 | <directory>src/main/docker</directory> |
| 463 | <includes> |
| 464 | <include>**/*</include> |
| 465 | </includes> |
| 466 | <filtering>true</filtering> |
| 467 | </resource> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 468 | </resources> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 469 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 470 | <plugins> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 471 | <plugin> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 472 | <groupId>org.codehaus.groovy.maven</groupId> |
| 473 | <artifactId>gmaven-plugin</artifactId> |
| 474 | <version>1.0</version> |
| 475 | <executions> |
| 476 | <execution> |
| 477 | <phase>validate</phase> |
| 478 | <goals> |
| 479 | <goal>execute</goal> |
| 480 | </goals> |
| 481 | <configuration> |
| 482 | <source>${project.basedir}/src/main/script/TagVersion.groovy</source> |
| 483 | </configuration> |
| 484 | </execution> |
| 485 | </executions> |
| 486 | </plugin> |
| 487 | <plugin> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 488 | <groupId>org.apache.maven.plugins</groupId> |
| 489 | <artifactId>maven-jar-plugin</artifactId> |
| 490 | <version>3.0.2</version> |
| 491 | <executions> |
| 492 | <execution> |
| 493 | <id>jar-with-only-classes</id> |
| 494 | <phase>package</phase> |
| 495 | <goals> |
| 496 | <goal>jar</goal> |
| 497 | </goals> |
| 498 | <configuration> |
| 499 | <classifier>classes</classifier> |
| 500 | <includes> |
| 501 | <include>org/**</include> |
| 502 | </includes> |
| 503 | </configuration> |
| 504 | </execution> |
| 505 | </executions> |
| 506 | </plugin> |
| 507 | <plugin> |
| 508 | <groupId>com.github.kongchen</groupId> |
| 509 | <artifactId>swagger-maven-plugin</artifactId> |
| 510 | <version>3.1.5</version> |
| 511 | <executions> |
| 512 | <execution> |
| 513 | <phase>compile</phase> |
| 514 | <goals> |
| 515 | <goal>generate</goal> |
| 516 | </goals> |
| 517 | <configuration> |
| 518 | <apiSources> |
| 519 | <apiSource> |
| 520 | <locations> |
| 521 | <location>org.onap.clamp.clds.service</location> |
| 522 | </locations> |
| 523 | <basePath>/</basePath> |
| 524 | <info> |
| 525 | <title>${project.artifactId} Service</title> |
| 526 | <version>${project.version}</version> |
| 527 | </info> |
| 528 | <swaggerDirectory>${project.build.directory}/classes/META-INF/resources/icd</swaggerDirectory> |
| 529 | </apiSource> |
| 530 | </apiSources> |
| 531 | </configuration> |
| 532 | </execution> |
| 533 | </executions> |
| 534 | </plugin> |
| 535 | <plugin> |
| 536 | <groupId>org.codehaus.mojo</groupId> |
| 537 | <artifactId>build-helper-maven-plugin</artifactId> |
| 538 | <version>3.0.0</version> |
| 539 | <executions> |
| 540 | <execution> |
| 541 | <goals> |
| 542 | <goal>attach-artifact</goal> |
| 543 | </goals> |
| 544 | <phase>package</phase> |
| 545 | <configuration> |
| 546 | <artifacts> |
| 547 | <artifact> |
| 548 | <file>${project.build.directory}/clamp-classes.jar</file> |
| 549 | <type>jar</type> |
| 550 | <classifier>classes</classifier> |
| 551 | </artifact> |
| 552 | </artifacts> |
| 553 | </configuration> |
| 554 | </execution> |
| 555 | </executions> |
| 556 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 557 | |
| 558 | <plugin> |
| 559 | <groupId>org.springframework.boot</groupId> |
| 560 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 561 | <version>1.5.3.RELEASE</version> |
| 562 | <executions> |
| 563 | <execution> |
| 564 | <goals> |
| 565 | <goal>repackage</goal> |
| 566 | </goals> |
| 567 | <phase>package</phase> |
| 568 | </execution> |
| 569 | </executions> |
| 570 | </plugin> |
| 571 | <plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 572 | <groupId>org.apache.maven.plugins</groupId> |
| 573 | <artifactId>maven-gpg-plugin</artifactId> |
| 574 | <version>1.5</version> |
| 575 | <configuration> |
| 576 | <skip>true</skip> |
| 577 | </configuration> |
| 578 | <executions> |
| 579 | <execution> |
| 580 | <id>sign-artifacts</id> |
| 581 | <phase>verify</phase> |
| 582 | <goals> |
| 583 | <goal>sign</goal> |
| 584 | </goals> |
| 585 | </execution> |
| 586 | </executions> |
| 587 | </plugin> |
| 588 | <plugin> |
| 589 | <groupId>org.sonatype.plugins</groupId> |
| 590 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 591 | <version>1.6.7</version> |
| 592 | <extensions>true</extensions> |
| 593 | <configuration> |
Determe, Sebastien (sd378r) | c905817 | 2017-08-31 13:43:36 +0200 | [diff] [blame] | 594 | <nexusUrl>https://nexus.onap.org</nexusUrl> |
Determe, Sebastien (sd378r) | a32aaed | 2017-08-09 04:43:29 -0700 | [diff] [blame] | 595 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 596 | <serverId>ecomp-staging</serverId> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 597 | <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo> |
| 598 | </configuration> |
| 599 | </plugin> |
| 600 | <plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 601 | <groupId>com.spotify</groupId> |
| 602 | <artifactId>docker-maven-plugin</artifactId> |
Determe, Sebastien (sd378r) | 3c529b9 | 2017-08-09 06:02:55 -0700 | [diff] [blame] | 603 | <version>1.0.0</version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 604 | <configuration> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 605 | <imageName>onap/clamp</imageName> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 606 | <dockerDirectory>src/main/docker</dockerDirectory> |
| 607 | <serverId>docker-hub</serverId> |
| 608 | <imageTags> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 609 | <imageTag>latest</imageTag> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 610 | <imageTag>${project.docker.latesttagtimestamp.version}</imageTag> |
| 611 | <imageTag>${project.docker.latesttag.version}</imageTag> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 612 | </imageTags> |
| 613 | <forceTags>true</forceTags> |
| 614 | <resources> |
| 615 | <resource> |
| 616 | <targetPath>/</targetPath> |
| 617 | <directory>${project.build.directory}</directory> |
| 618 | <include>${project.build.finalName}.jar</include> |
| 619 | </resource> |
| 620 | <resource> |
| 621 | <targetPath>/</targetPath> |
| 622 | <directory>${project.build.directory}</directory> |
| 623 | <include>etc/config/**</include> |
| 624 | </resource> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 625 | <resource> |
| 626 | <targetPath>/</targetPath> |
| 627 | <directory>${project.build.directory}</directory> |
| 628 | <include>etc/keystore/**</include> |
| 629 | </resource> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 630 | </resources> |
| 631 | </configuration> |
| 632 | <executions> |
| 633 | <execution> |
| 634 | <id>build-image</id> |
| 635 | <phase>package</phase> |
| 636 | <goals> |
| 637 | <goal>build</goal> |
| 638 | </goals> |
| 639 | <configuration> |
| 640 | <skipDockerBuild>${skip.docker.build}</skipDockerBuild> |
| 641 | <buildArgs> |
| 642 | <http_proxy>${env.HTTP_PROXY}</http_proxy> |
| 643 | <https_proxy>${env.HTTPS_PROXY}</https_proxy> |
| 644 | </buildArgs> |
| 645 | </configuration> |
| 646 | </execution> |
| 647 | <execution> |
Determe, Sebastien (sd378r) | a32aaed | 2017-08-09 04:43:29 -0700 | [diff] [blame] | 648 | <id>tag-image</id> |
| 649 | <phase>package</phase> |
| 650 | <goals> |
| 651 | <goal>tag</goal> |
| 652 | </goals> |
| 653 | <configuration> |
| 654 | <image>onap/clamp</image> |
| 655 | <newName>${docker.push.registry}/onap/clamp</newName> |
Determe, Sebastien (sd378r) | d604f2e | 2017-08-09 05:53:56 -0700 | [diff] [blame] | 656 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
Determe, Sebastien (sd378r) | a32aaed | 2017-08-09 04:43:29 -0700 | [diff] [blame] | 657 | </configuration> |
| 658 | </execution> |
Determe, Sebastien (sd378r) | 29ed4a9 | 2017-08-09 04:12:39 -0700 | [diff] [blame] | 659 | <execution> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 660 | <id>push-image</id> |
| 661 | <phase>deploy</phase> |
| 662 | <goals> |
| 663 | <goal>push</goal> |
| 664 | </goals> |
| 665 | <configuration> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 666 | <imageName>${docker.push.registry}/onap/clamp</imageName> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 667 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 668 | </configuration> |
| 669 | </execution> |
| 670 | </executions> |
| 671 | </plugin> |
| 672 | <plugin> |
| 673 | <groupId>org.apache.maven.plugins</groupId> |
| 674 | <artifactId>maven-surefire-plugin</artifactId> |
| 675 | <version>2.19.1</version> |
| 676 | <configuration> |
| 677 | <forkCount>1</forkCount> |
| 678 | <reuseForks>false</reuseForks> |
| 679 | </configuration> |
| 680 | </plugin> |
| 681 | |
| 682 | <plugin> |
| 683 | <groupId>org.apache.maven.plugins</groupId> |
| 684 | <artifactId>maven-failsafe-plugin</artifactId> |
| 685 | <version>2.16</version> |
| 686 | |
| 687 | <executions> |
| 688 | <execution> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 689 | <id>integration-tests</id> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 690 | <goals> |
| 691 | <goal>integration-test</goal> |
| 692 | <goal>verify</goal> |
| 693 | </goals> |
| 694 | <configuration> |
| 695 | <forkCount>1</forkCount> |
| 696 | <reuseForks>false</reuseForks> |
| 697 | </configuration> |
| 698 | </execution> |
| 699 | </executions> |
| 700 | |
| 701 | </plugin> |
| 702 | <plugin> |
| 703 | <groupId>io.fabric8</groupId> |
| 704 | <artifactId>docker-maven-plugin</artifactId> |
| 705 | <version>0.16.5</version> |
| 706 | <configuration> |
| 707 | <verbose>true</verbose> |
| 708 | <apiVersion>1.23</apiVersion> |
| 709 | <images> |
| 710 | <image> |
| 711 | <name>mariadb:10.1.11</name> |
| 712 | <alias>mariadb</alias> |
| 713 | <run> |
| 714 | <env> |
| 715 | <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD> |
| 716 | </env> |
| 717 | <hostname>mariadb</hostname> |
| 718 | <volumes> |
| 719 | <bind> |
| 720 | <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume> |
| 721 | <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume> |
| 722 | </bind> |
| 723 | </volumes> |
| 724 | <wait> |
| 725 | <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log> |
ChrisC | 6c9759e | 2017-08-30 01:13:58 -0700 | [diff] [blame] | 726 | <time>600000</time> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 727 | </wait> |
| 728 | <ports> |
| 729 | <port>${docker.mariadb.port.host}:3306</port> |
| 730 | </ports> |
| 731 | </run> |
| 732 | </image> |
| 733 | </images> |
| 734 | </configuration> |
| 735 | |
| 736 | <executions> |
| 737 | <execution> |
| 738 | <id>mariadb-start-for-it</id> |
| 739 | <phase>pre-integration-test</phase> |
| 740 | <goals> |
| 741 | <goal>start</goal> |
| 742 | </goals> |
| 743 | <configuration> |
| 744 | <skip>${skipITs}</skip> |
| 745 | </configuration> |
| 746 | </execution> |
| 747 | <execution> |
| 748 | <id>mariadb-stop-for-it</id> |
| 749 | <phase>post-integration-test</phase> |
| 750 | <goals> |
| 751 | <goal>stop</goal> |
| 752 | </goals> |
| 753 | <configuration> |
| 754 | <skip>${skipITs}</skip> |
| 755 | </configuration> |
| 756 | </execution> |
| 757 | </executions> |
| 758 | </plugin> |
| 759 | |
| 760 | <plugin> |
| 761 | <groupId>org.jacoco</groupId> |
| 762 | <artifactId>jacoco-maven-plugin</artifactId> |
| 763 | <version>0.7.7.201606060606</version> |
| 764 | <configuration> |
| 765 | <dumpOnExit>true</dumpOnExit> |
| 766 | <includes> |
| 767 | <include>org.onap.clamp.*</include> |
| 768 | </includes> |
| 769 | </configuration> |
| 770 | <executions> |
| 771 | <execution> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 772 | <id>pre-unit-test</id> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 773 | <goals> |
| 774 | <goal>prepare-agent</goal> |
| 775 | </goals> |
| 776 | <configuration> |
| 777 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 778 | <!-- <append>true</append> --> |
| 779 | </configuration> |
| 780 | </execution> |
| 781 | <execution> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 782 | <id>pre-integration-test</id> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 783 | <phase>pre-integration-test</phase> |
| 784 | <goals> |
| 785 | <goal>prepare-agent</goal> |
| 786 | </goals> |
| 787 | <configuration> |
| 788 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 789 | <!-- <append>true</append> --> |
| 790 | </configuration> |
| 791 | </execution> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 792 | <execution> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 793 | <goals> |
| 794 | <goal>merge</goal> |
| 795 | </goals> |
| 796 | <phase>post-integration-test</phase> |
| 797 | <configuration> |
| 798 | <fileSets> |
| 799 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 800 | <directory>${project.build.directory}/coverage-reports</directory> |
| 801 | <includes> |
| 802 | <include>*.exec</include> |
| 803 | </includes> |
| 804 | </fileSet> |
| 805 | </fileSets> |
| 806 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile> |
| 807 | </configuration> |
| 808 | </execution> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 809 | </executions> |
| 810 | </plugin> |
| 811 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 812 | <!-- This plugin will be useful when we will have multi-modules project --> |
| 813 | <plugin> |
| 814 | <groupId>org.codehaus.mojo</groupId> |
| 815 | <artifactId>versions-maven-plugin</artifactId> |
| 816 | <version>1.3.1</version> |
| 817 | </plugin> |
| 818 | </plugins> |
| 819 | </build> |
| 820 | <profiles> |
| 821 | <profile> |
| 822 | <id>docker</id> |
| 823 | <properties> |
| 824 | <skip.staging.artifacts>true</skip.staging.artifacts> |
| 825 | <skip.docker.build>false</skip.docker.build> |
Determe, Sebastien (sd378r) | b1cc5ba | 2017-08-31 17:23:57 +0200 | [diff] [blame^] | 826 | <skip.docker.tag>true</skip.docker.tag> |
| 827 | <skip.docker.push>true</skip.docker.push> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 828 | </properties> |
| 829 | </profile> |
| 830 | </profiles> |
| 831 | </project> |