blob: 5a9fad73d344f647a9cf504609e56daf118076c0 [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<?xml version="1.0" encoding="UTF-8"?>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07002<!--
3 ============LICENSE_START=======================================================
4 ONAP CLAMP
5 ================================================================================
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +01006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07007 reserved.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
ChrisC6c9759e2017-08-30 01:13:58 -070012
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070013 http://www.apache.org/licenses/LICENSE-2.0
ChrisC6c9759e2017-08-30 01:13:58 -070014
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070015 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END============================================
21 ===================================================================
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070022-->
23
ChrisC5e9feb22017-06-21 02:38:57 -070024<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010025 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.clamp</groupId>
28 <artifactId>clds</artifactId>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020029 <version>3.0.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010030 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +010035 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070037
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010038 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010039 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070040
41 By Default "mvn clean install" command will execute also the unit tests
42 and the integration tests. The integration tests require a docker engine running.
43
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020044 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070045 "mvn clean install -DskipITs=true"
46
47 For Spring it's possible to specify the application.properties location
48 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
49
50 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010051 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
52 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080053
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010054 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070055
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070057 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010058 <clamp.project.version>${project.version}</clamp.project.version>
59 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
60 <maven.compiler.source>1.8</maven.compiler.source>
61 <maven.compiler.target>1.8</maven.compiler.target>
62 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070064
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010065 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)378d05b2018-03-23 14:46:56 +010066 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010067 <project.scm.id>git-server</project.scm.id>
68 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010069
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -050070 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010071 <eelf.core.version>1.0.0</eelf.core.version>
72 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +020073 <springboot.version>1.5.14.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070074
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010075 <sonar.language>java</sonar.language>
76 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
77 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
78 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
79 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
80 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
81 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070082
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010083 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020084 <docker.skip.build>true</docker.skip.build>
85 <docker.skip.push>true</docker.skip.push>
86 <docker.skip.tag>true</docker.skip.tag>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010087 <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)7a58af82018-06-06 13:47:21 +020089 <tomcat.version>8.5.28</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010090 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070091
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010092 <distributionManagement>
93 <repository>
94 <id>ecomp-releases</id>
95 <name>Clamp Release Repository</name>
96 <url>https://nexus.onap.org/content/repositories/releases/</url>
97 </repository>
98 <snapshotRepository>
99 <id>ecomp-snapshots</id>
100 <name>Clamp Snapshot Repository</name>
101 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
102 </snapshotRepository>
103 <site>
104 <id>ecomp-site</id>
105 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
106 </site>
107 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700108
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100109 <repositories>
110 <repository>
111 <id>central</id>
112 <name>Maven 2 repository 2</name>
113 <url>http://repo2.maven.org/maven2/</url>
114 </repository>
115 <repository>
116 <id>ecomp-releases</id>
117 <name>ONAP Release Repository</name>
118 <url>https://nexus.onap.org/content/repositories/releases/</url>
119 </repository>
120 <repository>
121 <id>ecomp-staging</id>
122 <name>ONAP Staging Repository</name>
123 <url>https://nexus.onap.org/content/repositories/staging/</url>
124 </repository>
125 <repository>
126 <id>ecomp-snapshots</id>
127 <name>ONAP Snapshot Repository</name>
128 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
129 <snapshots>
130 <enabled>true</enabled>
131 </snapshots>
132 <releases>
133 <enabled>false</enabled>
134 </releases>
135 </repository>
136 <repository>
137 <id>spring-repo</id>
138 <name>Spring repo</name>
139 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
140 </repository>
141 <repository>
142 <id>repository.jboss.org-public</id>
143 <name>JBoss.org Maven repository</name>
144 <url>https://repository.jboss.org/nexus/content/groups/public</url>
145 </repository>
xg353y2aad6d62018-05-18 17:59:06 +0200146 <repository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200147 <id>jcentral</id>
148 <name>bintray</name>
149 <url>http://jcenter.bintray.com</url>
150 <snapshots>
151 <enabled>false</enabled>
152 </snapshots>
xg353y2aad6d62018-05-18 17:59:06 +0200153 </repository>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100154 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700155
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100156 <dependencyManagement>
157 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100158 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100159 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100162 <version>${springboot.version}</version>
163 <type>pom</type>
164 <scope>import</scope>
165 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100166 <!-- Camel BOM -->
167 <dependency>
168 <groupId>org.apache.camel</groupId>
169 <artifactId>camel-spring-boot-dependencies</artifactId>
170 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100171 <type>pom</type>
172 <scope>import</scope>
173 </dependency>
174 </dependencies>
175 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700176
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100177 <dependencies>
178 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100179 <groupId>com.att.eelf</groupId>
180 <artifactId>eelf-core</artifactId>
181 <version>${eelf.core.version}</version>
182 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200183 <dependency>
184 <groupId>org.apache.tomcat.embed</groupId>
185 <artifactId>tomcat-embed-core</artifactId>
186 <version>${tomcat.version}</version>
187 </dependency>
188 <dependency>
189 <groupId>org.apache.tomcat.embed</groupId>
190 <artifactId>tomcat-embed-el</artifactId>
191 <version>${tomcat.version}</version>
192 </dependency>
193 <dependency>
194 <groupId>org.apache.tomcat.embed</groupId>
195 <artifactId>tomcat-embed-websocket</artifactId>
196 <version>${tomcat.version}</version>
197 </dependency>
198 <dependency>
199 <groupId>org.apache.tomcat</groupId>
200 <artifactId>tomcat-annotations-api</artifactId>
201 <version>${tomcat.version}</version>
202 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100203 <!-- For CAMEL -->
204 <dependency>
205 <groupId>org.apache.camel</groupId>
206 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100207 </dependency>
208 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100209 <groupId>org.apache.camel</groupId>
210 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100211 </dependency>
212 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100213 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100214 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100215 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200216 <dependency>
217 <groupId>javax.xml.bind</groupId>
218 <artifactId>jaxb-api</artifactId>
219 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200220 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100221 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100222 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100225 </dependency>
226 <dependency>
227 <groupId>org.springframework.boot</groupId>
228 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100229 </dependency>
230 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100231 <groupId>com.paypal.springboot</groupId>
232 <artifactId>resteasy-spring-boot-starter</artifactId>
233 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100234 </dependency>
235 <dependency>
236 <groupId>org.springframework</groupId>
237 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100238 </dependency>
239 <dependency>
240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot-starter-security</artifactId>
242 </dependency>
243 <dependency>
244 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100245 <artifactId>spring-boot-starter-actuator</artifactId>
246 </dependency>
247 <dependency>
248 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100249 <artifactId>spring-boot-starter-test</artifactId>
250 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100251 <exclusions>
252 <exclusion>
253 <groupId>com.vaadin.external.google</groupId>
254 <artifactId>android-json</artifactId>
255 </exclusion>
256 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100257 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100258 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100259 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200260 <groupId>org.onap.aaf.authz</groupId>
261 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200262 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200263 <exclusions>
264 <exclusion>
265 <groupId>javax.servlet</groupId>
266 <artifactId>servlet-api</artifactId>
267 </exclusion>
268 </exclusions>
269 </dependency>
270 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100271 <groupId>ch.qos.logback</groupId>
272 <artifactId>logback-core</artifactId>
273 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100274 </dependency>
275 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100276 <groupId>ch.qos.logback</groupId>
277 <artifactId>logback-classic</artifactId>
278 <version>1.2.3</version>
279 </dependency>
280 <dependency>
281 <groupId>commons-dbcp</groupId>
282 <artifactId>commons-dbcp</artifactId>
283 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100284 </dependency>
285 <dependency>
286 <groupId>commons-io</groupId>
287 <artifactId>commons-io</artifactId>
288 <version>2.6</version>
289 </dependency>
290 <dependency>
291 <groupId>com.googlecode.json-simple</groupId>
292 <artifactId>json-simple</artifactId>
293 </dependency>
294 <dependency>
295 <groupId>org.apache.commons</groupId>
296 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100297 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100298 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100299 <dependency>
300 <groupId>joda-time</groupId>
301 <artifactId>joda-time</artifactId>
302 </dependency>
303 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100304 <groupId>org.slf4j</groupId>
305 <artifactId>slf4j-api</artifactId>
306 </dependency>
307 <dependency>
308 <groupId>javax.ws.rs</groupId>
309 <artifactId>javax.ws.rs-api</artifactId>
310 <version>2.0</version>
311 </dependency>
312 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100313 <groupId>junit</groupId>
314 <artifactId>junit</artifactId>
315 </dependency>
316 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100317 <groupId>javax.transaction</groupId>
318 <artifactId>jta</artifactId>
319 <version>1.1</version>
320 </dependency>
321 <dependency>
322 <groupId>javax.persistence</groupId>
323 <artifactId>persistence-api</artifactId>
324 <version>1.0.2</version>
325 </dependency>
326 <dependency>
327 <groupId>org.hibernate</groupId>
328 <artifactId>hibernate-annotations</artifactId>
329 <version>3.5.6-Final</version>
330 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100331 <dependency>
332 <groupId>dom4j</groupId>
333 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100334 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700335
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100336 <dependency>
337 <groupId>org.onap.policy.engine</groupId>
338 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200339 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100340 <exclusions>
341 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500342 <groupId>com.google.guava</groupId>
343 <artifactId>guava</artifactId>
344 </exclusion>
345 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100346 <artifactId>log4j</artifactId>
347 <groupId>log4j</groupId>
348 </exclusion>
349 <exclusion>
350 <groupId>org.slf4j</groupId>
351 <artifactId>slf4j-log4j12</artifactId>
352 </exclusion>
353 <exclusion>
354 <artifactId>apache-log4j-extras</artifactId>
355 <groupId>log4j</groupId>
356 </exclusion>
357 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100358 <groupId>mysql</groupId>
359 <artifactId>mysql-connector-java</artifactId>
360 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100361 <exclusion>
362 <groupId>commons-io</groupId>
363 <artifactId>commons-io</artifactId>
364 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200365 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200366 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200367 <groupId>org.glassfish.grizzly</groupId>
368 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100369 </exclusions>
370 </dependency>
371 <dependency>
372 <groupId>org.onap.policy.common</groupId>
373 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200374 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100375 <exclusions>
376 <exclusion>
377 <artifactId>log4j</artifactId>
378 <groupId>log4j</groupId>
379 </exclusion>
380 <exclusion>
381 <groupId>org.slf4j</groupId>
382 <artifactId>slf4j-log4j12</artifactId>
383 </exclusion>
384 <exclusion>
385 <artifactId>apache-log4j-extras</artifactId>
386 <groupId>log4j</groupId>
387 </exclusion>
388 </exclusions>
389 </dependency>
390 <dependency>
391 <groupId>org.onap.policy.engine</groupId>
392 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200393 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100394 <exclusions>
395 <exclusion>
396 <artifactId>log4j</artifactId>
397 <groupId>log4j</groupId>
398 </exclusion>
399 <exclusion>
400 <groupId>org.slf4j</groupId>
401 <artifactId>slf4j-log4j12</artifactId>
402 </exclusion>
403 <exclusion>
404 <artifactId>apache-log4j-extras</artifactId>
405 <groupId>log4j</groupId>
406 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100407 <exclusion>
408 <groupId>mysql</groupId>
409 <artifactId>mysql-connector-java</artifactId>
410 </exclusion>
411 <exclusion>
412 <groupId>org.mariadb.jdbc</groupId>
413 <artifactId>mariadb-java-client</artifactId>
414 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100415 <exclusion>
416 <groupId>com.att.nsa</groupId>
417 <artifactId>dmaapClient</artifactId>
418 </exclusion>
Determe, Sebastien (sd378r)90d20a52018-06-29 11:27:50 +0200419 <exclusion>
420 <groupId>com.h2database</groupId>
421 <artifactId>h2</artifactId>
422 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100423 </exclusions>
424 </dependency>
425 <dependency>
426 <groupId>org.onap.policy.drools-applications</groupId>
427 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200428 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100429 <exclusions>
430 <exclusion>
431 <artifactId>log4j</artifactId>
432 <groupId>log4j</groupId>
433 </exclusion>
434 <exclusion>
435 <groupId>org.slf4j</groupId>
436 <artifactId>slf4j-log4j12</artifactId>
437 </exclusion>
438 <exclusion>
439 <artifactId>apache-log4j-extras</artifactId>
440 <groupId>log4j</groupId>
441 </exclusion>
442 </exclusions>
443 </dependency>
444 <dependency>
445 <groupId>org.onap.policy.drools-applications</groupId>
446 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200447 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100448 <exclusions>
449 <exclusion>
450 <artifactId>log4j</artifactId>
451 <groupId>log4j</groupId>
452 </exclusion>
453 <exclusion>
454 <groupId>org.slf4j</groupId>
455 <artifactId>slf4j-log4j12</artifactId>
456 </exclusion>
457 <exclusion>
458 <artifactId>apache-log4j-extras</artifactId>
459 <groupId>log4j</groupId>
460 </exclusion>
461 </exclusions>
462 </dependency>
463 <dependency>
464 <groupId>org.onap.policy.drools-applications</groupId>
465 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200466 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100467 <exclusions>
468 <exclusion>
469 <artifactId>log4j</artifactId>
470 <groupId>log4j</groupId>
471 </exclusion>
472 <exclusion>
473 <groupId>org.slf4j</groupId>
474 <artifactId>slf4j-log4j12</artifactId>
475 </exclusion>
476 <exclusion>
477 <artifactId>apache-log4j-extras</artifactId>
478 <groupId>log4j</groupId>
479 </exclusion>
480 </exclusions>
481 </dependency>
482 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100483 <groupId>org.apache.commons</groupId>
484 <artifactId>commons-csv</artifactId>
485 <version>1.3</version>
486 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100487 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
488 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200489 <groupId>org.codehaus.plexus</groupId>
490 <artifactId>plexus-utils</artifactId>
491 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100492 </dependency>
493 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200494 <groupId>commons-fileupload</groupId>
495 <artifactId>commons-fileupload</artifactId>
496 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100497 </dependency>
498 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200499 <groupId>org.jboss.spec.javax.ws.rs</groupId>
500 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
501 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100502 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200503 <dependency>
504 <groupId>com.google.guava</groupId>
505 <artifactId>guava</artifactId>
506 <version>25.1-jre</version>
507 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100508 <!-- Remove the MYSQL connector and replace it by Mariadb -->
509 <dependency>
510 <groupId>org.mariadb.jdbc</groupId>
511 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100512 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100513 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100514 <!-- For SDC Controller -->
515 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200516 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100517 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200518 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100519 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100520 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200521 <groupId>org.onap.sdc.sdc-tosca</groupId>
522 <artifactId>sdc-tosca</artifactId>
523 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100524 </dependency>
xg353y2aad6d62018-05-18 17:59:06 +0200525 <!-- To generate Swagger.json, swagger.html and swagger.pdf -->
xg353y2aad6d62018-05-18 17:59:06 +0200526 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200527 <groupId>io.springfox</groupId>
528 <artifactId>springfox-swagger2</artifactId>
529 <version>2.4.0</version>
530 <scope>test</scope>
xg353y2aad6d62018-05-18 17:59:06 +0200531 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200532 <dependency>
533 <groupId>io.github.robwin</groupId>
534 <artifactId>assertj-swagger</artifactId>
535 <version>0.2.0</version>
536 <scope>test</scope>
537 </dependency>
538 <dependency>
539 <groupId>io.github.swagger2markup</groupId>
540 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
541 <version>1.2.0</version>
542 <scope>test</scope>
543 </dependency>
544 </dependencies>
545 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200546 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200547 <snapshots>
548 <enabled>false</enabled>
549 </snapshots>
550 <id>jcenter-releases</id>
551 <name>jcenter</name>
552 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200553 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200554 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100555 <build>
556 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700557
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100558 <testResources>
559 <testResource>
560 <directory>src/test/resources</directory>
561 <excludes>
562 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100563 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100564 </excludes>
565 <filtering>true</filtering>
566 </testResource>
567 <testResource>
568 <directory>src/test/resources/https</directory>
569 <includes>
570 <include>**.jks</include>
571 </includes>
572 <filtering>false</filtering>
573 <targetPath>https</targetPath>
574 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200575 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100576 <directory>src/test/resources/example/sdc</directory>
577 <includes>
578 <include>**.csar</include>
579 </includes>
580 <filtering>false</filtering>
581 <targetPath>example/sdc</targetPath>
582 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100583 </testResources>
584 <resources>
585 <resource>
586 <directory>src/main/resources</directory>
587 <filtering>true</filtering>
588 </resource>
589 <resource>
590 <directory>src/main/docker</directory>
591 <includes>
592 <include>**/*</include>
593 </includes>
594 <filtering>true</filtering>
595 </resource>
596 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700597
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100598 <plugins>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200599 <!-- Scan Clamp code and generate the swagger.json file with all the
600 APIs -->
Determe, Sebastien (sd378r)133d2e52018-05-24 15:56:29 +0200601 <plugin>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200602 <groupId>com.sebastian-daschner</groupId>
603 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
604 <version>0.14</version>
605 <executions>
606 <execution>
607 <phase>test</phase>
608 <goals>
609 <goal>analyze-jaxrs</goal>
610 </goals>
611 <configuration>
612 <backend>swagger</backend>
613 <resourcesDir>../docs/swagger/</resourcesDir>
614 </configuration>
615 </execution>
616 </executions>
617 </plugin>
Determe, Sebastien (sd378r)73803ec2018-05-24 17:52:25 +0200618
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200619 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
620 generate a list of .adoc files containing the APIs info in more structured
621 way -->
622 <plugin>
623 <groupId>io.github.swagger2markup</groupId>
624 <artifactId>swagger2markup-maven-plugin</artifactId>
625 <version>1.3.1</version>
626 <dependencies>
627 <dependency>
628 <groupId>io.github.swagger2markup</groupId>
629 <artifactId>swagger2markup-import-files-ext</artifactId>
630 <version>1.3.1</version>
631 </dependency>
632 <dependency>
633 <groupId>io.github.swagger2markup</groupId>
634 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
635 <version>1.3.1</version>
636 </dependency>
637 </dependencies>
xg353y2aad6d62018-05-18 17:59:06 +0200638 <configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200639 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
640 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
641 <config>
642 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
643 </config>
xg353y2aad6d62018-05-18 17:59:06 +0200644 </configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200645 <executions>
646 <execution>
647 <phase>test</phase>
648 <goals>
649 <goal>convertSwagger2markup</goal>
650 </goals>
651 </execution>
652 </executions>
653 </plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200654
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200655 <!-- Run the generated asciidoc through Asciidoctor to generate other
656 documentation types, such as PDFs or HTML5 -->
657 <plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200658 <groupId>org.asciidoctor</groupId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200659 <artifactId>asciidoctor-maven-plugin</artifactId>
660 <version>1.5.3</version>
661 <dependencies>
662 <dependency>
663 <groupId>org.asciidoctor</groupId>
664 <artifactId>asciidoctorj-pdf</artifactId>
665 <version>1.5.0-alpha.10.1</version>
666 </dependency>
667 <dependency>
668 <groupId>org.jruby</groupId>
669 <artifactId>jruby-complete</artifactId>
670 <version>1.7.21</version>
671 </dependency>
672 </dependencies>
673 <configuration>
674 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
675 <sourceDocumentName>swagger.adoc</sourceDocumentName>
676 <attributes>
677 <doctype>book</doctype>
678 <toc>left</toc>
679 <toclevels>3</toclevels>
680 <numbered></numbered>
681 <hardbreaks></hardbreaks>
682 <sectlinks></sectlinks>
683 <sectanchors></sectanchors>
684 <generated>${project.build.directory}/asciidoc/generated</generated>
685 </attributes>
686 </configuration>
xg353y2aad6d62018-05-18 17:59:06 +0200687
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200688 <executions>
689 <execution>
690 <id>output-html</id>
691 <phase>test</phase>
692 <goals>
693 <goal>process-asciidoc</goal>
694 </goals>
695 <configuration>
696 <backend>html5</backend>
697 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
698 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
699 </configuration>
700 </execution>
701 <execution>
702 <id>output-pdf</id>
703 <phase>test</phase>
704 <goals>
705 <goal>process-asciidoc</goal>
706 </goals>
707 <configuration>
708 <backend>pdf</backend>
709 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
710 </configuration>
711 </execution>
712 </executions>
713 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100714 <plugin>
715 <groupId>org.codehaus.groovy.maven</groupId>
716 <artifactId>gmaven-plugin</artifactId>
717 <version>1.0</version>
718 <executions>
719 <execution>
720 <phase>validate</phase>
721 <goals>
722 <goal>execute</goal>
723 </goals>
724 <configuration>
725 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
726 </configuration>
727 </execution>
728 </executions>
729 </plugin>
730 <plugin>
731 <groupId>org.apache.maven.plugins</groupId>
732 <artifactId>maven-jar-plugin</artifactId>
733 <version>3.0.2</version>
734 <executions>
735 <execution>
736 <id>jar-with-only-classes</id>
737 <phase>package</phase>
738 <goals>
739 <goal>jar</goal>
740 </goals>
741 <configuration>
742 <classifier>classes</classifier>
743 <includes>
744 <include>org/**</include>
745 </includes>
746 </configuration>
747 </execution>
748 </executions>
749 </plugin>
750 <plugin>
751 <groupId>org.codehaus.mojo</groupId>
752 <artifactId>build-helper-maven-plugin</artifactId>
753 <version>3.0.0</version>
754 <executions>
755 <execution>
756 <goals>
757 <goal>attach-artifact</goal>
758 </goals>
759 <phase>package</phase>
760 <configuration>
761 <artifacts>
762 <artifact>
763 <file>${project.build.directory}/clamp-classes.jar</file>
764 <type>jar</type>
765 <classifier>classes</classifier>
766 </artifact>
767 </artifacts>
768 </configuration>
769 </execution>
770 </executions>
771 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700772
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100773 <plugin>
774 <groupId>org.springframework.boot</groupId>
775 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200776 <!-- Temporary fix -->
777 <version>1.5.13.RELEASE</version>
778 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100779 <executions>
780 <execution>
781 <goals>
782 <goal>repackage</goal>
783 </goals>
784 <phase>package</phase>
785 </execution>
786 </executions>
787 </plugin>
788 <plugin>
789 <groupId>org.sonatype.plugins</groupId>
790 <artifactId>nexus-staging-maven-plugin</artifactId>
791 <version>1.6.7</version>
792 <extensions>true</extensions>
793 <configuration>
794 <nexusUrl>https://nexus.onap.org</nexusUrl>
795 <stagingProfileId>176c31dfe190a</stagingProfileId>
796 <serverId>ecomp-staging</serverId>
797 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
798 </configuration>
799 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200800
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100801 <plugin>
802 <groupId>org.apache.maven.plugins</groupId>
803 <artifactId>maven-surefire-plugin</artifactId>
804 <version>2.19.1</version>
805 <configuration>
806 <forkCount>1</forkCount>
807 <reuseForks>false</reuseForks>
808 </configuration>
809 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200810
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100811 <plugin>
812 <groupId>org.apache.maven.plugins</groupId>
813 <artifactId>maven-failsafe-plugin</artifactId>
814 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700815
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100816 <executions>
817 <execution>
818 <id>integration-tests</id>
819 <goals>
820 <goal>integration-test</goal>
821 <goal>verify</goal>
822 </goals>
823 <configuration>
824 <includes>
825 <include>**/*ItCase.java</include>
826 </includes>
827 <forkCount>1</forkCount>
828 <reuseForks>false</reuseForks>
829 </configuration>
830 </execution>
831 </executions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100832 </plugin>
833 <plugin>
834 <groupId>io.fabric8</groupId>
835 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200836 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100837 <configuration>
838 <verbose>true</verbose>
839 <apiVersion>1.23</apiVersion>
840 <images>
841 <image>
842 <name>mariadb:10.1.11</name>
843 <alias>mariadb</alias>
844 <run>
845 <env>
846 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
847 </env>
848 <hostname>mariadb</hostname>
849 <volumes>
850 <bind>
851 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
852 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
853 </bind>
854 </volumes>
855 <wait>
856 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100857 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100858 </wait>
859 <ports>
860 <port>${docker.mariadb.port.host}:3306</port>
861 </ports>
862 </run>
863 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100864 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100865 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100866 <alias>python</alias>
867 <run>
868 <hostname>python</hostname>
869 <volumes>
870 <bind>
871 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100872 <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 +0100873 </bind>
874 </volumes>
875 <wait>
876 <tcp>
877 <ports>
878 <port>8080</port>
879 </ports>
880 <mode>direct</mode>
881 </tcp>
882 <time>120000</time>
883 </wait>
884 <ports>
885 <port>${docker.http-cache.port.host}:8080</port>
886 </ports>
887 <workingDir>/usr/src/http-cache-app</workingDir>
888 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200889 <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 +0100890 </cmd>
891 </run>
892 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200893 <image>
894 <name>onap/clamp</name>
895 <alias>onap-clamp</alias>
896 <build>
897 <cleanup>true</cleanup>
898 <tags>
899 <tag>latest</tag>
900 <tag>${project.docker.latesttagtimestamp.version}</tag>
901 <tag>${project.docker.latesttag.version}</tag>
902 </tags>
903 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by default -->
904 <dockerFile>Dockerfile</dockerFile>
905 <assembly>
906 <descriptor>assembly/clamp-files.xml</descriptor>
907 <name>onap-clamp</name>
908 </assembly>
909 </build>
910 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100911 </images>
912 <skip>${skipITs}</skip>
913 </configuration>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100914 <executions>
915 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200916 <id>generate-images</id>
917 <phase>install</phase>
918 <goals>
919 <goal>build</goal>
920 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200921 </execution>
922 <execution>
923 <id>push-images</id>
924 <phase>deploy</phase>
925 <goals>
926 <goal>push</goal>
927 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200928 </execution>
929 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100930 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100931 <phase>pre-integration-test</phase>
932 <goals>
933 <goal>start</goal>
934 </goals>
935 <configuration>
936 <skip>${skipITs}</skip>
937 </configuration>
938 </execution>
939 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100940 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100941 <phase>post-integration-test</phase>
942 <goals>
943 <goal>stop</goal>
944 </goals>
945 <configuration>
946 <skip>${skipITs}</skip>
947 </configuration>
948 </execution>
949 </executions>
950 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700951
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100952 <plugin>
953 <groupId>org.jacoco</groupId>
954 <artifactId>jacoco-maven-plugin</artifactId>
955 <version>0.7.7.201606060606</version>
956 <configuration>
957 <dumpOnExit>true</dumpOnExit>
958 <includes>
959 <include>org.onap.clamp.*</include>
960 </includes>
961 </configuration>
962 <executions>
963 <execution>
964 <id>pre-unit-test</id>
965 <goals>
966 <goal>prepare-agent</goal>
967 </goals>
968 <configuration>
969 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
970 <!-- <append>true</append> -->
971 </configuration>
972 </execution>
973 <execution>
974 <id>pre-integration-test</id>
975 <phase>pre-integration-test</phase>
976 <goals>
977 <goal>prepare-agent</goal>
978 </goals>
979 <configuration>
980 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
981 <!-- <append>true</append> -->
982 </configuration>
983 </execution>
984 <execution>
985 <goals>
986 <goal>merge</goal>
987 </goals>
988 <phase>post-integration-test</phase>
989 <configuration>
990 <fileSets>
991 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
992 <directory>${project.build.directory}/coverage-reports</directory>
993 <includes>
994 <include>*.exec</include>
995 </includes>
996 </fileSet>
997 </fileSets>
998 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
999 </configuration>
1000 </execution>
1001 </executions>
1002 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001003
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001004 <!-- This plugin will be useful when we will have multi-modules project -->
1005 <plugin>
1006 <groupId>org.codehaus.mojo</groupId>
1007 <artifactId>versions-maven-plugin</artifactId>
1008 <version>1.3.1</version>
1009 </plugin>
1010 </plugins>
1011 </build>
1012 <profiles>
1013 <profile>
1014 <id>docker</id>
1015 <properties>
1016 <skip.staging.artifacts>true</skip.staging.artifacts>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001017 <docker.skip.build>false</docker.skip.build>
1018 <docker.skip.tag>false</docker.skip.tag>
1019 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001020 </properties>
1021 </profile>
1022 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -07001023</project>