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