blob: 192d35bd29b6ae755196d1caab119148b4e4cd42 [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)7e44fa72018-02-07 10:11:30 +010036 <version>1.1.0-SNAPSHOT</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>
254 <version>2.0</version>
255 </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>
278 <groupId>com.fasterxml.jackson.core</groupId>
279 <artifactId>jackson-databind</artifactId>
280 </dependency>
281 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100282 <groupId>javax.transaction</groupId>
283 <artifactId>jta</artifactId>
284 <version>1.1</version>
285 </dependency>
286 <dependency>
287 <groupId>javax.persistence</groupId>
288 <artifactId>persistence-api</artifactId>
289 <version>1.0.2</version>
290 </dependency>
291 <dependency>
292 <groupId>org.hibernate</groupId>
293 <artifactId>hibernate-annotations</artifactId>
294 <version>3.5.6-Final</version>
295 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100296 <!-- <dependency> -->
297 <!-- <groupId>org.apache.geronimo.specs</groupId> -->
298 <!-- <artifactId>geronimo-jpa_2.0_spec</artifactId> -->
299 <!-- <version>1.1</version> -->
300 <!-- </dependency> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100301 <dependency>
302 <groupId>dom4j</groupId>
303 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100304 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700305
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100306 <dependency>
307 <groupId>org.onap.policy.engine</groupId>
308 <artifactId>PolicyEngineAPI</artifactId>
309 <version>1.1.0</version>
310 <exclusions>
311 <exclusion>
312 <artifactId>log4j</artifactId>
313 <groupId>log4j</groupId>
314 </exclusion>
315 <exclusion>
316 <groupId>org.slf4j</groupId>
317 <artifactId>slf4j-log4j12</artifactId>
318 </exclusion>
319 <exclusion>
320 <artifactId>apache-log4j-extras</artifactId>
321 <groupId>log4j</groupId>
322 </exclusion>
323 <exclusion>
324 <artifactId>jackson-databind</artifactId>
325 <groupId>com.fasterxml.jackson.core</groupId>
326 </exclusion>
327 <exclusion>
328 <groupId>mysql</groupId>
329 <artifactId>mysql-connector-java</artifactId>
330 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100331 <exclusion>
332 <groupId>commons-io</groupId>
333 <artifactId>commons-io</artifactId>
334 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100335 </exclusions>
336 </dependency>
337 <dependency>
338 <groupId>org.onap.policy.common</groupId>
339 <artifactId>ONAP-Logging</artifactId>
340 <version>1.1.0</version>
341 <exclusions>
342 <exclusion>
343 <artifactId>log4j</artifactId>
344 <groupId>log4j</groupId>
345 </exclusion>
346 <exclusion>
347 <groupId>org.slf4j</groupId>
348 <artifactId>slf4j-log4j12</artifactId>
349 </exclusion>
350 <exclusion>
351 <artifactId>apache-log4j-extras</artifactId>
352 <groupId>log4j</groupId>
353 </exclusion>
354 </exclusions>
355 </dependency>
356 <dependency>
357 <groupId>org.onap.policy.engine</groupId>
358 <artifactId>PolicyEngineUtils</artifactId>
359 <version>1.1.0</version>
360 <exclusions>
361 <exclusion>
362 <artifactId>log4j</artifactId>
363 <groupId>log4j</groupId>
364 </exclusion>
365 <exclusion>
366 <groupId>org.slf4j</groupId>
367 <artifactId>slf4j-log4j12</artifactId>
368 </exclusion>
369 <exclusion>
370 <artifactId>apache-log4j-extras</artifactId>
371 <groupId>log4j</groupId>
372 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100373 <exclusion>
374 <groupId>mysql</groupId>
375 <artifactId>mysql-connector-java</artifactId>
376 </exclusion>
377 <exclusion>
378 <groupId>org.mariadb.jdbc</groupId>
379 <artifactId>mariadb-java-client</artifactId>
380 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100381 <exclusion>
382 <groupId>com.att.nsa</groupId>
383 <artifactId>dmaapClient</artifactId>
384 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100385 </exclusions>
386 </dependency>
387 <dependency>
388 <groupId>org.onap.policy.drools-applications</groupId>
389 <artifactId>policy-yaml</artifactId>
390 <version>1.1.0</version>
391 <exclusions>
392 <exclusion>
393 <artifactId>log4j</artifactId>
394 <groupId>log4j</groupId>
395 </exclusion>
396 <exclusion>
397 <groupId>org.slf4j</groupId>
398 <artifactId>slf4j-log4j12</artifactId>
399 </exclusion>
400 <exclusion>
401 <artifactId>apache-log4j-extras</artifactId>
402 <groupId>log4j</groupId>
403 </exclusion>
404 </exclusions>
405 </dependency>
406 <dependency>
407 <groupId>org.onap.policy.drools-applications</groupId>
408 <artifactId>sdc</artifactId>
409 <version>1.1.0</version>
410 <exclusions>
411 <exclusion>
412 <artifactId>log4j</artifactId>
413 <groupId>log4j</groupId>
414 </exclusion>
415 <exclusion>
416 <groupId>org.slf4j</groupId>
417 <artifactId>slf4j-log4j12</artifactId>
418 </exclusion>
419 <exclusion>
420 <artifactId>apache-log4j-extras</artifactId>
421 <groupId>log4j</groupId>
422 </exclusion>
423 </exclusions>
424 </dependency>
425 <dependency>
426 <groupId>org.onap.policy.drools-applications</groupId>
427 <artifactId>aai</artifactId>
428 <version>1.1.0</version>
429 <exclusions>
430 <exclusion>
431 <artifactId>log4j</artifactId>
432 <groupId>log4j</groupId>
433 </exclusion>
434 <exclusion>
435 <groupId>org.slf4j</groupId>
436 <artifactId>slf4j-log4j12</artifactId>
437 </exclusion>
438 <exclusion>
439 <artifactId>apache-log4j-extras</artifactId>
440 <groupId>log4j</groupId>
441 </exclusion>
442 </exclusions>
443 </dependency>
444 <dependency>
445 <groupId>com.fasterxml.jackson.core</groupId>
446 <artifactId>jackson-databind</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100447 </dependency>
448 <dependency>
449 <groupId>com.fasterxml.jackson.dataformat</groupId>
450 <artifactId>jackson-dataformat-yaml</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100451 </dependency>
452 <dependency>
453 <groupId>org.apache.commons</groupId>
454 <artifactId>commons-csv</artifactId>
455 <version>1.3</version>
456 </dependency>
457 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100458 <groupId>com.sun.faces</groupId>
459 <artifactId>jsf-api</artifactId>
460 <version>2.1.7</version>
461 </dependency>
462 <dependency>
463 <groupId>com.sun.faces</groupId>
464 <artifactId>jsf-impl</artifactId>
465 <version>2.1.7</version>
466 </dependency>
467 <!-- Remove the MYSQL connector and replace it by Mariadb -->
468 <dependency>
469 <groupId>org.mariadb.jdbc</groupId>
470 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100471 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100472 </dependency>
473 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700474
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100475 <build>
476 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700477
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100478 <testResources>
479 <testResource>
480 <directory>src/test/resources</directory>
481 <excludes>
482 <exclude>**/*.jks</exclude>
483 </excludes>
484 <filtering>true</filtering>
485 </testResource>
486 <testResource>
487 <directory>src/test/resources/https</directory>
488 <includes>
489 <include>**.jks</include>
490 </includes>
491 <filtering>false</filtering>
492 <targetPath>https</targetPath>
493 </testResource>
494 </testResources>
495 <resources>
496 <resource>
497 <directory>src/main/resources</directory>
498 <filtering>true</filtering>
499 </resource>
500 <resource>
501 <directory>src/main/docker</directory>
502 <includes>
503 <include>**/*</include>
504 </includes>
505 <filtering>true</filtering>
506 </resource>
507 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700508
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100509 <plugins>
510 <plugin>
511 <groupId>org.codehaus.groovy.maven</groupId>
512 <artifactId>gmaven-plugin</artifactId>
513 <version>1.0</version>
514 <executions>
515 <execution>
516 <phase>validate</phase>
517 <goals>
518 <goal>execute</goal>
519 </goals>
520 <configuration>
521 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
522 </configuration>
523 </execution>
524 </executions>
525 </plugin>
526 <plugin>
527 <groupId>org.apache.maven.plugins</groupId>
528 <artifactId>maven-jar-plugin</artifactId>
529 <version>3.0.2</version>
530 <executions>
531 <execution>
532 <id>jar-with-only-classes</id>
533 <phase>package</phase>
534 <goals>
535 <goal>jar</goal>
536 </goals>
537 <configuration>
538 <classifier>classes</classifier>
539 <includes>
540 <include>org/**</include>
541 </includes>
542 </configuration>
543 </execution>
544 </executions>
545 </plugin>
546 <plugin>
547 <groupId>org.codehaus.mojo</groupId>
548 <artifactId>build-helper-maven-plugin</artifactId>
549 <version>3.0.0</version>
550 <executions>
551 <execution>
552 <goals>
553 <goal>attach-artifact</goal>
554 </goals>
555 <phase>package</phase>
556 <configuration>
557 <artifacts>
558 <artifact>
559 <file>${project.build.directory}/clamp-classes.jar</file>
560 <type>jar</type>
561 <classifier>classes</classifier>
562 </artifact>
563 </artifacts>
564 </configuration>
565 </execution>
566 </executions>
567 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700568
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100569 <plugin>
570 <groupId>org.springframework.boot</groupId>
571 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100572 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100573 <executions>
574 <execution>
575 <goals>
576 <goal>repackage</goal>
577 </goals>
578 <phase>package</phase>
579 </execution>
580 </executions>
581 </plugin>
582 <plugin>
583 <groupId>org.sonatype.plugins</groupId>
584 <artifactId>nexus-staging-maven-plugin</artifactId>
585 <version>1.6.7</version>
586 <extensions>true</extensions>
587 <configuration>
588 <nexusUrl>https://nexus.onap.org</nexusUrl>
589 <stagingProfileId>176c31dfe190a</stagingProfileId>
590 <serverId>ecomp-staging</serverId>
591 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
592 </configuration>
593 </plugin>
594 <plugin>
595 <groupId>com.spotify</groupId>
596 <artifactId>docker-maven-plugin</artifactId>
597 <version>1.0.0</version>
598 <configuration>
599 <imageName>onap/clamp</imageName>
600 <dockerDirectory>src/main/docker</dockerDirectory>
601 <serverId>docker-hub</serverId>
602 <imageTags>
603 <imageTag>latest</imageTag>
604 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
605 <imageTag>${project.docker.latesttag.version}</imageTag>
606 </imageTags>
607 <forceTags>true</forceTags>
608 <resources>
609 <resource>
610 <targetPath>/</targetPath>
611 <directory>${project.build.directory}</directory>
612 <include>${project.build.finalName}.jar</include>
613 </resource>
614 <resource>
615 <targetPath>/</targetPath>
616 <directory>${project.build.directory}</directory>
617 <include>etc/config/**</include>
618 </resource>
619 <resource>
620 <targetPath>/</targetPath>
621 <directory>${project.build.directory}</directory>
622 <include>etc/keystore/**</include>
623 </resource>
624 </resources>
625 </configuration>
626 <executions>
627 <execution>
628 <id>build-image</id>
629 <phase>package</phase>
630 <goals>
631 <goal>build</goal>
632 </goals>
633 <configuration>
634 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
635 <buildArgs>
636 <http_proxy>${env.HTTP_PROXY}</http_proxy>
637 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
638 </buildArgs>
639 </configuration>
640 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700641
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100642 <execution>
643 <id>tag-image-latest-timestamp</id>
644 <phase>package</phase>
645 <goals>
646 <goal>tag</goal>
647 </goals>
648 <configuration>
649 <image>onap/clamp</image>
650 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
651 <skipDockerTag>${skip.docker.push}</skipDockerTag>
652 </configuration>
653 </execution>
654 <execution>
655 <id>push-image-latest-timestamp</id>
656 <phase>deploy</phase>
657 <goals>
658 <goal>push</goal>
659 </goals>
660 <configuration>
661 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
662 <skipDockerPush>${skip.docker.push}</skipDockerPush>
663 </configuration>
664 </execution>
665 <execution>
666 <id>tag-image-latest</id>
667 <phase>package</phase>
668 <goals>
669 <goal>tag</goal>
670 </goals>
671 <configuration>
672 <image>onap/clamp</image>
673 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
674 <skipDockerTag>${skip.docker.push}</skipDockerTag>
675 </configuration>
676 </execution>
677 <execution>
678 <id>push-image-latest</id>
679 <phase>deploy</phase>
680 <goals>
681 <goal>push</goal>
682 </goals>
683 <configuration>
684 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
685 <skipDockerPush>${skip.docker.push}</skipDockerPush>
686 </configuration>
687 </execution>
688 <execution>
689 <id>tag-image</id>
690 <phase>package</phase>
691 <goals>
692 <goal>tag</goal>
693 </goals>
694 <configuration>
695 <image>onap/clamp</image>
696 <newName>${docker.push.registry}/onap/clamp:latest</newName>
697 <skipDockerTag>${skip.docker.push}</skipDockerTag>
698 </configuration>
699 </execution>
700 <execution>
701 <id>push-image</id>
702 <phase>deploy</phase>
703 <goals>
704 <goal>push</goal>
705 </goals>
706 <configuration>
707 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
708 <skipDockerPush>${skip.docker.push}</skipDockerPush>
709 </configuration>
710 </execution>
711 </executions>
712 </plugin>
713 <plugin>
714 <groupId>org.apache.maven.plugins</groupId>
715 <artifactId>maven-surefire-plugin</artifactId>
716 <version>2.19.1</version>
717 <configuration>
718 <forkCount>1</forkCount>
719 <reuseForks>false</reuseForks>
720 </configuration>
721 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200722
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100723 <plugin>
724 <groupId>org.apache.maven.plugins</groupId>
725 <artifactId>maven-failsafe-plugin</artifactId>
726 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700727
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100728 <executions>
729 <execution>
730 <id>integration-tests</id>
731 <goals>
732 <goal>integration-test</goal>
733 <goal>verify</goal>
734 </goals>
735 <configuration>
736 <includes>
737 <include>**/*ItCase.java</include>
738 </includes>
739 <forkCount>1</forkCount>
740 <reuseForks>false</reuseForks>
741 </configuration>
742 </execution>
743 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700744
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100745 </plugin>
746 <plugin>
747 <groupId>io.fabric8</groupId>
748 <artifactId>docker-maven-plugin</artifactId>
749 <version>0.16.5</version>
750 <configuration>
751 <verbose>true</verbose>
752 <apiVersion>1.23</apiVersion>
753 <images>
754 <image>
755 <name>mariadb:10.1.11</name>
756 <alias>mariadb</alias>
757 <run>
758 <env>
759 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
760 </env>
761 <hostname>mariadb</hostname>
762 <volumes>
763 <bind>
764 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
765 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
766 </bind>
767 </volumes>
768 <wait>
769 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100770 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100771 </wait>
772 <ports>
773 <port>${docker.mariadb.port.host}:3306</port>
774 </ports>
775 </run>
776 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100777 <image>
778 <name>python:2</name>
779 <alias>python</alias>
780 <run>
781 <hostname>python</hostname>
782 <volumes>
783 <bind>
784 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
785 <volume>${project.basedir}/src/test/resources/http-cache/sdc-example/:/usr/src/http-cache-app/data-cache</volume>
786 </bind>
787 </volumes>
788 <wait>
789 <tcp>
790 <ports>
791 <port>8080</port>
792 </ports>
793 <mode>direct</mode>
794 </tcp>
795 <time>120000</time>
796 </wait>
797 <ports>
798 <port>${docker.http-cache.port.host}:8080</port>
799 </ports>
800 <workingDir>/usr/src/http-cache-app</workingDir>
801 <cmd>
802 <shell>./start_http_cache.sh ${http.proxy}</shell>
803 </cmd>
804 </run>
805 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100806 </images>
807 <skip>${skipITs}</skip>
808 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700809
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100810 <executions>
811 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100812 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100813 <phase>pre-integration-test</phase>
814 <goals>
815 <goal>start</goal>
816 </goals>
817 <configuration>
818 <skip>${skipITs}</skip>
819 </configuration>
820 </execution>
821 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100822 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100823 <phase>post-integration-test</phase>
824 <goals>
825 <goal>stop</goal>
826 </goals>
827 <configuration>
828 <skip>${skipITs}</skip>
829 </configuration>
830 </execution>
831 </executions>
832 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700833
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100834 <plugin>
835 <groupId>org.jacoco</groupId>
836 <artifactId>jacoco-maven-plugin</artifactId>
837 <version>0.7.7.201606060606</version>
838 <configuration>
839 <dumpOnExit>true</dumpOnExit>
840 <includes>
841 <include>org.onap.clamp.*</include>
842 </includes>
843 </configuration>
844 <executions>
845 <execution>
846 <id>pre-unit-test</id>
847 <goals>
848 <goal>prepare-agent</goal>
849 </goals>
850 <configuration>
851 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
852 <!-- <append>true</append> -->
853 </configuration>
854 </execution>
855 <execution>
856 <id>pre-integration-test</id>
857 <phase>pre-integration-test</phase>
858 <goals>
859 <goal>prepare-agent</goal>
860 </goals>
861 <configuration>
862 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
863 <!-- <append>true</append> -->
864 </configuration>
865 </execution>
866 <execution>
867 <goals>
868 <goal>merge</goal>
869 </goals>
870 <phase>post-integration-test</phase>
871 <configuration>
872 <fileSets>
873 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
874 <directory>${project.build.directory}/coverage-reports</directory>
875 <includes>
876 <include>*.exec</include>
877 </includes>
878 </fileSet>
879 </fileSets>
880 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
881 </configuration>
882 </execution>
883 </executions>
884 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700885
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100886 <!-- This plugin will be useful when we will have multi-modules project -->
887 <plugin>
888 <groupId>org.codehaus.mojo</groupId>
889 <artifactId>versions-maven-plugin</artifactId>
890 <version>1.3.1</version>
891 </plugin>
892 </plugins>
893 </build>
894 <profiles>
895 <profile>
896 <id>docker</id>
897 <properties>
898 <skip.staging.artifacts>true</skip.staging.artifacts>
899 <skip.docker.build>false</skip.docker.build>
900 <skip.docker.tag>false</skip.docker.tag>
901 <skip.docker.push>false</skip.docker.push>
902 </properties>
903 </profile>
904 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700905</project>