blob: 22c6fe3d385a057835a4262011c048317123c6af [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 ===================================================================
22 ECOMP is a trademark and service mark of AT&T Intellectual Property.
23-->
24
ChrisC5e9feb22017-06-21 02:38:57 -070025<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 +010026 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.clamp</groupId>
29 <artifactId>clds</artifactId>
30 <version>2.0.0-SNAPSHOT</version>
31 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070032
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010033 <parent>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +010036 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010037 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070038
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010039 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010040 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 -070041
42 By Default "mvn clean install" command will execute also the unit tests
43 and the integration tests. The integration tests require a docker engine running.
44
45 If you want to skip the intergation test you can by doing:
46 "mvn clean install -DskipITs=true"
47
48 For Spring it's possible to specify the application.properties location
49 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
50
51 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010052 - org.onap.clamp.config.files.cldsReference=classpath:/clds/clds-reference.properties
53 - org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config.properties
54 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
55 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080056
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010057 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070058
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010059 <properties>
60 <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format>
61 <clamp.project.version>${project.version}</clamp.project.version>
62 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
63 <maven.compiler.source>1.8</maven.compiler.source>
64 <maven.compiler.target>1.8</maven.compiler.target>
65 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
66 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070067
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010068 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010069 <docker.http-cache.port.host>2080</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010070 <project.scm.id>git-server</project.scm.id>
71 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010072
73 <eelf.core.version>1.0.0</eelf.core.version>
74 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010075 <springboot.version>1.5.10.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070076
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010077 <sonar.language>java</sonar.language>
78 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
79 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
80 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
81 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
82 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
83 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070084
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010085 <docker.push.registry>localhost:5000</docker.push.registry>
86 <skip.docker.build>true</skip.docker.build>
87 <skip.docker.push>true</skip.docker.push>
88 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010089 <http.proxy></http.proxy>
90
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>
147 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700148
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100149 <dependencyManagement>
150 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100151 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100152 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100153 <groupId>org.springframework.boot</groupId>
154 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100155 <version>${springboot.version}</version>
156 <type>pom</type>
157 <scope>import</scope>
158 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100159 <!-- Camel BOM -->
160 <dependency>
161 <groupId>org.apache.camel</groupId>
162 <artifactId>camel-spring-boot-dependencies</artifactId>
163 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100164 <type>pom</type>
165 <scope>import</scope>
166 </dependency>
167 </dependencies>
168 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700169
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100170 <dependencies>
171 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100172 <groupId>com.att.eelf</groupId>
173 <artifactId>eelf-core</artifactId>
174 <version>${eelf.core.version}</version>
175 </dependency>
176 <!-- For CAMEL -->
177 <dependency>
178 <groupId>org.apache.camel</groupId>
179 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100180 </dependency>
181 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100182 <groupId>org.apache.camel</groupId>
183 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100184 </dependency>
185 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100186 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100187 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100188 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100189 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100190 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100191 <groupId>org.springframework.boot</groupId>
192 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100193 </dependency>
194 <dependency>
195 <groupId>org.springframework.boot</groupId>
196 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100197 </dependency>
198 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100199 <groupId>com.paypal.springboot</groupId>
200 <artifactId>resteasy-spring-boot-starter</artifactId>
201 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100202 </dependency>
203 <dependency>
204 <groupId>org.springframework</groupId>
205 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100206 </dependency>
207 <dependency>
208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-starter-security</artifactId>
210 </dependency>
211 <dependency>
212 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100213 <artifactId>spring-boot-starter-actuator</artifactId>
214 </dependency>
215 <dependency>
216 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100217 <artifactId>spring-boot-starter-test</artifactId>
218 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100219 <exclusions>
220 <exclusion>
221 <groupId>com.vaadin.external.google</groupId>
222 <artifactId>android-json</artifactId>
223 </exclusion>
224 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100225 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100226 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100227 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100228 <groupId>ch.qos.logback</groupId>
229 <artifactId>logback-core</artifactId>
230 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100231 </dependency>
232 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100233 <groupId>ch.qos.logback</groupId>
234 <artifactId>logback-classic</artifactId>
235 <version>1.2.3</version>
236 </dependency>
237 <dependency>
238 <groupId>commons-dbcp</groupId>
239 <artifactId>commons-dbcp</artifactId>
240 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100241 </dependency>
242 <dependency>
243 <groupId>commons-io</groupId>
244 <artifactId>commons-io</artifactId>
245 <version>2.6</version>
246 </dependency>
247 <dependency>
248 <groupId>com.googlecode.json-simple</groupId>
249 <artifactId>json-simple</artifactId>
250 </dependency>
251 <dependency>
252 <groupId>org.apache.commons</groupId>
253 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100254 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100255 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100256 <dependency>
257 <groupId>joda-time</groupId>
258 <artifactId>joda-time</artifactId>
259 </dependency>
260 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100261 <groupId>org.slf4j</groupId>
262 <artifactId>slf4j-api</artifactId>
263 </dependency>
264 <dependency>
265 <groupId>javax.ws.rs</groupId>
266 <artifactId>javax.ws.rs-api</artifactId>
267 <version>2.0</version>
268 </dependency>
269 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100270 <groupId>junit</groupId>
271 <artifactId>junit</artifactId>
272 </dependency>
273 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100274 <groupId>com.fasterxml.jackson.core</groupId>
275 <artifactId>jackson-core</artifactId>
276 </dependency>
277 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100278 <groupId>javax.transaction</groupId>
279 <artifactId>jta</artifactId>
280 <version>1.1</version>
281 </dependency>
282 <dependency>
283 <groupId>javax.persistence</groupId>
284 <artifactId>persistence-api</artifactId>
285 <version>1.0.2</version>
286 </dependency>
287 <dependency>
288 <groupId>org.hibernate</groupId>
289 <artifactId>hibernate-annotations</artifactId>
290 <version>3.5.6-Final</version>
291 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100292 <dependency>
293 <groupId>dom4j</groupId>
294 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100295 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700296
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100297 <dependency>
298 <groupId>org.onap.policy.engine</groupId>
299 <artifactId>PolicyEngineAPI</artifactId>
300 <version>1.1.0</version>
301 <exclusions>
302 <exclusion>
303 <artifactId>log4j</artifactId>
304 <groupId>log4j</groupId>
305 </exclusion>
306 <exclusion>
307 <groupId>org.slf4j</groupId>
308 <artifactId>slf4j-log4j12</artifactId>
309 </exclusion>
310 <exclusion>
311 <artifactId>apache-log4j-extras</artifactId>
312 <groupId>log4j</groupId>
313 </exclusion>
314 <exclusion>
315 <artifactId>jackson-databind</artifactId>
316 <groupId>com.fasterxml.jackson.core</groupId>
317 </exclusion>
318 <exclusion>
319 <groupId>mysql</groupId>
320 <artifactId>mysql-connector-java</artifactId>
321 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100322 <exclusion>
323 <groupId>commons-io</groupId>
324 <artifactId>commons-io</artifactId>
325 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100326 </exclusions>
327 </dependency>
328 <dependency>
329 <groupId>org.onap.policy.common</groupId>
330 <artifactId>ONAP-Logging</artifactId>
331 <version>1.1.0</version>
332 <exclusions>
333 <exclusion>
334 <artifactId>log4j</artifactId>
335 <groupId>log4j</groupId>
336 </exclusion>
337 <exclusion>
338 <groupId>org.slf4j</groupId>
339 <artifactId>slf4j-log4j12</artifactId>
340 </exclusion>
341 <exclusion>
342 <artifactId>apache-log4j-extras</artifactId>
343 <groupId>log4j</groupId>
344 </exclusion>
345 </exclusions>
346 </dependency>
347 <dependency>
348 <groupId>org.onap.policy.engine</groupId>
349 <artifactId>PolicyEngineUtils</artifactId>
350 <version>1.1.0</version>
351 <exclusions>
352 <exclusion>
353 <artifactId>log4j</artifactId>
354 <groupId>log4j</groupId>
355 </exclusion>
356 <exclusion>
357 <groupId>org.slf4j</groupId>
358 <artifactId>slf4j-log4j12</artifactId>
359 </exclusion>
360 <exclusion>
361 <artifactId>apache-log4j-extras</artifactId>
362 <groupId>log4j</groupId>
363 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100364 <exclusion>
365 <groupId>mysql</groupId>
366 <artifactId>mysql-connector-java</artifactId>
367 </exclusion>
368 <exclusion>
369 <groupId>org.mariadb.jdbc</groupId>
370 <artifactId>mariadb-java-client</artifactId>
371 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100372 <exclusion>
373 <groupId>com.att.nsa</groupId>
374 <artifactId>dmaapClient</artifactId>
375 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100376 </exclusions>
377 </dependency>
378 <dependency>
379 <groupId>org.onap.policy.drools-applications</groupId>
380 <artifactId>policy-yaml</artifactId>
381 <version>1.1.0</version>
382 <exclusions>
383 <exclusion>
384 <artifactId>log4j</artifactId>
385 <groupId>log4j</groupId>
386 </exclusion>
387 <exclusion>
388 <groupId>org.slf4j</groupId>
389 <artifactId>slf4j-log4j12</artifactId>
390 </exclusion>
391 <exclusion>
392 <artifactId>apache-log4j-extras</artifactId>
393 <groupId>log4j</groupId>
394 </exclusion>
395 </exclusions>
396 </dependency>
397 <dependency>
398 <groupId>org.onap.policy.drools-applications</groupId>
399 <artifactId>sdc</artifactId>
400 <version>1.1.0</version>
401 <exclusions>
402 <exclusion>
403 <artifactId>log4j</artifactId>
404 <groupId>log4j</groupId>
405 </exclusion>
406 <exclusion>
407 <groupId>org.slf4j</groupId>
408 <artifactId>slf4j-log4j12</artifactId>
409 </exclusion>
410 <exclusion>
411 <artifactId>apache-log4j-extras</artifactId>
412 <groupId>log4j</groupId>
413 </exclusion>
414 </exclusions>
415 </dependency>
416 <dependency>
417 <groupId>org.onap.policy.drools-applications</groupId>
418 <artifactId>aai</artifactId>
419 <version>1.1.0</version>
420 <exclusions>
421 <exclusion>
422 <artifactId>log4j</artifactId>
423 <groupId>log4j</groupId>
424 </exclusion>
425 <exclusion>
426 <groupId>org.slf4j</groupId>
427 <artifactId>slf4j-log4j12</artifactId>
428 </exclusion>
429 <exclusion>
430 <artifactId>apache-log4j-extras</artifactId>
431 <groupId>log4j</groupId>
432 </exclusion>
433 </exclusions>
434 </dependency>
435 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100436 <groupId>com.fasterxml.jackson.dataformat</groupId>
437 <artifactId>jackson-dataformat-yaml</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100438 </dependency>
439 <dependency>
440 <groupId>org.apache.commons</groupId>
441 <artifactId>commons-csv</artifactId>
442 <version>1.3</version>
443 </dependency>
444 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100445 <groupId>com.sun.faces</groupId>
446 <artifactId>jsf-api</artifactId>
447 <version>2.1.7</version>
448 </dependency>
449 <dependency>
450 <groupId>com.sun.faces</groupId>
451 <artifactId>jsf-impl</artifactId>
452 <version>2.1.7</version>
453 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100454 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
455 <dependency>
456 <groupId>org.codehaus.plexus</groupId>
457 <artifactId>plexus-utils</artifactId>
458 <version>3.0.24</version>
459 </dependency>
460 <dependency>
461 <groupId>commons-fileupload</groupId>
462 <artifactId>commons-fileupload</artifactId>
463 <version>1.3.3</version>
464 </dependency>
465 <dependency>
466 <groupId>org.jboss.spec.javax.ws.rs</groupId>
467 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
468 <version>1.0.1.Final</version>
469 </dependency>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +0100470 <dependency>
471 <groupId>com.fasterxml.jackson.core</groupId>
472 <artifactId>jackson-databind</artifactId>
473 <version>2.8.11.1</version>
474 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100475 <!-- Remove the MYSQL connector and replace it by Mariadb -->
476 <dependency>
477 <groupId>org.mariadb.jdbc</groupId>
478 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100479 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100480 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100481 <!-- For SDC Controller -->
482 <dependency>
483 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
484 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100485 <version>1.2.2</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100486 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100487 <dependency>
488 <groupId>org.openecomp.sdc.sdc-tosca</groupId>
489 <artifactId>sdc-tosca</artifactId>
490 <version>1.2.2</version>
491 </dependency>
492
493
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100494 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700495
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100496 <build>
497 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700498
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100499 <testResources>
500 <testResource>
501 <directory>src/test/resources</directory>
502 <excludes>
503 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100504 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100505 </excludes>
506 <filtering>true</filtering>
507 </testResource>
508 <testResource>
509 <directory>src/test/resources/https</directory>
510 <includes>
511 <include>**.jks</include>
512 </includes>
513 <filtering>false</filtering>
514 <targetPath>https</targetPath>
515 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100516 <testResource>
517 <directory>src/test/resources/example/sdc</directory>
518 <includes>
519 <include>**.csar</include>
520 </includes>
521 <filtering>false</filtering>
522 <targetPath>example/sdc</targetPath>
523 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100524 </testResources>
525 <resources>
526 <resource>
527 <directory>src/main/resources</directory>
528 <filtering>true</filtering>
529 </resource>
530 <resource>
531 <directory>src/main/docker</directory>
532 <includes>
533 <include>**/*</include>
534 </includes>
535 <filtering>true</filtering>
536 </resource>
537 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700538
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100539 <plugins>
540 <plugin>
541 <groupId>org.codehaus.groovy.maven</groupId>
542 <artifactId>gmaven-plugin</artifactId>
543 <version>1.0</version>
544 <executions>
545 <execution>
546 <phase>validate</phase>
547 <goals>
548 <goal>execute</goal>
549 </goals>
550 <configuration>
551 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
552 </configuration>
553 </execution>
554 </executions>
555 </plugin>
556 <plugin>
557 <groupId>org.apache.maven.plugins</groupId>
558 <artifactId>maven-jar-plugin</artifactId>
559 <version>3.0.2</version>
560 <executions>
561 <execution>
562 <id>jar-with-only-classes</id>
563 <phase>package</phase>
564 <goals>
565 <goal>jar</goal>
566 </goals>
567 <configuration>
568 <classifier>classes</classifier>
569 <includes>
570 <include>org/**</include>
571 </includes>
572 </configuration>
573 </execution>
574 </executions>
575 </plugin>
576 <plugin>
577 <groupId>org.codehaus.mojo</groupId>
578 <artifactId>build-helper-maven-plugin</artifactId>
579 <version>3.0.0</version>
580 <executions>
581 <execution>
582 <goals>
583 <goal>attach-artifact</goal>
584 </goals>
585 <phase>package</phase>
586 <configuration>
587 <artifacts>
588 <artifact>
589 <file>${project.build.directory}/clamp-classes.jar</file>
590 <type>jar</type>
591 <classifier>classes</classifier>
592 </artifact>
593 </artifacts>
594 </configuration>
595 </execution>
596 </executions>
597 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700598
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100599 <plugin>
600 <groupId>org.springframework.boot</groupId>
601 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100602 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100603 <executions>
604 <execution>
605 <goals>
606 <goal>repackage</goal>
607 </goals>
608 <phase>package</phase>
609 </execution>
610 </executions>
611 </plugin>
612 <plugin>
613 <groupId>org.sonatype.plugins</groupId>
614 <artifactId>nexus-staging-maven-plugin</artifactId>
615 <version>1.6.7</version>
616 <extensions>true</extensions>
617 <configuration>
618 <nexusUrl>https://nexus.onap.org</nexusUrl>
619 <stagingProfileId>176c31dfe190a</stagingProfileId>
620 <serverId>ecomp-staging</serverId>
621 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
622 </configuration>
623 </plugin>
624 <plugin>
625 <groupId>com.spotify</groupId>
626 <artifactId>docker-maven-plugin</artifactId>
627 <version>1.0.0</version>
628 <configuration>
629 <imageName>onap/clamp</imageName>
630 <dockerDirectory>src/main/docker</dockerDirectory>
631 <serverId>docker-hub</serverId>
632 <imageTags>
633 <imageTag>latest</imageTag>
634 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
635 <imageTag>${project.docker.latesttag.version}</imageTag>
636 </imageTags>
637 <forceTags>true</forceTags>
638 <resources>
639 <resource>
640 <targetPath>/</targetPath>
641 <directory>${project.build.directory}</directory>
642 <include>${project.build.finalName}.jar</include>
643 </resource>
644 <resource>
645 <targetPath>/</targetPath>
646 <directory>${project.build.directory}</directory>
647 <include>etc/config/**</include>
648 </resource>
649 <resource>
650 <targetPath>/</targetPath>
651 <directory>${project.build.directory}</directory>
652 <include>etc/keystore/**</include>
653 </resource>
654 </resources>
655 </configuration>
656 <executions>
657 <execution>
658 <id>build-image</id>
659 <phase>package</phase>
660 <goals>
661 <goal>build</goal>
662 </goals>
663 <configuration>
664 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
665 <buildArgs>
666 <http_proxy>${env.HTTP_PROXY}</http_proxy>
667 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
668 </buildArgs>
669 </configuration>
670 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700671
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100672 <execution>
673 <id>tag-image-latest-timestamp</id>
674 <phase>package</phase>
675 <goals>
676 <goal>tag</goal>
677 </goals>
678 <configuration>
679 <image>onap/clamp</image>
680 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
681 <skipDockerTag>${skip.docker.push}</skipDockerTag>
682 </configuration>
683 </execution>
684 <execution>
685 <id>push-image-latest-timestamp</id>
686 <phase>deploy</phase>
687 <goals>
688 <goal>push</goal>
689 </goals>
690 <configuration>
691 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
692 <skipDockerPush>${skip.docker.push}</skipDockerPush>
693 </configuration>
694 </execution>
695 <execution>
696 <id>tag-image-latest</id>
697 <phase>package</phase>
698 <goals>
699 <goal>tag</goal>
700 </goals>
701 <configuration>
702 <image>onap/clamp</image>
703 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
704 <skipDockerTag>${skip.docker.push}</skipDockerTag>
705 </configuration>
706 </execution>
707 <execution>
708 <id>push-image-latest</id>
709 <phase>deploy</phase>
710 <goals>
711 <goal>push</goal>
712 </goals>
713 <configuration>
714 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
715 <skipDockerPush>${skip.docker.push}</skipDockerPush>
716 </configuration>
717 </execution>
718 <execution>
719 <id>tag-image</id>
720 <phase>package</phase>
721 <goals>
722 <goal>tag</goal>
723 </goals>
724 <configuration>
725 <image>onap/clamp</image>
726 <newName>${docker.push.registry}/onap/clamp:latest</newName>
727 <skipDockerTag>${skip.docker.push}</skipDockerTag>
728 </configuration>
729 </execution>
730 <execution>
731 <id>push-image</id>
732 <phase>deploy</phase>
733 <goals>
734 <goal>push</goal>
735 </goals>
736 <configuration>
737 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
738 <skipDockerPush>${skip.docker.push}</skipDockerPush>
739 </configuration>
740 </execution>
741 </executions>
742 </plugin>
743 <plugin>
744 <groupId>org.apache.maven.plugins</groupId>
745 <artifactId>maven-surefire-plugin</artifactId>
746 <version>2.19.1</version>
747 <configuration>
748 <forkCount>1</forkCount>
749 <reuseForks>false</reuseForks>
750 </configuration>
751 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200752
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100753 <plugin>
754 <groupId>org.apache.maven.plugins</groupId>
755 <artifactId>maven-failsafe-plugin</artifactId>
756 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700757
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100758 <executions>
759 <execution>
760 <id>integration-tests</id>
761 <goals>
762 <goal>integration-test</goal>
763 <goal>verify</goal>
764 </goals>
765 <configuration>
766 <includes>
767 <include>**/*ItCase.java</include>
768 </includes>
769 <forkCount>1</forkCount>
770 <reuseForks>false</reuseForks>
771 </configuration>
772 </execution>
773 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700774
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100775 </plugin>
776 <plugin>
777 <groupId>io.fabric8</groupId>
778 <artifactId>docker-maven-plugin</artifactId>
779 <version>0.16.5</version>
780 <configuration>
781 <verbose>true</verbose>
782 <apiVersion>1.23</apiVersion>
783 <images>
784 <image>
785 <name>mariadb:10.1.11</name>
786 <alias>mariadb</alias>
787 <run>
788 <env>
789 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
790 </env>
791 <hostname>mariadb</hostname>
792 <volumes>
793 <bind>
794 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
795 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
796 </bind>
797 </volumes>
798 <wait>
799 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100800 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100801 </wait>
802 <ports>
803 <port>${docker.mariadb.port.host}:3306</port>
804 </ports>
805 </run>
806 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100807 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100808 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100809 <alias>python</alias>
810 <run>
811 <hostname>python</hostname>
812 <volumes>
813 <bind>
814 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
815 <volume>${project.basedir}/src/test/resources/http-cache/sdc-example/:/usr/src/http-cache-app/data-cache</volume>
816 </bind>
817 </volumes>
818 <wait>
819 <tcp>
820 <ports>
821 <port>8080</port>
822 </ports>
823 <mode>direct</mode>
824 </tcp>
825 <time>120000</time>
826 </wait>
827 <ports>
828 <port>${docker.http-cache.port.host}:8080</port>
829 </ports>
830 <workingDir>/usr/src/http-cache-app</workingDir>
831 <cmd>
832 <shell>./start_http_cache.sh ${http.proxy}</shell>
833 </cmd>
834 </run>
835 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100836 </images>
837 <skip>${skipITs}</skip>
838 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700839
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100840 <executions>
841 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100842 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100843 <phase>pre-integration-test</phase>
844 <goals>
845 <goal>start</goal>
846 </goals>
847 <configuration>
848 <skip>${skipITs}</skip>
849 </configuration>
850 </execution>
851 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100852 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100853 <phase>post-integration-test</phase>
854 <goals>
855 <goal>stop</goal>
856 </goals>
857 <configuration>
858 <skip>${skipITs}</skip>
859 </configuration>
860 </execution>
861 </executions>
862 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700863
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100864 <plugin>
865 <groupId>org.jacoco</groupId>
866 <artifactId>jacoco-maven-plugin</artifactId>
867 <version>0.7.7.201606060606</version>
868 <configuration>
869 <dumpOnExit>true</dumpOnExit>
870 <includes>
871 <include>org.onap.clamp.*</include>
872 </includes>
873 </configuration>
874 <executions>
875 <execution>
876 <id>pre-unit-test</id>
877 <goals>
878 <goal>prepare-agent</goal>
879 </goals>
880 <configuration>
881 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
882 <!-- <append>true</append> -->
883 </configuration>
884 </execution>
885 <execution>
886 <id>pre-integration-test</id>
887 <phase>pre-integration-test</phase>
888 <goals>
889 <goal>prepare-agent</goal>
890 </goals>
891 <configuration>
892 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
893 <!-- <append>true</append> -->
894 </configuration>
895 </execution>
896 <execution>
897 <goals>
898 <goal>merge</goal>
899 </goals>
900 <phase>post-integration-test</phase>
901 <configuration>
902 <fileSets>
903 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
904 <directory>${project.build.directory}/coverage-reports</directory>
905 <includes>
906 <include>*.exec</include>
907 </includes>
908 </fileSet>
909 </fileSets>
910 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
911 </configuration>
912 </execution>
913 </executions>
914 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700915
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100916 <!-- This plugin will be useful when we will have multi-modules project -->
917 <plugin>
918 <groupId>org.codehaus.mojo</groupId>
919 <artifactId>versions-maven-plugin</artifactId>
920 <version>1.3.1</version>
921 </plugin>
922 </plugins>
923 </build>
924 <profiles>
925 <profile>
926 <id>docker</id>
927 <properties>
928 <skip.staging.artifacts>true</skip.staging.artifacts>
929 <skip.docker.build>false</skip.docker.build>
930 <skip.docker.tag>false</skip.docker.tag>
931 <skip.docker.push>false</skip.docker.push>
932 </properties>
933 </profile>
934 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700935</project>