blob: 5e31441966183d2954e0d03eebf2a3c87d46ef3d [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)d0a7a542018-05-18 14:53:16 +020029 <version>2.0.1-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>
85 <skip.docker.build>true</skip.docker.build>
86 <skip.docker.push>true</skip.docker.push>
87 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +020088 <python.http.proxy.param></python.http.proxy.param>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010089 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070090
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010091 <distributionManagement>
92 <repository>
93 <id>ecomp-releases</id>
94 <name>Clamp Release Repository</name>
95 <url>https://nexus.onap.org/content/repositories/releases/</url>
96 </repository>
97 <snapshotRepository>
98 <id>ecomp-snapshots</id>
99 <name>Clamp Snapshot Repository</name>
100 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
101 </snapshotRepository>
102 <site>
103 <id>ecomp-site</id>
104 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
105 </site>
106 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700107
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100108 <repositories>
109 <repository>
110 <id>central</id>
111 <name>Maven 2 repository 2</name>
112 <url>http://repo2.maven.org/maven2/</url>
113 </repository>
114 <repository>
115 <id>ecomp-releases</id>
116 <name>ONAP Release Repository</name>
117 <url>https://nexus.onap.org/content/repositories/releases/</url>
118 </repository>
119 <repository>
120 <id>ecomp-staging</id>
121 <name>ONAP Staging Repository</name>
122 <url>https://nexus.onap.org/content/repositories/staging/</url>
123 </repository>
124 <repository>
125 <id>ecomp-snapshots</id>
126 <name>ONAP Snapshot Repository</name>
127 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
128 <snapshots>
129 <enabled>true</enabled>
130 </snapshots>
131 <releases>
132 <enabled>false</enabled>
133 </releases>
134 </repository>
135 <repository>
136 <id>spring-repo</id>
137 <name>Spring repo</name>
138 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
139 </repository>
140 <repository>
141 <id>repository.jboss.org-public</id>
142 <name>JBoss.org Maven repository</name>
143 <url>https://repository.jboss.org/nexus/content/groups/public</url>
144 </repository>
xg353y2aad6d62018-05-18 17:59:06 +0200145 <repository>
146 <id>jcentral</id>
147 <name>bintray</name>
148 <url>http://jcenter.bintray.com</url>
149 <snapshots>
150 <enabled>false</enabled>
151 </snapshots>
152 </repository>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100153 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700154
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100155 <dependencyManagement>
156 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100157 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100158 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100159 <groupId>org.springframework.boot</groupId>
160 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100161 <version>${springboot.version}</version>
162 <type>pom</type>
163 <scope>import</scope>
164 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100165 <!-- Camel BOM -->
166 <dependency>
167 <groupId>org.apache.camel</groupId>
168 <artifactId>camel-spring-boot-dependencies</artifactId>
169 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100170 <type>pom</type>
171 <scope>import</scope>
172 </dependency>
173 </dependencies>
174 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700175
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100176 <dependencies>
177 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100178 <groupId>com.att.eelf</groupId>
179 <artifactId>eelf-core</artifactId>
180 <version>${eelf.core.version}</version>
181 </dependency>
182 <!-- For CAMEL -->
183 <dependency>
184 <groupId>org.apache.camel</groupId>
185 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100186 </dependency>
187 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100188 <groupId>org.apache.camel</groupId>
189 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100190 </dependency>
191 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100192 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100193 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100194 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200195 <dependency>
196 <groupId>javax.xml.bind</groupId>
197 <artifactId>jaxb-api</artifactId>
198 <version>2.3.0</version>
199 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100200 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100201 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100202 <groupId>org.springframework.boot</groupId>
203 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100204 </dependency>
205 <dependency>
206 <groupId>org.springframework.boot</groupId>
207 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100208 </dependency>
209 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100210 <groupId>com.paypal.springboot</groupId>
211 <artifactId>resteasy-spring-boot-starter</artifactId>
212 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100213 </dependency>
214 <dependency>
215 <groupId>org.springframework</groupId>
216 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100217 </dependency>
218 <dependency>
219 <groupId>org.springframework.boot</groupId>
220 <artifactId>spring-boot-starter-security</artifactId>
221 </dependency>
222 <dependency>
223 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100224 <artifactId>spring-boot-starter-actuator</artifactId>
225 </dependency>
226 <dependency>
227 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100228 <artifactId>spring-boot-starter-test</artifactId>
229 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100230 <exclusions>
231 <exclusion>
232 <groupId>com.vaadin.external.google</groupId>
233 <artifactId>android-json</artifactId>
234 </exclusion>
235 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100236 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100237 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100238 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100239 <groupId>ch.qos.logback</groupId>
240 <artifactId>logback-core</artifactId>
241 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100242 </dependency>
243 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100244 <groupId>ch.qos.logback</groupId>
245 <artifactId>logback-classic</artifactId>
246 <version>1.2.3</version>
247 </dependency>
248 <dependency>
249 <groupId>commons-dbcp</groupId>
250 <artifactId>commons-dbcp</artifactId>
251 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100252 </dependency>
253 <dependency>
254 <groupId>commons-io</groupId>
255 <artifactId>commons-io</artifactId>
256 <version>2.6</version>
257 </dependency>
258 <dependency>
259 <groupId>com.googlecode.json-simple</groupId>
260 <artifactId>json-simple</artifactId>
261 </dependency>
262 <dependency>
263 <groupId>org.apache.commons</groupId>
264 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100265 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100266 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100267 <dependency>
268 <groupId>joda-time</groupId>
269 <artifactId>joda-time</artifactId>
270 </dependency>
271 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100272 <groupId>org.slf4j</groupId>
273 <artifactId>slf4j-api</artifactId>
274 </dependency>
275 <dependency>
276 <groupId>javax.ws.rs</groupId>
277 <artifactId>javax.ws.rs-api</artifactId>
278 <version>2.0</version>
279 </dependency>
280 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100281 <groupId>junit</groupId>
282 <artifactId>junit</artifactId>
283 </dependency>
284 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100285 <groupId>javax.transaction</groupId>
286 <artifactId>jta</artifactId>
287 <version>1.1</version>
288 </dependency>
289 <dependency>
290 <groupId>javax.persistence</groupId>
291 <artifactId>persistence-api</artifactId>
292 <version>1.0.2</version>
293 </dependency>
294 <dependency>
295 <groupId>org.hibernate</groupId>
296 <artifactId>hibernate-annotations</artifactId>
297 <version>3.5.6-Final</version>
298 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100299 <dependency>
300 <groupId>dom4j</groupId>
301 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100302 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700303
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100304 <dependency>
305 <groupId>org.onap.policy.engine</groupId>
306 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200307 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100308 <exclusions>
309 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500310 <groupId>com.google.guava</groupId>
311 <artifactId>guava</artifactId>
312 </exclusion>
313 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100314 <artifactId>log4j</artifactId>
315 <groupId>log4j</groupId>
316 </exclusion>
317 <exclusion>
318 <groupId>org.slf4j</groupId>
319 <artifactId>slf4j-log4j12</artifactId>
320 </exclusion>
321 <exclusion>
322 <artifactId>apache-log4j-extras</artifactId>
323 <groupId>log4j</groupId>
324 </exclusion>
325 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100326 <groupId>mysql</groupId>
327 <artifactId>mysql-connector-java</artifactId>
328 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100329 <exclusion>
330 <groupId>commons-io</groupId>
331 <artifactId>commons-io</artifactId>
332 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200333 <exclusion>
334 <artifactId>grizzly-http</artifactId>
335 <groupId>org.glassfish.grizzly</groupId>
336 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100337 </exclusions>
338 </dependency>
339 <dependency>
340 <groupId>org.onap.policy.common</groupId>
341 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200342 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100343 <exclusions>
344 <exclusion>
345 <artifactId>log4j</artifactId>
346 <groupId>log4j</groupId>
347 </exclusion>
348 <exclusion>
349 <groupId>org.slf4j</groupId>
350 <artifactId>slf4j-log4j12</artifactId>
351 </exclusion>
352 <exclusion>
353 <artifactId>apache-log4j-extras</artifactId>
354 <groupId>log4j</groupId>
355 </exclusion>
356 </exclusions>
357 </dependency>
358 <dependency>
359 <groupId>org.onap.policy.engine</groupId>
360 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200361 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100362 <exclusions>
363 <exclusion>
364 <artifactId>log4j</artifactId>
365 <groupId>log4j</groupId>
366 </exclusion>
367 <exclusion>
368 <groupId>org.slf4j</groupId>
369 <artifactId>slf4j-log4j12</artifactId>
370 </exclusion>
371 <exclusion>
372 <artifactId>apache-log4j-extras</artifactId>
373 <groupId>log4j</groupId>
374 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100375 <exclusion>
376 <groupId>mysql</groupId>
377 <artifactId>mysql-connector-java</artifactId>
378 </exclusion>
379 <exclusion>
380 <groupId>org.mariadb.jdbc</groupId>
381 <artifactId>mariadb-java-client</artifactId>
382 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100383 <exclusion>
384 <groupId>com.att.nsa</groupId>
385 <artifactId>dmaapClient</artifactId>
386 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100387 </exclusions>
388 </dependency>
389 <dependency>
390 <groupId>org.onap.policy.drools-applications</groupId>
391 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200392 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100393 <exclusions>
394 <exclusion>
395 <artifactId>log4j</artifactId>
396 <groupId>log4j</groupId>
397 </exclusion>
398 <exclusion>
399 <groupId>org.slf4j</groupId>
400 <artifactId>slf4j-log4j12</artifactId>
401 </exclusion>
402 <exclusion>
403 <artifactId>apache-log4j-extras</artifactId>
404 <groupId>log4j</groupId>
405 </exclusion>
406 </exclusions>
407 </dependency>
408 <dependency>
409 <groupId>org.onap.policy.drools-applications</groupId>
410 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200411 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100412 <exclusions>
413 <exclusion>
414 <artifactId>log4j</artifactId>
415 <groupId>log4j</groupId>
416 </exclusion>
417 <exclusion>
418 <groupId>org.slf4j</groupId>
419 <artifactId>slf4j-log4j12</artifactId>
420 </exclusion>
421 <exclusion>
422 <artifactId>apache-log4j-extras</artifactId>
423 <groupId>log4j</groupId>
424 </exclusion>
425 </exclusions>
426 </dependency>
427 <dependency>
428 <groupId>org.onap.policy.drools-applications</groupId>
429 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200430 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100431 <exclusions>
432 <exclusion>
433 <artifactId>log4j</artifactId>
434 <groupId>log4j</groupId>
435 </exclusion>
436 <exclusion>
437 <groupId>org.slf4j</groupId>
438 <artifactId>slf4j-log4j12</artifactId>
439 </exclusion>
440 <exclusion>
441 <artifactId>apache-log4j-extras</artifactId>
442 <groupId>log4j</groupId>
443 </exclusion>
444 </exclusions>
445 </dependency>
446 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100447 <groupId>org.apache.commons</groupId>
448 <artifactId>commons-csv</artifactId>
449 <version>1.3</version>
450 </dependency>
451 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100452 <groupId>com.sun.faces</groupId>
453 <artifactId>jsf-api</artifactId>
454 <version>2.1.7</version>
455 </dependency>
456 <dependency>
457 <groupId>com.sun.faces</groupId>
458 <artifactId>jsf-impl</artifactId>
459 <version>2.1.7</version>
460 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100461 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
462 <dependency>
463 <groupId>org.codehaus.plexus</groupId>
464 <artifactId>plexus-utils</artifactId>
465 <version>3.0.24</version>
466 </dependency>
467 <dependency>
468 <groupId>commons-fileupload</groupId>
469 <artifactId>commons-fileupload</artifactId>
470 <version>1.3.3</version>
471 </dependency>
472 <dependency>
473 <groupId>org.jboss.spec.javax.ws.rs</groupId>
474 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
475 <version>1.0.1.Final</version>
476 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100477 <!-- Remove the MYSQL connector and replace it by Mariadb -->
478 <dependency>
479 <groupId>org.mariadb.jdbc</groupId>
480 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100481 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100482 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100483 <!-- For SDC Controller -->
484 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200485 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100486 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200487 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100488 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100489 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200490 <groupId>org.onap.sdc.sdc-tosca</groupId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100491 <artifactId>sdc-tosca</artifactId>
Determe, Sebastien (sd378r)e78f00c2018-04-11 17:25:04 +0200492 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100493 </dependency>
xg353y2aad6d62018-05-18 17:59:06 +0200494 <!-- To generate Swagger.json, swagger.html and swagger.pdf -->
495 <dependency>
496 <groupId>io.springfox</groupId>
497 <artifactId>springfox-swagger2</artifactId>
498 <version>2.4.0</version>
499 <scope>test</scope>
500 </dependency>
501 <dependency>
502 <groupId>io.github.robwin</groupId>
503 <artifactId>assertj-swagger</artifactId>
504 <version>0.2.0</version>
505 <scope>test</scope>
506 </dependency>
507 <dependency>
508 <groupId>io.github.swagger2markup</groupId>
509 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
510 <version>1.2.0</version>
511 <scope>test</scope>
512 </dependency>
513 </dependencies>
514 <pluginRepositories>
515 <pluginRepository>
516 <snapshots>
517 <enabled>false</enabled>
518 </snapshots>
519 <id>jcenter-releases</id>
520 <name>jcenter</name>
521 <url>http://jcenter.bintray.com</url>
522 </pluginRepository>
523 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100524 <build>
525 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700526
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100527 <testResources>
528 <testResource>
529 <directory>src/test/resources</directory>
530 <excludes>
531 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100532 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100533 </excludes>
534 <filtering>true</filtering>
535 </testResource>
536 <testResource>
537 <directory>src/test/resources/https</directory>
538 <includes>
539 <include>**.jks</include>
540 </includes>
541 <filtering>false</filtering>
542 <targetPath>https</targetPath>
543 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100544 <testResource>
545 <directory>src/test/resources/example/sdc</directory>
546 <includes>
547 <include>**.csar</include>
548 </includes>
549 <filtering>false</filtering>
550 <targetPath>example/sdc</targetPath>
551 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100552 </testResources>
553 <resources>
554 <resource>
555 <directory>src/main/resources</directory>
556 <filtering>true</filtering>
557 </resource>
558 <resource>
559 <directory>src/main/docker</directory>
560 <includes>
561 <include>**/*</include>
562 </includes>
563 <filtering>true</filtering>
564 </resource>
565 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700566
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100567 <plugins>
Determe, Sebastien (sd378r)ea3bc522018-05-23 22:08:35 +0200568 <plugin>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-antrun-plugin</artifactId>
571 <version>1.1</version>
572 <executions>
573 <execution>
574 <phase>validate</phase>
575 <goals>
576 <goal>run</goal>
577 </goals>
578 <configuration>
579 <tasks>
580 <echo>******** Displaying value of property ********</echo>
581 <echo>Docker host set:${env.DOCKER_HOST}</echo>
582 </tasks>
583 </configuration>
584 </execution>
585 </executions>
586 </plugin>
587
xg353y2aad6d62018-05-18 17:59:06 +0200588 <!-- Scan Clamp code and generate the swagger.json file with all the APIs -->
589 <plugin>
590 <groupId>com.sebastian-daschner</groupId>
591 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
592 <version>0.14</version>
593 <executions>
594 <execution>
595 <phase>test</phase>
596 <goals>
597 <goal>analyze-jaxrs</goal>
598 </goals>
599 <configuration>
600 <backend>swagger</backend>
601 <resourcesDir>../docs/swagger/</resourcesDir>
602 </configuration>
603 </execution>
604 </executions>
605 </plugin>
606
607 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
608 generate a list of .adoc files containing the APIs info in more structured way -->
609 <plugin>
610 <groupId>io.github.swagger2markup</groupId>
611 <artifactId>swagger2markup-maven-plugin</artifactId>
612 <version>1.3.1</version>
613 <dependencies>
614 <dependency>
615 <groupId>io.github.swagger2markup</groupId>
616 <artifactId>swagger2markup-import-files-ext</artifactId>
617 <version>1.3.1</version>
618 </dependency>
619 <dependency>
620 <groupId>io.github.swagger2markup</groupId>
621 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
622 <version>1.3.1</version>
623 </dependency>
624 </dependencies>
625 <configuration>
626 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
627 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
628 <config>
629 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
630 </config>
631 </configuration>
632 <executions>
633 <execution>
634 <phase>test</phase>
635 <goals>
636 <goal>convertSwagger2markup</goal>
637 </goals>
638 </execution>
639 </executions>
640 </plugin>
641
642 <!-- Run the generated asciidoc through Asciidoctor to generate
643 other documentation types, such as PDFs or HTML5 -->
644 <plugin>
645 <groupId>org.asciidoctor</groupId>
646 <artifactId>asciidoctor-maven-plugin</artifactId>
647 <version>1.5.3</version>
648 <dependencies>
649 <dependency>
650 <groupId>org.asciidoctor</groupId>
651 <artifactId>asciidoctorj-pdf</artifactId>
652 <version>1.5.0-alpha.10.1</version>
653 </dependency>
654 <dependency>
655 <groupId>org.jruby</groupId>
656 <artifactId>jruby-complete</artifactId>
657 <version>1.7.21</version>
658 </dependency>
659 </dependencies>
660 <configuration>
661 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
662 <sourceDocumentName>swagger.adoc</sourceDocumentName>
663 <attributes>
664 <doctype>book</doctype>
665 <toc>left</toc>
666 <toclevels>3</toclevels>
667 <numbered></numbered>
668 <hardbreaks></hardbreaks>
669 <sectlinks></sectlinks>
670 <sectanchors></sectanchors>
671 <generated>${project.build.directory}/asciidoc/generated</generated>
672 </attributes>
673 </configuration>
674
675 <executions>
676 <execution>
677 <id>output-html</id>
678 <phase>test</phase>
679 <goals>
680 <goal>process-asciidoc</goal>
681 </goals>
682 <configuration>
683 <backend>html5</backend>
684 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
685 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
686 </configuration>
687 </execution>
688 <execution>
689 <id>output-pdf</id>
690 <phase>test</phase>
691 <goals>
692 <goal>process-asciidoc</goal>
693 </goals>
694 <configuration>
695 <backend>pdf</backend>
696 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
697 </configuration>
698 </execution>
699 </executions>
700 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100701 <plugin>
702 <groupId>org.codehaus.groovy.maven</groupId>
703 <artifactId>gmaven-plugin</artifactId>
704 <version>1.0</version>
705 <executions>
706 <execution>
707 <phase>validate</phase>
708 <goals>
709 <goal>execute</goal>
710 </goals>
711 <configuration>
712 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
713 </configuration>
714 </execution>
715 </executions>
716 </plugin>
717 <plugin>
718 <groupId>org.apache.maven.plugins</groupId>
719 <artifactId>maven-jar-plugin</artifactId>
720 <version>3.0.2</version>
721 <executions>
722 <execution>
723 <id>jar-with-only-classes</id>
724 <phase>package</phase>
725 <goals>
726 <goal>jar</goal>
727 </goals>
728 <configuration>
729 <classifier>classes</classifier>
730 <includes>
731 <include>org/**</include>
732 </includes>
733 </configuration>
734 </execution>
735 </executions>
736 </plugin>
737 <plugin>
738 <groupId>org.codehaus.mojo</groupId>
739 <artifactId>build-helper-maven-plugin</artifactId>
740 <version>3.0.0</version>
741 <executions>
742 <execution>
743 <goals>
744 <goal>attach-artifact</goal>
745 </goals>
746 <phase>package</phase>
747 <configuration>
748 <artifacts>
749 <artifact>
750 <file>${project.build.directory}/clamp-classes.jar</file>
751 <type>jar</type>
752 <classifier>classes</classifier>
753 </artifact>
754 </artifacts>
755 </configuration>
756 </execution>
757 </executions>
758 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700759
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100760 <plugin>
761 <groupId>org.springframework.boot</groupId>
762 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100763 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100764 <executions>
765 <execution>
766 <goals>
767 <goal>repackage</goal>
768 </goals>
769 <phase>package</phase>
770 </execution>
771 </executions>
772 </plugin>
773 <plugin>
774 <groupId>org.sonatype.plugins</groupId>
775 <artifactId>nexus-staging-maven-plugin</artifactId>
776 <version>1.6.7</version>
777 <extensions>true</extensions>
778 <configuration>
779 <nexusUrl>https://nexus.onap.org</nexusUrl>
780 <stagingProfileId>176c31dfe190a</stagingProfileId>
781 <serverId>ecomp-staging</serverId>
782 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
783 </configuration>
784 </plugin>
785 <plugin>
786 <groupId>com.spotify</groupId>
787 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)ea3bc522018-05-23 22:08:35 +0200788 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100789 <configuration>
790 <imageName>onap/clamp</imageName>
791 <dockerDirectory>src/main/docker</dockerDirectory>
792 <serverId>docker-hub</serverId>
793 <imageTags>
794 <imageTag>latest</imageTag>
795 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
796 <imageTag>${project.docker.latesttag.version}</imageTag>
797 </imageTags>
798 <forceTags>true</forceTags>
799 <resources>
800 <resource>
801 <targetPath>/</targetPath>
802 <directory>${project.build.directory}</directory>
803 <include>${project.build.finalName}.jar</include>
804 </resource>
805 <resource>
806 <targetPath>/</targetPath>
807 <directory>${project.build.directory}</directory>
808 <include>etc/config/**</include>
809 </resource>
810 <resource>
811 <targetPath>/</targetPath>
812 <directory>${project.build.directory}</directory>
813 <include>etc/keystore/**</include>
814 </resource>
815 </resources>
816 </configuration>
817 <executions>
818 <execution>
819 <id>build-image</id>
820 <phase>package</phase>
821 <goals>
822 <goal>build</goal>
823 </goals>
824 <configuration>
825 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
826 <buildArgs>
827 <http_proxy>${env.HTTP_PROXY}</http_proxy>
828 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
829 </buildArgs>
830 </configuration>
831 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700832
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100833 <execution>
834 <id>tag-image-latest-timestamp</id>
835 <phase>package</phase>
836 <goals>
837 <goal>tag</goal>
838 </goals>
839 <configuration>
840 <image>onap/clamp</image>
841 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
842 <skipDockerTag>${skip.docker.push}</skipDockerTag>
843 </configuration>
844 </execution>
845 <execution>
846 <id>push-image-latest-timestamp</id>
847 <phase>deploy</phase>
848 <goals>
849 <goal>push</goal>
850 </goals>
851 <configuration>
852 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
853 <skipDockerPush>${skip.docker.push}</skipDockerPush>
854 </configuration>
855 </execution>
856 <execution>
857 <id>tag-image-latest</id>
858 <phase>package</phase>
859 <goals>
860 <goal>tag</goal>
861 </goals>
862 <configuration>
863 <image>onap/clamp</image>
864 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
865 <skipDockerTag>${skip.docker.push}</skipDockerTag>
866 </configuration>
867 </execution>
868 <execution>
869 <id>push-image-latest</id>
870 <phase>deploy</phase>
871 <goals>
872 <goal>push</goal>
873 </goals>
874 <configuration>
875 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
876 <skipDockerPush>${skip.docker.push}</skipDockerPush>
877 </configuration>
878 </execution>
879 <execution>
880 <id>tag-image</id>
881 <phase>package</phase>
882 <goals>
883 <goal>tag</goal>
884 </goals>
885 <configuration>
886 <image>onap/clamp</image>
887 <newName>${docker.push.registry}/onap/clamp:latest</newName>
888 <skipDockerTag>${skip.docker.push}</skipDockerTag>
889 </configuration>
890 </execution>
891 <execution>
892 <id>push-image</id>
893 <phase>deploy</phase>
894 <goals>
895 <goal>push</goal>
896 </goals>
897 <configuration>
898 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
899 <skipDockerPush>${skip.docker.push}</skipDockerPush>
900 </configuration>
901 </execution>
902 </executions>
903 </plugin>
904 <plugin>
905 <groupId>org.apache.maven.plugins</groupId>
906 <artifactId>maven-surefire-plugin</artifactId>
907 <version>2.19.1</version>
908 <configuration>
909 <forkCount>1</forkCount>
910 <reuseForks>false</reuseForks>
911 </configuration>
912 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200913
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100914 <plugin>
915 <groupId>org.apache.maven.plugins</groupId>
916 <artifactId>maven-failsafe-plugin</artifactId>
917 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700918
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100919 <executions>
920 <execution>
921 <id>integration-tests</id>
922 <goals>
923 <goal>integration-test</goal>
924 <goal>verify</goal>
925 </goals>
926 <configuration>
927 <includes>
928 <include>**/*ItCase.java</include>
929 </includes>
930 <forkCount>1</forkCount>
931 <reuseForks>false</reuseForks>
932 </configuration>
933 </execution>
934 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700935
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100936 </plugin>
937 <plugin>
938 <groupId>io.fabric8</groupId>
939 <artifactId>docker-maven-plugin</artifactId>
940 <version>0.16.5</version>
941 <configuration>
942 <verbose>true</verbose>
943 <apiVersion>1.23</apiVersion>
944 <images>
945 <image>
946 <name>mariadb:10.1.11</name>
947 <alias>mariadb</alias>
948 <run>
949 <env>
950 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
951 </env>
952 <hostname>mariadb</hostname>
953 <volumes>
954 <bind>
955 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
956 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
957 </bind>
958 </volumes>
959 <wait>
960 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100961 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100962 </wait>
963 <ports>
964 <port>${docker.mariadb.port.host}:3306</port>
965 </ports>
966 </run>
967 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100968 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100969 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100970 <alias>python</alias>
971 <run>
972 <hostname>python</hostname>
973 <volumes>
974 <bind>
975 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100976 <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 +0100977 </bind>
978 </volumes>
979 <wait>
980 <tcp>
981 <ports>
982 <port>8080</port>
983 </ports>
984 <mode>direct</mode>
985 </tcp>
986 <time>120000</time>
987 </wait>
988 <ports>
989 <port>${docker.http-cache.port.host}:8080</port>
990 </ports>
991 <workingDir>/usr/src/http-cache-app</workingDir>
992 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200993 <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 +0100994 </cmd>
995 </run>
996 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100997 </images>
998 <skip>${skipITs}</skip>
999 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -07001000
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001001 <executions>
1002 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001003 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001004 <phase>pre-integration-test</phase>
1005 <goals>
1006 <goal>start</goal>
1007 </goals>
1008 <configuration>
1009 <skip>${skipITs}</skip>
1010 </configuration>
1011 </execution>
1012 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001013 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001014 <phase>post-integration-test</phase>
1015 <goals>
1016 <goal>stop</goal>
1017 </goals>
1018 <configuration>
1019 <skip>${skipITs}</skip>
1020 </configuration>
1021 </execution>
1022 </executions>
1023 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001024
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001025 <plugin>
1026 <groupId>org.jacoco</groupId>
1027 <artifactId>jacoco-maven-plugin</artifactId>
1028 <version>0.7.7.201606060606</version>
1029 <configuration>
1030 <dumpOnExit>true</dumpOnExit>
1031 <includes>
1032 <include>org.onap.clamp.*</include>
1033 </includes>
1034 </configuration>
1035 <executions>
1036 <execution>
1037 <id>pre-unit-test</id>
1038 <goals>
1039 <goal>prepare-agent</goal>
1040 </goals>
1041 <configuration>
1042 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1043 <!-- <append>true</append> -->
1044 </configuration>
1045 </execution>
1046 <execution>
1047 <id>pre-integration-test</id>
1048 <phase>pre-integration-test</phase>
1049 <goals>
1050 <goal>prepare-agent</goal>
1051 </goals>
1052 <configuration>
1053 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1054 <!-- <append>true</append> -->
1055 </configuration>
1056 </execution>
1057 <execution>
1058 <goals>
1059 <goal>merge</goal>
1060 </goals>
1061 <phase>post-integration-test</phase>
1062 <configuration>
1063 <fileSets>
1064 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1065 <directory>${project.build.directory}/coverage-reports</directory>
1066 <includes>
1067 <include>*.exec</include>
1068 </includes>
1069 </fileSet>
1070 </fileSets>
1071 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1072 </configuration>
1073 </execution>
1074 </executions>
1075 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001076
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001077 <!-- This plugin will be useful when we will have multi-modules project -->
1078 <plugin>
1079 <groupId>org.codehaus.mojo</groupId>
1080 <artifactId>versions-maven-plugin</artifactId>
1081 <version>1.3.1</version>
1082 </plugin>
1083 </plugins>
1084 </build>
1085 <profiles>
1086 <profile>
1087 <id>docker</id>
1088 <properties>
1089 <skip.staging.artifacts>true</skip.staging.artifacts>
1090 <skip.docker.build>false</skip.docker.build>
1091 <skip.docker.tag>false</skip.docker.tag>
1092 <skip.docker.push>false</skip.docker.push>
1093 </properties>
1094 </profile>
1095 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -07001096</project>