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" |
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> |
| 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) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 39 | <description> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 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) | 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) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 57 | </description> |
| 58 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 59 | <properties> |
| 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> |
| 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> |
| 69 | <sdk.java.common.logging>0.0.3-oss</sdk.java.common.logging> |
| 70 | <project.scm.id>git-server</project.scm.id> |
| 71 | <java.version>1.8</java.version> |
| 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 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 83 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 84 | <docker.push.registry>localhost:5000</docker.push.registry> |
| 85 | <skip.docker.build>true</skip.docker.build> |
| 86 | <skip.docker.push>true</skip.docker.push> |
| 87 | <skip.staging.artifacts>false</skip.staging.artifacts> |
| 88 | </properties> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 89 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 90 | <distributionManagement> |
| 91 | <repository> |
| 92 | <id>ecomp-releases</id> |
| 93 | <name>Clamp Release Repository</name> |
| 94 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 95 | </repository> |
| 96 | <snapshotRepository> |
| 97 | <id>ecomp-snapshots</id> |
| 98 | <name>Clamp Snapshot Repository</name> |
| 99 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 100 | </snapshotRepository> |
| 101 | <site> |
| 102 | <id>ecomp-site</id> |
| 103 | <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url> |
| 104 | </site> |
| 105 | </distributionManagement> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 106 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 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> |
| 114 | <id>ecomp-releases</id> |
| 115 | <name>ONAP Release Repository</name> |
| 116 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 117 | </repository> |
| 118 | <repository> |
| 119 | <id>ecomp-staging</id> |
| 120 | <name>ONAP Staging Repository</name> |
| 121 | <url>https://nexus.onap.org/content/repositories/staging/</url> |
| 122 | </repository> |
| 123 | <repository> |
| 124 | <id>ecomp-snapshots</id> |
| 125 | <name>ONAP Snapshot Repository</name> |
| 126 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 127 | <snapshots> |
| 128 | <enabled>true</enabled> |
| 129 | </snapshots> |
| 130 | <releases> |
| 131 | <enabled>false</enabled> |
| 132 | </releases> |
| 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> |
| 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> |
| 143 | </repository> |
| 144 | </repositories> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 145 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [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> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 158 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 159 | <dependencies> |
| 160 | <dependency> |
| 161 | <groupId>commons-io</groupId> |
| 162 | <artifactId>commons-io</artifactId> |
| 163 | <version>2.6</version> |
| 164 | </dependency> |
| 165 | <dependency> |
| 166 | <groupId>com.googlecode.json-simple</groupId> |
| 167 | <artifactId>json-simple</artifactId> |
| 168 | <version>1.1</version> |
| 169 | </dependency> |
| 170 | <dependency> |
| 171 | <groupId>org.apache.commons</groupId> |
| 172 | <artifactId>commons-vfs2</artifactId> |
| 173 | <version>2.0</version> |
| 174 | </dependency> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 175 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 176 | <dependency> |
| 177 | <groupId>org.springframework.security</groupId> |
| 178 | <artifactId>spring-security-test</artifactId> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 179 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 180 | <scope>test</scope> |
| 181 | </dependency> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 182 | |
| 183 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 184 | <!-- Dependencies of parent pom start --> |
| 185 | <dependency> |
| 186 | <groupId>com.att.ajsc</groupId> |
| 187 | <artifactId>sdk-java-common-logging</artifactId> |
| 188 | <version>${sdk.java.common.logging}</version> |
| 189 | </dependency> |
| 190 | <dependency> |
| 191 | <groupId>org.springframework.boot</groupId> |
| 192 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 193 | <scope>compile</scope> |
| 194 | </dependency> |
| 195 | <dependency> |
| 196 | <groupId>org.springframework.boot</groupId> |
| 197 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>org.springframework.boot</groupId> |
| 201 | <artifactId>spring-boot-starter-security</artifactId> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>org.springframework.boot</groupId> |
| 205 | <artifactId>spring-boot-starter-test</artifactId> |
| 206 | <scope>test</scope> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>joda-time</groupId> |
| 210 | <artifactId>joda-time</artifactId> |
| 211 | </dependency> |
| 212 | <dependency> |
| 213 | <groupId>org.springframework</groupId> |
| 214 | <artifactId>spring-context</artifactId> |
| 215 | </dependency> |
| 216 | <dependency> |
| 217 | <groupId>org.slf4j</groupId> |
| 218 | <artifactId>slf4j-api</artifactId> |
| 219 | </dependency> |
| 220 | <dependency> |
| 221 | <groupId>javax.ws.rs</groupId> |
| 222 | <artifactId>javax.ws.rs-api</artifactId> |
| 223 | <version>2.0</version> |
| 224 | </dependency> |
| 225 | <dependency> |
| 226 | <groupId>org.springframework</groupId> |
| 227 | <artifactId>spring-test</artifactId> |
| 228 | </dependency> |
| 229 | <dependency> |
| 230 | <groupId>junit</groupId> |
| 231 | <artifactId>junit</artifactId> |
| 232 | </dependency> |
| 233 | <dependency> |
| 234 | <groupId>org.mockito</groupId> |
| 235 | <artifactId>mockito-all</artifactId> |
| 236 | <version>1.9.5</version> |
| 237 | </dependency> |
| 238 | <dependency> |
| 239 | <groupId>commons-logging</groupId> |
| 240 | <artifactId>commons-logging</artifactId> |
| 241 | <version>1.1.1</version> |
| 242 | </dependency> |
| 243 | <dependency> |
| 244 | <groupId>org.springframework</groupId> |
| 245 | <artifactId>spring-aspects</artifactId> |
| 246 | </dependency> |
| 247 | <dependency> |
| 248 | <groupId>com.fasterxml.jackson.core</groupId> |
| 249 | <artifactId>jackson-core</artifactId> |
| 250 | </dependency> |
| 251 | <dependency> |
| 252 | <groupId>com.fasterxml.jackson.core</groupId> |
| 253 | <artifactId>jackson-databind</artifactId> |
| 254 | </dependency> |
| 255 | <dependency> |
| 256 | <groupId>org.springframework</groupId> |
| 257 | <artifactId>spring-webmvc</artifactId> |
| 258 | </dependency> |
| 259 | <dependency> |
| 260 | <groupId>org.springframework.boot</groupId> |
| 261 | <artifactId>spring-boot-starter-web</artifactId> |
| 262 | </dependency> |
| 263 | <dependency> |
| 264 | <groupId>log4j</groupId> |
| 265 | <artifactId>log4j</artifactId> |
| 266 | <version>1.2.17</version> |
| 267 | </dependency> |
| 268 | <dependency> |
| 269 | <groupId>org.springframework.boot</groupId> |
| 270 | <artifactId>spring-boot</artifactId> |
| 271 | </dependency> |
| 272 | <dependency> |
| 273 | <groupId>org.springframework.boot</groupId> |
| 274 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 275 | </dependency> |
| 276 | <dependency> |
| 277 | <groupId>javax.transaction</groupId> |
| 278 | <artifactId>jta</artifactId> |
| 279 | <version>1.1</version> |
| 280 | </dependency> |
| 281 | <dependency> |
| 282 | <groupId>javax.persistence</groupId> |
| 283 | <artifactId>persistence-api</artifactId> |
| 284 | <version>1.0.2</version> |
| 285 | </dependency> |
| 286 | <dependency> |
| 287 | <groupId>org.hibernate</groupId> |
| 288 | <artifactId>hibernate-annotations</artifactId> |
| 289 | <version>3.5.6-Final</version> |
| 290 | </dependency> |
| 291 | <dependency> |
| 292 | <groupId>org.apache.geronimo.specs</groupId> |
| 293 | <artifactId>geronimo-jpa_2.0_spec</artifactId> |
| 294 | <version>1.1</version> |
| 295 | </dependency> |
| 296 | <dependency> |
| 297 | <groupId>dom4j</groupId> |
| 298 | <artifactId>dom4j</artifactId> |
| 299 | <version>1.6.1</version> |
| 300 | </dependency> |
| 301 | <!-- Dependencies of parent pom end --> |
| 302 | <dependency> |
| 303 | <groupId>com.att.ajsc</groupId> |
| 304 | <artifactId>sdk-java-camel-rest</artifactId> |
| 305 | <version>${sdk.camel.rest}</version> |
| 306 | </dependency> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 307 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 308 | <!-- Camunda Core --> |
| 309 | <dependency> |
| 310 | <groupId>com.att.ajsc</groupId> |
| 311 | <artifactId>sdk-java-camunda-core</artifactId> |
| 312 | <version>${sdk.camunda.core}</version> |
| 313 | <exclusions> |
| 314 | <exclusion> |
| 315 | <groupId>mysql</groupId> |
| 316 | <artifactId>mysql-connector-java</artifactId> |
| 317 | </exclusion> |
| 318 | </exclusions> |
| 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> |
| 343 | <groupId>org.onap.policy.engine</groupId> |
| 344 | <artifactId>PolicyEngineAPI</artifactId> |
| 345 | <version>1.1.0</version> |
| 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> |
| 359 | <exclusion> |
| 360 | <artifactId>jackson-databind</artifactId> |
| 361 | <groupId>com.fasterxml.jackson.core</groupId> |
| 362 | </exclusion> |
| 363 | <exclusion> |
| 364 | <groupId>mysql</groupId> |
| 365 | <artifactId>mysql-connector-java</artifactId> |
| 366 | </exclusion> |
| 367 | </exclusions> |
| 368 | </dependency> |
| 369 | <dependency> |
| 370 | <groupId>org.onap.policy.common</groupId> |
| 371 | <artifactId>ONAP-Logging</artifactId> |
| 372 | <version>1.1.0</version> |
| 373 | <exclusions> |
| 374 | <exclusion> |
| 375 | <artifactId>log4j</artifactId> |
| 376 | <groupId>log4j</groupId> |
| 377 | </exclusion> |
| 378 | <exclusion> |
| 379 | <groupId>org.slf4j</groupId> |
| 380 | <artifactId>slf4j-log4j12</artifactId> |
| 381 | </exclusion> |
| 382 | <exclusion> |
| 383 | <artifactId>apache-log4j-extras</artifactId> |
| 384 | <groupId>log4j</groupId> |
| 385 | </exclusion> |
| 386 | </exclusions> |
| 387 | </dependency> |
| 388 | <dependency> |
| 389 | <groupId>org.onap.policy.engine</groupId> |
| 390 | <artifactId>PolicyEngineUtils</artifactId> |
| 391 | <version>1.1.0</version> |
| 392 | <exclusions> |
| 393 | <exclusion> |
| 394 | <artifactId>log4j</artifactId> |
| 395 | <groupId>log4j</groupId> |
| 396 | </exclusion> |
| 397 | <exclusion> |
| 398 | <groupId>org.slf4j</groupId> |
| 399 | <artifactId>slf4j-log4j12</artifactId> |
| 400 | </exclusion> |
| 401 | <exclusion> |
| 402 | <artifactId>apache-log4j-extras</artifactId> |
| 403 | <groupId>log4j</groupId> |
| 404 | </exclusion> |
| 405 | </exclusions> |
| 406 | </dependency> |
| 407 | <dependency> |
| 408 | <groupId>org.onap.policy.drools-applications</groupId> |
| 409 | <artifactId>policy-yaml</artifactId> |
| 410 | <version>1.1.0</version> |
| 411 | <exclusions> |
| 412 | <exclusion> |
| 413 | <artifactId>log4j</artifactId> |
| 414 | <groupId>log4j</groupId> |
| 415 | </exclusion> |
| 416 | <exclusion> |
| 417 | <groupId>org.slf4j</groupId> |
| 418 | <artifactId>slf4j-log4j12</artifactId> |
| 419 | </exclusion> |
| 420 | <exclusion> |
| 421 | <artifactId>apache-log4j-extras</artifactId> |
| 422 | <groupId>log4j</groupId> |
| 423 | </exclusion> |
| 424 | </exclusions> |
| 425 | </dependency> |
| 426 | <dependency> |
| 427 | <groupId>org.onap.policy.drools-applications</groupId> |
| 428 | <artifactId>sdc</artifactId> |
| 429 | <version>1.1.0</version> |
| 430 | <exclusions> |
| 431 | <exclusion> |
| 432 | <artifactId>log4j</artifactId> |
| 433 | <groupId>log4j</groupId> |
| 434 | </exclusion> |
| 435 | <exclusion> |
| 436 | <groupId>org.slf4j</groupId> |
| 437 | <artifactId>slf4j-log4j12</artifactId> |
| 438 | </exclusion> |
| 439 | <exclusion> |
| 440 | <artifactId>apache-log4j-extras</artifactId> |
| 441 | <groupId>log4j</groupId> |
| 442 | </exclusion> |
| 443 | </exclusions> |
| 444 | </dependency> |
| 445 | <dependency> |
| 446 | <groupId>org.onap.policy.drools-applications</groupId> |
| 447 | <artifactId>aai</artifactId> |
| 448 | <version>1.1.0</version> |
| 449 | <exclusions> |
| 450 | <exclusion> |
| 451 | <artifactId>log4j</artifactId> |
| 452 | <groupId>log4j</groupId> |
| 453 | </exclusion> |
| 454 | <exclusion> |
| 455 | <groupId>org.slf4j</groupId> |
| 456 | <artifactId>slf4j-log4j12</artifactId> |
| 457 | </exclusion> |
| 458 | <exclusion> |
| 459 | <artifactId>apache-log4j-extras</artifactId> |
| 460 | <groupId>log4j</groupId> |
| 461 | </exclusion> |
| 462 | </exclusions> |
| 463 | </dependency> |
| 464 | <dependency> |
| 465 | <groupId>com.fasterxml.jackson.core</groupId> |
| 466 | <artifactId>jackson-databind</artifactId> |
| 467 | <version>2.6.3</version> |
| 468 | </dependency> |
| 469 | <dependency> |
| 470 | <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 471 | <artifactId>jackson-dataformat-yaml</artifactId> |
| 472 | <version>2.6.3</version> |
| 473 | </dependency> |
| 474 | <dependency> |
| 475 | <groupId>org.apache.commons</groupId> |
| 476 | <artifactId>commons-csv</artifactId> |
| 477 | <version>1.3</version> |
| 478 | </dependency> |
| 479 | <dependency> |
| 480 | <groupId>org.jboss.resteasy</groupId> |
| 481 | <artifactId>resteasy-client</artifactId> |
| 482 | <version>3.0.8.Final</version> |
| 483 | </dependency> |
| 484 | <dependency> |
| 485 | <groupId>com.sun.faces</groupId> |
| 486 | <artifactId>jsf-api</artifactId> |
| 487 | <version>2.1.7</version> |
| 488 | </dependency> |
| 489 | <dependency> |
| 490 | <groupId>com.sun.faces</groupId> |
| 491 | <artifactId>jsf-impl</artifactId> |
| 492 | <version>2.1.7</version> |
| 493 | </dependency> |
| 494 | <!-- Remove the MYSQL connector and replace it by Mariadb --> |
| 495 | <dependency> |
| 496 | <groupId>org.mariadb.jdbc</groupId> |
| 497 | <artifactId>mariadb-java-client</artifactId> |
| 498 | <version>2.1.1</version> |
| 499 | </dependency> |
| 500 | </dependencies> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 501 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 502 | <build> |
| 503 | <finalName>clamp</finalName> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 504 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 505 | <testResources> |
| 506 | <testResource> |
| 507 | <directory>src/test/resources</directory> |
| 508 | <excludes> |
| 509 | <exclude>**/*.jks</exclude> |
| 510 | </excludes> |
| 511 | <filtering>true</filtering> |
| 512 | </testResource> |
| 513 | <testResource> |
| 514 | <directory>src/test/resources/https</directory> |
| 515 | <includes> |
| 516 | <include>**.jks</include> |
| 517 | </includes> |
| 518 | <filtering>false</filtering> |
| 519 | <targetPath>https</targetPath> |
| 520 | </testResource> |
| 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> |
| 599 | <version>1.5.3.RELEASE</version> |
| 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> |
ChrisC | ae04cf3 | 2018-02-05 05:21:59 -0800 | [diff] [blame] | 797 | <time>1200000</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> |
| 804 | </images> |
| 805 | <skip>${skipITs}</skip> |
| 806 | </configuration> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 807 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 808 | <executions> |
| 809 | <execution> |
| 810 | <id>mariadb-start-for-it</id> |
| 811 | <phase>pre-integration-test</phase> |
| 812 | <goals> |
| 813 | <goal>start</goal> |
| 814 | </goals> |
| 815 | <configuration> |
| 816 | <skip>${skipITs}</skip> |
| 817 | </configuration> |
| 818 | </execution> |
| 819 | <execution> |
| 820 | <id>mariadb-stop-for-it</id> |
| 821 | <phase>post-integration-test</phase> |
| 822 | <goals> |
| 823 | <goal>stop</goal> |
| 824 | </goals> |
| 825 | <configuration> |
| 826 | <skip>${skipITs}</skip> |
| 827 | </configuration> |
| 828 | </execution> |
| 829 | </executions> |
| 830 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 831 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 832 | <plugin> |
| 833 | <groupId>org.jacoco</groupId> |
| 834 | <artifactId>jacoco-maven-plugin</artifactId> |
| 835 | <version>0.7.7.201606060606</version> |
| 836 | <configuration> |
| 837 | <dumpOnExit>true</dumpOnExit> |
| 838 | <includes> |
| 839 | <include>org.onap.clamp.*</include> |
| 840 | </includes> |
| 841 | </configuration> |
| 842 | <executions> |
| 843 | <execution> |
| 844 | <id>pre-unit-test</id> |
| 845 | <goals> |
| 846 | <goal>prepare-agent</goal> |
| 847 | </goals> |
| 848 | <configuration> |
| 849 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 850 | <!-- <append>true</append> --> |
| 851 | </configuration> |
| 852 | </execution> |
| 853 | <execution> |
| 854 | <id>pre-integration-test</id> |
| 855 | <phase>pre-integration-test</phase> |
| 856 | <goals> |
| 857 | <goal>prepare-agent</goal> |
| 858 | </goals> |
| 859 | <configuration> |
| 860 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 861 | <!-- <append>true</append> --> |
| 862 | </configuration> |
| 863 | </execution> |
| 864 | <execution> |
| 865 | <goals> |
| 866 | <goal>merge</goal> |
| 867 | </goals> |
| 868 | <phase>post-integration-test</phase> |
| 869 | <configuration> |
| 870 | <fileSets> |
| 871 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 872 | <directory>${project.build.directory}/coverage-reports</directory> |
| 873 | <includes> |
| 874 | <include>*.exec</include> |
| 875 | </includes> |
| 876 | </fileSet> |
| 877 | </fileSets> |
| 878 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile> |
| 879 | </configuration> |
| 880 | </execution> |
| 881 | </executions> |
| 882 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 883 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 884 | <!-- This plugin will be useful when we will have multi-modules project --> |
| 885 | <plugin> |
| 886 | <groupId>org.codehaus.mojo</groupId> |
| 887 | <artifactId>versions-maven-plugin</artifactId> |
| 888 | <version>1.3.1</version> |
| 889 | </plugin> |
| 890 | </plugins> |
| 891 | </build> |
| 892 | <profiles> |
| 893 | <profile> |
| 894 | <id>docker</id> |
| 895 | <properties> |
| 896 | <skip.staging.artifacts>true</skip.staging.artifacts> |
| 897 | <skip.docker.build>false</skip.docker.build> |
| 898 | <skip.docker.tag>false</skip.docker.tag> |
| 899 | <skip.docker.push>false</skip.docker.push> |
| 900 | </properties> |
| 901 | </profile> |
| 902 | </profiles> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 903 | </project> |