blob: dcfbcb7e2d567f889eb89afef56faec647cb5c8d [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>
29 <version>2.0.0-SNAPSHOT</version>
30 <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>
xg353y2aad6d62018-05-18 17:59:06 +0200568 <!-- Scan Clamp code and generate the swagger.json file with all the APIs -->
569 <plugin>
570 <groupId>com.sebastian-daschner</groupId>
571 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
572 <version>0.14</version>
573 <executions>
574 <execution>
575 <phase>test</phase>
576 <goals>
577 <goal>analyze-jaxrs</goal>
578 </goals>
579 <configuration>
580 <backend>swagger</backend>
581 <resourcesDir>../docs/swagger/</resourcesDir>
582 </configuration>
583 </execution>
584 </executions>
585 </plugin>
586
587 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
588 generate a list of .adoc files containing the APIs info in more structured way -->
589 <plugin>
590 <groupId>io.github.swagger2markup</groupId>
591 <artifactId>swagger2markup-maven-plugin</artifactId>
592 <version>1.3.1</version>
593 <dependencies>
594 <dependency>
595 <groupId>io.github.swagger2markup</groupId>
596 <artifactId>swagger2markup-import-files-ext</artifactId>
597 <version>1.3.1</version>
598 </dependency>
599 <dependency>
600 <groupId>io.github.swagger2markup</groupId>
601 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
602 <version>1.3.1</version>
603 </dependency>
604 </dependencies>
605 <configuration>
606 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
607 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
608 <config>
609 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
610 </config>
611 </configuration>
612 <executions>
613 <execution>
614 <phase>test</phase>
615 <goals>
616 <goal>convertSwagger2markup</goal>
617 </goals>
618 </execution>
619 </executions>
620 </plugin>
621
622 <!-- Run the generated asciidoc through Asciidoctor to generate
623 other documentation types, such as PDFs or HTML5 -->
624 <plugin>
625 <groupId>org.asciidoctor</groupId>
626 <artifactId>asciidoctor-maven-plugin</artifactId>
627 <version>1.5.3</version>
628 <dependencies>
629 <dependency>
630 <groupId>org.asciidoctor</groupId>
631 <artifactId>asciidoctorj-pdf</artifactId>
632 <version>1.5.0-alpha.10.1</version>
633 </dependency>
634 <dependency>
635 <groupId>org.jruby</groupId>
636 <artifactId>jruby-complete</artifactId>
637 <version>1.7.21</version>
638 </dependency>
639 </dependencies>
640 <configuration>
641 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
642 <sourceDocumentName>swagger.adoc</sourceDocumentName>
643 <attributes>
644 <doctype>book</doctype>
645 <toc>left</toc>
646 <toclevels>3</toclevels>
647 <numbered></numbered>
648 <hardbreaks></hardbreaks>
649 <sectlinks></sectlinks>
650 <sectanchors></sectanchors>
651 <generated>${project.build.directory}/asciidoc/generated</generated>
652 </attributes>
653 </configuration>
654
655 <executions>
656 <execution>
657 <id>output-html</id>
658 <phase>test</phase>
659 <goals>
660 <goal>process-asciidoc</goal>
661 </goals>
662 <configuration>
663 <backend>html5</backend>
664 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
665 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
666 </configuration>
667 </execution>
668 <execution>
669 <id>output-pdf</id>
670 <phase>test</phase>
671 <goals>
672 <goal>process-asciidoc</goal>
673 </goals>
674 <configuration>
675 <backend>pdf</backend>
676 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
677 </configuration>
678 </execution>
679 </executions>
680 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100681 <plugin>
682 <groupId>org.codehaus.groovy.maven</groupId>
683 <artifactId>gmaven-plugin</artifactId>
684 <version>1.0</version>
685 <executions>
686 <execution>
687 <phase>validate</phase>
688 <goals>
689 <goal>execute</goal>
690 </goals>
691 <configuration>
692 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
693 </configuration>
694 </execution>
695 </executions>
696 </plugin>
697 <plugin>
698 <groupId>org.apache.maven.plugins</groupId>
699 <artifactId>maven-jar-plugin</artifactId>
700 <version>3.0.2</version>
701 <executions>
702 <execution>
703 <id>jar-with-only-classes</id>
704 <phase>package</phase>
705 <goals>
706 <goal>jar</goal>
707 </goals>
708 <configuration>
709 <classifier>classes</classifier>
710 <includes>
711 <include>org/**</include>
712 </includes>
713 </configuration>
714 </execution>
715 </executions>
716 </plugin>
717 <plugin>
718 <groupId>org.codehaus.mojo</groupId>
719 <artifactId>build-helper-maven-plugin</artifactId>
720 <version>3.0.0</version>
721 <executions>
722 <execution>
723 <goals>
724 <goal>attach-artifact</goal>
725 </goals>
726 <phase>package</phase>
727 <configuration>
728 <artifacts>
729 <artifact>
730 <file>${project.build.directory}/clamp-classes.jar</file>
731 <type>jar</type>
732 <classifier>classes</classifier>
733 </artifact>
734 </artifacts>
735 </configuration>
736 </execution>
737 </executions>
738 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700739
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100740 <plugin>
741 <groupId>org.springframework.boot</groupId>
742 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100743 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100744 <executions>
745 <execution>
746 <goals>
747 <goal>repackage</goal>
748 </goals>
749 <phase>package</phase>
750 </execution>
751 </executions>
752 </plugin>
753 <plugin>
754 <groupId>org.sonatype.plugins</groupId>
755 <artifactId>nexus-staging-maven-plugin</artifactId>
756 <version>1.6.7</version>
757 <extensions>true</extensions>
758 <configuration>
759 <nexusUrl>https://nexus.onap.org</nexusUrl>
760 <stagingProfileId>176c31dfe190a</stagingProfileId>
761 <serverId>ecomp-staging</serverId>
762 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
763 </configuration>
764 </plugin>
765 <plugin>
766 <groupId>com.spotify</groupId>
767 <artifactId>docker-maven-plugin</artifactId>
768 <version>1.0.0</version>
769 <configuration>
770 <imageName>onap/clamp</imageName>
771 <dockerDirectory>src/main/docker</dockerDirectory>
772 <serverId>docker-hub</serverId>
773 <imageTags>
774 <imageTag>latest</imageTag>
775 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
776 <imageTag>${project.docker.latesttag.version}</imageTag>
777 </imageTags>
778 <forceTags>true</forceTags>
779 <resources>
780 <resource>
781 <targetPath>/</targetPath>
782 <directory>${project.build.directory}</directory>
783 <include>${project.build.finalName}.jar</include>
784 </resource>
785 <resource>
786 <targetPath>/</targetPath>
787 <directory>${project.build.directory}</directory>
788 <include>etc/config/**</include>
789 </resource>
790 <resource>
791 <targetPath>/</targetPath>
792 <directory>${project.build.directory}</directory>
793 <include>etc/keystore/**</include>
794 </resource>
795 </resources>
796 </configuration>
797 <executions>
798 <execution>
799 <id>build-image</id>
800 <phase>package</phase>
801 <goals>
802 <goal>build</goal>
803 </goals>
804 <configuration>
805 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
806 <buildArgs>
807 <http_proxy>${env.HTTP_PROXY}</http_proxy>
808 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
809 </buildArgs>
810 </configuration>
811 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700812
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100813 <execution>
814 <id>tag-image-latest-timestamp</id>
815 <phase>package</phase>
816 <goals>
817 <goal>tag</goal>
818 </goals>
819 <configuration>
820 <image>onap/clamp</image>
821 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
822 <skipDockerTag>${skip.docker.push}</skipDockerTag>
823 </configuration>
824 </execution>
825 <execution>
826 <id>push-image-latest-timestamp</id>
827 <phase>deploy</phase>
828 <goals>
829 <goal>push</goal>
830 </goals>
831 <configuration>
832 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
833 <skipDockerPush>${skip.docker.push}</skipDockerPush>
834 </configuration>
835 </execution>
836 <execution>
837 <id>tag-image-latest</id>
838 <phase>package</phase>
839 <goals>
840 <goal>tag</goal>
841 </goals>
842 <configuration>
843 <image>onap/clamp</image>
844 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
845 <skipDockerTag>${skip.docker.push}</skipDockerTag>
846 </configuration>
847 </execution>
848 <execution>
849 <id>push-image-latest</id>
850 <phase>deploy</phase>
851 <goals>
852 <goal>push</goal>
853 </goals>
854 <configuration>
855 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
856 <skipDockerPush>${skip.docker.push}</skipDockerPush>
857 </configuration>
858 </execution>
859 <execution>
860 <id>tag-image</id>
861 <phase>package</phase>
862 <goals>
863 <goal>tag</goal>
864 </goals>
865 <configuration>
866 <image>onap/clamp</image>
867 <newName>${docker.push.registry}/onap/clamp:latest</newName>
868 <skipDockerTag>${skip.docker.push}</skipDockerTag>
869 </configuration>
870 </execution>
871 <execution>
872 <id>push-image</id>
873 <phase>deploy</phase>
874 <goals>
875 <goal>push</goal>
876 </goals>
877 <configuration>
878 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
879 <skipDockerPush>${skip.docker.push}</skipDockerPush>
880 </configuration>
881 </execution>
882 </executions>
883 </plugin>
884 <plugin>
885 <groupId>org.apache.maven.plugins</groupId>
886 <artifactId>maven-surefire-plugin</artifactId>
887 <version>2.19.1</version>
888 <configuration>
889 <forkCount>1</forkCount>
890 <reuseForks>false</reuseForks>
891 </configuration>
892 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200893
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100894 <plugin>
895 <groupId>org.apache.maven.plugins</groupId>
896 <artifactId>maven-failsafe-plugin</artifactId>
897 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700898
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100899 <executions>
900 <execution>
901 <id>integration-tests</id>
902 <goals>
903 <goal>integration-test</goal>
904 <goal>verify</goal>
905 </goals>
906 <configuration>
907 <includes>
908 <include>**/*ItCase.java</include>
909 </includes>
910 <forkCount>1</forkCount>
911 <reuseForks>false</reuseForks>
912 </configuration>
913 </execution>
914 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700915
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100916 </plugin>
917 <plugin>
918 <groupId>io.fabric8</groupId>
919 <artifactId>docker-maven-plugin</artifactId>
920 <version>0.16.5</version>
921 <configuration>
922 <verbose>true</verbose>
923 <apiVersion>1.23</apiVersion>
924 <images>
925 <image>
926 <name>mariadb:10.1.11</name>
927 <alias>mariadb</alias>
928 <run>
929 <env>
930 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
931 </env>
932 <hostname>mariadb</hostname>
933 <volumes>
934 <bind>
935 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
936 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
937 </bind>
938 </volumes>
939 <wait>
940 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100941 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100942 </wait>
943 <ports>
944 <port>${docker.mariadb.port.host}:3306</port>
945 </ports>
946 </run>
947 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100948 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100949 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100950 <alias>python</alias>
951 <run>
952 <hostname>python</hostname>
953 <volumes>
954 <bind>
955 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100956 <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 +0100957 </bind>
958 </volumes>
959 <wait>
960 <tcp>
961 <ports>
962 <port>8080</port>
963 </ports>
964 <mode>direct</mode>
965 </tcp>
966 <time>120000</time>
967 </wait>
968 <ports>
969 <port>${docker.http-cache.port.host}:8080</port>
970 </ports>
971 <workingDir>/usr/src/http-cache-app</workingDir>
972 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200973 <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 +0100974 </cmd>
975 </run>
976 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100977 </images>
978 <skip>${skipITs}</skip>
979 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700980
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100981 <executions>
982 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100983 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100984 <phase>pre-integration-test</phase>
985 <goals>
986 <goal>start</goal>
987 </goals>
988 <configuration>
989 <skip>${skipITs}</skip>
990 </configuration>
991 </execution>
992 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100993 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100994 <phase>post-integration-test</phase>
995 <goals>
996 <goal>stop</goal>
997 </goals>
998 <configuration>
999 <skip>${skipITs}</skip>
1000 </configuration>
1001 </execution>
1002 </executions>
1003 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001004
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001005 <plugin>
1006 <groupId>org.jacoco</groupId>
1007 <artifactId>jacoco-maven-plugin</artifactId>
1008 <version>0.7.7.201606060606</version>
1009 <configuration>
1010 <dumpOnExit>true</dumpOnExit>
1011 <includes>
1012 <include>org.onap.clamp.*</include>
1013 </includes>
1014 </configuration>
1015 <executions>
1016 <execution>
1017 <id>pre-unit-test</id>
1018 <goals>
1019 <goal>prepare-agent</goal>
1020 </goals>
1021 <configuration>
1022 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1023 <!-- <append>true</append> -->
1024 </configuration>
1025 </execution>
1026 <execution>
1027 <id>pre-integration-test</id>
1028 <phase>pre-integration-test</phase>
1029 <goals>
1030 <goal>prepare-agent</goal>
1031 </goals>
1032 <configuration>
1033 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1034 <!-- <append>true</append> -->
1035 </configuration>
1036 </execution>
1037 <execution>
1038 <goals>
1039 <goal>merge</goal>
1040 </goals>
1041 <phase>post-integration-test</phase>
1042 <configuration>
1043 <fileSets>
1044 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1045 <directory>${project.build.directory}/coverage-reports</directory>
1046 <includes>
1047 <include>*.exec</include>
1048 </includes>
1049 </fileSet>
1050 </fileSets>
1051 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1052 </configuration>
1053 </execution>
1054 </executions>
1055 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001056
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001057 <!-- This plugin will be useful when we will have multi-modules project -->
1058 <plugin>
1059 <groupId>org.codehaus.mojo</groupId>
1060 <artifactId>versions-maven-plugin</artifactId>
1061 <version>1.3.1</version>
1062 </plugin>
1063 </plugins>
1064 </build>
1065 <profiles>
1066 <profile>
1067 <id>docker</id>
1068 <properties>
1069 <skip.staging.artifacts>true</skip.staging.artifacts>
1070 <skip.docker.build>false</skip.docker.build>
1071 <skip.docker.tag>false</skip.docker.tag>
1072 <skip.docker.push>false</skip.docker.push>
1073 </properties>
1074 </profile>
1075 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -07001076</project>