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