blob: 4b19b808f03b28cb4b612a45755a530d9d9da716 [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
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020045 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070046 "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)b4f7cb62017-11-16 13:27:22 +0100475 <!-- Remove the MYSQL connector and replace it by Mariadb -->
476 <dependency>
477 <groupId>org.mariadb.jdbc</groupId>
478 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100479 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100480 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100481 <!-- For SDC Controller -->
482 <dependency>
483 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
484 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100485 <version>1.2.2</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100486 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100487 <dependency>
488 <groupId>org.openecomp.sdc.sdc-tosca</groupId>
489 <artifactId>sdc-tosca</artifactId>
490 <version>1.2.2</version>
491 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100492 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700493
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100494 <build>
495 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700496
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100497 <testResources>
498 <testResource>
499 <directory>src/test/resources</directory>
500 <excludes>
501 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100502 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100503 </excludes>
504 <filtering>true</filtering>
505 </testResource>
506 <testResource>
507 <directory>src/test/resources/https</directory>
508 <includes>
509 <include>**.jks</include>
510 </includes>
511 <filtering>false</filtering>
512 <targetPath>https</targetPath>
513 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100514 <testResource>
515 <directory>src/test/resources/example/sdc</directory>
516 <includes>
517 <include>**.csar</include>
518 </includes>
519 <filtering>false</filtering>
520 <targetPath>example/sdc</targetPath>
521 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100522 </testResources>
523 <resources>
524 <resource>
525 <directory>src/main/resources</directory>
526 <filtering>true</filtering>
527 </resource>
528 <resource>
529 <directory>src/main/docker</directory>
530 <includes>
531 <include>**/*</include>
532 </includes>
533 <filtering>true</filtering>
534 </resource>
535 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700536
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100537 <plugins>
538 <plugin>
539 <groupId>org.codehaus.groovy.maven</groupId>
540 <artifactId>gmaven-plugin</artifactId>
541 <version>1.0</version>
542 <executions>
543 <execution>
544 <phase>validate</phase>
545 <goals>
546 <goal>execute</goal>
547 </goals>
548 <configuration>
549 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
550 </configuration>
551 </execution>
552 </executions>
553 </plugin>
554 <plugin>
555 <groupId>org.apache.maven.plugins</groupId>
556 <artifactId>maven-jar-plugin</artifactId>
557 <version>3.0.2</version>
558 <executions>
559 <execution>
560 <id>jar-with-only-classes</id>
561 <phase>package</phase>
562 <goals>
563 <goal>jar</goal>
564 </goals>
565 <configuration>
566 <classifier>classes</classifier>
567 <includes>
568 <include>org/**</include>
569 </includes>
570 </configuration>
571 </execution>
572 </executions>
573 </plugin>
574 <plugin>
575 <groupId>org.codehaus.mojo</groupId>
576 <artifactId>build-helper-maven-plugin</artifactId>
577 <version>3.0.0</version>
578 <executions>
579 <execution>
580 <goals>
581 <goal>attach-artifact</goal>
582 </goals>
583 <phase>package</phase>
584 <configuration>
585 <artifacts>
586 <artifact>
587 <file>${project.build.directory}/clamp-classes.jar</file>
588 <type>jar</type>
589 <classifier>classes</classifier>
590 </artifact>
591 </artifacts>
592 </configuration>
593 </execution>
594 </executions>
595 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700596
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100597 <plugin>
598 <groupId>org.springframework.boot</groupId>
599 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100600 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100601 <executions>
602 <execution>
603 <goals>
604 <goal>repackage</goal>
605 </goals>
606 <phase>package</phase>
607 </execution>
608 </executions>
609 </plugin>
610 <plugin>
611 <groupId>org.sonatype.plugins</groupId>
612 <artifactId>nexus-staging-maven-plugin</artifactId>
613 <version>1.6.7</version>
614 <extensions>true</extensions>
615 <configuration>
616 <nexusUrl>https://nexus.onap.org</nexusUrl>
617 <stagingProfileId>176c31dfe190a</stagingProfileId>
618 <serverId>ecomp-staging</serverId>
619 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
620 </configuration>
621 </plugin>
622 <plugin>
623 <groupId>com.spotify</groupId>
624 <artifactId>docker-maven-plugin</artifactId>
625 <version>1.0.0</version>
626 <configuration>
627 <imageName>onap/clamp</imageName>
628 <dockerDirectory>src/main/docker</dockerDirectory>
629 <serverId>docker-hub</serverId>
630 <imageTags>
631 <imageTag>latest</imageTag>
632 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
633 <imageTag>${project.docker.latesttag.version}</imageTag>
634 </imageTags>
635 <forceTags>true</forceTags>
636 <resources>
637 <resource>
638 <targetPath>/</targetPath>
639 <directory>${project.build.directory}</directory>
640 <include>${project.build.finalName}.jar</include>
641 </resource>
642 <resource>
643 <targetPath>/</targetPath>
644 <directory>${project.build.directory}</directory>
645 <include>etc/config/**</include>
646 </resource>
647 <resource>
648 <targetPath>/</targetPath>
649 <directory>${project.build.directory}</directory>
650 <include>etc/keystore/**</include>
651 </resource>
652 </resources>
653 </configuration>
654 <executions>
655 <execution>
656 <id>build-image</id>
657 <phase>package</phase>
658 <goals>
659 <goal>build</goal>
660 </goals>
661 <configuration>
662 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
663 <buildArgs>
664 <http_proxy>${env.HTTP_PROXY}</http_proxy>
665 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
666 </buildArgs>
667 </configuration>
668 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700669
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100670 <execution>
671 <id>tag-image-latest-timestamp</id>
672 <phase>package</phase>
673 <goals>
674 <goal>tag</goal>
675 </goals>
676 <configuration>
677 <image>onap/clamp</image>
678 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
679 <skipDockerTag>${skip.docker.push}</skipDockerTag>
680 </configuration>
681 </execution>
682 <execution>
683 <id>push-image-latest-timestamp</id>
684 <phase>deploy</phase>
685 <goals>
686 <goal>push</goal>
687 </goals>
688 <configuration>
689 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
690 <skipDockerPush>${skip.docker.push}</skipDockerPush>
691 </configuration>
692 </execution>
693 <execution>
694 <id>tag-image-latest</id>
695 <phase>package</phase>
696 <goals>
697 <goal>tag</goal>
698 </goals>
699 <configuration>
700 <image>onap/clamp</image>
701 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
702 <skipDockerTag>${skip.docker.push}</skipDockerTag>
703 </configuration>
704 </execution>
705 <execution>
706 <id>push-image-latest</id>
707 <phase>deploy</phase>
708 <goals>
709 <goal>push</goal>
710 </goals>
711 <configuration>
712 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
713 <skipDockerPush>${skip.docker.push}</skipDockerPush>
714 </configuration>
715 </execution>
716 <execution>
717 <id>tag-image</id>
718 <phase>package</phase>
719 <goals>
720 <goal>tag</goal>
721 </goals>
722 <configuration>
723 <image>onap/clamp</image>
724 <newName>${docker.push.registry}/onap/clamp:latest</newName>
725 <skipDockerTag>${skip.docker.push}</skipDockerTag>
726 </configuration>
727 </execution>
728 <execution>
729 <id>push-image</id>
730 <phase>deploy</phase>
731 <goals>
732 <goal>push</goal>
733 </goals>
734 <configuration>
735 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
736 <skipDockerPush>${skip.docker.push}</skipDockerPush>
737 </configuration>
738 </execution>
739 </executions>
740 </plugin>
741 <plugin>
742 <groupId>org.apache.maven.plugins</groupId>
743 <artifactId>maven-surefire-plugin</artifactId>
744 <version>2.19.1</version>
745 <configuration>
746 <forkCount>1</forkCount>
747 <reuseForks>false</reuseForks>
748 </configuration>
749 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200750
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100751 <plugin>
752 <groupId>org.apache.maven.plugins</groupId>
753 <artifactId>maven-failsafe-plugin</artifactId>
754 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700755
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100756 <executions>
757 <execution>
758 <id>integration-tests</id>
759 <goals>
760 <goal>integration-test</goal>
761 <goal>verify</goal>
762 </goals>
763 <configuration>
764 <includes>
765 <include>**/*ItCase.java</include>
766 </includes>
767 <forkCount>1</forkCount>
768 <reuseForks>false</reuseForks>
769 </configuration>
770 </execution>
771 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700772
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100773 </plugin>
774 <plugin>
775 <groupId>io.fabric8</groupId>
776 <artifactId>docker-maven-plugin</artifactId>
777 <version>0.16.5</version>
778 <configuration>
779 <verbose>true</verbose>
780 <apiVersion>1.23</apiVersion>
781 <images>
782 <image>
783 <name>mariadb:10.1.11</name>
784 <alias>mariadb</alias>
785 <run>
786 <env>
787 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
788 </env>
789 <hostname>mariadb</hostname>
790 <volumes>
791 <bind>
792 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
793 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
794 </bind>
795 </volumes>
796 <wait>
797 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100798 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100799 </wait>
800 <ports>
801 <port>${docker.mariadb.port.host}:3306</port>
802 </ports>
803 </run>
804 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100805 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100806 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100807 <alias>python</alias>
808 <run>
809 <hostname>python</hostname>
810 <volumes>
811 <bind>
812 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100813 <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 +0100814 </bind>
815 </volumes>
816 <wait>
817 <tcp>
818 <ports>
819 <port>8080</port>
820 </ports>
821 <mode>direct</mode>
822 </tcp>
823 <time>120000</time>
824 </wait>
825 <ports>
826 <port>${docker.http-cache.port.host}:8080</port>
827 </ports>
828 <workingDir>/usr/src/http-cache-app</workingDir>
829 <cmd>
830 <shell>./start_http_cache.sh ${http.proxy}</shell>
831 </cmd>
832 </run>
833 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100834 </images>
835 <skip>${skipITs}</skip>
836 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700837
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100838 <executions>
839 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100840 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100841 <phase>pre-integration-test</phase>
842 <goals>
843 <goal>start</goal>
844 </goals>
845 <configuration>
846 <skip>${skipITs}</skip>
847 </configuration>
848 </execution>
849 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100850 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100851 <phase>post-integration-test</phase>
852 <goals>
853 <goal>stop</goal>
854 </goals>
855 <configuration>
856 <skip>${skipITs}</skip>
857 </configuration>
858 </execution>
859 </executions>
860 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700861
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100862 <plugin>
863 <groupId>org.jacoco</groupId>
864 <artifactId>jacoco-maven-plugin</artifactId>
865 <version>0.7.7.201606060606</version>
866 <configuration>
867 <dumpOnExit>true</dumpOnExit>
868 <includes>
869 <include>org.onap.clamp.*</include>
870 </includes>
871 </configuration>
872 <executions>
873 <execution>
874 <id>pre-unit-test</id>
875 <goals>
876 <goal>prepare-agent</goal>
877 </goals>
878 <configuration>
879 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
880 <!-- <append>true</append> -->
881 </configuration>
882 </execution>
883 <execution>
884 <id>pre-integration-test</id>
885 <phase>pre-integration-test</phase>
886 <goals>
887 <goal>prepare-agent</goal>
888 </goals>
889 <configuration>
890 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
891 <!-- <append>true</append> -->
892 </configuration>
893 </execution>
894 <execution>
895 <goals>
896 <goal>merge</goal>
897 </goals>
898 <phase>post-integration-test</phase>
899 <configuration>
900 <fileSets>
901 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
902 <directory>${project.build.directory}/coverage-reports</directory>
903 <includes>
904 <include>*.exec</include>
905 </includes>
906 </fileSet>
907 </fileSets>
908 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
909 </configuration>
910 </execution>
911 </executions>
912 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700913
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100914 <!-- This plugin will be useful when we will have multi-modules project -->
915 <plugin>
916 <groupId>org.codehaus.mojo</groupId>
917 <artifactId>versions-maven-plugin</artifactId>
918 <version>1.3.1</version>
919 </plugin>
920 </plugins>
921 </build>
922 <profiles>
923 <profile>
924 <id>docker</id>
925 <properties>
926 <skip.staging.artifacts>true</skip.staging.artifacts>
927 <skip.docker.build>false</skip.docker.build>
928 <skip.docker.tag>false</skip.docker.tag>
929 <skip.docker.push>false</skip.docker.push>
930 </properties>
931 </profile>
932 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700933</project>