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