blob: bb5b5244e45271b5b7d8e64e956b7380c36097ac [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<?xml version="1.0" encoding="UTF-8"?>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07002<!--
3 ============LICENSE_START=======================================================
4 ONAP CLAMP
5 ================================================================================
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +01006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07007 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
ChrisC6c9759e2017-08-30 01:13:58 -070012
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070013 http://www.apache.org/licenses/LICENSE-2.0
ChrisC6c9759e2017-08-30 01:13:58 -070014
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070015 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)e35744d2017-08-29 04:21:41 -070022-->
23
ChrisC5e9feb22017-06-21 02:38:57 -070024<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010025 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)7a58af82018-06-06 13:47:21 +020029 <version>3.0.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010030 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +010035 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070037
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010038 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010039 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070040
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)08b94922018-03-27 10:25:41 +020044 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070045 "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)b4f7cb62017-11-16 13:27:22 +010051 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
52 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080053
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010054 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070055
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070057 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010058 <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)8bf33432017-08-08 02:49:33 -070064
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010065 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)378d05b2018-03-23 14:46:56 +010066 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010067 <project.scm.id>git-server</project.scm.id>
68 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010069
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -050070 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010071 <eelf.core.version>1.0.0</eelf.core.version>
72 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +020073 <springboot.version>1.5.14.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070074
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010075 <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>
ChrisC5e9feb22017-06-21 02:38:57 -070082
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010083 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020084 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020085 <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)b4f7cb62017-11-16 13:27:22 +010088 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +020089 <python.http.proxy.param></python.http.proxy.param>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020090 <tomcat.version>8.5.28</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010091 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070092
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020093 <profiles>
94 <profile>
95 <id>without-test</id>
96 <activation>
97 <property>
98 <name>maven.test.skip</name>
99 <value>true</value>
100 </property>
101 </activation>
102 <properties>
103 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200104 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200105 </properties>
106 </profile>
107 <profile>
108 <id>without-IT-only</id>
109 <activation>
110 <property>
111 <name>skipITs</name>
112 <value>true</value>
113 </property>
114 </activation>
115 <properties>
116 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200117 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200118 </properties>
119 </profile>
120 <profile>
121 <id>without-IT-only2</id>
122 <activation>
123 <property>
124 <name>skipTests</name>
125 <value>true</value>
126 </property>
127 </activation>
128 <properties>
129 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200130 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200131 </properties>
132 </profile>
133 <profile>
134 <id>docker</id>
135 <properties>
136 <skip.staging.artifacts>true</skip.staging.artifacts>
137 <docker.skip.build>false</docker.skip.build>
138 <docker.skip.tag>false</docker.skip.tag>
139 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200140 <docker.skip>false</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200141 </properties>
142 </profile>
143 </profiles>
144
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100145 <distributionManagement>
146 <repository>
147 <id>ecomp-releases</id>
148 <name>Clamp Release Repository</name>
149 <url>https://nexus.onap.org/content/repositories/releases/</url>
150 </repository>
151 <snapshotRepository>
152 <id>ecomp-snapshots</id>
153 <name>Clamp Snapshot Repository</name>
154 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
155 </snapshotRepository>
156 <site>
157 <id>ecomp-site</id>
158 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
159 </site>
160 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700161
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100162 <repositories>
163 <repository>
164 <id>central</id>
165 <name>Maven 2 repository 2</name>
166 <url>http://repo2.maven.org/maven2/</url>
167 </repository>
168 <repository>
169 <id>ecomp-releases</id>
170 <name>ONAP Release Repository</name>
171 <url>https://nexus.onap.org/content/repositories/releases/</url>
172 </repository>
173 <repository>
174 <id>ecomp-staging</id>
175 <name>ONAP Staging Repository</name>
176 <url>https://nexus.onap.org/content/repositories/staging/</url>
177 </repository>
178 <repository>
179 <id>ecomp-snapshots</id>
180 <name>ONAP Snapshot Repository</name>
181 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
182 <snapshots>
183 <enabled>true</enabled>
184 </snapshots>
185 <releases>
186 <enabled>false</enabled>
187 </releases>
188 </repository>
189 <repository>
190 <id>spring-repo</id>
191 <name>Spring repo</name>
192 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
193 </repository>
194 <repository>
195 <id>repository.jboss.org-public</id>
196 <name>JBoss.org Maven repository</name>
197 <url>https://repository.jboss.org/nexus/content/groups/public</url>
198 </repository>
xg353y2aad6d62018-05-18 17:59:06 +0200199 <repository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200200 <id>jcentral</id>
201 <name>bintray</name>
202 <url>http://jcenter.bintray.com</url>
203 <snapshots>
204 <enabled>false</enabled>
205 </snapshots>
xg353y2aad6d62018-05-18 17:59:06 +0200206 </repository>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100207 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700208
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100209 <dependencyManagement>
210 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100211 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100212 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100213 <groupId>org.springframework.boot</groupId>
214 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100215 <version>${springboot.version}</version>
216 <type>pom</type>
217 <scope>import</scope>
218 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100219 <!-- Camel BOM -->
220 <dependency>
221 <groupId>org.apache.camel</groupId>
222 <artifactId>camel-spring-boot-dependencies</artifactId>
223 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100224 <type>pom</type>
225 <scope>import</scope>
226 </dependency>
227 </dependencies>
228 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700229
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100230 <dependencies>
231 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100232 <groupId>com.att.eelf</groupId>
233 <artifactId>eelf-core</artifactId>
234 <version>${eelf.core.version}</version>
235 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200236 <dependency>
237 <groupId>org.apache.tomcat.embed</groupId>
238 <artifactId>tomcat-embed-core</artifactId>
239 <version>${tomcat.version}</version>
240 </dependency>
241 <dependency>
242 <groupId>org.apache.tomcat.embed</groupId>
243 <artifactId>tomcat-embed-el</artifactId>
244 <version>${tomcat.version}</version>
245 </dependency>
246 <dependency>
247 <groupId>org.apache.tomcat.embed</groupId>
248 <artifactId>tomcat-embed-websocket</artifactId>
249 <version>${tomcat.version}</version>
250 </dependency>
251 <dependency>
252 <groupId>org.apache.tomcat</groupId>
253 <artifactId>tomcat-annotations-api</artifactId>
254 <version>${tomcat.version}</version>
255 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100256 <!-- For CAMEL -->
257 <dependency>
258 <groupId>org.apache.camel</groupId>
259 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100260 </dependency>
261 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100262 <groupId>org.apache.camel</groupId>
263 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100264 </dependency>
265 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100266 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100267 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100268 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200269 <dependency>
270 <groupId>javax.xml.bind</groupId>
271 <artifactId>jaxb-api</artifactId>
272 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200273 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100274 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100275 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100276 <groupId>org.springframework.boot</groupId>
277 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100278 </dependency>
279 <dependency>
280 <groupId>org.springframework.boot</groupId>
281 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100282 </dependency>
283 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100284 <groupId>com.paypal.springboot</groupId>
285 <artifactId>resteasy-spring-boot-starter</artifactId>
286 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100287 </dependency>
288 <dependency>
289 <groupId>org.springframework</groupId>
290 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100291 </dependency>
292 <dependency>
293 <groupId>org.springframework.boot</groupId>
294 <artifactId>spring-boot-starter-security</artifactId>
295 </dependency>
296 <dependency>
297 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100298 <artifactId>spring-boot-starter-actuator</artifactId>
299 </dependency>
300 <dependency>
301 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100302 <artifactId>spring-boot-starter-test</artifactId>
303 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100304 <exclusions>
305 <exclusion>
306 <groupId>com.vaadin.external.google</groupId>
307 <artifactId>android-json</artifactId>
308 </exclusion>
309 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100310 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100311 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100312 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200313 <groupId>org.onap.aaf.authz</groupId>
314 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200315 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200316 <exclusions>
317 <exclusion>
318 <groupId>javax.servlet</groupId>
319 <artifactId>servlet-api</artifactId>
320 </exclusion>
321 </exclusions>
322 </dependency>
323 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100324 <groupId>ch.qos.logback</groupId>
325 <artifactId>logback-core</artifactId>
326 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100327 </dependency>
328 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100329 <groupId>ch.qos.logback</groupId>
330 <artifactId>logback-classic</artifactId>
331 <version>1.2.3</version>
332 </dependency>
333 <dependency>
334 <groupId>commons-dbcp</groupId>
335 <artifactId>commons-dbcp</artifactId>
336 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100337 </dependency>
338 <dependency>
339 <groupId>commons-io</groupId>
340 <artifactId>commons-io</artifactId>
341 <version>2.6</version>
342 </dependency>
343 <dependency>
344 <groupId>com.googlecode.json-simple</groupId>
345 <artifactId>json-simple</artifactId>
346 </dependency>
347 <dependency>
348 <groupId>org.apache.commons</groupId>
349 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100350 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100351 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100352 <dependency>
353 <groupId>joda-time</groupId>
354 <artifactId>joda-time</artifactId>
355 </dependency>
356 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100357 <groupId>org.slf4j</groupId>
358 <artifactId>slf4j-api</artifactId>
359 </dependency>
360 <dependency>
361 <groupId>javax.ws.rs</groupId>
362 <artifactId>javax.ws.rs-api</artifactId>
363 <version>2.0</version>
364 </dependency>
365 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100366 <groupId>junit</groupId>
367 <artifactId>junit</artifactId>
368 </dependency>
369 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100370 <groupId>javax.transaction</groupId>
371 <artifactId>jta</artifactId>
372 <version>1.1</version>
373 </dependency>
374 <dependency>
375 <groupId>javax.persistence</groupId>
376 <artifactId>persistence-api</artifactId>
377 <version>1.0.2</version>
378 </dependency>
379 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100380 <groupId>org.onap.policy.engine</groupId>
381 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200382 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100383 <exclusions>
384 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500385 <groupId>com.google.guava</groupId>
386 <artifactId>guava</artifactId>
387 </exclusion>
388 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100389 <artifactId>log4j</artifactId>
390 <groupId>log4j</groupId>
391 </exclusion>
392 <exclusion>
393 <groupId>org.slf4j</groupId>
394 <artifactId>slf4j-log4j12</artifactId>
395 </exclusion>
396 <exclusion>
397 <artifactId>apache-log4j-extras</artifactId>
398 <groupId>log4j</groupId>
399 </exclusion>
400 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100401 <groupId>mysql</groupId>
402 <artifactId>mysql-connector-java</artifactId>
403 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100404 <exclusion>
405 <groupId>commons-io</groupId>
406 <artifactId>commons-io</artifactId>
407 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200408 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200409 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200410 <groupId>org.glassfish.grizzly</groupId>
411 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200412 <exclusion>
413 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
414 <artifactId>dmaapClient</artifactId>
415 </exclusion>
416 <exclusion>
417 <groupId>org.onap.policy.common</groupId>
418 <artifactId>integrity-monitor</artifactId>
419 </exclusion>
420 <exclusion>
421 <groupId>org.onap.policy.common</groupId>
422 <artifactId>integrity-audit</artifactId>
423 </exclusion>
424 <exclusion>
425 <groupId>org.onap.aaf.cadi</groupId>
426 <artifactId>cadi-aaf</artifactId>
427 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200428 <exclusion>
429 <groupId>javax.jms</groupId>
430 <artifactId>jms</artifactId>
431 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100432 </exclusions>
433 </dependency>
434 <dependency>
435 <groupId>org.onap.policy.common</groupId>
436 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200437 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100438 <exclusions>
439 <exclusion>
440 <artifactId>log4j</artifactId>
441 <groupId>log4j</groupId>
442 </exclusion>
443 <exclusion>
444 <groupId>org.slf4j</groupId>
445 <artifactId>slf4j-log4j12</artifactId>
446 </exclusion>
447 <exclusion>
448 <artifactId>apache-log4j-extras</artifactId>
449 <groupId>log4j</groupId>
450 </exclusion>
451 </exclusions>
452 </dependency>
453 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100454 <groupId>org.onap.policy.drools-applications</groupId>
455 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200456 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100457 <exclusions>
458 <exclusion>
459 <artifactId>log4j</artifactId>
460 <groupId>log4j</groupId>
461 </exclusion>
462 <exclusion>
463 <groupId>org.slf4j</groupId>
464 <artifactId>slf4j-log4j12</artifactId>
465 </exclusion>
466 <exclusion>
467 <artifactId>apache-log4j-extras</artifactId>
468 <groupId>log4j</groupId>
469 </exclusion>
470 </exclusions>
471 </dependency>
472 <dependency>
473 <groupId>org.onap.policy.drools-applications</groupId>
474 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200475 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100476 <exclusions>
477 <exclusion>
478 <artifactId>log4j</artifactId>
479 <groupId>log4j</groupId>
480 </exclusion>
481 <exclusion>
482 <groupId>org.slf4j</groupId>
483 <artifactId>slf4j-log4j12</artifactId>
484 </exclusion>
485 <exclusion>
486 <artifactId>apache-log4j-extras</artifactId>
487 <groupId>log4j</groupId>
488 </exclusion>
489 </exclusions>
490 </dependency>
491 <dependency>
492 <groupId>org.onap.policy.drools-applications</groupId>
493 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200494 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100495 <exclusions>
496 <exclusion>
497 <artifactId>log4j</artifactId>
498 <groupId>log4j</groupId>
499 </exclusion>
500 <exclusion>
501 <groupId>org.slf4j</groupId>
502 <artifactId>slf4j-log4j12</artifactId>
503 </exclusion>
504 <exclusion>
505 <artifactId>apache-log4j-extras</artifactId>
506 <groupId>log4j</groupId>
507 </exclusion>
508 </exclusions>
509 </dependency>
510 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100511 <groupId>org.apache.commons</groupId>
512 <artifactId>commons-csv</artifactId>
513 <version>1.3</version>
514 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100515 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
516 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200517 <groupId>org.codehaus.plexus</groupId>
518 <artifactId>plexus-utils</artifactId>
519 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100520 </dependency>
521 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200522 <groupId>commons-fileupload</groupId>
523 <artifactId>commons-fileupload</artifactId>
524 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100525 </dependency>
526 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200527 <groupId>org.jboss.spec.javax.ws.rs</groupId>
528 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
529 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100530 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200531 <dependency>
532 <groupId>com.google.guava</groupId>
533 <artifactId>guava</artifactId>
534 <version>25.1-jre</version>
535 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100536 <!-- Remove the MYSQL connector and replace it by Mariadb -->
537 <dependency>
538 <groupId>org.mariadb.jdbc</groupId>
539 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100540 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100541 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100542 <!-- For SDC Controller -->
543 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200544 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100545 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200546 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100547 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100548 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200549 <groupId>org.onap.sdc.sdc-tosca</groupId>
550 <artifactId>sdc-tosca</artifactId>
551 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100552 </dependency>
xg353y2aad6d62018-05-18 17:59:06 +0200553 <!-- To generate Swagger.json, swagger.html and swagger.pdf -->
xg353y2aad6d62018-05-18 17:59:06 +0200554 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200555 <groupId>io.springfox</groupId>
556 <artifactId>springfox-swagger2</artifactId>
557 <version>2.4.0</version>
558 <scope>test</scope>
xg353y2aad6d62018-05-18 17:59:06 +0200559 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200560 <dependency>
561 <groupId>io.github.robwin</groupId>
562 <artifactId>assertj-swagger</artifactId>
563 <version>0.2.0</version>
564 <scope>test</scope>
565 </dependency>
566 <dependency>
567 <groupId>io.github.swagger2markup</groupId>
568 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
569 <version>1.2.0</version>
570 <scope>test</scope>
571 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200572 <!-- TESTING -->
573 <dependency>
574 <groupId>org.assertj</groupId>
575 <artifactId>assertj-core</artifactId>
576 <version>3.10.0</version>
577 <scope>test</scope>
578 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200579 </dependencies>
580 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200581 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200582 <snapshots>
583 <enabled>false</enabled>
584 </snapshots>
585 <id>jcenter-releases</id>
586 <name>jcenter</name>
587 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200588 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200589 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100590 <build>
591 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700592
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100593 <testResources>
594 <testResource>
595 <directory>src/test/resources</directory>
596 <excludes>
597 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100598 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100599 </excludes>
600 <filtering>true</filtering>
601 </testResource>
602 <testResource>
603 <directory>src/test/resources/https</directory>
604 <includes>
605 <include>**.jks</include>
606 </includes>
607 <filtering>false</filtering>
608 <targetPath>https</targetPath>
609 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200610 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100611 <directory>src/test/resources/example/sdc</directory>
612 <includes>
613 <include>**.csar</include>
614 </includes>
615 <filtering>false</filtering>
616 <targetPath>example/sdc</targetPath>
617 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100618 </testResources>
619 <resources>
620 <resource>
621 <directory>src/main/resources</directory>
622 <filtering>true</filtering>
623 </resource>
624 <resource>
625 <directory>src/main/docker</directory>
626 <includes>
627 <include>**/*</include>
628 </includes>
629 <filtering>true</filtering>
630 </resource>
631 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700632
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100633 <plugins>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200634 <!-- Scan Clamp code and generate the swagger.json file with all the
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200635 APIs -->
Determe, Sebastien (sd378r)133d2e52018-05-24 15:56:29 +0200636 <plugin>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200637 <groupId>com.sebastian-daschner</groupId>
638 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
639 <version>0.14</version>
640 <executions>
641 <execution>
642 <phase>test</phase>
643 <goals>
644 <goal>analyze-jaxrs</goal>
645 </goals>
646 <configuration>
647 <backend>swagger</backend>
648 <resourcesDir>../docs/swagger/</resourcesDir>
649 </configuration>
650 </execution>
651 </executions>
652 </plugin>
Determe, Sebastien (sd378r)73803ec2018-05-24 17:52:25 +0200653
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200654 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
655 generate a list of .adoc files containing the APIs info in more structured
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200656 way -->
657 <plugin>
658 <groupId>io.github.swagger2markup</groupId>
659 <artifactId>swagger2markup-maven-plugin</artifactId>
660 <version>1.3.1</version>
661 <dependencies>
662 <dependency>
663 <groupId>io.github.swagger2markup</groupId>
664 <artifactId>swagger2markup-import-files-ext</artifactId>
665 <version>1.3.1</version>
666 </dependency>
667 <dependency>
668 <groupId>io.github.swagger2markup</groupId>
669 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
670 <version>1.3.1</version>
671 </dependency>
672 </dependencies>
xg353y2aad6d62018-05-18 17:59:06 +0200673 <configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200674 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
675 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
676 <config>
677 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
678 </config>
xg353y2aad6d62018-05-18 17:59:06 +0200679 </configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200680 <executions>
681 <execution>
682 <phase>test</phase>
683 <goals>
684 <goal>convertSwagger2markup</goal>
685 </goals>
686 </execution>
687 </executions>
688 </plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200689
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200690 <!-- Run the generated asciidoc through Asciidoctor to generate other
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200691 documentation types, such as PDFs or HTML5 -->
692 <plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200693 <groupId>org.asciidoctor</groupId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200694 <artifactId>asciidoctor-maven-plugin</artifactId>
695 <version>1.5.3</version>
696 <dependencies>
697 <dependency>
698 <groupId>org.asciidoctor</groupId>
699 <artifactId>asciidoctorj-pdf</artifactId>
700 <version>1.5.0-alpha.10.1</version>
701 </dependency>
702 <dependency>
703 <groupId>org.jruby</groupId>
704 <artifactId>jruby-complete</artifactId>
705 <version>1.7.21</version>
706 </dependency>
707 </dependencies>
708 <configuration>
709 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
710 <sourceDocumentName>swagger.adoc</sourceDocumentName>
711 <attributes>
712 <doctype>book</doctype>
713 <toc>left</toc>
714 <toclevels>3</toclevels>
715 <numbered></numbered>
716 <hardbreaks></hardbreaks>
717 <sectlinks></sectlinks>
718 <sectanchors></sectanchors>
719 <generated>${project.build.directory}/asciidoc/generated</generated>
720 </attributes>
721 </configuration>
xg353y2aad6d62018-05-18 17:59:06 +0200722
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200723 <executions>
724 <execution>
725 <id>output-html</id>
726 <phase>test</phase>
727 <goals>
728 <goal>process-asciidoc</goal>
729 </goals>
730 <configuration>
731 <backend>html5</backend>
732 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
733 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
734 </configuration>
735 </execution>
736 <execution>
737 <id>output-pdf</id>
738 <phase>test</phase>
739 <goals>
740 <goal>process-asciidoc</goal>
741 </goals>
742 <configuration>
743 <backend>pdf</backend>
744 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
745 </configuration>
746 </execution>
747 </executions>
748 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100749 <plugin>
750 <groupId>org.codehaus.groovy.maven</groupId>
751 <artifactId>gmaven-plugin</artifactId>
752 <version>1.0</version>
753 <executions>
754 <execution>
755 <phase>validate</phase>
756 <goals>
757 <goal>execute</goal>
758 </goals>
759 <configuration>
760 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
761 </configuration>
762 </execution>
763 </executions>
764 </plugin>
765 <plugin>
766 <groupId>org.apache.maven.plugins</groupId>
767 <artifactId>maven-jar-plugin</artifactId>
768 <version>3.0.2</version>
769 <executions>
770 <execution>
771 <id>jar-with-only-classes</id>
772 <phase>package</phase>
773 <goals>
774 <goal>jar</goal>
775 </goals>
776 <configuration>
777 <classifier>classes</classifier>
778 <includes>
779 <include>org/**</include>
780 </includes>
781 </configuration>
782 </execution>
783 </executions>
784 </plugin>
785 <plugin>
786 <groupId>org.codehaus.mojo</groupId>
787 <artifactId>build-helper-maven-plugin</artifactId>
788 <version>3.0.0</version>
789 <executions>
790 <execution>
791 <goals>
792 <goal>attach-artifact</goal>
793 </goals>
794 <phase>package</phase>
795 <configuration>
796 <artifacts>
797 <artifact>
798 <file>${project.build.directory}/clamp-classes.jar</file>
799 <type>jar</type>
800 <classifier>classes</classifier>
801 </artifact>
802 </artifacts>
803 </configuration>
804 </execution>
805 </executions>
806 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700807
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100808 <plugin>
809 <groupId>org.springframework.boot</groupId>
810 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200811 <!-- Temporary fix -->
812 <version>1.5.13.RELEASE</version>
813 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100814 <executions>
815 <execution>
816 <goals>
817 <goal>repackage</goal>
818 </goals>
819 <phase>package</phase>
820 </execution>
821 </executions>
822 </plugin>
823 <plugin>
824 <groupId>org.sonatype.plugins</groupId>
825 <artifactId>nexus-staging-maven-plugin</artifactId>
826 <version>1.6.7</version>
827 <extensions>true</extensions>
828 <configuration>
829 <nexusUrl>https://nexus.onap.org</nexusUrl>
830 <stagingProfileId>176c31dfe190a</stagingProfileId>
831 <serverId>ecomp-staging</serverId>
832 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
833 </configuration>
834 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200835
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100836 <plugin>
837 <groupId>org.apache.maven.plugins</groupId>
838 <artifactId>maven-surefire-plugin</artifactId>
839 <version>2.19.1</version>
840 <configuration>
841 <forkCount>1</forkCount>
842 <reuseForks>false</reuseForks>
843 </configuration>
844 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200845
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100846 <plugin>
847 <groupId>org.apache.maven.plugins</groupId>
848 <artifactId>maven-failsafe-plugin</artifactId>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200849 <version>2.17</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700850
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100851 <executions>
852 <execution>
853 <id>integration-tests</id>
854 <goals>
855 <goal>integration-test</goal>
856 <goal>verify</goal>
857 </goals>
858 <configuration>
859 <includes>
860 <include>**/*ItCase.java</include>
861 </includes>
862 <forkCount>1</forkCount>
863 <reuseForks>false</reuseForks>
864 </configuration>
865 </execution>
866 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200867
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100868 </plugin>
869 <plugin>
870 <groupId>io.fabric8</groupId>
871 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200872 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100873 <configuration>
874 <verbose>true</verbose>
875 <apiVersion>1.23</apiVersion>
876 <images>
877 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200878 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100879 <alias>mariadb</alias>
880 <run>
881 <env>
882 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
883 </env>
884 <hostname>mariadb</hostname>
885 <volumes>
886 <bind>
887 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
888 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
889 </bind>
890 </volumes>
891 <wait>
892 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100893 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100894 </wait>
895 <ports>
896 <port>${docker.mariadb.port.host}:3306</port>
897 </ports>
898 </run>
899 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100900 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200901 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100902 <alias>python</alias>
903 <run>
904 <hostname>python</hostname>
905 <volumes>
906 <bind>
907 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100908 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100909 </bind>
910 </volumes>
911 <wait>
912 <tcp>
913 <ports>
914 <port>8080</port>
915 </ports>
916 <mode>direct</mode>
917 </tcp>
918 <time>120000</time>
919 </wait>
920 <ports>
921 <port>${docker.http-cache.port.host}:8080</port>
922 </ports>
923 <workingDir>/usr/src/http-cache-app</workingDir>
924 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200925 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100926 </cmd>
927 </run>
928 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200929 <image>
930 <name>onap/clamp</name>
931 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200932 <run>
933 <skip>true</skip>
934 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200935 <build>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200936 <imagePullPolicy>never</imagePullPolicy>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200937 <cleanup>true</cleanup>
938 <tags>
939 <tag>latest</tag>
940 <tag>${project.docker.latesttagtimestamp.version}</tag>
941 <tag>${project.docker.latesttag.version}</tag>
942 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200943 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
944 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200945 <dockerFile>Dockerfile</dockerFile>
946 <assembly>
947 <descriptor>assembly/clamp-files.xml</descriptor>
948 <name>onap-clamp</name>
949 </assembly>
950 </build>
951 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100952 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100953 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200954
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100955 <executions>
956 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200957 <id>generate-images</id>
958 <phase>install</phase>
959 <goals>
960 <goal>build</goal>
961 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200962 </execution>
963 <execution>
964 <id>push-images</id>
965 <phase>deploy</phase>
966 <goals>
967 <goal>push</goal>
968 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200969 </execution>
970 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100971 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100972 <phase>pre-integration-test</phase>
973 <goals>
974 <goal>start</goal>
975 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100976 </execution>
977 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100978 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100979 <phase>post-integration-test</phase>
980 <goals>
981 <goal>stop</goal>
982 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100983 </execution>
984 </executions>
985 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700986
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100987 <plugin>
988 <groupId>org.jacoco</groupId>
989 <artifactId>jacoco-maven-plugin</artifactId>
990 <version>0.7.7.201606060606</version>
991 <configuration>
992 <dumpOnExit>true</dumpOnExit>
993 <includes>
994 <include>org.onap.clamp.*</include>
995 </includes>
996 </configuration>
997 <executions>
998 <execution>
999 <id>pre-unit-test</id>
1000 <goals>
1001 <goal>prepare-agent</goal>
1002 </goals>
1003 <configuration>
1004 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1005 <!-- <append>true</append> -->
1006 </configuration>
1007 </execution>
1008 <execution>
1009 <id>pre-integration-test</id>
1010 <phase>pre-integration-test</phase>
1011 <goals>
1012 <goal>prepare-agent</goal>
1013 </goals>
1014 <configuration>
1015 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1016 <!-- <append>true</append> -->
1017 </configuration>
1018 </execution>
1019 <execution>
1020 <goals>
1021 <goal>merge</goal>
1022 </goals>
1023 <phase>post-integration-test</phase>
1024 <configuration>
1025 <fileSets>
1026 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1027 <directory>${project.build.directory}/coverage-reports</directory>
1028 <includes>
1029 <include>*.exec</include>
1030 </includes>
1031 </fileSet>
1032 </fileSets>
1033 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1034 </configuration>
1035 </execution>
1036 </executions>
1037 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001038
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001039 <!-- This plugin will be useful when we will have multi-modules project -->
1040 <plugin>
1041 <groupId>org.codehaus.mojo</groupId>
1042 <artifactId>versions-maven-plugin</artifactId>
1043 <version>1.3.1</version>
1044 </plugin>
1045 </plugins>
1046 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001047</project>