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