blob: a1f02114d8df2ce320c5e9080e87fffe677f6f57 [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<?xml version="1.0" encoding="UTF-8"?>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07002<!--
3 ============LICENSE_START=======================================================
4 ONAP CLAMP
5 ================================================================================
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +01006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07007 reserved.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
ChrisC6c9759e2017-08-30 01:13:58 -070012
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070013 http://www.apache.org/licenses/LICENSE-2.0
ChrisC6c9759e2017-08-30 01:13:58 -070014
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070015 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END============================================
21 ===================================================================
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070022-->
23
ChrisC5e9feb22017-06-21 02:38:57 -070024<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010025 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.clamp</groupId>
28 <artifactId>clds</artifactId>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020029 <version>3.0.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010030 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +010035 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070037
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010038 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010039 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070040
41 By Default "mvn clean install" command will execute also the unit tests
42 and the integration tests. The integration tests require a docker engine running.
43
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020044 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070045 "mvn clean install -DskipITs=true"
46
47 For Spring it's possible to specify the application.properties location
48 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
49
50 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010051 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
52 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080053
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010054 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070055
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070057 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010058 <clamp.project.version>${project.version}</clamp.project.version>
59 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
60 <maven.compiler.source>1.8</maven.compiler.source>
61 <maven.compiler.target>1.8</maven.compiler.target>
62 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070064
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010065 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)378d05b2018-03-23 14:46:56 +010066 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010067 <project.scm.id>git-server</project.scm.id>
68 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010069
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -050070 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
71 <guava.version>20.0</guava.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010072 <eelf.core.version>1.0.0</eelf.core.version>
73 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)4e2bcb22018-04-25 10:43:39 +020074 <springboot.version>1.5.12.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070075
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010076 <sonar.language>java</sonar.language>
77 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
78 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
79 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
80 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
81 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
82 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070083
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010084 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020085 <docker.skip.build>true</docker.skip.build>
86 <docker.skip.push>true</docker.skip.push>
87 <docker.skip.tag>true</docker.skip.tag>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010088 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +020089 <python.http.proxy.param></python.http.proxy.param>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020090 <tomcat.version>8.5.28</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010091 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070092
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010093 <distributionManagement>
94 <repository>
95 <id>ecomp-releases</id>
96 <name>Clamp Release Repository</name>
97 <url>https://nexus.onap.org/content/repositories/releases/</url>
98 </repository>
99 <snapshotRepository>
100 <id>ecomp-snapshots</id>
101 <name>Clamp Snapshot Repository</name>
102 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
103 </snapshotRepository>
104 <site>
105 <id>ecomp-site</id>
106 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
107 </site>
108 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700109
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100110 <repositories>
111 <repository>
112 <id>central</id>
113 <name>Maven 2 repository 2</name>
114 <url>http://repo2.maven.org/maven2/</url>
115 </repository>
116 <repository>
117 <id>ecomp-releases</id>
118 <name>ONAP Release Repository</name>
119 <url>https://nexus.onap.org/content/repositories/releases/</url>
120 </repository>
121 <repository>
122 <id>ecomp-staging</id>
123 <name>ONAP Staging Repository</name>
124 <url>https://nexus.onap.org/content/repositories/staging/</url>
125 </repository>
126 <repository>
127 <id>ecomp-snapshots</id>
128 <name>ONAP Snapshot Repository</name>
129 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
130 <snapshots>
131 <enabled>true</enabled>
132 </snapshots>
133 <releases>
134 <enabled>false</enabled>
135 </releases>
136 </repository>
137 <repository>
138 <id>spring-repo</id>
139 <name>Spring repo</name>
140 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
141 </repository>
142 <repository>
143 <id>repository.jboss.org-public</id>
144 <name>JBoss.org Maven repository</name>
145 <url>https://repository.jboss.org/nexus/content/groups/public</url>
146 </repository>
xg353y2aad6d62018-05-18 17:59:06 +0200147 <repository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200148 <id>jcentral</id>
149 <name>bintray</name>
150 <url>http://jcenter.bintray.com</url>
151 <snapshots>
152 <enabled>false</enabled>
153 </snapshots>
xg353y2aad6d62018-05-18 17:59:06 +0200154 </repository>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100155 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700156
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100157 <dependencyManagement>
158 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100159 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100160 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100163 <version>${springboot.version}</version>
164 <type>pom</type>
165 <scope>import</scope>
166 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100167 <!-- Camel BOM -->
168 <dependency>
169 <groupId>org.apache.camel</groupId>
170 <artifactId>camel-spring-boot-dependencies</artifactId>
171 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100172 <type>pom</type>
173 <scope>import</scope>
174 </dependency>
175 </dependencies>
176 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700177
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100178 <dependencies>
179 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100180 <groupId>com.att.eelf</groupId>
181 <artifactId>eelf-core</artifactId>
182 <version>${eelf.core.version}</version>
183 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200184 <dependency>
185 <groupId>org.apache.tomcat.embed</groupId>
186 <artifactId>tomcat-embed-core</artifactId>
187 <version>${tomcat.version}</version>
188 </dependency>
189 <dependency>
190 <groupId>org.apache.tomcat.embed</groupId>
191 <artifactId>tomcat-embed-el</artifactId>
192 <version>${tomcat.version}</version>
193 </dependency>
194 <dependency>
195 <groupId>org.apache.tomcat.embed</groupId>
196 <artifactId>tomcat-embed-websocket</artifactId>
197 <version>${tomcat.version}</version>
198 </dependency>
199 <dependency>
200 <groupId>org.apache.tomcat</groupId>
201 <artifactId>tomcat-annotations-api</artifactId>
202 <version>${tomcat.version}</version>
203 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100204 <!-- For CAMEL -->
205 <dependency>
206 <groupId>org.apache.camel</groupId>
207 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100208 </dependency>
209 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100210 <groupId>org.apache.camel</groupId>
211 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100212 </dependency>
213 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100214 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100215 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100216 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200217 <dependency>
218 <groupId>javax.xml.bind</groupId>
219 <artifactId>jaxb-api</artifactId>
220 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200221 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100222 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100223 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100224 <groupId>org.springframework.boot</groupId>
225 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100226 </dependency>
227 <dependency>
228 <groupId>org.springframework.boot</groupId>
229 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100230 </dependency>
231 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100232 <groupId>com.paypal.springboot</groupId>
233 <artifactId>resteasy-spring-boot-starter</artifactId>
234 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100235 </dependency>
236 <dependency>
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100239 </dependency>
240 <dependency>
241 <groupId>org.springframework.boot</groupId>
242 <artifactId>spring-boot-starter-security</artifactId>
243 </dependency>
244 <dependency>
245 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100246 <artifactId>spring-boot-starter-actuator</artifactId>
247 </dependency>
248 <dependency>
249 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100250 <artifactId>spring-boot-starter-test</artifactId>
251 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100252 <exclusions>
253 <exclusion>
254 <groupId>com.vaadin.external.google</groupId>
255 <artifactId>android-json</artifactId>
256 </exclusion>
257 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100258 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100259 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100260 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100261 <groupId>ch.qos.logback</groupId>
262 <artifactId>logback-core</artifactId>
263 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100264 </dependency>
265 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100266 <groupId>ch.qos.logback</groupId>
267 <artifactId>logback-classic</artifactId>
268 <version>1.2.3</version>
269 </dependency>
270 <dependency>
271 <groupId>commons-dbcp</groupId>
272 <artifactId>commons-dbcp</artifactId>
273 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100274 </dependency>
275 <dependency>
276 <groupId>commons-io</groupId>
277 <artifactId>commons-io</artifactId>
278 <version>2.6</version>
279 </dependency>
280 <dependency>
281 <groupId>com.googlecode.json-simple</groupId>
282 <artifactId>json-simple</artifactId>
283 </dependency>
284 <dependency>
285 <groupId>org.apache.commons</groupId>
286 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100287 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100288 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100289 <dependency>
290 <groupId>joda-time</groupId>
291 <artifactId>joda-time</artifactId>
292 </dependency>
293 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100294 <groupId>org.slf4j</groupId>
295 <artifactId>slf4j-api</artifactId>
296 </dependency>
297 <dependency>
298 <groupId>javax.ws.rs</groupId>
299 <artifactId>javax.ws.rs-api</artifactId>
300 <version>2.0</version>
301 </dependency>
302 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100303 <groupId>junit</groupId>
304 <artifactId>junit</artifactId>
305 </dependency>
306 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100307 <groupId>javax.transaction</groupId>
308 <artifactId>jta</artifactId>
309 <version>1.1</version>
310 </dependency>
311 <dependency>
312 <groupId>javax.persistence</groupId>
313 <artifactId>persistence-api</artifactId>
314 <version>1.0.2</version>
315 </dependency>
316 <dependency>
317 <groupId>org.hibernate</groupId>
318 <artifactId>hibernate-annotations</artifactId>
319 <version>3.5.6-Final</version>
320 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100321 <dependency>
322 <groupId>dom4j</groupId>
323 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100324 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700325
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100326 <dependency>
327 <groupId>org.onap.policy.engine</groupId>
328 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200329 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100330 <exclusions>
331 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500332 <groupId>com.google.guava</groupId>
333 <artifactId>guava</artifactId>
334 </exclusion>
335 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100336 <artifactId>log4j</artifactId>
337 <groupId>log4j</groupId>
338 </exclusion>
339 <exclusion>
340 <groupId>org.slf4j</groupId>
341 <artifactId>slf4j-log4j12</artifactId>
342 </exclusion>
343 <exclusion>
344 <artifactId>apache-log4j-extras</artifactId>
345 <groupId>log4j</groupId>
346 </exclusion>
347 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100348 <groupId>mysql</groupId>
349 <artifactId>mysql-connector-java</artifactId>
350 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100351 <exclusion>
352 <groupId>commons-io</groupId>
353 <artifactId>commons-io</artifactId>
354 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200355 <exclusion>
356 <artifactId>grizzly-http</artifactId>
357 <groupId>org.glassfish.grizzly</groupId>
358 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100359 </exclusions>
360 </dependency>
361 <dependency>
362 <groupId>org.onap.policy.common</groupId>
363 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200364 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100365 <exclusions>
366 <exclusion>
367 <artifactId>log4j</artifactId>
368 <groupId>log4j</groupId>
369 </exclusion>
370 <exclusion>
371 <groupId>org.slf4j</groupId>
372 <artifactId>slf4j-log4j12</artifactId>
373 </exclusion>
374 <exclusion>
375 <artifactId>apache-log4j-extras</artifactId>
376 <groupId>log4j</groupId>
377 </exclusion>
378 </exclusions>
379 </dependency>
380 <dependency>
381 <groupId>org.onap.policy.engine</groupId>
382 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200383 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100384 <exclusions>
385 <exclusion>
386 <artifactId>log4j</artifactId>
387 <groupId>log4j</groupId>
388 </exclusion>
389 <exclusion>
390 <groupId>org.slf4j</groupId>
391 <artifactId>slf4j-log4j12</artifactId>
392 </exclusion>
393 <exclusion>
394 <artifactId>apache-log4j-extras</artifactId>
395 <groupId>log4j</groupId>
396 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100397 <exclusion>
398 <groupId>mysql</groupId>
399 <artifactId>mysql-connector-java</artifactId>
400 </exclusion>
401 <exclusion>
402 <groupId>org.mariadb.jdbc</groupId>
403 <artifactId>mariadb-java-client</artifactId>
404 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100405 <exclusion>
406 <groupId>com.att.nsa</groupId>
407 <artifactId>dmaapClient</artifactId>
408 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100409 </exclusions>
410 </dependency>
411 <dependency>
412 <groupId>org.onap.policy.drools-applications</groupId>
413 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200414 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100415 <exclusions>
416 <exclusion>
417 <artifactId>log4j</artifactId>
418 <groupId>log4j</groupId>
419 </exclusion>
420 <exclusion>
421 <groupId>org.slf4j</groupId>
422 <artifactId>slf4j-log4j12</artifactId>
423 </exclusion>
424 <exclusion>
425 <artifactId>apache-log4j-extras</artifactId>
426 <groupId>log4j</groupId>
427 </exclusion>
428 </exclusions>
429 </dependency>
430 <dependency>
431 <groupId>org.onap.policy.drools-applications</groupId>
432 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200433 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100434 <exclusions>
435 <exclusion>
436 <artifactId>log4j</artifactId>
437 <groupId>log4j</groupId>
438 </exclusion>
439 <exclusion>
440 <groupId>org.slf4j</groupId>
441 <artifactId>slf4j-log4j12</artifactId>
442 </exclusion>
443 <exclusion>
444 <artifactId>apache-log4j-extras</artifactId>
445 <groupId>log4j</groupId>
446 </exclusion>
447 </exclusions>
448 </dependency>
449 <dependency>
450 <groupId>org.onap.policy.drools-applications</groupId>
451 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200452 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100453 <exclusions>
454 <exclusion>
455 <artifactId>log4j</artifactId>
456 <groupId>log4j</groupId>
457 </exclusion>
458 <exclusion>
459 <groupId>org.slf4j</groupId>
460 <artifactId>slf4j-log4j12</artifactId>
461 </exclusion>
462 <exclusion>
463 <artifactId>apache-log4j-extras</artifactId>
464 <groupId>log4j</groupId>
465 </exclusion>
466 </exclusions>
467 </dependency>
468 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100469 <groupId>org.apache.commons</groupId>
470 <artifactId>commons-csv</artifactId>
471 <version>1.3</version>
472 </dependency>
473 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100474 <groupId>com.sun.faces</groupId>
475 <artifactId>jsf-api</artifactId>
476 <version>2.1.7</version>
477 </dependency>
478 <dependency>
479 <groupId>com.sun.faces</groupId>
480 <artifactId>jsf-impl</artifactId>
481 <version>2.1.7</version>
482 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100483 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
484 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200485 <groupId>org.codehaus.plexus</groupId>
486 <artifactId>plexus-utils</artifactId>
487 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100488 </dependency>
489 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200490 <groupId>commons-fileupload</groupId>
491 <artifactId>commons-fileupload</artifactId>
492 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100493 </dependency>
494 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200495 <groupId>org.jboss.spec.javax.ws.rs</groupId>
496 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
497 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100498 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100499 <!-- Remove the MYSQL connector and replace it by Mariadb -->
500 <dependency>
501 <groupId>org.mariadb.jdbc</groupId>
502 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100503 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100504 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100505 <!-- For SDC Controller -->
506 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200507 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100508 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200509 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100510 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100511 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200512 <groupId>org.onap.sdc.sdc-tosca</groupId>
513 <artifactId>sdc-tosca</artifactId>
514 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100515 </dependency>
xg353y2aad6d62018-05-18 17:59:06 +0200516 <!-- To generate Swagger.json, swagger.html and swagger.pdf -->
xg353y2aad6d62018-05-18 17:59:06 +0200517 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200518 <groupId>io.springfox</groupId>
519 <artifactId>springfox-swagger2</artifactId>
520 <version>2.4.0</version>
521 <scope>test</scope>
xg353y2aad6d62018-05-18 17:59:06 +0200522 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200523 <dependency>
524 <groupId>io.github.robwin</groupId>
525 <artifactId>assertj-swagger</artifactId>
526 <version>0.2.0</version>
527 <scope>test</scope>
528 </dependency>
529 <dependency>
530 <groupId>io.github.swagger2markup</groupId>
531 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
532 <version>1.2.0</version>
533 <scope>test</scope>
534 </dependency>
535 </dependencies>
536 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200537 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200538 <snapshots>
539 <enabled>false</enabled>
540 </snapshots>
541 <id>jcenter-releases</id>
542 <name>jcenter</name>
543 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200544 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200545 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100546 <build>
547 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700548
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100549 <testResources>
550 <testResource>
551 <directory>src/test/resources</directory>
552 <excludes>
553 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100554 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100555 </excludes>
556 <filtering>true</filtering>
557 </testResource>
558 <testResource>
559 <directory>src/test/resources/https</directory>
560 <includes>
561 <include>**.jks</include>
562 </includes>
563 <filtering>false</filtering>
564 <targetPath>https</targetPath>
565 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200566 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100567 <directory>src/test/resources/example/sdc</directory>
568 <includes>
569 <include>**.csar</include>
570 </includes>
571 <filtering>false</filtering>
572 <targetPath>example/sdc</targetPath>
573 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100574 </testResources>
575 <resources>
576 <resource>
577 <directory>src/main/resources</directory>
578 <filtering>true</filtering>
579 </resource>
580 <resource>
581 <directory>src/main/docker</directory>
582 <includes>
583 <include>**/*</include>
584 </includes>
585 <filtering>true</filtering>
586 </resource>
587 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700588
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100589 <plugins>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200590 <!-- Scan Clamp code and generate the swagger.json file with all the
591 APIs -->
Determe, Sebastien (sd378r)133d2e52018-05-24 15:56:29 +0200592 <plugin>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200593 <groupId>com.sebastian-daschner</groupId>
594 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
595 <version>0.14</version>
596 <executions>
597 <execution>
598 <phase>test</phase>
599 <goals>
600 <goal>analyze-jaxrs</goal>
601 </goals>
602 <configuration>
603 <backend>swagger</backend>
604 <resourcesDir>../docs/swagger/</resourcesDir>
605 </configuration>
606 </execution>
607 </executions>
608 </plugin>
Determe, Sebastien (sd378r)73803ec2018-05-24 17:52:25 +0200609
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200610 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
611 generate a list of .adoc files containing the APIs info in more structured
612 way -->
613 <plugin>
614 <groupId>io.github.swagger2markup</groupId>
615 <artifactId>swagger2markup-maven-plugin</artifactId>
616 <version>1.3.1</version>
617 <dependencies>
618 <dependency>
619 <groupId>io.github.swagger2markup</groupId>
620 <artifactId>swagger2markup-import-files-ext</artifactId>
621 <version>1.3.1</version>
622 </dependency>
623 <dependency>
624 <groupId>io.github.swagger2markup</groupId>
625 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
626 <version>1.3.1</version>
627 </dependency>
628 </dependencies>
xg353y2aad6d62018-05-18 17:59:06 +0200629 <configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200630 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
631 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
632 <config>
633 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
634 </config>
xg353y2aad6d62018-05-18 17:59:06 +0200635 </configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200636 <executions>
637 <execution>
638 <phase>test</phase>
639 <goals>
640 <goal>convertSwagger2markup</goal>
641 </goals>
642 </execution>
643 </executions>
644 </plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200645
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200646 <!-- Run the generated asciidoc through Asciidoctor to generate other
647 documentation types, such as PDFs or HTML5 -->
648 <plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200649 <groupId>org.asciidoctor</groupId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200650 <artifactId>asciidoctor-maven-plugin</artifactId>
651 <version>1.5.3</version>
652 <dependencies>
653 <dependency>
654 <groupId>org.asciidoctor</groupId>
655 <artifactId>asciidoctorj-pdf</artifactId>
656 <version>1.5.0-alpha.10.1</version>
657 </dependency>
658 <dependency>
659 <groupId>org.jruby</groupId>
660 <artifactId>jruby-complete</artifactId>
661 <version>1.7.21</version>
662 </dependency>
663 </dependencies>
664 <configuration>
665 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
666 <sourceDocumentName>swagger.adoc</sourceDocumentName>
667 <attributes>
668 <doctype>book</doctype>
669 <toc>left</toc>
670 <toclevels>3</toclevels>
671 <numbered></numbered>
672 <hardbreaks></hardbreaks>
673 <sectlinks></sectlinks>
674 <sectanchors></sectanchors>
675 <generated>${project.build.directory}/asciidoc/generated</generated>
676 </attributes>
677 </configuration>
xg353y2aad6d62018-05-18 17:59:06 +0200678
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200679 <executions>
680 <execution>
681 <id>output-html</id>
682 <phase>test</phase>
683 <goals>
684 <goal>process-asciidoc</goal>
685 </goals>
686 <configuration>
687 <backend>html5</backend>
688 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
689 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
690 </configuration>
691 </execution>
692 <execution>
693 <id>output-pdf</id>
694 <phase>test</phase>
695 <goals>
696 <goal>process-asciidoc</goal>
697 </goals>
698 <configuration>
699 <backend>pdf</backend>
700 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
701 </configuration>
702 </execution>
703 </executions>
704 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100705 <plugin>
706 <groupId>org.codehaus.groovy.maven</groupId>
707 <artifactId>gmaven-plugin</artifactId>
708 <version>1.0</version>
709 <executions>
710 <execution>
711 <phase>validate</phase>
712 <goals>
713 <goal>execute</goal>
714 </goals>
715 <configuration>
716 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
717 </configuration>
718 </execution>
719 </executions>
720 </plugin>
721 <plugin>
722 <groupId>org.apache.maven.plugins</groupId>
723 <artifactId>maven-jar-plugin</artifactId>
724 <version>3.0.2</version>
725 <executions>
726 <execution>
727 <id>jar-with-only-classes</id>
728 <phase>package</phase>
729 <goals>
730 <goal>jar</goal>
731 </goals>
732 <configuration>
733 <classifier>classes</classifier>
734 <includes>
735 <include>org/**</include>
736 </includes>
737 </configuration>
738 </execution>
739 </executions>
740 </plugin>
741 <plugin>
742 <groupId>org.codehaus.mojo</groupId>
743 <artifactId>build-helper-maven-plugin</artifactId>
744 <version>3.0.0</version>
745 <executions>
746 <execution>
747 <goals>
748 <goal>attach-artifact</goal>
749 </goals>
750 <phase>package</phase>
751 <configuration>
752 <artifacts>
753 <artifact>
754 <file>${project.build.directory}/clamp-classes.jar</file>
755 <type>jar</type>
756 <classifier>classes</classifier>
757 </artifact>
758 </artifacts>
759 </configuration>
760 </execution>
761 </executions>
762 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700763
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100764 <plugin>
765 <groupId>org.springframework.boot</groupId>
766 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100767 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100768 <executions>
769 <execution>
770 <goals>
771 <goal>repackage</goal>
772 </goals>
773 <phase>package</phase>
774 </execution>
775 </executions>
776 </plugin>
777 <plugin>
778 <groupId>org.sonatype.plugins</groupId>
779 <artifactId>nexus-staging-maven-plugin</artifactId>
780 <version>1.6.7</version>
781 <extensions>true</extensions>
782 <configuration>
783 <nexusUrl>https://nexus.onap.org</nexusUrl>
784 <stagingProfileId>176c31dfe190a</stagingProfileId>
785 <serverId>ecomp-staging</serverId>
786 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
787 </configuration>
788 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200789
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100790 <plugin>
791 <groupId>org.apache.maven.plugins</groupId>
792 <artifactId>maven-surefire-plugin</artifactId>
793 <version>2.19.1</version>
794 <configuration>
795 <forkCount>1</forkCount>
796 <reuseForks>false</reuseForks>
797 </configuration>
798 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200799
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100800 <plugin>
801 <groupId>org.apache.maven.plugins</groupId>
802 <artifactId>maven-failsafe-plugin</artifactId>
803 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700804
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100805 <executions>
806 <execution>
807 <id>integration-tests</id>
808 <goals>
809 <goal>integration-test</goal>
810 <goal>verify</goal>
811 </goals>
812 <configuration>
813 <includes>
814 <include>**/*ItCase.java</include>
815 </includes>
816 <forkCount>1</forkCount>
817 <reuseForks>false</reuseForks>
818 </configuration>
819 </execution>
820 </executions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100821 </plugin>
822 <plugin>
823 <groupId>io.fabric8</groupId>
824 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200825 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100826 <configuration>
827 <verbose>true</verbose>
828 <apiVersion>1.23</apiVersion>
829 <images>
830 <image>
831 <name>mariadb:10.1.11</name>
832 <alias>mariadb</alias>
833 <run>
834 <env>
835 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
836 </env>
837 <hostname>mariadb</hostname>
838 <volumes>
839 <bind>
840 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
841 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
842 </bind>
843 </volumes>
844 <wait>
845 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100846 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100847 </wait>
848 <ports>
849 <port>${docker.mariadb.port.host}:3306</port>
850 </ports>
851 </run>
852 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100853 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100854 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100855 <alias>python</alias>
856 <run>
857 <hostname>python</hostname>
858 <volumes>
859 <bind>
860 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100861 <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 +0100862 </bind>
863 </volumes>
864 <wait>
865 <tcp>
866 <ports>
867 <port>8080</port>
868 </ports>
869 <mode>direct</mode>
870 </tcp>
871 <time>120000</time>
872 </wait>
873 <ports>
874 <port>${docker.http-cache.port.host}:8080</port>
875 </ports>
876 <workingDir>/usr/src/http-cache-app</workingDir>
877 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200878 <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 +0100879 </cmd>
880 </run>
881 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200882 <image>
883 <name>onap/clamp</name>
884 <alias>onap-clamp</alias>
885 <build>
886 <cleanup>true</cleanup>
887 <tags>
888 <tag>latest</tag>
889 <tag>${project.docker.latesttagtimestamp.version}</tag>
890 <tag>${project.docker.latesttag.version}</tag>
891 </tags>
892 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by default -->
893 <dockerFile>Dockerfile</dockerFile>
894 <assembly>
895 <descriptor>assembly/clamp-files.xml</descriptor>
896 <name>onap-clamp</name>
897 </assembly>
898 </build>
899 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100900 </images>
901 <skip>${skipITs}</skip>
902 </configuration>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100903 <executions>
904 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200905 <id>generate-images</id>
906 <phase>install</phase>
907 <goals>
908 <goal>build</goal>
909 </goals>
910 <configuration>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200911 <images>
912 <image>
913 <alias>onap-clamp</alias>
914 </image>
915 </images>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200916 </configuration>
917 </execution>
918 <execution>
919 <id>push-images</id>
920 <phase>deploy</phase>
921 <goals>
922 <goal>push</goal>
923 </goals>
924 <configuration>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200925 <images>
926 <image>
927 <alias>onap-clamp</alias>
928 </image>
929 </images>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200930 </configuration>
931 </execution>
932 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100933 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100934 <phase>pre-integration-test</phase>
935 <goals>
936 <goal>start</goal>
937 </goals>
938 <configuration>
939 <skip>${skipITs}</skip>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200940 <images>
941 <image>
942 <alias>mariadb</alias>
943 </image>
944 <image>
945 <alias>python</alias>
946 </image>
947 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100948 </configuration>
949 </execution>
950 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100951 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100952 <phase>post-integration-test</phase>
953 <goals>
954 <goal>stop</goal>
955 </goals>
956 <configuration>
957 <skip>${skipITs}</skip>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200958 <images>
959 <image>
960 <alias>mariadb</alias>
961 </image>
962 <image>
963 <alias>python</alias>
964 </image>
965 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100966 </configuration>
967 </execution>
968 </executions>
969 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700970
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100971 <plugin>
972 <groupId>org.jacoco</groupId>
973 <artifactId>jacoco-maven-plugin</artifactId>
974 <version>0.7.7.201606060606</version>
975 <configuration>
976 <dumpOnExit>true</dumpOnExit>
977 <includes>
978 <include>org.onap.clamp.*</include>
979 </includes>
980 </configuration>
981 <executions>
982 <execution>
983 <id>pre-unit-test</id>
984 <goals>
985 <goal>prepare-agent</goal>
986 </goals>
987 <configuration>
988 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
989 <!-- <append>true</append> -->
990 </configuration>
991 </execution>
992 <execution>
993 <id>pre-integration-test</id>
994 <phase>pre-integration-test</phase>
995 <goals>
996 <goal>prepare-agent</goal>
997 </goals>
998 <configuration>
999 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1000 <!-- <append>true</append> -->
1001 </configuration>
1002 </execution>
1003 <execution>
1004 <goals>
1005 <goal>merge</goal>
1006 </goals>
1007 <phase>post-integration-test</phase>
1008 <configuration>
1009 <fileSets>
1010 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1011 <directory>${project.build.directory}/coverage-reports</directory>
1012 <includes>
1013 <include>*.exec</include>
1014 </includes>
1015 </fileSet>
1016 </fileSets>
1017 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1018 </configuration>
1019 </execution>
1020 </executions>
1021 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001022
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001023 <!-- This plugin will be useful when we will have multi-modules project -->
1024 <plugin>
1025 <groupId>org.codehaus.mojo</groupId>
1026 <artifactId>versions-maven-plugin</artifactId>
1027 <version>1.3.1</version>
1028 </plugin>
1029 </plugins>
1030 </build>
1031 <profiles>
1032 <profile>
1033 <id>docker</id>
1034 <properties>
1035 <skip.staging.artifacts>true</skip.staging.artifacts>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001036 <docker.skip.build>false</docker.skip.build>
1037 <docker.skip.tag>false</docker.skip.tag>
1038 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001039 </properties>
1040 </profile>
1041 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -07001042</project>