blob: 93977ac5517a48e1c3e66afef18210e9ee8468a6 [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>
71 <guava.version>20.0</guava.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010072 <eelf.core.version>1.0.0</eelf.core.version>
73 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)4e2bcb22018-04-25 10:43:39 +020074 <springboot.version>1.5.12.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070075
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010076 <sonar.language>java</sonar.language>
77 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
78 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
79 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
80 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
81 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
82 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070083
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010084 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020085 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020086 <docker.skip.build>true</docker.skip.build>
87 <docker.skip.push>true</docker.skip.push>
88 <docker.skip.tag>true</docker.skip.tag>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010089 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +020090 <python.http.proxy.param></python.http.proxy.param>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020091 <tomcat.version>8.5.28</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010092 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070093
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020094 <profiles>
95 <profile>
96 <id>without-test</id>
97 <activation>
98 <property>
99 <name>maven.test.skip</name>
100 <value>true</value>
101 </property>
102 </activation>
103 <properties>
104 <docker.skip.run>true</docker.skip.run>
105 </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>
117 </properties>
118 </profile>
119 <profile>
120 <id>without-IT-only2</id>
121 <activation>
122 <property>
123 <name>skipTests</name>
124 <value>true</value>
125 </property>
126 </activation>
127 <properties>
128 <docker.skip.run>true</docker.skip.run>
129 </properties>
130 </profile>
131 <profile>
132 <id>docker</id>
133 <properties>
134 <skip.staging.artifacts>true</skip.staging.artifacts>
135 <docker.skip.build>false</docker.skip.build>
136 <docker.skip.tag>false</docker.skip.tag>
137 <docker.skip.push>false</docker.skip.push>
138 </properties>
139 </profile>
140 </profiles>
141
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100142 <distributionManagement>
143 <repository>
144 <id>ecomp-releases</id>
145 <name>Clamp Release Repository</name>
146 <url>https://nexus.onap.org/content/repositories/releases/</url>
147 </repository>
148 <snapshotRepository>
149 <id>ecomp-snapshots</id>
150 <name>Clamp Snapshot Repository</name>
151 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
152 </snapshotRepository>
153 <site>
154 <id>ecomp-site</id>
155 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
156 </site>
157 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700158
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100159 <repositories>
160 <repository>
161 <id>central</id>
162 <name>Maven 2 repository 2</name>
163 <url>http://repo2.maven.org/maven2/</url>
164 </repository>
165 <repository>
166 <id>ecomp-releases</id>
167 <name>ONAP Release Repository</name>
168 <url>https://nexus.onap.org/content/repositories/releases/</url>
169 </repository>
170 <repository>
171 <id>ecomp-staging</id>
172 <name>ONAP Staging Repository</name>
173 <url>https://nexus.onap.org/content/repositories/staging/</url>
174 </repository>
175 <repository>
176 <id>ecomp-snapshots</id>
177 <name>ONAP Snapshot Repository</name>
178 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
179 <snapshots>
180 <enabled>true</enabled>
181 </snapshots>
182 <releases>
183 <enabled>false</enabled>
184 </releases>
185 </repository>
186 <repository>
187 <id>spring-repo</id>
188 <name>Spring repo</name>
189 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
190 </repository>
191 <repository>
192 <id>repository.jboss.org-public</id>
193 <name>JBoss.org Maven repository</name>
194 <url>https://repository.jboss.org/nexus/content/groups/public</url>
195 </repository>
xg353y2aad6d62018-05-18 17:59:06 +0200196 <repository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200197 <id>jcentral</id>
198 <name>bintray</name>
199 <url>http://jcenter.bintray.com</url>
200 <snapshots>
201 <enabled>false</enabled>
202 </snapshots>
xg353y2aad6d62018-05-18 17:59:06 +0200203 </repository>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100204 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700205
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100206 <dependencyManagement>
207 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100208 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100209 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100210 <groupId>org.springframework.boot</groupId>
211 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100212 <version>${springboot.version}</version>
213 <type>pom</type>
214 <scope>import</scope>
215 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100216 <!-- Camel BOM -->
217 <dependency>
218 <groupId>org.apache.camel</groupId>
219 <artifactId>camel-spring-boot-dependencies</artifactId>
220 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100221 <type>pom</type>
222 <scope>import</scope>
223 </dependency>
224 </dependencies>
225 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700226
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100227 <dependencies>
228 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100229 <groupId>com.att.eelf</groupId>
230 <artifactId>eelf-core</artifactId>
231 <version>${eelf.core.version}</version>
232 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200233 <dependency>
234 <groupId>org.apache.tomcat.embed</groupId>
235 <artifactId>tomcat-embed-core</artifactId>
236 <version>${tomcat.version}</version>
237 </dependency>
238 <dependency>
239 <groupId>org.apache.tomcat.embed</groupId>
240 <artifactId>tomcat-embed-el</artifactId>
241 <version>${tomcat.version}</version>
242 </dependency>
243 <dependency>
244 <groupId>org.apache.tomcat.embed</groupId>
245 <artifactId>tomcat-embed-websocket</artifactId>
246 <version>${tomcat.version}</version>
247 </dependency>
248 <dependency>
249 <groupId>org.apache.tomcat</groupId>
250 <artifactId>tomcat-annotations-api</artifactId>
251 <version>${tomcat.version}</version>
252 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100253 <!-- For CAMEL -->
254 <dependency>
255 <groupId>org.apache.camel</groupId>
256 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100257 </dependency>
258 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100259 <groupId>org.apache.camel</groupId>
260 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100261 </dependency>
262 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100263 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100264 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100265 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200266 <dependency>
267 <groupId>javax.xml.bind</groupId>
268 <artifactId>jaxb-api</artifactId>
269 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200270 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100271 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100272 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100273 <groupId>org.springframework.boot</groupId>
274 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100275 </dependency>
276 <dependency>
277 <groupId>org.springframework.boot</groupId>
278 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100279 </dependency>
280 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100281 <groupId>com.paypal.springboot</groupId>
282 <artifactId>resteasy-spring-boot-starter</artifactId>
283 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100284 </dependency>
285 <dependency>
286 <groupId>org.springframework</groupId>
287 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100288 </dependency>
289 <dependency>
290 <groupId>org.springframework.boot</groupId>
291 <artifactId>spring-boot-starter-security</artifactId>
292 </dependency>
293 <dependency>
294 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100295 <artifactId>spring-boot-starter-actuator</artifactId>
296 </dependency>
297 <dependency>
298 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100299 <artifactId>spring-boot-starter-test</artifactId>
300 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100301 <exclusions>
302 <exclusion>
303 <groupId>com.vaadin.external.google</groupId>
304 <artifactId>android-json</artifactId>
305 </exclusion>
306 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100307 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100308 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100309 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200310 <groupId>org.onap.aaf.authz</groupId>
311 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200312 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200313 <exclusions>
314 <exclusion>
315 <groupId>javax.servlet</groupId>
316 <artifactId>servlet-api</artifactId>
317 </exclusion>
318 </exclusions>
319 </dependency>
320 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100321 <groupId>ch.qos.logback</groupId>
322 <artifactId>logback-core</artifactId>
323 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100324 </dependency>
325 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100326 <groupId>ch.qos.logback</groupId>
327 <artifactId>logback-classic</artifactId>
328 <version>1.2.3</version>
329 </dependency>
330 <dependency>
331 <groupId>commons-dbcp</groupId>
332 <artifactId>commons-dbcp</artifactId>
333 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100334 </dependency>
335 <dependency>
336 <groupId>commons-io</groupId>
337 <artifactId>commons-io</artifactId>
338 <version>2.6</version>
339 </dependency>
340 <dependency>
341 <groupId>com.googlecode.json-simple</groupId>
342 <artifactId>json-simple</artifactId>
343 </dependency>
344 <dependency>
345 <groupId>org.apache.commons</groupId>
346 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100347 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100348 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100349 <dependency>
350 <groupId>joda-time</groupId>
351 <artifactId>joda-time</artifactId>
352 </dependency>
353 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100354 <groupId>org.slf4j</groupId>
355 <artifactId>slf4j-api</artifactId>
356 </dependency>
357 <dependency>
358 <groupId>javax.ws.rs</groupId>
359 <artifactId>javax.ws.rs-api</artifactId>
360 <version>2.0</version>
361 </dependency>
362 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100363 <groupId>junit</groupId>
364 <artifactId>junit</artifactId>
365 </dependency>
366 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100367 <groupId>javax.transaction</groupId>
368 <artifactId>jta</artifactId>
369 <version>1.1</version>
370 </dependency>
371 <dependency>
372 <groupId>javax.persistence</groupId>
373 <artifactId>persistence-api</artifactId>
374 <version>1.0.2</version>
375 </dependency>
376 <dependency>
377 <groupId>org.hibernate</groupId>
378 <artifactId>hibernate-annotations</artifactId>
379 <version>3.5.6-Final</version>
380 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100381 <dependency>
382 <groupId>dom4j</groupId>
383 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100384 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700385
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100386 <dependency>
387 <groupId>org.onap.policy.engine</groupId>
388 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200389 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100390 <exclusions>
391 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500392 <groupId>com.google.guava</groupId>
393 <artifactId>guava</artifactId>
394 </exclusion>
395 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100396 <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>
407 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100408 <groupId>mysql</groupId>
409 <artifactId>mysql-connector-java</artifactId>
410 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100411 <exclusion>
412 <groupId>commons-io</groupId>
413 <artifactId>commons-io</artifactId>
414 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200415 <exclusion>
416 <artifactId>grizzly-http</artifactId>
417 <groupId>org.glassfish.grizzly</groupId>
418 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100419 </exclusions>
420 </dependency>
421 <dependency>
422 <groupId>org.onap.policy.common</groupId>
423 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200424 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100425 <exclusions>
426 <exclusion>
427 <artifactId>log4j</artifactId>
428 <groupId>log4j</groupId>
429 </exclusion>
430 <exclusion>
431 <groupId>org.slf4j</groupId>
432 <artifactId>slf4j-log4j12</artifactId>
433 </exclusion>
434 <exclusion>
435 <artifactId>apache-log4j-extras</artifactId>
436 <groupId>log4j</groupId>
437 </exclusion>
438 </exclusions>
439 </dependency>
440 <dependency>
441 <groupId>org.onap.policy.engine</groupId>
442 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200443 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100444 <exclusions>
445 <exclusion>
446 <artifactId>log4j</artifactId>
447 <groupId>log4j</groupId>
448 </exclusion>
449 <exclusion>
450 <groupId>org.slf4j</groupId>
451 <artifactId>slf4j-log4j12</artifactId>
452 </exclusion>
453 <exclusion>
454 <artifactId>apache-log4j-extras</artifactId>
455 <groupId>log4j</groupId>
456 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100457 <exclusion>
458 <groupId>mysql</groupId>
459 <artifactId>mysql-connector-java</artifactId>
460 </exclusion>
461 <exclusion>
462 <groupId>org.mariadb.jdbc</groupId>
463 <artifactId>mariadb-java-client</artifactId>
464 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100465 <exclusion>
466 <groupId>com.att.nsa</groupId>
467 <artifactId>dmaapClient</artifactId>
468 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100469 </exclusions>
470 </dependency>
471 <dependency>
472 <groupId>org.onap.policy.drools-applications</groupId>
473 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200474 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100475 <exclusions>
476 <exclusion>
477 <artifactId>log4j</artifactId>
478 <groupId>log4j</groupId>
479 </exclusion>
480 <exclusion>
481 <groupId>org.slf4j</groupId>
482 <artifactId>slf4j-log4j12</artifactId>
483 </exclusion>
484 <exclusion>
485 <artifactId>apache-log4j-extras</artifactId>
486 <groupId>log4j</groupId>
487 </exclusion>
488 </exclusions>
489 </dependency>
490 <dependency>
491 <groupId>org.onap.policy.drools-applications</groupId>
492 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200493 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100494 <exclusions>
495 <exclusion>
496 <artifactId>log4j</artifactId>
497 <groupId>log4j</groupId>
498 </exclusion>
499 <exclusion>
500 <groupId>org.slf4j</groupId>
501 <artifactId>slf4j-log4j12</artifactId>
502 </exclusion>
503 <exclusion>
504 <artifactId>apache-log4j-extras</artifactId>
505 <groupId>log4j</groupId>
506 </exclusion>
507 </exclusions>
508 </dependency>
509 <dependency>
510 <groupId>org.onap.policy.drools-applications</groupId>
511 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200512 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100513 <exclusions>
514 <exclusion>
515 <artifactId>log4j</artifactId>
516 <groupId>log4j</groupId>
517 </exclusion>
518 <exclusion>
519 <groupId>org.slf4j</groupId>
520 <artifactId>slf4j-log4j12</artifactId>
521 </exclusion>
522 <exclusion>
523 <artifactId>apache-log4j-extras</artifactId>
524 <groupId>log4j</groupId>
525 </exclusion>
526 </exclusions>
527 </dependency>
528 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100529 <groupId>org.apache.commons</groupId>
530 <artifactId>commons-csv</artifactId>
531 <version>1.3</version>
532 </dependency>
533 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100534 <groupId>com.sun.faces</groupId>
535 <artifactId>jsf-api</artifactId>
536 <version>2.1.7</version>
537 </dependency>
538 <dependency>
539 <groupId>com.sun.faces</groupId>
540 <artifactId>jsf-impl</artifactId>
541 <version>2.1.7</version>
542 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100543 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
544 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200545 <groupId>org.codehaus.plexus</groupId>
546 <artifactId>plexus-utils</artifactId>
547 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100548 </dependency>
549 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200550 <groupId>commons-fileupload</groupId>
551 <artifactId>commons-fileupload</artifactId>
552 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100553 </dependency>
554 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200555 <groupId>org.jboss.spec.javax.ws.rs</groupId>
556 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
557 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100558 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100559 <!-- Remove the MYSQL connector and replace it by Mariadb -->
560 <dependency>
561 <groupId>org.mariadb.jdbc</groupId>
562 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100563 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100564 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100565 <!-- For SDC Controller -->
566 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200567 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100568 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200569 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100570 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100571 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200572 <groupId>org.onap.sdc.sdc-tosca</groupId>
573 <artifactId>sdc-tosca</artifactId>
574 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100575 </dependency>
xg353y2aad6d62018-05-18 17:59:06 +0200576 <!-- To generate Swagger.json, swagger.html and swagger.pdf -->
xg353y2aad6d62018-05-18 17:59:06 +0200577 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200578 <groupId>io.springfox</groupId>
579 <artifactId>springfox-swagger2</artifactId>
580 <version>2.4.0</version>
581 <scope>test</scope>
xg353y2aad6d62018-05-18 17:59:06 +0200582 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200583 <dependency>
584 <groupId>io.github.robwin</groupId>
585 <artifactId>assertj-swagger</artifactId>
586 <version>0.2.0</version>
587 <scope>test</scope>
588 </dependency>
589 <dependency>
590 <groupId>io.github.swagger2markup</groupId>
591 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
592 <version>1.2.0</version>
593 <scope>test</scope>
594 </dependency>
595 </dependencies>
596 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200597 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200598 <snapshots>
599 <enabled>false</enabled>
600 </snapshots>
601 <id>jcenter-releases</id>
602 <name>jcenter</name>
603 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200604 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200605 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100606 <build>
607 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700608
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100609 <testResources>
610 <testResource>
611 <directory>src/test/resources</directory>
612 <excludes>
613 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100614 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100615 </excludes>
616 <filtering>true</filtering>
617 </testResource>
618 <testResource>
619 <directory>src/test/resources/https</directory>
620 <includes>
621 <include>**.jks</include>
622 </includes>
623 <filtering>false</filtering>
624 <targetPath>https</targetPath>
625 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200626 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100627 <directory>src/test/resources/example/sdc</directory>
628 <includes>
629 <include>**.csar</include>
630 </includes>
631 <filtering>false</filtering>
632 <targetPath>example/sdc</targetPath>
633 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100634 </testResources>
635 <resources>
636 <resource>
637 <directory>src/main/resources</directory>
638 <filtering>true</filtering>
639 </resource>
640 <resource>
641 <directory>src/main/docker</directory>
642 <includes>
643 <include>**/*</include>
644 </includes>
645 <filtering>true</filtering>
646 </resource>
647 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700648
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100649 <plugins>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200650 <!-- Scan Clamp code and generate the swagger.json file with all the
651 APIs -->
Determe, Sebastien (sd378r)133d2e52018-05-24 15:56:29 +0200652 <plugin>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200653 <groupId>com.sebastian-daschner</groupId>
654 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
655 <version>0.14</version>
656 <executions>
657 <execution>
658 <phase>test</phase>
659 <goals>
660 <goal>analyze-jaxrs</goal>
661 </goals>
662 <configuration>
663 <backend>swagger</backend>
664 <resourcesDir>../docs/swagger/</resourcesDir>
665 </configuration>
666 </execution>
667 </executions>
668 </plugin>
Determe, Sebastien (sd378r)73803ec2018-05-24 17:52:25 +0200669
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200670 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
671 generate a list of .adoc files containing the APIs info in more structured
672 way -->
673 <plugin>
674 <groupId>io.github.swagger2markup</groupId>
675 <artifactId>swagger2markup-maven-plugin</artifactId>
676 <version>1.3.1</version>
677 <dependencies>
678 <dependency>
679 <groupId>io.github.swagger2markup</groupId>
680 <artifactId>swagger2markup-import-files-ext</artifactId>
681 <version>1.3.1</version>
682 </dependency>
683 <dependency>
684 <groupId>io.github.swagger2markup</groupId>
685 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
686 <version>1.3.1</version>
687 </dependency>
688 </dependencies>
xg353y2aad6d62018-05-18 17:59:06 +0200689 <configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200690 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
691 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
692 <config>
693 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
694 </config>
xg353y2aad6d62018-05-18 17:59:06 +0200695 </configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200696 <executions>
697 <execution>
698 <phase>test</phase>
699 <goals>
700 <goal>convertSwagger2markup</goal>
701 </goals>
702 </execution>
703 </executions>
704 </plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200705
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200706 <!-- Run the generated asciidoc through Asciidoctor to generate other
707 documentation types, such as PDFs or HTML5 -->
708 <plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200709 <groupId>org.asciidoctor</groupId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200710 <artifactId>asciidoctor-maven-plugin</artifactId>
711 <version>1.5.3</version>
712 <dependencies>
713 <dependency>
714 <groupId>org.asciidoctor</groupId>
715 <artifactId>asciidoctorj-pdf</artifactId>
716 <version>1.5.0-alpha.10.1</version>
717 </dependency>
718 <dependency>
719 <groupId>org.jruby</groupId>
720 <artifactId>jruby-complete</artifactId>
721 <version>1.7.21</version>
722 </dependency>
723 </dependencies>
724 <configuration>
725 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
726 <sourceDocumentName>swagger.adoc</sourceDocumentName>
727 <attributes>
728 <doctype>book</doctype>
729 <toc>left</toc>
730 <toclevels>3</toclevels>
731 <numbered></numbered>
732 <hardbreaks></hardbreaks>
733 <sectlinks></sectlinks>
734 <sectanchors></sectanchors>
735 <generated>${project.build.directory}/asciidoc/generated</generated>
736 </attributes>
737 </configuration>
xg353y2aad6d62018-05-18 17:59:06 +0200738
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200739 <executions>
740 <execution>
741 <id>output-html</id>
742 <phase>test</phase>
743 <goals>
744 <goal>process-asciidoc</goal>
745 </goals>
746 <configuration>
747 <backend>html5</backend>
748 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
749 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
750 </configuration>
751 </execution>
752 <execution>
753 <id>output-pdf</id>
754 <phase>test</phase>
755 <goals>
756 <goal>process-asciidoc</goal>
757 </goals>
758 <configuration>
759 <backend>pdf</backend>
760 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
761 </configuration>
762 </execution>
763 </executions>
764 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100765 <plugin>
766 <groupId>org.codehaus.groovy.maven</groupId>
767 <artifactId>gmaven-plugin</artifactId>
768 <version>1.0</version>
769 <executions>
770 <execution>
771 <phase>validate</phase>
772 <goals>
773 <goal>execute</goal>
774 </goals>
775 <configuration>
776 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
777 </configuration>
778 </execution>
779 </executions>
780 </plugin>
781 <plugin>
782 <groupId>org.apache.maven.plugins</groupId>
783 <artifactId>maven-jar-plugin</artifactId>
784 <version>3.0.2</version>
785 <executions>
786 <execution>
787 <id>jar-with-only-classes</id>
788 <phase>package</phase>
789 <goals>
790 <goal>jar</goal>
791 </goals>
792 <configuration>
793 <classifier>classes</classifier>
794 <includes>
795 <include>org/**</include>
796 </includes>
797 </configuration>
798 </execution>
799 </executions>
800 </plugin>
801 <plugin>
802 <groupId>org.codehaus.mojo</groupId>
803 <artifactId>build-helper-maven-plugin</artifactId>
804 <version>3.0.0</version>
805 <executions>
806 <execution>
807 <goals>
808 <goal>attach-artifact</goal>
809 </goals>
810 <phase>package</phase>
811 <configuration>
812 <artifacts>
813 <artifact>
814 <file>${project.build.directory}/clamp-classes.jar</file>
815 <type>jar</type>
816 <classifier>classes</classifier>
817 </artifact>
818 </artifacts>
819 </configuration>
820 </execution>
821 </executions>
822 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700823
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100824 <plugin>
825 <groupId>org.springframework.boot</groupId>
826 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100827 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100828 <executions>
829 <execution>
830 <goals>
831 <goal>repackage</goal>
832 </goals>
833 <phase>package</phase>
834 </execution>
835 </executions>
836 </plugin>
837 <plugin>
838 <groupId>org.sonatype.plugins</groupId>
839 <artifactId>nexus-staging-maven-plugin</artifactId>
840 <version>1.6.7</version>
841 <extensions>true</extensions>
842 <configuration>
843 <nexusUrl>https://nexus.onap.org</nexusUrl>
844 <stagingProfileId>176c31dfe190a</stagingProfileId>
845 <serverId>ecomp-staging</serverId>
846 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
847 </configuration>
848 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200849
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100850 <plugin>
851 <groupId>org.apache.maven.plugins</groupId>
852 <artifactId>maven-surefire-plugin</artifactId>
853 <version>2.19.1</version>
854 <configuration>
855 <forkCount>1</forkCount>
856 <reuseForks>false</reuseForks>
857 </configuration>
858 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200859
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100860 <plugin>
861 <groupId>org.apache.maven.plugins</groupId>
862 <artifactId>maven-failsafe-plugin</artifactId>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200863 <version>2.17</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700864
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100865 <executions>
866 <execution>
867 <id>integration-tests</id>
868 <goals>
869 <goal>integration-test</goal>
870 <goal>verify</goal>
871 </goals>
872 <configuration>
873 <includes>
874 <include>**/*ItCase.java</include>
875 </includes>
876 <forkCount>1</forkCount>
877 <reuseForks>false</reuseForks>
878 </configuration>
879 </execution>
880 </executions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100881 </plugin>
882 <plugin>
883 <groupId>io.fabric8</groupId>
884 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200885 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100886 <configuration>
887 <verbose>true</verbose>
888 <apiVersion>1.23</apiVersion>
889 <images>
890 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200891 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100892 <alias>mariadb</alias>
893 <run>
894 <env>
895 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
896 </env>
897 <hostname>mariadb</hostname>
898 <volumes>
899 <bind>
900 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
901 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
902 </bind>
903 </volumes>
904 <wait>
905 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100906 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100907 </wait>
908 <ports>
909 <port>${docker.mariadb.port.host}:3306</port>
910 </ports>
911 </run>
912 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100913 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200914 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100915 <alias>python</alias>
916 <run>
917 <hostname>python</hostname>
918 <volumes>
919 <bind>
920 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100921 <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 +0100922 </bind>
923 </volumes>
924 <wait>
925 <tcp>
926 <ports>
927 <port>8080</port>
928 </ports>
929 <mode>direct</mode>
930 </tcp>
931 <time>120000</time>
932 </wait>
933 <ports>
934 <port>${docker.http-cache.port.host}:8080</port>
935 </ports>
936 <workingDir>/usr/src/http-cache-app</workingDir>
937 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200938 <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 +0100939 </cmd>
940 </run>
941 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200942 <image>
943 <name>onap/clamp</name>
944 <alias>onap-clamp</alias>
945 <build>
946 <cleanup>true</cleanup>
947 <tags>
948 <tag>latest</tag>
949 <tag>${project.docker.latesttagtimestamp.version}</tag>
950 <tag>${project.docker.latesttag.version}</tag>
951 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200952 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
953 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200954 <dockerFile>Dockerfile</dockerFile>
955 <assembly>
956 <descriptor>assembly/clamp-files.xml</descriptor>
957 <name>onap-clamp</name>
958 </assembly>
959 </build>
960 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100961 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100962 </configuration>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100963 <executions>
964 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200965 <id>generate-images</id>
966 <phase>install</phase>
967 <goals>
968 <goal>build</goal>
969 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200970 </execution>
971 <execution>
972 <id>push-images</id>
973 <phase>deploy</phase>
974 <goals>
975 <goal>push</goal>
976 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200977 </execution>
978 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100979 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100980 <phase>pre-integration-test</phase>
981 <goals>
982 <goal>start</goal>
983 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100984 </execution>
985 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100986 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100987 <phase>post-integration-test</phase>
988 <goals>
989 <goal>stop</goal>
990 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100991 </execution>
992 </executions>
993 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700994
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100995 <plugin>
996 <groupId>org.jacoco</groupId>
997 <artifactId>jacoco-maven-plugin</artifactId>
998 <version>0.7.7.201606060606</version>
999 <configuration>
1000 <dumpOnExit>true</dumpOnExit>
1001 <includes>
1002 <include>org.onap.clamp.*</include>
1003 </includes>
1004 </configuration>
1005 <executions>
1006 <execution>
1007 <id>pre-unit-test</id>
1008 <goals>
1009 <goal>prepare-agent</goal>
1010 </goals>
1011 <configuration>
1012 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1013 <!-- <append>true</append> -->
1014 </configuration>
1015 </execution>
1016 <execution>
1017 <id>pre-integration-test</id>
1018 <phase>pre-integration-test</phase>
1019 <goals>
1020 <goal>prepare-agent</goal>
1021 </goals>
1022 <configuration>
1023 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1024 <!-- <append>true</append> -->
1025 </configuration>
1026 </execution>
1027 <execution>
1028 <goals>
1029 <goal>merge</goal>
1030 </goals>
1031 <phase>post-integration-test</phase>
1032 <configuration>
1033 <fileSets>
1034 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1035 <directory>${project.build.directory}/coverage-reports</directory>
1036 <includes>
1037 <include>*.exec</include>
1038 </includes>
1039 </fileSet>
1040 </fileSets>
1041 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1042 </configuration>
1043 </execution>
1044 </executions>
1045 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001046
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001047 <!-- This plugin will be useful when we will have multi-modules project -->
1048 <plugin>
1049 <groupId>org.codehaus.mojo</groupId>
1050 <artifactId>versions-maven-plugin</artifactId>
1051 <version>1.3.1</version>
1052 </plugin>
1053 </plugins>
1054 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001055</project>