blob: 86461c5afde93c011468dc0f891132c34bb00263 [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)378d05b2018-03-23 14:46:56 +010069 <docker.http-cache.port.host>8085</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
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -050073 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
74 <guava.version>20.0</guava.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010075 <eelf.core.version>1.0.0</eelf.core.version>
76 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010077 <springboot.version>1.5.10.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070078
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010079 <sonar.language>java</sonar.language>
80 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
81 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
82 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
83 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
84 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
85 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070086
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010087 <docker.push.registry>localhost:5000</docker.push.registry>
88 <skip.docker.build>true</skip.docker.build>
89 <skip.docker.push>true</skip.docker.push>
90 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010091 <http.proxy></http.proxy>
92
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010093 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070094
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010095 <distributionManagement>
96 <repository>
97 <id>ecomp-releases</id>
98 <name>Clamp Release Repository</name>
99 <url>https://nexus.onap.org/content/repositories/releases/</url>
100 </repository>
101 <snapshotRepository>
102 <id>ecomp-snapshots</id>
103 <name>Clamp Snapshot Repository</name>
104 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
105 </snapshotRepository>
106 <site>
107 <id>ecomp-site</id>
108 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
109 </site>
110 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700111
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100112 <repositories>
113 <repository>
114 <id>central</id>
115 <name>Maven 2 repository 2</name>
116 <url>http://repo2.maven.org/maven2/</url>
117 </repository>
118 <repository>
119 <id>ecomp-releases</id>
120 <name>ONAP Release Repository</name>
121 <url>https://nexus.onap.org/content/repositories/releases/</url>
122 </repository>
123 <repository>
124 <id>ecomp-staging</id>
125 <name>ONAP Staging Repository</name>
126 <url>https://nexus.onap.org/content/repositories/staging/</url>
127 </repository>
128 <repository>
129 <id>ecomp-snapshots</id>
130 <name>ONAP Snapshot Repository</name>
131 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
132 <snapshots>
133 <enabled>true</enabled>
134 </snapshots>
135 <releases>
136 <enabled>false</enabled>
137 </releases>
138 </repository>
139 <repository>
140 <id>spring-repo</id>
141 <name>Spring repo</name>
142 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
143 </repository>
144 <repository>
145 <id>repository.jboss.org-public</id>
146 <name>JBoss.org Maven repository</name>
147 <url>https://repository.jboss.org/nexus/content/groups/public</url>
148 </repository>
149 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700150
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100151 <dependencyManagement>
152 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100153 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100154 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100155 <groupId>org.springframework.boot</groupId>
156 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100157 <version>${springboot.version}</version>
158 <type>pom</type>
159 <scope>import</scope>
160 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100161 <!-- Camel BOM -->
162 <dependency>
163 <groupId>org.apache.camel</groupId>
164 <artifactId>camel-spring-boot-dependencies</artifactId>
165 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100166 <type>pom</type>
167 <scope>import</scope>
168 </dependency>
169 </dependencies>
170 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700171
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100172 <dependencies>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500173 <!-- Swagger requires at least v20 and policy is bringing version 14 -->
174 <dependency>
175 <groupId>com.google.guava</groupId>
176 <artifactId>guava</artifactId>
177 <version>${guava.version}</version>
178 </dependency>
179 <dependency>
180 <groupId>io.swagger.core.v3</groupId>
181 <artifactId>swagger-jaxrs2</artifactId>
182 <version>${swagger.jaxrs2.version}</version>
183 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100184 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100185 <groupId>com.att.eelf</groupId>
186 <artifactId>eelf-core</artifactId>
187 <version>${eelf.core.version}</version>
188 </dependency>
189 <!-- For CAMEL -->
190 <dependency>
191 <groupId>org.apache.camel</groupId>
192 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100193 </dependency>
194 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100195 <groupId>org.apache.camel</groupId>
196 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100197 </dependency>
198 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100199 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100200 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100201 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100202 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100203 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100204 <groupId>org.springframework.boot</groupId>
205 <artifactId>spring-boot-starter-web</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-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100210 </dependency>
211 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100212 <groupId>com.paypal.springboot</groupId>
213 <artifactId>resteasy-spring-boot-starter</artifactId>
214 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100215 </dependency>
216 <dependency>
217 <groupId>org.springframework</groupId>
218 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100219 </dependency>
220 <dependency>
221 <groupId>org.springframework.boot</groupId>
222 <artifactId>spring-boot-starter-security</artifactId>
223 </dependency>
224 <dependency>
225 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100226 <artifactId>spring-boot-starter-actuator</artifactId>
227 </dependency>
228 <dependency>
229 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100230 <artifactId>spring-boot-starter-test</artifactId>
231 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100232 <exclusions>
233 <exclusion>
234 <groupId>com.vaadin.external.google</groupId>
235 <artifactId>android-json</artifactId>
236 </exclusion>
237 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100238 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100239 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100240 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100241 <groupId>ch.qos.logback</groupId>
242 <artifactId>logback-core</artifactId>
243 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100244 </dependency>
245 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100246 <groupId>ch.qos.logback</groupId>
247 <artifactId>logback-classic</artifactId>
248 <version>1.2.3</version>
249 </dependency>
250 <dependency>
251 <groupId>commons-dbcp</groupId>
252 <artifactId>commons-dbcp</artifactId>
253 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100254 </dependency>
255 <dependency>
256 <groupId>commons-io</groupId>
257 <artifactId>commons-io</artifactId>
258 <version>2.6</version>
259 </dependency>
260 <dependency>
261 <groupId>com.googlecode.json-simple</groupId>
262 <artifactId>json-simple</artifactId>
263 </dependency>
264 <dependency>
265 <groupId>org.apache.commons</groupId>
266 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100267 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100268 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100269 <dependency>
270 <groupId>joda-time</groupId>
271 <artifactId>joda-time</artifactId>
272 </dependency>
273 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100274 <groupId>org.slf4j</groupId>
275 <artifactId>slf4j-api</artifactId>
276 </dependency>
277 <dependency>
278 <groupId>javax.ws.rs</groupId>
279 <artifactId>javax.ws.rs-api</artifactId>
280 <version>2.0</version>
281 </dependency>
282 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100283 <groupId>junit</groupId>
284 <artifactId>junit</artifactId>
285 </dependency>
286 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100287 <groupId>javax.transaction</groupId>
288 <artifactId>jta</artifactId>
289 <version>1.1</version>
290 </dependency>
291 <dependency>
292 <groupId>javax.persistence</groupId>
293 <artifactId>persistence-api</artifactId>
294 <version>1.0.2</version>
295 </dependency>
296 <dependency>
297 <groupId>org.hibernate</groupId>
298 <artifactId>hibernate-annotations</artifactId>
299 <version>3.5.6-Final</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>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500312 <groupId>com.google.guava</groupId>
313 <artifactId>guava</artifactId>
314 </exclusion>
315 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100316 <artifactId>log4j</artifactId>
317 <groupId>log4j</groupId>
318 </exclusion>
319 <exclusion>
320 <groupId>org.slf4j</groupId>
321 <artifactId>slf4j-log4j12</artifactId>
322 </exclusion>
323 <exclusion>
324 <artifactId>apache-log4j-extras</artifactId>
325 <groupId>log4j</groupId>
326 </exclusion>
327 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100328 <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>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100445 <groupId>org.apache.commons</groupId>
446 <artifactId>commons-csv</artifactId>
447 <version>1.3</version>
448 </dependency>
449 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100450 <groupId>com.sun.faces</groupId>
451 <artifactId>jsf-api</artifactId>
452 <version>2.1.7</version>
453 </dependency>
454 <dependency>
455 <groupId>com.sun.faces</groupId>
456 <artifactId>jsf-impl</artifactId>
457 <version>2.1.7</version>
458 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100459 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
460 <dependency>
461 <groupId>org.codehaus.plexus</groupId>
462 <artifactId>plexus-utils</artifactId>
463 <version>3.0.24</version>
464 </dependency>
465 <dependency>
466 <groupId>commons-fileupload</groupId>
467 <artifactId>commons-fileupload</artifactId>
468 <version>1.3.3</version>
469 </dependency>
470 <dependency>
471 <groupId>org.jboss.spec.javax.ws.rs</groupId>
472 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
473 <version>1.0.1.Final</version>
474 </dependency>
Determe, Sebastien (sd378r)020f29e2018-03-23 15:58:20 +0100475 <dependency>
476 <artifactId>jackson-databind</artifactId>
477 <groupId>com.fasterxml.jackson.core</groupId>
478 <version>2.9.4</version>
479 </dependency>
480 <dependency>
481 <groupId>com.fasterxml.jackson.core</groupId>
482 <artifactId>jackson-annotations</artifactId>
483 <version>2.9.4</version>
484 </dependency>
485 <dependency>
486 <groupId>com.fasterxml.jackson.core</groupId>
487 <artifactId>jackson-core</artifactId>
488 <version>2.9.4</version>
489 </dependency>
490 <dependency>
491 <groupId>com.fasterxml.jackson.dataformat</groupId>
492 <artifactId>jackson-dataformat-yaml</artifactId>
493 <version>2.9.4</version>
494 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100495 <!-- Remove the MYSQL connector and replace it by Mariadb -->
496 <dependency>
497 <groupId>org.mariadb.jdbc</groupId>
498 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100499 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100500 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100501 <!-- For SDC Controller -->
502 <dependency>
503 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
504 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100505 <version>1.2.2</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100506 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100507 <dependency>
508 <groupId>org.openecomp.sdc.sdc-tosca</groupId>
509 <artifactId>sdc-tosca</artifactId>
510 <version>1.2.2</version>
511 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100512 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700513
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100514 <build>
515 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700516
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100517 <testResources>
518 <testResource>
519 <directory>src/test/resources</directory>
520 <excludes>
521 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100522 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100523 </excludes>
524 <filtering>true</filtering>
525 </testResource>
526 <testResource>
527 <directory>src/test/resources/https</directory>
528 <includes>
529 <include>**.jks</include>
530 </includes>
531 <filtering>false</filtering>
532 <targetPath>https</targetPath>
533 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100534 <testResource>
535 <directory>src/test/resources/example/sdc</directory>
536 <includes>
537 <include>**.csar</include>
538 </includes>
539 <filtering>false</filtering>
540 <targetPath>example/sdc</targetPath>
541 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100542 </testResources>
543 <resources>
544 <resource>
545 <directory>src/main/resources</directory>
546 <filtering>true</filtering>
547 </resource>
548 <resource>
549 <directory>src/main/docker</directory>
550 <includes>
551 <include>**/*</include>
552 </includes>
553 <filtering>true</filtering>
554 </resource>
555 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700556
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100557 <plugins>
558 <plugin>
559 <groupId>org.codehaus.groovy.maven</groupId>
560 <artifactId>gmaven-plugin</artifactId>
561 <version>1.0</version>
562 <executions>
563 <execution>
564 <phase>validate</phase>
565 <goals>
566 <goal>execute</goal>
567 </goals>
568 <configuration>
569 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
570 </configuration>
571 </execution>
572 </executions>
573 </plugin>
574 <plugin>
575 <groupId>org.apache.maven.plugins</groupId>
576 <artifactId>maven-jar-plugin</artifactId>
577 <version>3.0.2</version>
578 <executions>
579 <execution>
580 <id>jar-with-only-classes</id>
581 <phase>package</phase>
582 <goals>
583 <goal>jar</goal>
584 </goals>
585 <configuration>
586 <classifier>classes</classifier>
587 <includes>
588 <include>org/**</include>
589 </includes>
590 </configuration>
591 </execution>
592 </executions>
593 </plugin>
594 <plugin>
595 <groupId>org.codehaus.mojo</groupId>
596 <artifactId>build-helper-maven-plugin</artifactId>
597 <version>3.0.0</version>
598 <executions>
599 <execution>
600 <goals>
601 <goal>attach-artifact</goal>
602 </goals>
603 <phase>package</phase>
604 <configuration>
605 <artifacts>
606 <artifact>
607 <file>${project.build.directory}/clamp-classes.jar</file>
608 <type>jar</type>
609 <classifier>classes</classifier>
610 </artifact>
611 </artifacts>
612 </configuration>
613 </execution>
614 </executions>
615 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700616
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100617 <plugin>
618 <groupId>org.springframework.boot</groupId>
619 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100620 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100621 <executions>
622 <execution>
623 <goals>
624 <goal>repackage</goal>
625 </goals>
626 <phase>package</phase>
627 </execution>
628 </executions>
629 </plugin>
630 <plugin>
631 <groupId>org.sonatype.plugins</groupId>
632 <artifactId>nexus-staging-maven-plugin</artifactId>
633 <version>1.6.7</version>
634 <extensions>true</extensions>
635 <configuration>
636 <nexusUrl>https://nexus.onap.org</nexusUrl>
637 <stagingProfileId>176c31dfe190a</stagingProfileId>
638 <serverId>ecomp-staging</serverId>
639 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
640 </configuration>
641 </plugin>
642 <plugin>
643 <groupId>com.spotify</groupId>
644 <artifactId>docker-maven-plugin</artifactId>
645 <version>1.0.0</version>
646 <configuration>
647 <imageName>onap/clamp</imageName>
648 <dockerDirectory>src/main/docker</dockerDirectory>
649 <serverId>docker-hub</serverId>
650 <imageTags>
651 <imageTag>latest</imageTag>
652 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
653 <imageTag>${project.docker.latesttag.version}</imageTag>
654 </imageTags>
655 <forceTags>true</forceTags>
656 <resources>
657 <resource>
658 <targetPath>/</targetPath>
659 <directory>${project.build.directory}</directory>
660 <include>${project.build.finalName}.jar</include>
661 </resource>
662 <resource>
663 <targetPath>/</targetPath>
664 <directory>${project.build.directory}</directory>
665 <include>etc/config/**</include>
666 </resource>
667 <resource>
668 <targetPath>/</targetPath>
669 <directory>${project.build.directory}</directory>
670 <include>etc/keystore/**</include>
671 </resource>
672 </resources>
673 </configuration>
674 <executions>
675 <execution>
676 <id>build-image</id>
677 <phase>package</phase>
678 <goals>
679 <goal>build</goal>
680 </goals>
681 <configuration>
682 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
683 <buildArgs>
684 <http_proxy>${env.HTTP_PROXY}</http_proxy>
685 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
686 </buildArgs>
687 </configuration>
688 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700689
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100690 <execution>
691 <id>tag-image-latest-timestamp</id>
692 <phase>package</phase>
693 <goals>
694 <goal>tag</goal>
695 </goals>
696 <configuration>
697 <image>onap/clamp</image>
698 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
699 <skipDockerTag>${skip.docker.push}</skipDockerTag>
700 </configuration>
701 </execution>
702 <execution>
703 <id>push-image-latest-timestamp</id>
704 <phase>deploy</phase>
705 <goals>
706 <goal>push</goal>
707 </goals>
708 <configuration>
709 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
710 <skipDockerPush>${skip.docker.push}</skipDockerPush>
711 </configuration>
712 </execution>
713 <execution>
714 <id>tag-image-latest</id>
715 <phase>package</phase>
716 <goals>
717 <goal>tag</goal>
718 </goals>
719 <configuration>
720 <image>onap/clamp</image>
721 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
722 <skipDockerTag>${skip.docker.push}</skipDockerTag>
723 </configuration>
724 </execution>
725 <execution>
726 <id>push-image-latest</id>
727 <phase>deploy</phase>
728 <goals>
729 <goal>push</goal>
730 </goals>
731 <configuration>
732 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
733 <skipDockerPush>${skip.docker.push}</skipDockerPush>
734 </configuration>
735 </execution>
736 <execution>
737 <id>tag-image</id>
738 <phase>package</phase>
739 <goals>
740 <goal>tag</goal>
741 </goals>
742 <configuration>
743 <image>onap/clamp</image>
744 <newName>${docker.push.registry}/onap/clamp:latest</newName>
745 <skipDockerTag>${skip.docker.push}</skipDockerTag>
746 </configuration>
747 </execution>
748 <execution>
749 <id>push-image</id>
750 <phase>deploy</phase>
751 <goals>
752 <goal>push</goal>
753 </goals>
754 <configuration>
755 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
756 <skipDockerPush>${skip.docker.push}</skipDockerPush>
757 </configuration>
758 </execution>
759 </executions>
760 </plugin>
761 <plugin>
762 <groupId>org.apache.maven.plugins</groupId>
763 <artifactId>maven-surefire-plugin</artifactId>
764 <version>2.19.1</version>
765 <configuration>
766 <forkCount>1</forkCount>
767 <reuseForks>false</reuseForks>
768 </configuration>
769 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200770
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100771 <plugin>
772 <groupId>org.apache.maven.plugins</groupId>
773 <artifactId>maven-failsafe-plugin</artifactId>
774 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700775
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100776 <executions>
777 <execution>
778 <id>integration-tests</id>
779 <goals>
780 <goal>integration-test</goal>
781 <goal>verify</goal>
782 </goals>
783 <configuration>
784 <includes>
785 <include>**/*ItCase.java</include>
786 </includes>
787 <forkCount>1</forkCount>
788 <reuseForks>false</reuseForks>
789 </configuration>
790 </execution>
791 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700792
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100793 </plugin>
794 <plugin>
795 <groupId>io.fabric8</groupId>
796 <artifactId>docker-maven-plugin</artifactId>
797 <version>0.16.5</version>
798 <configuration>
799 <verbose>true</verbose>
800 <apiVersion>1.23</apiVersion>
801 <images>
802 <image>
803 <name>mariadb:10.1.11</name>
804 <alias>mariadb</alias>
805 <run>
806 <env>
807 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
808 </env>
809 <hostname>mariadb</hostname>
810 <volumes>
811 <bind>
812 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
813 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
814 </bind>
815 </volumes>
816 <wait>
817 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100818 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100819 </wait>
820 <ports>
821 <port>${docker.mariadb.port.host}:3306</port>
822 </ports>
823 </run>
824 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100825 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100826 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100827 <alias>python</alias>
828 <run>
829 <hostname>python</hostname>
830 <volumes>
831 <bind>
832 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100833 <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 +0100834 </bind>
835 </volumes>
836 <wait>
837 <tcp>
838 <ports>
839 <port>8080</port>
840 </ports>
841 <mode>direct</mode>
842 </tcp>
843 <time>120000</time>
844 </wait>
845 <ports>
846 <port>${docker.http-cache.port.host}:8080</port>
847 </ports>
848 <workingDir>/usr/src/http-cache-app</workingDir>
849 <cmd>
850 <shell>./start_http_cache.sh ${http.proxy}</shell>
851 </cmd>
852 </run>
853 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100854 </images>
855 <skip>${skipITs}</skip>
856 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700857
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100858 <executions>
859 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100860 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100861 <phase>pre-integration-test</phase>
862 <goals>
863 <goal>start</goal>
864 </goals>
865 <configuration>
866 <skip>${skipITs}</skip>
867 </configuration>
868 </execution>
869 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100870 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100871 <phase>post-integration-test</phase>
872 <goals>
873 <goal>stop</goal>
874 </goals>
875 <configuration>
876 <skip>${skipITs}</skip>
877 </configuration>
878 </execution>
879 </executions>
880 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700881
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100882 <plugin>
883 <groupId>org.jacoco</groupId>
884 <artifactId>jacoco-maven-plugin</artifactId>
885 <version>0.7.7.201606060606</version>
886 <configuration>
887 <dumpOnExit>true</dumpOnExit>
888 <includes>
889 <include>org.onap.clamp.*</include>
890 </includes>
891 </configuration>
892 <executions>
893 <execution>
894 <id>pre-unit-test</id>
895 <goals>
896 <goal>prepare-agent</goal>
897 </goals>
898 <configuration>
899 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
900 <!-- <append>true</append> -->
901 </configuration>
902 </execution>
903 <execution>
904 <id>pre-integration-test</id>
905 <phase>pre-integration-test</phase>
906 <goals>
907 <goal>prepare-agent</goal>
908 </goals>
909 <configuration>
910 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
911 <!-- <append>true</append> -->
912 </configuration>
913 </execution>
914 <execution>
915 <goals>
916 <goal>merge</goal>
917 </goals>
918 <phase>post-integration-test</phase>
919 <configuration>
920 <fileSets>
921 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
922 <directory>${project.build.directory}/coverage-reports</directory>
923 <includes>
924 <include>*.exec</include>
925 </includes>
926 </fileSet>
927 </fileSets>
928 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
929 </configuration>
930 </execution>
931 </executions>
932 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700933
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100934 <!-- This plugin will be useful when we will have multi-modules project -->
935 <plugin>
936 <groupId>org.codehaus.mojo</groupId>
937 <artifactId>versions-maven-plugin</artifactId>
938 <version>1.3.1</version>
939 </plugin>
940 </plugins>
941 </build>
942 <profiles>
943 <profile>
944 <id>docker</id>
945 <properties>
946 <skip.staging.artifacts>true</skip.staging.artifacts>
947 <skip.docker.build>false</skip.docker.build>
948 <skip.docker.tag>false</skip.docker.tag>
949 <skip.docker.push>false</skip.docker.push>
950 </properties>
951 </profile>
952 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700953</project>