blob: bc863d4f2e287f00c0f0038805bd1bf4f1855291 [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>
xg353ye6409552018-05-08 16:21:39 +0200261 <groupId>org.onap.aaf.authz</groupId>
262 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200263 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200264 <exclusions>
265 <exclusion>
266 <groupId>javax.servlet</groupId>
267 <artifactId>servlet-api</artifactId>
268 </exclusion>
269 </exclusions>
270 </dependency>
271 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100272 <groupId>ch.qos.logback</groupId>
273 <artifactId>logback-core</artifactId>
274 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100275 </dependency>
276 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100277 <groupId>ch.qos.logback</groupId>
278 <artifactId>logback-classic</artifactId>
279 <version>1.2.3</version>
280 </dependency>
281 <dependency>
282 <groupId>commons-dbcp</groupId>
283 <artifactId>commons-dbcp</artifactId>
284 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100285 </dependency>
286 <dependency>
287 <groupId>commons-io</groupId>
288 <artifactId>commons-io</artifactId>
289 <version>2.6</version>
290 </dependency>
291 <dependency>
292 <groupId>com.googlecode.json-simple</groupId>
293 <artifactId>json-simple</artifactId>
294 </dependency>
295 <dependency>
296 <groupId>org.apache.commons</groupId>
297 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100298 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100299 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100300 <dependency>
301 <groupId>joda-time</groupId>
302 <artifactId>joda-time</artifactId>
303 </dependency>
304 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100305 <groupId>org.slf4j</groupId>
306 <artifactId>slf4j-api</artifactId>
307 </dependency>
308 <dependency>
309 <groupId>javax.ws.rs</groupId>
310 <artifactId>javax.ws.rs-api</artifactId>
311 <version>2.0</version>
312 </dependency>
313 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100314 <groupId>junit</groupId>
315 <artifactId>junit</artifactId>
316 </dependency>
317 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100318 <groupId>javax.transaction</groupId>
319 <artifactId>jta</artifactId>
320 <version>1.1</version>
321 </dependency>
322 <dependency>
323 <groupId>javax.persistence</groupId>
324 <artifactId>persistence-api</artifactId>
325 <version>1.0.2</version>
326 </dependency>
327 <dependency>
328 <groupId>org.hibernate</groupId>
329 <artifactId>hibernate-annotations</artifactId>
330 <version>3.5.6-Final</version>
331 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100332 <dependency>
333 <groupId>dom4j</groupId>
334 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100335 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700336
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100337 <dependency>
338 <groupId>org.onap.policy.engine</groupId>
339 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200340 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100341 <exclusions>
342 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500343 <groupId>com.google.guava</groupId>
344 <artifactId>guava</artifactId>
345 </exclusion>
346 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100347 <artifactId>log4j</artifactId>
348 <groupId>log4j</groupId>
349 </exclusion>
350 <exclusion>
351 <groupId>org.slf4j</groupId>
352 <artifactId>slf4j-log4j12</artifactId>
353 </exclusion>
354 <exclusion>
355 <artifactId>apache-log4j-extras</artifactId>
356 <groupId>log4j</groupId>
357 </exclusion>
358 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100359 <groupId>mysql</groupId>
360 <artifactId>mysql-connector-java</artifactId>
361 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100362 <exclusion>
363 <groupId>commons-io</groupId>
364 <artifactId>commons-io</artifactId>
365 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200366 <exclusion>
367 <artifactId>grizzly-http</artifactId>
368 <groupId>org.glassfish.grizzly</groupId>
369 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100370 </exclusions>
371 </dependency>
372 <dependency>
373 <groupId>org.onap.policy.common</groupId>
374 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200375 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100376 <exclusions>
377 <exclusion>
378 <artifactId>log4j</artifactId>
379 <groupId>log4j</groupId>
380 </exclusion>
381 <exclusion>
382 <groupId>org.slf4j</groupId>
383 <artifactId>slf4j-log4j12</artifactId>
384 </exclusion>
385 <exclusion>
386 <artifactId>apache-log4j-extras</artifactId>
387 <groupId>log4j</groupId>
388 </exclusion>
389 </exclusions>
390 </dependency>
391 <dependency>
392 <groupId>org.onap.policy.engine</groupId>
393 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200394 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100395 <exclusions>
396 <exclusion>
397 <artifactId>log4j</artifactId>
398 <groupId>log4j</groupId>
399 </exclusion>
400 <exclusion>
401 <groupId>org.slf4j</groupId>
402 <artifactId>slf4j-log4j12</artifactId>
403 </exclusion>
404 <exclusion>
405 <artifactId>apache-log4j-extras</artifactId>
406 <groupId>log4j</groupId>
407 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100408 <exclusion>
409 <groupId>mysql</groupId>
410 <artifactId>mysql-connector-java</artifactId>
411 </exclusion>
412 <exclusion>
413 <groupId>org.mariadb.jdbc</groupId>
414 <artifactId>mariadb-java-client</artifactId>
415 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100416 <exclusion>
417 <groupId>com.att.nsa</groupId>
418 <artifactId>dmaapClient</artifactId>
419 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100420 </exclusions>
421 </dependency>
422 <dependency>
423 <groupId>org.onap.policy.drools-applications</groupId>
424 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200425 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100426 <exclusions>
427 <exclusion>
428 <artifactId>log4j</artifactId>
429 <groupId>log4j</groupId>
430 </exclusion>
431 <exclusion>
432 <groupId>org.slf4j</groupId>
433 <artifactId>slf4j-log4j12</artifactId>
434 </exclusion>
435 <exclusion>
436 <artifactId>apache-log4j-extras</artifactId>
437 <groupId>log4j</groupId>
438 </exclusion>
439 </exclusions>
440 </dependency>
441 <dependency>
442 <groupId>org.onap.policy.drools-applications</groupId>
443 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200444 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100445 <exclusions>
446 <exclusion>
447 <artifactId>log4j</artifactId>
448 <groupId>log4j</groupId>
449 </exclusion>
450 <exclusion>
451 <groupId>org.slf4j</groupId>
452 <artifactId>slf4j-log4j12</artifactId>
453 </exclusion>
454 <exclusion>
455 <artifactId>apache-log4j-extras</artifactId>
456 <groupId>log4j</groupId>
457 </exclusion>
458 </exclusions>
459 </dependency>
460 <dependency>
461 <groupId>org.onap.policy.drools-applications</groupId>
462 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200463 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100464 <exclusions>
465 <exclusion>
466 <artifactId>log4j</artifactId>
467 <groupId>log4j</groupId>
468 </exclusion>
469 <exclusion>
470 <groupId>org.slf4j</groupId>
471 <artifactId>slf4j-log4j12</artifactId>
472 </exclusion>
473 <exclusion>
474 <artifactId>apache-log4j-extras</artifactId>
475 <groupId>log4j</groupId>
476 </exclusion>
477 </exclusions>
478 </dependency>
479 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100480 <groupId>org.apache.commons</groupId>
481 <artifactId>commons-csv</artifactId>
482 <version>1.3</version>
483 </dependency>
484 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100485 <groupId>com.sun.faces</groupId>
486 <artifactId>jsf-api</artifactId>
487 <version>2.1.7</version>
488 </dependency>
489 <dependency>
490 <groupId>com.sun.faces</groupId>
491 <artifactId>jsf-impl</artifactId>
492 <version>2.1.7</version>
493 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100494 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
495 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200496 <groupId>org.codehaus.plexus</groupId>
497 <artifactId>plexus-utils</artifactId>
498 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100499 </dependency>
500 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200501 <groupId>commons-fileupload</groupId>
502 <artifactId>commons-fileupload</artifactId>
503 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100504 </dependency>
505 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200506 <groupId>org.jboss.spec.javax.ws.rs</groupId>
507 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
508 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100509 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100510 <!-- Remove the MYSQL connector and replace it by Mariadb -->
511 <dependency>
512 <groupId>org.mariadb.jdbc</groupId>
513 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100514 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100515 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100516 <!-- For SDC Controller -->
517 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200518 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100519 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200520 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100521 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100522 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200523 <groupId>org.onap.sdc.sdc-tosca</groupId>
524 <artifactId>sdc-tosca</artifactId>
525 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100526 </dependency>
xg353y2aad6d62018-05-18 17:59:06 +0200527 <!-- To generate Swagger.json, swagger.html and swagger.pdf -->
xg353y2aad6d62018-05-18 17:59:06 +0200528 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200529 <groupId>io.springfox</groupId>
530 <artifactId>springfox-swagger2</artifactId>
531 <version>2.4.0</version>
532 <scope>test</scope>
xg353y2aad6d62018-05-18 17:59:06 +0200533 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200534 <dependency>
535 <groupId>io.github.robwin</groupId>
536 <artifactId>assertj-swagger</artifactId>
537 <version>0.2.0</version>
538 <scope>test</scope>
539 </dependency>
540 <dependency>
541 <groupId>io.github.swagger2markup</groupId>
542 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
543 <version>1.2.0</version>
544 <scope>test</scope>
545 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200546 <!-- TESTING -->
547 <dependency>
548 <groupId>org.assertj</groupId>
549 <artifactId>assertj-core</artifactId>
550 <version>3.10.0</version>
551 <scope>test</scope>
552 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200553 </dependencies>
554 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200555 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200556 <snapshots>
557 <enabled>false</enabled>
558 </snapshots>
559 <id>jcenter-releases</id>
560 <name>jcenter</name>
561 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200562 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200563 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100564 <build>
565 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700566
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100567 <testResources>
568 <testResource>
569 <directory>src/test/resources</directory>
570 <excludes>
571 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100572 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100573 </excludes>
574 <filtering>true</filtering>
575 </testResource>
576 <testResource>
577 <directory>src/test/resources/https</directory>
578 <includes>
579 <include>**.jks</include>
580 </includes>
581 <filtering>false</filtering>
582 <targetPath>https</targetPath>
583 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200584 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100585 <directory>src/test/resources/example/sdc</directory>
586 <includes>
587 <include>**.csar</include>
588 </includes>
589 <filtering>false</filtering>
590 <targetPath>example/sdc</targetPath>
591 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100592 </testResources>
593 <resources>
594 <resource>
595 <directory>src/main/resources</directory>
596 <filtering>true</filtering>
597 </resource>
598 <resource>
599 <directory>src/main/docker</directory>
600 <includes>
601 <include>**/*</include>
602 </includes>
603 <filtering>true</filtering>
604 </resource>
605 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700606
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100607 <plugins>
Gabriel2dc06bd2018-06-25 08:25:06 +0200608 <!-- Scan Clamp code and generate the swagger.json file with all the
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200609 APIs -->
Determe, Sebastien (sd378r)133d2e52018-05-24 15:56:29 +0200610 <plugin>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200611 <groupId>com.sebastian-daschner</groupId>
612 <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
613 <version>0.14</version>
614 <executions>
615 <execution>
616 <phase>test</phase>
617 <goals>
618 <goal>analyze-jaxrs</goal>
619 </goals>
620 <configuration>
621 <backend>swagger</backend>
622 <resourcesDir>../docs/swagger/</resourcesDir>
623 </configuration>
624 </execution>
625 </executions>
626 </plugin>
Determe, Sebastien (sd378r)73803ec2018-05-24 17:52:25 +0200627
Gabriel2dc06bd2018-06-25 08:25:06 +0200628 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
629 generate a list of .adoc files containing the APIs info in more structured
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200630 way -->
631 <plugin>
632 <groupId>io.github.swagger2markup</groupId>
633 <artifactId>swagger2markup-maven-plugin</artifactId>
634 <version>1.3.1</version>
635 <dependencies>
636 <dependency>
637 <groupId>io.github.swagger2markup</groupId>
638 <artifactId>swagger2markup-import-files-ext</artifactId>
639 <version>1.3.1</version>
640 </dependency>
641 <dependency>
642 <groupId>io.github.swagger2markup</groupId>
643 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
644 <version>1.3.1</version>
645 </dependency>
646 </dependencies>
xg353y2aad6d62018-05-18 17:59:06 +0200647 <configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200648 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
649 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
650 <config>
651 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
652 </config>
xg353y2aad6d62018-05-18 17:59:06 +0200653 </configuration>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200654 <executions>
655 <execution>
656 <phase>test</phase>
657 <goals>
658 <goal>convertSwagger2markup</goal>
659 </goals>
660 </execution>
661 </executions>
662 </plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200663
Gabriel2dc06bd2018-06-25 08:25:06 +0200664 <!-- Run the generated asciidoc through Asciidoctor to generate other
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200665 documentation types, such as PDFs or HTML5 -->
666 <plugin>
xg353y2aad6d62018-05-18 17:59:06 +0200667 <groupId>org.asciidoctor</groupId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200668 <artifactId>asciidoctor-maven-plugin</artifactId>
669 <version>1.5.3</version>
670 <dependencies>
671 <dependency>
672 <groupId>org.asciidoctor</groupId>
673 <artifactId>asciidoctorj-pdf</artifactId>
674 <version>1.5.0-alpha.10.1</version>
675 </dependency>
676 <dependency>
677 <groupId>org.jruby</groupId>
678 <artifactId>jruby-complete</artifactId>
679 <version>1.7.21</version>
680 </dependency>
681 </dependencies>
682 <configuration>
683 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
684 <sourceDocumentName>swagger.adoc</sourceDocumentName>
685 <attributes>
686 <doctype>book</doctype>
687 <toc>left</toc>
688 <toclevels>3</toclevels>
689 <numbered></numbered>
690 <hardbreaks></hardbreaks>
691 <sectlinks></sectlinks>
692 <sectanchors></sectanchors>
693 <generated>${project.build.directory}/asciidoc/generated</generated>
694 </attributes>
695 </configuration>
xg353y2aad6d62018-05-18 17:59:06 +0200696
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200697 <executions>
698 <execution>
699 <id>output-html</id>
700 <phase>test</phase>
701 <goals>
702 <goal>process-asciidoc</goal>
703 </goals>
704 <configuration>
705 <backend>html5</backend>
706 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
707 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
708 </configuration>
709 </execution>
710 <execution>
711 <id>output-pdf</id>
712 <phase>test</phase>
713 <goals>
714 <goal>process-asciidoc</goal>
715 </goals>
716 <configuration>
717 <backend>pdf</backend>
718 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
719 </configuration>
720 </execution>
721 </executions>
722 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100723 <plugin>
724 <groupId>org.codehaus.groovy.maven</groupId>
725 <artifactId>gmaven-plugin</artifactId>
726 <version>1.0</version>
727 <executions>
728 <execution>
729 <phase>validate</phase>
730 <goals>
731 <goal>execute</goal>
732 </goals>
733 <configuration>
734 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
735 </configuration>
736 </execution>
737 </executions>
738 </plugin>
739 <plugin>
740 <groupId>org.apache.maven.plugins</groupId>
741 <artifactId>maven-jar-plugin</artifactId>
742 <version>3.0.2</version>
743 <executions>
744 <execution>
745 <id>jar-with-only-classes</id>
746 <phase>package</phase>
747 <goals>
748 <goal>jar</goal>
749 </goals>
750 <configuration>
751 <classifier>classes</classifier>
752 <includes>
753 <include>org/**</include>
754 </includes>
755 </configuration>
756 </execution>
757 </executions>
758 </plugin>
759 <plugin>
760 <groupId>org.codehaus.mojo</groupId>
761 <artifactId>build-helper-maven-plugin</artifactId>
762 <version>3.0.0</version>
763 <executions>
764 <execution>
765 <goals>
766 <goal>attach-artifact</goal>
767 </goals>
768 <phase>package</phase>
769 <configuration>
770 <artifacts>
771 <artifact>
772 <file>${project.build.directory}/clamp-classes.jar</file>
773 <type>jar</type>
774 <classifier>classes</classifier>
775 </artifact>
776 </artifacts>
777 </configuration>
778 </execution>
779 </executions>
780 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700781
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100782 <plugin>
783 <groupId>org.springframework.boot</groupId>
784 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100785 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100786 <executions>
787 <execution>
788 <goals>
789 <goal>repackage</goal>
790 </goals>
791 <phase>package</phase>
792 </execution>
793 </executions>
794 </plugin>
795 <plugin>
796 <groupId>org.sonatype.plugins</groupId>
797 <artifactId>nexus-staging-maven-plugin</artifactId>
798 <version>1.6.7</version>
799 <extensions>true</extensions>
800 <configuration>
801 <nexusUrl>https://nexus.onap.org</nexusUrl>
802 <stagingProfileId>176c31dfe190a</stagingProfileId>
803 <serverId>ecomp-staging</serverId>
804 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
805 </configuration>
806 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200807
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100808 <plugin>
809 <groupId>org.apache.maven.plugins</groupId>
810 <artifactId>maven-surefire-plugin</artifactId>
811 <version>2.19.1</version>
812 <configuration>
813 <forkCount>1</forkCount>
814 <reuseForks>false</reuseForks>
815 </configuration>
816 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200817
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100818 <plugin>
819 <groupId>org.apache.maven.plugins</groupId>
820 <artifactId>maven-failsafe-plugin</artifactId>
821 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700822
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100823 <executions>
824 <execution>
825 <id>integration-tests</id>
826 <goals>
827 <goal>integration-test</goal>
828 <goal>verify</goal>
829 </goals>
830 <configuration>
831 <includes>
832 <include>**/*ItCase.java</include>
833 </includes>
834 <forkCount>1</forkCount>
835 <reuseForks>false</reuseForks>
836 </configuration>
837 </execution>
838 </executions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100839 </plugin>
840 <plugin>
841 <groupId>io.fabric8</groupId>
842 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200843 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100844 <configuration>
845 <verbose>true</verbose>
846 <apiVersion>1.23</apiVersion>
847 <images>
848 <image>
849 <name>mariadb:10.1.11</name>
850 <alias>mariadb</alias>
851 <run>
852 <env>
853 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
854 </env>
855 <hostname>mariadb</hostname>
856 <volumes>
857 <bind>
858 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
859 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
860 </bind>
861 </volumes>
862 <wait>
863 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100864 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100865 </wait>
866 <ports>
867 <port>${docker.mariadb.port.host}:3306</port>
868 </ports>
869 </run>
870 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100871 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100872 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100873 <alias>python</alias>
874 <run>
875 <hostname>python</hostname>
876 <volumes>
877 <bind>
878 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100879 <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 +0100880 </bind>
881 </volumes>
882 <wait>
883 <tcp>
884 <ports>
885 <port>8080</port>
886 </ports>
887 <mode>direct</mode>
888 </tcp>
889 <time>120000</time>
890 </wait>
891 <ports>
892 <port>${docker.http-cache.port.host}:8080</port>
893 </ports>
894 <workingDir>/usr/src/http-cache-app</workingDir>
895 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200896 <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 +0100897 </cmd>
898 </run>
899 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200900 <image>
901 <name>onap/clamp</name>
902 <alias>onap-clamp</alias>
903 <build>
904 <cleanup>true</cleanup>
905 <tags>
906 <tag>latest</tag>
907 <tag>${project.docker.latesttagtimestamp.version}</tag>
908 <tag>${project.docker.latesttag.version}</tag>
909 </tags>
910 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by default -->
911 <dockerFile>Dockerfile</dockerFile>
912 <assembly>
913 <descriptor>assembly/clamp-files.xml</descriptor>
914 <name>onap-clamp</name>
915 </assembly>
916 </build>
917 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100918 </images>
919 <skip>${skipITs}</skip>
920 </configuration>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100921 <executions>
922 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200923 <id>generate-images</id>
924 <phase>install</phase>
925 <goals>
926 <goal>build</goal>
927 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200928 </execution>
929 <execution>
930 <id>push-images</id>
931 <phase>deploy</phase>
932 <goals>
933 <goal>push</goal>
934 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200935 </execution>
936 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100937 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100938 <phase>pre-integration-test</phase>
939 <goals>
940 <goal>start</goal>
941 </goals>
942 <configuration>
943 <skip>${skipITs}</skip>
944 </configuration>
945 </execution>
946 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100947 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100948 <phase>post-integration-test</phase>
949 <goals>
950 <goal>stop</goal>
951 </goals>
952 <configuration>
953 <skip>${skipITs}</skip>
954 </configuration>
955 </execution>
956 </executions>
957 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700958
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100959 <plugin>
960 <groupId>org.jacoco</groupId>
961 <artifactId>jacoco-maven-plugin</artifactId>
962 <version>0.7.7.201606060606</version>
963 <configuration>
964 <dumpOnExit>true</dumpOnExit>
965 <includes>
966 <include>org.onap.clamp.*</include>
967 </includes>
968 </configuration>
969 <executions>
970 <execution>
971 <id>pre-unit-test</id>
972 <goals>
973 <goal>prepare-agent</goal>
974 </goals>
975 <configuration>
976 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
977 <!-- <append>true</append> -->
978 </configuration>
979 </execution>
980 <execution>
981 <id>pre-integration-test</id>
982 <phase>pre-integration-test</phase>
983 <goals>
984 <goal>prepare-agent</goal>
985 </goals>
986 <configuration>
987 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
988 <!-- <append>true</append> -->
989 </configuration>
990 </execution>
991 <execution>
992 <goals>
993 <goal>merge</goal>
994 </goals>
995 <phase>post-integration-test</phase>
996 <configuration>
997 <fileSets>
998 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
999 <directory>${project.build.directory}/coverage-reports</directory>
1000 <includes>
1001 <include>*.exec</include>
1002 </includes>
1003 </fileSet>
1004 </fileSets>
1005 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1006 </configuration>
1007 </execution>
1008 </executions>
1009 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001010
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001011 <!-- This plugin will be useful when we will have multi-modules project -->
1012 <plugin>
1013 <groupId>org.codehaus.mojo</groupId>
1014 <artifactId>versions-maven-plugin</artifactId>
1015 <version>1.3.1</version>
1016 </plugin>
1017 </plugins>
1018 </build>
1019 <profiles>
1020 <profile>
1021 <id>docker</id>
1022 <properties>
1023 <skip.staging.artifacts>true</skip.staging.artifacts>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001024 <docker.skip.build>false</docker.skip.build>
1025 <docker.skip.tag>false</docker.skip.tag>
1026 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001027 </properties>
1028 </profile>
1029 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -07001030</project>