ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ONAP CLAMP |
| 5 | ================================================================================ |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 6 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 7 | reserved. |
| 8 | ================================================================================ |
| 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | you may not use this file except in compliance with the License. |
| 11 | You may obtain a copy of the License at |
ChrisC | 6c9759e | 2017-08-30 01:13:58 -0700 | [diff] [blame] | 12 | |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 13 | http://www.apache.org/licenses/LICENSE-2.0 |
ChrisC | 6c9759e | 2017-08-30 01:13:58 -0700 | [diff] [blame] | 14 | |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 15 | Unless required by applicable law or agreed to in writing, software |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 20 | ============LICENSE_END============================================ |
| 21 | =================================================================== |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 22 | --> |
| 23 | |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 24 | <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] | 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <groupId>org.onap.clamp</groupId> |
| 28 | <artifactId>clds</artifactId> |
Determe, Sebastien (sd378r) | d0a7a54 | 2018-05-18 14:53:16 +0200 | [diff] [blame] | 29 | <version>2.0.1-SNAPSHOT</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 30 | <name>clamp</name> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 31 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 32 | <parent> |
| 33 | <groupId>org.onap.oparent</groupId> |
| 34 | <artifactId>oparent</artifactId> |
Determe, Sebastien (sd378r) | b3737db | 2018-03-15 10:43:48 +0100 | [diff] [blame] | 35 | <version>1.1.0</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 36 | </parent> |
Determe, Sebastien (sd378r) | a66fe45 | 2017-08-08 06:42:49 -0700 | [diff] [blame] | 37 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 38 | <description> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 39 | This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part. |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 40 | |
| 41 | By Default "mvn clean install" command will execute also the unit tests |
| 42 | and the integration tests. The integration tests require a docker engine running. |
| 43 | |
Determe, Sebastien (sd378r) | 08b9492 | 2018-03-27 10:25:41 +0200 | [diff] [blame] | 44 | If you want to skip the integration test you can by doing: |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 45 | "mvn clean install -DskipITs=true" |
| 46 | |
| 47 | For Spring it's possible to specify the application.properties location |
| 48 | "mvn clean install -Dspring.config.location=classpath:application-test.properties" |
| 49 | |
| 50 | The application.properties contains the location of the CLAMP parameters files: |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 51 | - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json |
| 52 | - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties |
ChrisC | ae04cf3 | 2018-02-05 05:21:59 -0800 | [diff] [blame] | 53 | |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 54 | </description> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 55 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 56 | <properties> |
Jessica Wagantall | 0a689de | 2018-04-04 18:29:29 -0700 | [diff] [blame] | 57 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 58 | <clamp.project.version>${project.version}</clamp.project.version> |
| 59 | <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp> |
| 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> |
| 63 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 64 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 65 | <docker.mariadb.port.host>3306</docker.mariadb.port.host> |
Determe, Sebastien (sd378r) | 378d05b | 2018-03-23 14:46:56 +0100 | [diff] [blame] | 66 | <docker.http-cache.port.host>8085</docker.http-cache.port.host> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 67 | <project.scm.id>git-server</project.scm.id> |
| 68 | <java.version>1.8</java.version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 69 | |
Bertozzi, Julien (jb379x) | 009f713 | 2018-03-08 15:53:57 -0500 | [diff] [blame] | 70 | <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version> |
| 71 | <guava.version>20.0</guava.version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 72 | <eelf.core.version>1.0.0</eelf.core.version> |
| 73 | <camel.version>2.20.1</camel.version> |
Determe, Sebastien (sd378r) | 4e2bcb2 | 2018-04-25 10:43:39 +0200 | [diff] [blame] | 74 | <springboot.version>1.5.12.RELEASE</springboot.version> |
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> |
Determe, Sebastien (sd378r) | 885d7c1 | 2018-04-09 17:56:53 +0200 | [diff] [blame] | 88 | <python.http.proxy.param></python.http.proxy.param> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 89 | </properties> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 90 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 91 | <distributionManagement> |
| 92 | <repository> |
| 93 | <id>ecomp-releases</id> |
| 94 | <name>Clamp Release Repository</name> |
| 95 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 96 | </repository> |
| 97 | <snapshotRepository> |
| 98 | <id>ecomp-snapshots</id> |
| 99 | <name>Clamp Snapshot Repository</name> |
| 100 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 101 | </snapshotRepository> |
| 102 | <site> |
| 103 | <id>ecomp-site</id> |
| 104 | <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url> |
| 105 | </site> |
| 106 | </distributionManagement> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 107 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 108 | <repositories> |
| 109 | <repository> |
| 110 | <id>central</id> |
| 111 | <name>Maven 2 repository 2</name> |
| 112 | <url>http://repo2.maven.org/maven2/</url> |
| 113 | </repository> |
| 114 | <repository> |
| 115 | <id>ecomp-releases</id> |
| 116 | <name>ONAP Release Repository</name> |
| 117 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 118 | </repository> |
| 119 | <repository> |
| 120 | <id>ecomp-staging</id> |
| 121 | <name>ONAP Staging Repository</name> |
| 122 | <url>https://nexus.onap.org/content/repositories/staging/</url> |
| 123 | </repository> |
| 124 | <repository> |
| 125 | <id>ecomp-snapshots</id> |
| 126 | <name>ONAP Snapshot Repository</name> |
| 127 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 128 | <snapshots> |
| 129 | <enabled>true</enabled> |
| 130 | </snapshots> |
| 131 | <releases> |
| 132 | <enabled>false</enabled> |
| 133 | </releases> |
| 134 | </repository> |
| 135 | <repository> |
| 136 | <id>spring-repo</id> |
| 137 | <name>Spring repo</name> |
| 138 | <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url> |
| 139 | </repository> |
| 140 | <repository> |
| 141 | <id>repository.jboss.org-public</id> |
| 142 | <name>JBoss.org Maven repository</name> |
| 143 | <url>https://repository.jboss.org/nexus/content/groups/public</url> |
| 144 | </repository> |
xg353y | 2aad6d6 | 2018-05-18 17:59:06 +0200 | [diff] [blame] | 145 | <repository> |
| 146 | <id>jcentral</id> |
| 147 | <name>bintray</name> |
| 148 | <url>http://jcenter.bintray.com</url> |
| 149 | <snapshots> |
| 150 | <enabled>false</enabled> |
| 151 | </snapshots> |
| 152 | </repository> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 153 | </repositories> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 154 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 155 | <dependencyManagement> |
| 156 | <dependencies> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 157 | <!-- Spring Boot BOM --> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 158 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 159 | <groupId>org.springframework.boot</groupId> |
| 160 | <artifactId>spring-boot-dependencies</artifactId> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 161 | <version>${springboot.version}</version> |
| 162 | <type>pom</type> |
| 163 | <scope>import</scope> |
| 164 | </dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 165 | <!-- Camel BOM --> |
| 166 | <dependency> |
| 167 | <groupId>org.apache.camel</groupId> |
| 168 | <artifactId>camel-spring-boot-dependencies</artifactId> |
| 169 | <version>${camel.version}</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 170 | <type>pom</type> |
| 171 | <scope>import</scope> |
| 172 | </dependency> |
| 173 | </dependencies> |
| 174 | </dependencyManagement> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 175 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 176 | <dependencies> |
| 177 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 178 | <groupId>com.att.eelf</groupId> |
| 179 | <artifactId>eelf-core</artifactId> |
| 180 | <version>${eelf.core.version}</version> |
| 181 | </dependency> |
| 182 | <!-- For CAMEL --> |
| 183 | <dependency> |
| 184 | <groupId>org.apache.camel</groupId> |
| 185 | <artifactId>camel-spring-boot-starter</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 186 | </dependency> |
| 187 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 188 | <groupId>org.apache.camel</groupId> |
| 189 | <artifactId>camel-jaxb-starter</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 190 | </dependency> |
| 191 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 192 | <groupId>org.apache.camel</groupId> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 193 | <artifactId>camel-servlet-starter</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 194 | </dependency> |
Determe, Sebastien (sd378r) | f785516 | 2018-04-27 14:02:39 +0200 | [diff] [blame] | 195 | <dependency> |
| 196 | <groupId>javax.xml.bind</groupId> |
| 197 | <artifactId>jaxb-api</artifactId> |
| 198 | <version>2.3.0</version> |
| 199 | </dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 200 | <!-- Spring famework --> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 201 | <dependency> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 202 | <groupId>org.springframework.boot</groupId> |
| 203 | <artifactId>spring-boot-starter-web</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 204 | </dependency> |
| 205 | <dependency> |
| 206 | <groupId>org.springframework.boot</groupId> |
| 207 | <artifactId>spring-boot-starter-tomcat</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 208 | </dependency> |
| 209 | <dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 210 | <groupId>com.paypal.springboot</groupId> |
| 211 | <artifactId>resteasy-spring-boot-starter</artifactId> |
| 212 | <version>2.3.4-RELEASE</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 213 | </dependency> |
| 214 | <dependency> |
| 215 | <groupId>org.springframework</groupId> |
| 216 | <artifactId>spring-jdbc</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 217 | </dependency> |
| 218 | <dependency> |
| 219 | <groupId>org.springframework.boot</groupId> |
| 220 | <artifactId>spring-boot-starter-security</artifactId> |
| 221 | </dependency> |
| 222 | <dependency> |
| 223 | <groupId>org.springframework.boot</groupId> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 224 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 225 | </dependency> |
| 226 | <dependency> |
| 227 | <groupId>org.springframework.boot</groupId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 228 | <artifactId>spring-boot-starter-test</artifactId> |
| 229 | <scope>test</scope> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 230 | <exclusions> |
| 231 | <exclusion> |
| 232 | <groupId>com.vaadin.external.google</groupId> |
| 233 | <artifactId>android-json</artifactId> |
| 234 | </exclusion> |
| 235 | </exclusions> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 236 | </dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 237 | <!-- Others dependencies --> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 238 | <dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 239 | <groupId>ch.qos.logback</groupId> |
| 240 | <artifactId>logback-core</artifactId> |
| 241 | <version>1.2.3</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 242 | </dependency> |
| 243 | <dependency> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 244 | <groupId>ch.qos.logback</groupId> |
| 245 | <artifactId>logback-classic</artifactId> |
| 246 | <version>1.2.3</version> |
| 247 | </dependency> |
| 248 | <dependency> |
| 249 | <groupId>commons-dbcp</groupId> |
| 250 | <artifactId>commons-dbcp</artifactId> |
| 251 | <version>1.4</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 252 | </dependency> |
| 253 | <dependency> |
| 254 | <groupId>commons-io</groupId> |
| 255 | <artifactId>commons-io</artifactId> |
| 256 | <version>2.6</version> |
| 257 | </dependency> |
| 258 | <dependency> |
| 259 | <groupId>com.googlecode.json-simple</groupId> |
| 260 | <artifactId>json-simple</artifactId> |
| 261 | </dependency> |
| 262 | <dependency> |
| 263 | <groupId>org.apache.commons</groupId> |
| 264 | <artifactId>commons-vfs2</artifactId> |
Determe, Sebastien (sd378r) | 886191e | 2018-03-02 11:42:06 +0100 | [diff] [blame] | 265 | <version>2.2</version> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 266 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 267 | <dependency> |
| 268 | <groupId>joda-time</groupId> |
| 269 | <artifactId>joda-time</artifactId> |
| 270 | </dependency> |
| 271 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 272 | <groupId>org.slf4j</groupId> |
| 273 | <artifactId>slf4j-api</artifactId> |
| 274 | </dependency> |
| 275 | <dependency> |
| 276 | <groupId>javax.ws.rs</groupId> |
| 277 | <artifactId>javax.ws.rs-api</artifactId> |
| 278 | <version>2.0</version> |
| 279 | </dependency> |
| 280 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 281 | <groupId>junit</groupId> |
| 282 | <artifactId>junit</artifactId> |
| 283 | </dependency> |
| 284 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 285 | <groupId>javax.transaction</groupId> |
| 286 | <artifactId>jta</artifactId> |
| 287 | <version>1.1</version> |
| 288 | </dependency> |
| 289 | <dependency> |
| 290 | <groupId>javax.persistence</groupId> |
| 291 | <artifactId>persistence-api</artifactId> |
| 292 | <version>1.0.2</version> |
| 293 | </dependency> |
| 294 | <dependency> |
| 295 | <groupId>org.hibernate</groupId> |
| 296 | <artifactId>hibernate-annotations</artifactId> |
| 297 | <version>3.5.6-Final</version> |
| 298 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 299 | <dependency> |
| 300 | <groupId>dom4j</groupId> |
| 301 | <artifactId>dom4j</artifactId> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 302 | </dependency> |
Determe, Sebastien (sd378r) | e35744d | 2017-08-29 04:21:41 -0700 | [diff] [blame] | 303 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 304 | <dependency> |
| 305 | <groupId>org.onap.policy.engine</groupId> |
| 306 | <artifactId>PolicyEngineAPI</artifactId> |
Determe, Sebastien (sd378r) | 42765b2 | 2018-03-28 17:25:55 +0200 | [diff] [blame] | 307 | <version>1.2.0</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 308 | <exclusions> |
| 309 | <exclusion> |
Bertozzi, Julien (jb379x) | 009f713 | 2018-03-08 15:53:57 -0500 | [diff] [blame] | 310 | <groupId>com.google.guava</groupId> |
| 311 | <artifactId>guava</artifactId> |
| 312 | </exclusion> |
| 313 | <exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 314 | <artifactId>log4j</artifactId> |
| 315 | <groupId>log4j</groupId> |
| 316 | </exclusion> |
| 317 | <exclusion> |
| 318 | <groupId>org.slf4j</groupId> |
| 319 | <artifactId>slf4j-log4j12</artifactId> |
| 320 | </exclusion> |
| 321 | <exclusion> |
| 322 | <artifactId>apache-log4j-extras</artifactId> |
| 323 | <groupId>log4j</groupId> |
| 324 | </exclusion> |
| 325 | <exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 326 | <groupId>mysql</groupId> |
| 327 | <artifactId>mysql-connector-java</artifactId> |
| 328 | </exclusion> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 329 | <exclusion> |
| 330 | <groupId>commons-io</groupId> |
| 331 | <artifactId>commons-io</artifactId> |
| 332 | </exclusion> |
Determe, Sebastien (sd378r) | a75076b | 2018-04-09 14:06:35 +0200 | [diff] [blame] | 333 | <exclusion> |
| 334 | <artifactId>grizzly-http</artifactId> |
| 335 | <groupId>org.glassfish.grizzly</groupId> |
| 336 | </exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 337 | </exclusions> |
| 338 | </dependency> |
| 339 | <dependency> |
| 340 | <groupId>org.onap.policy.common</groupId> |
| 341 | <artifactId>ONAP-Logging</artifactId> |
Determe, Sebastien (sd378r) | 42765b2 | 2018-03-28 17:25:55 +0200 | [diff] [blame] | 342 | <version>1.1.3</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 343 | <exclusions> |
| 344 | <exclusion> |
| 345 | <artifactId>log4j</artifactId> |
| 346 | <groupId>log4j</groupId> |
| 347 | </exclusion> |
| 348 | <exclusion> |
| 349 | <groupId>org.slf4j</groupId> |
| 350 | <artifactId>slf4j-log4j12</artifactId> |
| 351 | </exclusion> |
| 352 | <exclusion> |
| 353 | <artifactId>apache-log4j-extras</artifactId> |
| 354 | <groupId>log4j</groupId> |
| 355 | </exclusion> |
| 356 | </exclusions> |
| 357 | </dependency> |
| 358 | <dependency> |
| 359 | <groupId>org.onap.policy.engine</groupId> |
| 360 | <artifactId>PolicyEngineUtils</artifactId> |
Determe, Sebastien (sd378r) | 42765b2 | 2018-03-28 17:25:55 +0200 | [diff] [blame] | 361 | <version>1.1.3</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 362 | <exclusions> |
| 363 | <exclusion> |
| 364 | <artifactId>log4j</artifactId> |
| 365 | <groupId>log4j</groupId> |
| 366 | </exclusion> |
| 367 | <exclusion> |
| 368 | <groupId>org.slf4j</groupId> |
| 369 | <artifactId>slf4j-log4j12</artifactId> |
| 370 | </exclusion> |
| 371 | <exclusion> |
| 372 | <artifactId>apache-log4j-extras</artifactId> |
| 373 | <groupId>log4j</groupId> |
| 374 | </exclusion> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 375 | <exclusion> |
| 376 | <groupId>mysql</groupId> |
| 377 | <artifactId>mysql-connector-java</artifactId> |
| 378 | </exclusion> |
| 379 | <exclusion> |
| 380 | <groupId>org.mariadb.jdbc</groupId> |
| 381 | <artifactId>mariadb-java-client</artifactId> |
| 382 | </exclusion> |
Determe, Sebastien (sd378r) | 57867d1 | 2018-02-15 16:04:12 +0100 | [diff] [blame] | 383 | <exclusion> |
| 384 | <groupId>com.att.nsa</groupId> |
| 385 | <artifactId>dmaapClient</artifactId> |
| 386 | </exclusion> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 387 | </exclusions> |
| 388 | </dependency> |
| 389 | <dependency> |
| 390 | <groupId>org.onap.policy.drools-applications</groupId> |
| 391 | <artifactId>policy-yaml</artifactId> |
Determe, Sebastien (sd378r) | 42765b2 | 2018-03-28 17:25:55 +0200 | [diff] [blame] | 392 | <version>1.1.3</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 393 | <exclusions> |
| 394 | <exclusion> |
| 395 | <artifactId>log4j</artifactId> |
| 396 | <groupId>log4j</groupId> |
| 397 | </exclusion> |
| 398 | <exclusion> |
| 399 | <groupId>org.slf4j</groupId> |
| 400 | <artifactId>slf4j-log4j12</artifactId> |
| 401 | </exclusion> |
| 402 | <exclusion> |
| 403 | <artifactId>apache-log4j-extras</artifactId> |
| 404 | <groupId>log4j</groupId> |
| 405 | </exclusion> |
| 406 | </exclusions> |
| 407 | </dependency> |
| 408 | <dependency> |
| 409 | <groupId>org.onap.policy.drools-applications</groupId> |
| 410 | <artifactId>sdc</artifactId> |
Determe, Sebastien (sd378r) | 42765b2 | 2018-03-28 17:25:55 +0200 | [diff] [blame] | 411 | <version>1.1.3</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 412 | <exclusions> |
| 413 | <exclusion> |
| 414 | <artifactId>log4j</artifactId> |
| 415 | <groupId>log4j</groupId> |
| 416 | </exclusion> |
| 417 | <exclusion> |
| 418 | <groupId>org.slf4j</groupId> |
| 419 | <artifactId>slf4j-log4j12</artifactId> |
| 420 | </exclusion> |
| 421 | <exclusion> |
| 422 | <artifactId>apache-log4j-extras</artifactId> |
| 423 | <groupId>log4j</groupId> |
| 424 | </exclusion> |
| 425 | </exclusions> |
| 426 | </dependency> |
| 427 | <dependency> |
| 428 | <groupId>org.onap.policy.drools-applications</groupId> |
| 429 | <artifactId>aai</artifactId> |
Determe, Sebastien (sd378r) | 42765b2 | 2018-03-28 17:25:55 +0200 | [diff] [blame] | 430 | <version>1.1.3</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 431 | <exclusions> |
| 432 | <exclusion> |
| 433 | <artifactId>log4j</artifactId> |
| 434 | <groupId>log4j</groupId> |
| 435 | </exclusion> |
| 436 | <exclusion> |
| 437 | <groupId>org.slf4j</groupId> |
| 438 | <artifactId>slf4j-log4j12</artifactId> |
| 439 | </exclusion> |
| 440 | <exclusion> |
| 441 | <artifactId>apache-log4j-extras</artifactId> |
| 442 | <groupId>log4j</groupId> |
| 443 | </exclusion> |
| 444 | </exclusions> |
| 445 | </dependency> |
| 446 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 447 | <groupId>org.apache.commons</groupId> |
| 448 | <artifactId>commons-csv</artifactId> |
| 449 | <version>1.3</version> |
| 450 | </dependency> |
| 451 | <dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 452 | <groupId>com.sun.faces</groupId> |
| 453 | <artifactId>jsf-api</artifactId> |
| 454 | <version>2.1.7</version> |
| 455 | </dependency> |
| 456 | <dependency> |
| 457 | <groupId>com.sun.faces</groupId> |
| 458 | <artifactId>jsf-impl</artifactId> |
| 459 | <version>2.1.7</version> |
| 460 | </dependency> |
Determe, Sebastien (sd378r) | 886191e | 2018-03-02 11:42:06 +0100 | [diff] [blame] | 461 | <!-- Other dependencies to fix nexus IQ reported vulnerabilities --> |
| 462 | <dependency> |
| 463 | <groupId>org.codehaus.plexus</groupId> |
| 464 | <artifactId>plexus-utils</artifactId> |
| 465 | <version>3.0.24</version> |
| 466 | </dependency> |
| 467 | <dependency> |
| 468 | <groupId>commons-fileupload</groupId> |
| 469 | <artifactId>commons-fileupload</artifactId> |
| 470 | <version>1.3.3</version> |
| 471 | </dependency> |
| 472 | <dependency> |
| 473 | <groupId>org.jboss.spec.javax.ws.rs</groupId> |
| 474 | <artifactId>jboss-jaxrs-api_2.0_spec</artifactId> |
| 475 | <version>1.0.1.Final</version> |
| 476 | </dependency> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 477 | <!-- Remove the MYSQL connector and replace it by Mariadb --> |
| 478 | <dependency> |
| 479 | <groupId>org.mariadb.jdbc</groupId> |
| 480 | <artifactId>mariadb-java-client</artifactId> |
Determe, Sebastien (sd378r) | 373a927 | 2018-02-20 18:19:39 +0100 | [diff] [blame] | 481 | <version>2.2.1</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 482 | </dependency> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 483 | <!-- For SDC Controller --> |
| 484 | <dependency> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 485 | <groupId>org.onap.sdc.sdc-distribution-client</groupId> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 486 | <artifactId>sdc-distribution-client</artifactId> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 487 | <version>1.3.0</version> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 488 | </dependency> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 489 | <dependency> |
Determe, Sebastien (sd378r) | dd2d790 | 2018-04-06 11:48:07 +0200 | [diff] [blame] | 490 | <groupId>org.onap.sdc.sdc-tosca</groupId> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 491 | <artifactId>sdc-tosca</artifactId> |
Determe, Sebastien (sd378r) | e78f00c | 2018-04-11 17:25:04 +0200 | [diff] [blame] | 492 | <version>1.3.0</version> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 493 | </dependency> |
xg353y | 2aad6d6 | 2018-05-18 17:59:06 +0200 | [diff] [blame] | 494 | <!-- To generate Swagger.json, swagger.html and swagger.pdf --> |
| 495 | <dependency> |
| 496 | <groupId>io.springfox</groupId> |
| 497 | <artifactId>springfox-swagger2</artifactId> |
| 498 | <version>2.4.0</version> |
| 499 | <scope>test</scope> |
| 500 | </dependency> |
| 501 | <dependency> |
| 502 | <groupId>io.github.robwin</groupId> |
| 503 | <artifactId>assertj-swagger</artifactId> |
| 504 | <version>0.2.0</version> |
| 505 | <scope>test</scope> |
| 506 | </dependency> |
| 507 | <dependency> |
| 508 | <groupId>io.github.swagger2markup</groupId> |
| 509 | <artifactId>swagger2markup-spring-restdocs-ext</artifactId> |
| 510 | <version>1.2.0</version> |
| 511 | <scope>test</scope> |
| 512 | </dependency> |
| 513 | </dependencies> |
| 514 | <pluginRepositories> |
| 515 | <pluginRepository> |
| 516 | <snapshots> |
| 517 | <enabled>false</enabled> |
| 518 | </snapshots> |
| 519 | <id>jcenter-releases</id> |
| 520 | <name>jcenter</name> |
| 521 | <url>http://jcenter.bintray.com</url> |
| 522 | </pluginRepository> |
| 523 | </pluginRepositories> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 524 | <build> |
| 525 | <finalName>clamp</finalName> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 526 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 527 | <testResources> |
| 528 | <testResource> |
| 529 | <directory>src/test/resources</directory> |
| 530 | <excludes> |
| 531 | <exclude>**/*.jks</exclude> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 532 | <exclude>**/*.csar</exclude> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 533 | </excludes> |
| 534 | <filtering>true</filtering> |
| 535 | </testResource> |
| 536 | <testResource> |
| 537 | <directory>src/test/resources/https</directory> |
| 538 | <includes> |
| 539 | <include>**.jks</include> |
| 540 | </includes> |
| 541 | <filtering>false</filtering> |
| 542 | <targetPath>https</targetPath> |
| 543 | </testResource> |
Determe, Sebastien (sd378r) | 2029624 | 2018-03-12 19:37:34 +0100 | [diff] [blame] | 544 | <testResource> |
| 545 | <directory>src/test/resources/example/sdc</directory> |
| 546 | <includes> |
| 547 | <include>**.csar</include> |
| 548 | </includes> |
| 549 | <filtering>false</filtering> |
| 550 | <targetPath>example/sdc</targetPath> |
| 551 | </testResource> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 552 | </testResources> |
| 553 | <resources> |
| 554 | <resource> |
| 555 | <directory>src/main/resources</directory> |
| 556 | <filtering>true</filtering> |
| 557 | </resource> |
| 558 | <resource> |
| 559 | <directory>src/main/docker</directory> |
| 560 | <includes> |
| 561 | <include>**/*</include> |
| 562 | </includes> |
| 563 | <filtering>true</filtering> |
| 564 | </resource> |
| 565 | </resources> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 566 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 567 | <plugins> |
Determe, Sebastien (sd378r) | 133d2e5 | 2018-05-24 15:56:29 +0200 | [diff] [blame] | 568 | <plugin> |
| 569 | <groupId>org.codehaus.mojo</groupId> |
| 570 | <artifactId>exec-maven-plugin</artifactId> |
| 571 | <version>1.6.0</version> |
| 572 | <executions> |
| 573 | <execution> |
Determe, Sebastien (sd378r) | 73803ec | 2018-05-24 17:52:25 +0200 | [diff] [blame^] | 574 | <id>docker_info0</id> |
Determe, Sebastien (sd378r) | 133d2e5 | 2018-05-24 15:56:29 +0200 | [diff] [blame] | 575 | <phase>validate</phase> |
| 576 | <goals> |
| 577 | <goal>exec</goal> |
| 578 | </goals> |
| 579 | <configuration> |
| 580 | <executable>docker</executable> |
| 581 | <arguments> |
| 582 | <argument>ps</argument> |
| 583 | <argument>--all</argument> |
| 584 | </arguments> |
| 585 | </configuration> |
| 586 | </execution> |
| 587 | <execution> |
Determe, Sebastien (sd378r) | 73803ec | 2018-05-24 17:52:25 +0200 | [diff] [blame^] | 588 | <id>docker_info1</id> |
Determe, Sebastien (sd378r) | 133d2e5 | 2018-05-24 15:56:29 +0200 | [diff] [blame] | 589 | <phase>validate</phase> |
| 590 | <goals> |
| 591 | <goal>exec</goal> |
| 592 | </goals> |
| 593 | <configuration> |
| 594 | <executable>docker</executable> |
| 595 | <arguments> |
| 596 | <argument>images</argument> |
Determe, Sebastien (sd378r) | 73803ec | 2018-05-24 17:52:25 +0200 | [diff] [blame^] | 597 | </arguments> |
| 598 | </configuration> |
| 599 | </execution> |
| 600 | <execution> |
| 601 | <id>docker_info2</id> |
| 602 | <phase>validate</phase> |
| 603 | <goals> |
| 604 | <goal>exec</goal> |
| 605 | </goals> |
| 606 | <configuration> |
| 607 | <executable>ls</executable> |
| 608 | <arguments> |
| 609 | <argument>-latr</argument> |
| 610 | <argument>/var/run/docker.sock</argument> |
| 611 | </arguments> |
| 612 | </configuration> |
| 613 | </execution> |
| 614 | |
| 615 | <execution> |
| 616 | <id>docker_info3</id> |
| 617 | <phase>validate</phase> |
| 618 | <goals> |
| 619 | <goal>exec</goal> |
| 620 | </goals> |
| 621 | <configuration> |
| 622 | <executable>cat</executable> |
| 623 | <arguments> |
| 624 | <argument>/etc/hosts</argument> |
| 625 | </arguments> |
| 626 | </configuration> |
| 627 | </execution> |
| 628 | <execution> |
| 629 | <id>docker_info4</id> |
| 630 | <phase>validate</phase> |
| 631 | <goals> |
| 632 | <goal>exec</goal> |
| 633 | </goals> |
| 634 | <configuration> |
| 635 | <executable>curl</executable> |
| 636 | <arguments> |
| 637 | <argument>-v</argument> |
| 638 | <argument>http://127.0.0.1:2375/info</argument> |
| 639 | </arguments> |
| 640 | </configuration> |
| 641 | </execution> |
| 642 | <execution> |
| 643 | <id>docker_info5</id> |
| 644 | <phase>validate</phase> |
| 645 | <goals> |
| 646 | <goal>exec</goal> |
| 647 | </goals> |
| 648 | <configuration> |
| 649 | <executable>netstat</executable> |
| 650 | <arguments> |
| 651 | <argument>-tulnp</argument> |
Determe, Sebastien (sd378r) | 133d2e5 | 2018-05-24 15:56:29 +0200 | [diff] [blame] | 652 | </arguments> |
| 653 | </configuration> |
| 654 | </execution> |
| 655 | </executions> |
| 656 | |
| 657 | </plugin> |
xg353y | 2aad6d6 | 2018-05-18 17:59:06 +0200 | [diff] [blame] | 658 | <!-- Scan Clamp code and generate the swagger.json file with all the APIs --> |
| 659 | <plugin> |
| 660 | <groupId>com.sebastian-daschner</groupId> |
| 661 | <artifactId>jaxrs-analyzer-maven-plugin</artifactId> |
| 662 | <version>0.14</version> |
| 663 | <executions> |
| 664 | <execution> |
| 665 | <phase>test</phase> |
| 666 | <goals> |
| 667 | <goal>analyze-jaxrs</goal> |
| 668 | </goals> |
| 669 | <configuration> |
| 670 | <backend>swagger</backend> |
| 671 | <resourcesDir>../docs/swagger/</resourcesDir> |
| 672 | </configuration> |
| 673 | </execution> |
| 674 | </executions> |
| 675 | </plugin> |
| 676 | |
| 677 | <!-- Read the swagger.json file and the definition from SwaggerConfig.java; |
| 678 | generate a list of .adoc files containing the APIs info in more structured way --> |
| 679 | <plugin> |
| 680 | <groupId>io.github.swagger2markup</groupId> |
| 681 | <artifactId>swagger2markup-maven-plugin</artifactId> |
| 682 | <version>1.3.1</version> |
| 683 | <dependencies> |
| 684 | <dependency> |
| 685 | <groupId>io.github.swagger2markup</groupId> |
| 686 | <artifactId>swagger2markup-import-files-ext</artifactId> |
| 687 | <version>1.3.1</version> |
| 688 | </dependency> |
| 689 | <dependency> |
| 690 | <groupId>io.github.swagger2markup</groupId> |
| 691 | <artifactId>swagger2markup-spring-restdocs-ext</artifactId> |
| 692 | <version>1.3.1</version> |
| 693 | </dependency> |
| 694 | </dependencies> |
| 695 | <configuration> |
| 696 | <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput> |
| 697 | <outputDir>${project.build.directory}/asciidoc/generated</outputDir> |
| 698 | <config> |
| 699 | <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage> |
| 700 | </config> |
| 701 | </configuration> |
| 702 | <executions> |
| 703 | <execution> |
| 704 | <phase>test</phase> |
| 705 | <goals> |
| 706 | <goal>convertSwagger2markup</goal> |
| 707 | </goals> |
| 708 | </execution> |
| 709 | </executions> |
| 710 | </plugin> |
| 711 | |
| 712 | <!-- Run the generated asciidoc through Asciidoctor to generate |
| 713 | other documentation types, such as PDFs or HTML5 --> |
| 714 | <plugin> |
| 715 | <groupId>org.asciidoctor</groupId> |
| 716 | <artifactId>asciidoctor-maven-plugin</artifactId> |
| 717 | <version>1.5.3</version> |
| 718 | <dependencies> |
| 719 | <dependency> |
| 720 | <groupId>org.asciidoctor</groupId> |
| 721 | <artifactId>asciidoctorj-pdf</artifactId> |
| 722 | <version>1.5.0-alpha.10.1</version> |
| 723 | </dependency> |
| 724 | <dependency> |
| 725 | <groupId>org.jruby</groupId> |
| 726 | <artifactId>jruby-complete</artifactId> |
| 727 | <version>1.7.21</version> |
| 728 | </dependency> |
| 729 | </dependencies> |
| 730 | <configuration> |
| 731 | <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory> |
| 732 | <sourceDocumentName>swagger.adoc</sourceDocumentName> |
| 733 | <attributes> |
| 734 | <doctype>book</doctype> |
| 735 | <toc>left</toc> |
| 736 | <toclevels>3</toclevels> |
| 737 | <numbered></numbered> |
| 738 | <hardbreaks></hardbreaks> |
| 739 | <sectlinks></sectlinks> |
| 740 | <sectanchors></sectanchors> |
| 741 | <generated>${project.build.directory}/asciidoc/generated</generated> |
| 742 | </attributes> |
| 743 | </configuration> |
| 744 | |
| 745 | <executions> |
| 746 | <execution> |
| 747 | <id>output-html</id> |
| 748 | <phase>test</phase> |
| 749 | <goals> |
| 750 | <goal>process-asciidoc</goal> |
| 751 | </goals> |
| 752 | <configuration> |
| 753 | <backend>html5</backend> |
| 754 | <outputDirectory>${project.basedir}/docs/swagger</outputDirectory> |
| 755 | <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory> |
| 756 | </configuration> |
| 757 | </execution> |
| 758 | <execution> |
| 759 | <id>output-pdf</id> |
| 760 | <phase>test</phase> |
| 761 | <goals> |
| 762 | <goal>process-asciidoc</goal> |
| 763 | </goals> |
| 764 | <configuration> |
| 765 | <backend>pdf</backend> |
| 766 | <outputDirectory>${project.basedir}/docs/swagger</outputDirectory> |
| 767 | </configuration> |
| 768 | </execution> |
| 769 | </executions> |
| 770 | </plugin> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 771 | <plugin> |
| 772 | <groupId>org.codehaus.groovy.maven</groupId> |
| 773 | <artifactId>gmaven-plugin</artifactId> |
| 774 | <version>1.0</version> |
| 775 | <executions> |
| 776 | <execution> |
| 777 | <phase>validate</phase> |
| 778 | <goals> |
| 779 | <goal>execute</goal> |
| 780 | </goals> |
| 781 | <configuration> |
| 782 | <source>${project.basedir}/src/main/script/TagVersion.groovy</source> |
| 783 | </configuration> |
| 784 | </execution> |
| 785 | </executions> |
| 786 | </plugin> |
| 787 | <plugin> |
| 788 | <groupId>org.apache.maven.plugins</groupId> |
| 789 | <artifactId>maven-jar-plugin</artifactId> |
| 790 | <version>3.0.2</version> |
| 791 | <executions> |
| 792 | <execution> |
| 793 | <id>jar-with-only-classes</id> |
| 794 | <phase>package</phase> |
| 795 | <goals> |
| 796 | <goal>jar</goal> |
| 797 | </goals> |
| 798 | <configuration> |
| 799 | <classifier>classes</classifier> |
| 800 | <includes> |
| 801 | <include>org/**</include> |
| 802 | </includes> |
| 803 | </configuration> |
| 804 | </execution> |
| 805 | </executions> |
| 806 | </plugin> |
| 807 | <plugin> |
| 808 | <groupId>org.codehaus.mojo</groupId> |
| 809 | <artifactId>build-helper-maven-plugin</artifactId> |
| 810 | <version>3.0.0</version> |
| 811 | <executions> |
| 812 | <execution> |
| 813 | <goals> |
| 814 | <goal>attach-artifact</goal> |
| 815 | </goals> |
| 816 | <phase>package</phase> |
| 817 | <configuration> |
| 818 | <artifacts> |
| 819 | <artifact> |
| 820 | <file>${project.build.directory}/clamp-classes.jar</file> |
| 821 | <type>jar</type> |
| 822 | <classifier>classes</classifier> |
| 823 | </artifact> |
| 824 | </artifacts> |
| 825 | </configuration> |
| 826 | </execution> |
| 827 | </executions> |
| 828 | </plugin> |
Determe, Sebastien (sd378r) | 8bf3343 | 2017-08-08 02:49:33 -0700 | [diff] [blame] | 829 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 830 | <plugin> |
| 831 | <groupId>org.springframework.boot</groupId> |
| 832 | <artifactId>spring-boot-maven-plugin</artifactId> |
Determe, Sebastien (sd378r) | 7e44fa7 | 2018-02-07 10:11:30 +0100 | [diff] [blame] | 833 | <version>${springboot.version}</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 834 | <executions> |
| 835 | <execution> |
| 836 | <goals> |
| 837 | <goal>repackage</goal> |
| 838 | </goals> |
| 839 | <phase>package</phase> |
| 840 | </execution> |
| 841 | </executions> |
| 842 | </plugin> |
| 843 | <plugin> |
| 844 | <groupId>org.sonatype.plugins</groupId> |
| 845 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 846 | <version>1.6.7</version> |
| 847 | <extensions>true</extensions> |
| 848 | <configuration> |
| 849 | <nexusUrl>https://nexus.onap.org</nexusUrl> |
| 850 | <stagingProfileId>176c31dfe190a</stagingProfileId> |
| 851 | <serverId>ecomp-staging</serverId> |
| 852 | <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo> |
| 853 | </configuration> |
| 854 | </plugin> |
| 855 | <plugin> |
| 856 | <groupId>com.spotify</groupId> |
| 857 | <artifactId>docker-maven-plugin</artifactId> |
Determe, Sebastien (sd378r) | ea3bc52 | 2018-05-23 22:08:35 +0200 | [diff] [blame] | 858 | <version>1.1.0</version> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 859 | <configuration> |
Determe, Sebastien (sd378r) | 26400da | 2018-05-24 16:57:30 +0200 | [diff] [blame] | 860 | |
| 861 | <dockerHost>http://127.0.0.1:2375</dockerHost> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 862 | <imageName>onap/clamp</imageName> |
| 863 | <dockerDirectory>src/main/docker</dockerDirectory> |
| 864 | <serverId>docker-hub</serverId> |
| 865 | <imageTags> |
| 866 | <imageTag>latest</imageTag> |
| 867 | <imageTag>${project.docker.latesttagtimestamp.version}</imageTag> |
| 868 | <imageTag>${project.docker.latesttag.version}</imageTag> |
| 869 | </imageTags> |
| 870 | <forceTags>true</forceTags> |
| 871 | <resources> |
| 872 | <resource> |
| 873 | <targetPath>/</targetPath> |
| 874 | <directory>${project.build.directory}</directory> |
| 875 | <include>${project.build.finalName}.jar</include> |
| 876 | </resource> |
| 877 | <resource> |
| 878 | <targetPath>/</targetPath> |
| 879 | <directory>${project.build.directory}</directory> |
| 880 | <include>etc/config/**</include> |
| 881 | </resource> |
| 882 | <resource> |
| 883 | <targetPath>/</targetPath> |
| 884 | <directory>${project.build.directory}</directory> |
| 885 | <include>etc/keystore/**</include> |
| 886 | </resource> |
| 887 | </resources> |
| 888 | </configuration> |
| 889 | <executions> |
| 890 | <execution> |
| 891 | <id>build-image</id> |
| 892 | <phase>package</phase> |
| 893 | <goals> |
| 894 | <goal>build</goal> |
| 895 | </goals> |
| 896 | <configuration> |
| 897 | <skipDockerBuild>${skip.docker.build}</skipDockerBuild> |
| 898 | <buildArgs> |
| 899 | <http_proxy>${env.HTTP_PROXY}</http_proxy> |
| 900 | <https_proxy>${env.HTTPS_PROXY}</https_proxy> |
| 901 | </buildArgs> |
| 902 | </configuration> |
| 903 | </execution> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 904 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 905 | <execution> |
| 906 | <id>tag-image-latest-timestamp</id> |
| 907 | <phase>package</phase> |
| 908 | <goals> |
| 909 | <goal>tag</goal> |
| 910 | </goals> |
| 911 | <configuration> |
| 912 | <image>onap/clamp</image> |
| 913 | <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName> |
| 914 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 915 | </configuration> |
| 916 | </execution> |
| 917 | <execution> |
| 918 | <id>push-image-latest-timestamp</id> |
| 919 | <phase>deploy</phase> |
| 920 | <goals> |
| 921 | <goal>push</goal> |
| 922 | </goals> |
| 923 | <configuration> |
| 924 | <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName> |
| 925 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 926 | </configuration> |
| 927 | </execution> |
| 928 | <execution> |
| 929 | <id>tag-image-latest</id> |
| 930 | <phase>package</phase> |
| 931 | <goals> |
| 932 | <goal>tag</goal> |
| 933 | </goals> |
| 934 | <configuration> |
| 935 | <image>onap/clamp</image> |
| 936 | <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName> |
| 937 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 938 | </configuration> |
| 939 | </execution> |
| 940 | <execution> |
| 941 | <id>push-image-latest</id> |
| 942 | <phase>deploy</phase> |
| 943 | <goals> |
| 944 | <goal>push</goal> |
| 945 | </goals> |
| 946 | <configuration> |
| 947 | <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName> |
| 948 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 949 | </configuration> |
| 950 | </execution> |
| 951 | <execution> |
| 952 | <id>tag-image</id> |
| 953 | <phase>package</phase> |
| 954 | <goals> |
| 955 | <goal>tag</goal> |
| 956 | </goals> |
| 957 | <configuration> |
| 958 | <image>onap/clamp</image> |
| 959 | <newName>${docker.push.registry}/onap/clamp:latest</newName> |
| 960 | <skipDockerTag>${skip.docker.push}</skipDockerTag> |
| 961 | </configuration> |
| 962 | </execution> |
| 963 | <execution> |
| 964 | <id>push-image</id> |
| 965 | <phase>deploy</phase> |
| 966 | <goals> |
| 967 | <goal>push</goal> |
| 968 | </goals> |
| 969 | <configuration> |
| 970 | <imageName>${docker.push.registry}/onap/clamp:latest</imageName> |
| 971 | <skipDockerPush>${skip.docker.push}</skipDockerPush> |
| 972 | </configuration> |
| 973 | </execution> |
| 974 | </executions> |
| 975 | </plugin> |
| 976 | <plugin> |
| 977 | <groupId>org.apache.maven.plugins</groupId> |
| 978 | <artifactId>maven-surefire-plugin</artifactId> |
| 979 | <version>2.19.1</version> |
| 980 | <configuration> |
| 981 | <forkCount>1</forkCount> |
| 982 | <reuseForks>false</reuseForks> |
| 983 | </configuration> |
| 984 | </plugin> |
Determe, Sebastien (sd378r) | c06db6e | 2017-09-22 16:52:51 +0200 | [diff] [blame] | 985 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 986 | <plugin> |
| 987 | <groupId>org.apache.maven.plugins</groupId> |
| 988 | <artifactId>maven-failsafe-plugin</artifactId> |
| 989 | <version>2.16</version> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 990 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 991 | <executions> |
| 992 | <execution> |
| 993 | <id>integration-tests</id> |
| 994 | <goals> |
| 995 | <goal>integration-test</goal> |
| 996 | <goal>verify</goal> |
| 997 | </goals> |
| 998 | <configuration> |
| 999 | <includes> |
| 1000 | <include>**/*ItCase.java</include> |
| 1001 | </includes> |
| 1002 | <forkCount>1</forkCount> |
| 1003 | <reuseForks>false</reuseForks> |
| 1004 | </configuration> |
| 1005 | </execution> |
| 1006 | </executions> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1007 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1008 | </plugin> |
| 1009 | <plugin> |
| 1010 | <groupId>io.fabric8</groupId> |
| 1011 | <artifactId>docker-maven-plugin</artifactId> |
| 1012 | <version>0.16.5</version> |
| 1013 | <configuration> |
| 1014 | <verbose>true</verbose> |
| 1015 | <apiVersion>1.23</apiVersion> |
| 1016 | <images> |
| 1017 | <image> |
| 1018 | <name>mariadb:10.1.11</name> |
| 1019 | <alias>mariadb</alias> |
| 1020 | <run> |
| 1021 | <env> |
| 1022 | <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD> |
| 1023 | </env> |
| 1024 | <hostname>mariadb</hostname> |
| 1025 | <volumes> |
| 1026 | <bind> |
| 1027 | <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume> |
| 1028 | <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume> |
| 1029 | </bind> |
| 1030 | </volumes> |
| 1031 | <wait> |
| 1032 | <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log> |
Determe, Sebastien (sd378r) | b588fbc | 2018-02-13 17:25:12 +0100 | [diff] [blame] | 1033 | <time>600000</time> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1034 | </wait> |
| 1035 | <ports> |
| 1036 | <port>${docker.mariadb.port.host}:3306</port> |
| 1037 | </ports> |
| 1038 | </run> |
| 1039 | </image> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1040 | <image> |
Determe, Sebastien (sd378r) | 465bfe2 | 2018-03-01 15:15:30 +0100 | [diff] [blame] | 1041 | <name>python:2-slim</name> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1042 | <alias>python</alias> |
| 1043 | <run> |
| 1044 | <hostname>python</hostname> |
| 1045 | <volumes> |
| 1046 | <bind> |
| 1047 | <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume> |
ehautot | 153c829 | 2018-03-15 17:49:50 +0100 | [diff] [blame] | 1048 | <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1049 | </bind> |
| 1050 | </volumes> |
| 1051 | <wait> |
| 1052 | <tcp> |
| 1053 | <ports> |
| 1054 | <port>8080</port> |
| 1055 | </ports> |
| 1056 | <mode>direct</mode> |
| 1057 | </tcp> |
| 1058 | <time>120000</time> |
| 1059 | </wait> |
| 1060 | <ports> |
| 1061 | <port>${docker.http-cache.port.host}:8080</port> |
| 1062 | </ports> |
| 1063 | <workingDir>/usr/src/http-cache-app</workingDir> |
| 1064 | <cmd> |
Determe, Sebastien (sd378r) | 885d7c1 | 2018-04-09 17:56:53 +0200 | [diff] [blame] | 1065 | <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1066 | </cmd> |
| 1067 | </run> |
| 1068 | </image> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1069 | </images> |
| 1070 | <skip>${skipITs}</skip> |
| 1071 | </configuration> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1072 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1073 | <executions> |
| 1074 | <execution> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1075 | <id>docker-start-for-it</id> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1076 | <phase>pre-integration-test</phase> |
| 1077 | <goals> |
| 1078 | <goal>start</goal> |
| 1079 | </goals> |
| 1080 | <configuration> |
| 1081 | <skip>${skipITs}</skip> |
| 1082 | </configuration> |
| 1083 | </execution> |
| 1084 | <execution> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1085 | <id>docker-stop-for-it</id> |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1086 | <phase>post-integration-test</phase> |
| 1087 | <goals> |
| 1088 | <goal>stop</goal> |
| 1089 | </goals> |
| 1090 | <configuration> |
| 1091 | <skip>${skipITs}</skip> |
| 1092 | </configuration> |
| 1093 | </execution> |
| 1094 | </executions> |
| 1095 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1096 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1097 | <plugin> |
| 1098 | <groupId>org.jacoco</groupId> |
| 1099 | <artifactId>jacoco-maven-plugin</artifactId> |
| 1100 | <version>0.7.7.201606060606</version> |
| 1101 | <configuration> |
| 1102 | <dumpOnExit>true</dumpOnExit> |
| 1103 | <includes> |
| 1104 | <include>org.onap.clamp.*</include> |
| 1105 | </includes> |
| 1106 | </configuration> |
| 1107 | <executions> |
| 1108 | <execution> |
| 1109 | <id>pre-unit-test</id> |
| 1110 | <goals> |
| 1111 | <goal>prepare-agent</goal> |
| 1112 | </goals> |
| 1113 | <configuration> |
| 1114 | <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> |
| 1115 | <!-- <append>true</append> --> |
| 1116 | </configuration> |
| 1117 | </execution> |
| 1118 | <execution> |
| 1119 | <id>pre-integration-test</id> |
| 1120 | <phase>pre-integration-test</phase> |
| 1121 | <goals> |
| 1122 | <goal>prepare-agent</goal> |
| 1123 | </goals> |
| 1124 | <configuration> |
| 1125 | <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 1126 | <!-- <append>true</append> --> |
| 1127 | </configuration> |
| 1128 | </execution> |
| 1129 | <execution> |
| 1130 | <goals> |
| 1131 | <goal>merge</goal> |
| 1132 | </goals> |
| 1133 | <phase>post-integration-test</phase> |
| 1134 | <configuration> |
| 1135 | <fileSets> |
| 1136 | <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet"> |
| 1137 | <directory>${project.build.directory}/coverage-reports</directory> |
| 1138 | <includes> |
| 1139 | <include>*.exec</include> |
| 1140 | </includes> |
| 1141 | </fileSet> |
| 1142 | </fileSets> |
| 1143 | <destFile>${project.build.directory}/jacoco-dev.exec</destFile> |
| 1144 | </configuration> |
| 1145 | </execution> |
| 1146 | </executions> |
| 1147 | </plugin> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1148 | |
Determe, Sebastien (sd378r) | b4f7cb6 | 2017-11-16 13:27:22 +0100 | [diff] [blame] | 1149 | <!-- This plugin will be useful when we will have multi-modules project --> |
| 1150 | <plugin> |
| 1151 | <groupId>org.codehaus.mojo</groupId> |
| 1152 | <artifactId>versions-maven-plugin</artifactId> |
| 1153 | <version>1.3.1</version> |
| 1154 | </plugin> |
| 1155 | </plugins> |
| 1156 | </build> |
| 1157 | <profiles> |
| 1158 | <profile> |
| 1159 | <id>docker</id> |
| 1160 | <properties> |
| 1161 | <skip.staging.artifacts>true</skip.staging.artifacts> |
| 1162 | <skip.docker.build>false</skip.docker.build> |
| 1163 | <skip.docker.tag>false</skip.docker.tag> |
| 1164 | <skip.docker.push>false</skip.docker.push> |
| 1165 | </properties> |
| 1166 | </profile> |
| 1167 | </profiles> |
ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1168 | </project> |