blob: 76a221445fd6c40c017b614ee408f88faeaffe69 [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
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>com.fasterxml.jackson.core</groupId>
288 <artifactId>jackson-core</artifactId>
289 </dependency>
290 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100291 <groupId>javax.transaction</groupId>
292 <artifactId>jta</artifactId>
293 <version>1.1</version>
294 </dependency>
295 <dependency>
296 <groupId>javax.persistence</groupId>
297 <artifactId>persistence-api</artifactId>
298 <version>1.0.2</version>
299 </dependency>
300 <dependency>
301 <groupId>org.hibernate</groupId>
302 <artifactId>hibernate-annotations</artifactId>
303 <version>3.5.6-Final</version>
304 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100305 <dependency>
306 <groupId>dom4j</groupId>
307 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100308 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700309
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100310 <dependency>
311 <groupId>org.onap.policy.engine</groupId>
312 <artifactId>PolicyEngineAPI</artifactId>
313 <version>1.1.0</version>
314 <exclusions>
315 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500316 <groupId>com.google.guava</groupId>
317 <artifactId>guava</artifactId>
318 </exclusion>
319 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100320 <artifactId>log4j</artifactId>
321 <groupId>log4j</groupId>
322 </exclusion>
323 <exclusion>
324 <groupId>org.slf4j</groupId>
325 <artifactId>slf4j-log4j12</artifactId>
326 </exclusion>
327 <exclusion>
328 <artifactId>apache-log4j-extras</artifactId>
329 <groupId>log4j</groupId>
330 </exclusion>
331 <exclusion>
332 <artifactId>jackson-databind</artifactId>
333 <groupId>com.fasterxml.jackson.core</groupId>
334 </exclusion>
335 <exclusion>
336 <groupId>mysql</groupId>
337 <artifactId>mysql-connector-java</artifactId>
338 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100339 <exclusion>
340 <groupId>commons-io</groupId>
341 <artifactId>commons-io</artifactId>
342 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100343 </exclusions>
344 </dependency>
345 <dependency>
346 <groupId>org.onap.policy.common</groupId>
347 <artifactId>ONAP-Logging</artifactId>
348 <version>1.1.0</version>
349 <exclusions>
350 <exclusion>
351 <artifactId>log4j</artifactId>
352 <groupId>log4j</groupId>
353 </exclusion>
354 <exclusion>
355 <groupId>org.slf4j</groupId>
356 <artifactId>slf4j-log4j12</artifactId>
357 </exclusion>
358 <exclusion>
359 <artifactId>apache-log4j-extras</artifactId>
360 <groupId>log4j</groupId>
361 </exclusion>
362 </exclusions>
363 </dependency>
364 <dependency>
365 <groupId>org.onap.policy.engine</groupId>
366 <artifactId>PolicyEngineUtils</artifactId>
367 <version>1.1.0</version>
368 <exclusions>
369 <exclusion>
370 <artifactId>log4j</artifactId>
371 <groupId>log4j</groupId>
372 </exclusion>
373 <exclusion>
374 <groupId>org.slf4j</groupId>
375 <artifactId>slf4j-log4j12</artifactId>
376 </exclusion>
377 <exclusion>
378 <artifactId>apache-log4j-extras</artifactId>
379 <groupId>log4j</groupId>
380 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100381 <exclusion>
382 <groupId>mysql</groupId>
383 <artifactId>mysql-connector-java</artifactId>
384 </exclusion>
385 <exclusion>
386 <groupId>org.mariadb.jdbc</groupId>
387 <artifactId>mariadb-java-client</artifactId>
388 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100389 <exclusion>
390 <groupId>com.att.nsa</groupId>
391 <artifactId>dmaapClient</artifactId>
392 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100393 </exclusions>
394 </dependency>
395 <dependency>
396 <groupId>org.onap.policy.drools-applications</groupId>
397 <artifactId>policy-yaml</artifactId>
398 <version>1.1.0</version>
399 <exclusions>
400 <exclusion>
401 <artifactId>log4j</artifactId>
402 <groupId>log4j</groupId>
403 </exclusion>
404 <exclusion>
405 <groupId>org.slf4j</groupId>
406 <artifactId>slf4j-log4j12</artifactId>
407 </exclusion>
408 <exclusion>
409 <artifactId>apache-log4j-extras</artifactId>
410 <groupId>log4j</groupId>
411 </exclusion>
412 </exclusions>
413 </dependency>
414 <dependency>
415 <groupId>org.onap.policy.drools-applications</groupId>
416 <artifactId>sdc</artifactId>
417 <version>1.1.0</version>
418 <exclusions>
419 <exclusion>
420 <artifactId>log4j</artifactId>
421 <groupId>log4j</groupId>
422 </exclusion>
423 <exclusion>
424 <groupId>org.slf4j</groupId>
425 <artifactId>slf4j-log4j12</artifactId>
426 </exclusion>
427 <exclusion>
428 <artifactId>apache-log4j-extras</artifactId>
429 <groupId>log4j</groupId>
430 </exclusion>
431 </exclusions>
432 </dependency>
433 <dependency>
434 <groupId>org.onap.policy.drools-applications</groupId>
435 <artifactId>aai</artifactId>
436 <version>1.1.0</version>
437 <exclusions>
438 <exclusion>
439 <artifactId>log4j</artifactId>
440 <groupId>log4j</groupId>
441 </exclusion>
442 <exclusion>
443 <groupId>org.slf4j</groupId>
444 <artifactId>slf4j-log4j12</artifactId>
445 </exclusion>
446 <exclusion>
447 <artifactId>apache-log4j-extras</artifactId>
448 <groupId>log4j</groupId>
449 </exclusion>
450 </exclusions>
451 </dependency>
452 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100453 <groupId>com.fasterxml.jackson.dataformat</groupId>
454 <artifactId>jackson-dataformat-yaml</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100455 </dependency>
456 <dependency>
457 <groupId>org.apache.commons</groupId>
458 <artifactId>commons-csv</artifactId>
459 <version>1.3</version>
460 </dependency>
461 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100462 <groupId>com.sun.faces</groupId>
463 <artifactId>jsf-api</artifactId>
464 <version>2.1.7</version>
465 </dependency>
466 <dependency>
467 <groupId>com.sun.faces</groupId>
468 <artifactId>jsf-impl</artifactId>
469 <version>2.1.7</version>
470 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100471 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
472 <dependency>
473 <groupId>org.codehaus.plexus</groupId>
474 <artifactId>plexus-utils</artifactId>
475 <version>3.0.24</version>
476 </dependency>
477 <dependency>
478 <groupId>commons-fileupload</groupId>
479 <artifactId>commons-fileupload</artifactId>
480 <version>1.3.3</version>
481 </dependency>
482 <dependency>
483 <groupId>org.jboss.spec.javax.ws.rs</groupId>
484 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
485 <version>1.0.1.Final</version>
486 </dependency>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +0100487 <dependency>
488 <groupId>com.fasterxml.jackson.core</groupId>
489 <artifactId>jackson-databind</artifactId>
490 <version>2.8.11.1</version>
491 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100492 <!-- Remove the MYSQL connector and replace it by Mariadb -->
493 <dependency>
494 <groupId>org.mariadb.jdbc</groupId>
495 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100496 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100497 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100498 <!-- For SDC Controller -->
499 <dependency>
500 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
501 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100502 <version>1.2.2</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100503 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100504 <dependency>
505 <groupId>org.openecomp.sdc.sdc-tosca</groupId>
506 <artifactId>sdc-tosca</artifactId>
507 <version>1.2.2</version>
508 </dependency>
ehautot153c8292018-03-15 17:49:50 +0100509
510
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100511 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700512
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100513 <build>
514 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700515
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100516 <testResources>
517 <testResource>
518 <directory>src/test/resources</directory>
519 <excludes>
520 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100521 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100522 </excludes>
523 <filtering>true</filtering>
524 </testResource>
525 <testResource>
526 <directory>src/test/resources/https</directory>
527 <includes>
528 <include>**.jks</include>
529 </includes>
530 <filtering>false</filtering>
531 <targetPath>https</targetPath>
532 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100533 <testResource>
534 <directory>src/test/resources/example/sdc</directory>
535 <includes>
536 <include>**.csar</include>
537 </includes>
538 <filtering>false</filtering>
539 <targetPath>example/sdc</targetPath>
540 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100541 </testResources>
542 <resources>
543 <resource>
544 <directory>src/main/resources</directory>
545 <filtering>true</filtering>
546 </resource>
547 <resource>
548 <directory>src/main/docker</directory>
549 <includes>
550 <include>**/*</include>
551 </includes>
552 <filtering>true</filtering>
553 </resource>
554 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700555
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100556 <plugins>
557 <plugin>
558 <groupId>org.codehaus.groovy.maven</groupId>
559 <artifactId>gmaven-plugin</artifactId>
560 <version>1.0</version>
561 <executions>
562 <execution>
563 <phase>validate</phase>
564 <goals>
565 <goal>execute</goal>
566 </goals>
567 <configuration>
568 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
569 </configuration>
570 </execution>
571 </executions>
572 </plugin>
573 <plugin>
574 <groupId>org.apache.maven.plugins</groupId>
575 <artifactId>maven-jar-plugin</artifactId>
576 <version>3.0.2</version>
577 <executions>
578 <execution>
579 <id>jar-with-only-classes</id>
580 <phase>package</phase>
581 <goals>
582 <goal>jar</goal>
583 </goals>
584 <configuration>
585 <classifier>classes</classifier>
586 <includes>
587 <include>org/**</include>
588 </includes>
589 </configuration>
590 </execution>
591 </executions>
592 </plugin>
593 <plugin>
594 <groupId>org.codehaus.mojo</groupId>
595 <artifactId>build-helper-maven-plugin</artifactId>
596 <version>3.0.0</version>
597 <executions>
598 <execution>
599 <goals>
600 <goal>attach-artifact</goal>
601 </goals>
602 <phase>package</phase>
603 <configuration>
604 <artifacts>
605 <artifact>
606 <file>${project.build.directory}/clamp-classes.jar</file>
607 <type>jar</type>
608 <classifier>classes</classifier>
609 </artifact>
610 </artifacts>
611 </configuration>
612 </execution>
613 </executions>
614 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700615
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100616 <plugin>
617 <groupId>org.springframework.boot</groupId>
618 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100619 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100620 <executions>
621 <execution>
622 <goals>
623 <goal>repackage</goal>
624 </goals>
625 <phase>package</phase>
626 </execution>
627 </executions>
628 </plugin>
629 <plugin>
630 <groupId>org.sonatype.plugins</groupId>
631 <artifactId>nexus-staging-maven-plugin</artifactId>
632 <version>1.6.7</version>
633 <extensions>true</extensions>
634 <configuration>
635 <nexusUrl>https://nexus.onap.org</nexusUrl>
636 <stagingProfileId>176c31dfe190a</stagingProfileId>
637 <serverId>ecomp-staging</serverId>
638 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
639 </configuration>
640 </plugin>
641 <plugin>
642 <groupId>com.spotify</groupId>
643 <artifactId>docker-maven-plugin</artifactId>
644 <version>1.0.0</version>
645 <configuration>
646 <imageName>onap/clamp</imageName>
647 <dockerDirectory>src/main/docker</dockerDirectory>
648 <serverId>docker-hub</serverId>
649 <imageTags>
650 <imageTag>latest</imageTag>
651 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
652 <imageTag>${project.docker.latesttag.version}</imageTag>
653 </imageTags>
654 <forceTags>true</forceTags>
655 <resources>
656 <resource>
657 <targetPath>/</targetPath>
658 <directory>${project.build.directory}</directory>
659 <include>${project.build.finalName}.jar</include>
660 </resource>
661 <resource>
662 <targetPath>/</targetPath>
663 <directory>${project.build.directory}</directory>
664 <include>etc/config/**</include>
665 </resource>
666 <resource>
667 <targetPath>/</targetPath>
668 <directory>${project.build.directory}</directory>
669 <include>etc/keystore/**</include>
670 </resource>
671 </resources>
672 </configuration>
673 <executions>
674 <execution>
675 <id>build-image</id>
676 <phase>package</phase>
677 <goals>
678 <goal>build</goal>
679 </goals>
680 <configuration>
681 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
682 <buildArgs>
683 <http_proxy>${env.HTTP_PROXY}</http_proxy>
684 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
685 </buildArgs>
686 </configuration>
687 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700688
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100689 <execution>
690 <id>tag-image-latest-timestamp</id>
691 <phase>package</phase>
692 <goals>
693 <goal>tag</goal>
694 </goals>
695 <configuration>
696 <image>onap/clamp</image>
697 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
698 <skipDockerTag>${skip.docker.push}</skipDockerTag>
699 </configuration>
700 </execution>
701 <execution>
702 <id>push-image-latest-timestamp</id>
703 <phase>deploy</phase>
704 <goals>
705 <goal>push</goal>
706 </goals>
707 <configuration>
708 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
709 <skipDockerPush>${skip.docker.push}</skipDockerPush>
710 </configuration>
711 </execution>
712 <execution>
713 <id>tag-image-latest</id>
714 <phase>package</phase>
715 <goals>
716 <goal>tag</goal>
717 </goals>
718 <configuration>
719 <image>onap/clamp</image>
720 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
721 <skipDockerTag>${skip.docker.push}</skipDockerTag>
722 </configuration>
723 </execution>
724 <execution>
725 <id>push-image-latest</id>
726 <phase>deploy</phase>
727 <goals>
728 <goal>push</goal>
729 </goals>
730 <configuration>
731 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
732 <skipDockerPush>${skip.docker.push}</skipDockerPush>
733 </configuration>
734 </execution>
735 <execution>
736 <id>tag-image</id>
737 <phase>package</phase>
738 <goals>
739 <goal>tag</goal>
740 </goals>
741 <configuration>
742 <image>onap/clamp</image>
743 <newName>${docker.push.registry}/onap/clamp:latest</newName>
744 <skipDockerTag>${skip.docker.push}</skipDockerTag>
745 </configuration>
746 </execution>
747 <execution>
748 <id>push-image</id>
749 <phase>deploy</phase>
750 <goals>
751 <goal>push</goal>
752 </goals>
753 <configuration>
754 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
755 <skipDockerPush>${skip.docker.push}</skipDockerPush>
756 </configuration>
757 </execution>
758 </executions>
759 </plugin>
760 <plugin>
761 <groupId>org.apache.maven.plugins</groupId>
762 <artifactId>maven-surefire-plugin</artifactId>
763 <version>2.19.1</version>
764 <configuration>
765 <forkCount>1</forkCount>
766 <reuseForks>false</reuseForks>
767 </configuration>
768 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200769
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100770 <plugin>
771 <groupId>org.apache.maven.plugins</groupId>
772 <artifactId>maven-failsafe-plugin</artifactId>
773 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700774
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100775 <executions>
776 <execution>
777 <id>integration-tests</id>
778 <goals>
779 <goal>integration-test</goal>
780 <goal>verify</goal>
781 </goals>
782 <configuration>
783 <includes>
784 <include>**/*ItCase.java</include>
785 </includes>
786 <forkCount>1</forkCount>
787 <reuseForks>false</reuseForks>
788 </configuration>
789 </execution>
790 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700791
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100792 </plugin>
793 <plugin>
794 <groupId>io.fabric8</groupId>
795 <artifactId>docker-maven-plugin</artifactId>
796 <version>0.16.5</version>
797 <configuration>
798 <verbose>true</verbose>
799 <apiVersion>1.23</apiVersion>
800 <images>
801 <image>
802 <name>mariadb:10.1.11</name>
803 <alias>mariadb</alias>
804 <run>
805 <env>
806 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
807 </env>
808 <hostname>mariadb</hostname>
809 <volumes>
810 <bind>
811 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
812 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
813 </bind>
814 </volumes>
815 <wait>
816 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100817 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100818 </wait>
819 <ports>
820 <port>${docker.mariadb.port.host}:3306</port>
821 </ports>
822 </run>
823 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100824 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100825 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100826 <alias>python</alias>
827 <run>
828 <hostname>python</hostname>
829 <volumes>
830 <bind>
831 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100832 <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 +0100833 </bind>
834 </volumes>
835 <wait>
836 <tcp>
837 <ports>
838 <port>8080</port>
839 </ports>
840 <mode>direct</mode>
841 </tcp>
842 <time>120000</time>
843 </wait>
844 <ports>
845 <port>${docker.http-cache.port.host}:8080</port>
846 </ports>
847 <workingDir>/usr/src/http-cache-app</workingDir>
848 <cmd>
849 <shell>./start_http_cache.sh ${http.proxy}</shell>
850 </cmd>
851 </run>
852 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100853 </images>
854 <skip>${skipITs}</skip>
855 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700856
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100857 <executions>
858 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100859 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100860 <phase>pre-integration-test</phase>
861 <goals>
862 <goal>start</goal>
863 </goals>
864 <configuration>
865 <skip>${skipITs}</skip>
866 </configuration>
867 </execution>
868 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100869 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100870 <phase>post-integration-test</phase>
871 <goals>
872 <goal>stop</goal>
873 </goals>
874 <configuration>
875 <skip>${skipITs}</skip>
876 </configuration>
877 </execution>
878 </executions>
879 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700880
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100881 <plugin>
882 <groupId>org.jacoco</groupId>
883 <artifactId>jacoco-maven-plugin</artifactId>
884 <version>0.7.7.201606060606</version>
885 <configuration>
886 <dumpOnExit>true</dumpOnExit>
887 <includes>
888 <include>org.onap.clamp.*</include>
889 </includes>
890 </configuration>
891 <executions>
892 <execution>
893 <id>pre-unit-test</id>
894 <goals>
895 <goal>prepare-agent</goal>
896 </goals>
897 <configuration>
898 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
899 <!-- <append>true</append> -->
900 </configuration>
901 </execution>
902 <execution>
903 <id>pre-integration-test</id>
904 <phase>pre-integration-test</phase>
905 <goals>
906 <goal>prepare-agent</goal>
907 </goals>
908 <configuration>
909 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
910 <!-- <append>true</append> -->
911 </configuration>
912 </execution>
913 <execution>
914 <goals>
915 <goal>merge</goal>
916 </goals>
917 <phase>post-integration-test</phase>
918 <configuration>
919 <fileSets>
920 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
921 <directory>${project.build.directory}/coverage-reports</directory>
922 <includes>
923 <include>*.exec</include>
924 </includes>
925 </fileSet>
926 </fileSets>
927 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
928 </configuration>
929 </execution>
930 </executions>
931 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700932
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100933 <!-- This plugin will be useful when we will have multi-modules project -->
934 <plugin>
935 <groupId>org.codehaus.mojo</groupId>
936 <artifactId>versions-maven-plugin</artifactId>
937 <version>1.3.1</version>
938 </plugin>
939 </plugins>
940 </build>
941 <profiles>
942 <profile>
943 <id>docker</id>
944 <properties>
945 <skip.staging.artifacts>true</skip.staging.artifacts>
946 <skip.docker.build>false</skip.docker.build>
947 <skip.docker.tag>false</skip.docker.tag>
948 <skip.docker.push>false</skip.docker.push>
949 </properties>
950 </profile>
951 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700952</project>