blob: c79fb908a814494ce20db09fcc519ed1e2fe7f9e [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 ===================================================================
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070022-->
23
ChrisC5e9feb22017-06-21 02:38:57 -070024<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 +010025 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.clamp</groupId>
28 <artifactId>clds</artifactId>
29 <version>2.0.0-SNAPSHOT</version>
30 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +010035 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070037
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010038 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010039 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 -070040
41 By Default "mvn clean install" command will execute also the unit tests
42 and the integration tests. The integration tests require a docker engine running.
43
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020044 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070045 "mvn clean install -DskipITs=true"
46
47 For Spring it's possible to specify the application.properties location
48 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
49
50 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010051 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
52 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080053
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010054 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070055
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070057 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010058 <clamp.project.version>${project.version}</clamp.project.version>
59 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
60 <maven.compiler.source>1.8</maven.compiler.source>
61 <maven.compiler.target>1.8</maven.compiler.target>
62 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070064
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010065 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)378d05b2018-03-23 14:46:56 +010066 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010067 <project.scm.id>git-server</project.scm.id>
68 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010069
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -050070 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
71 <guava.version>20.0</guava.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010072 <eelf.core.version>1.0.0</eelf.core.version>
73 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)4e2bcb22018-04-25 10:43:39 +020074 <springboot.version>1.5.12.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070075
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010076 <sonar.language>java</sonar.language>
77 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
78 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
79 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
80 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
81 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
82 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070083
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010084 <docker.push.registry>localhost:5000</docker.push.registry>
85 <skip.docker.build>true</skip.docker.build>
86 <skip.docker.push>true</skip.docker.push>
87 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +020088 <python.http.proxy.param></python.http.proxy.param>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010089 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070090
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010091 <distributionManagement>
92 <repository>
93 <id>ecomp-releases</id>
94 <name>Clamp Release Repository</name>
95 <url>https://nexus.onap.org/content/repositories/releases/</url>
96 </repository>
97 <snapshotRepository>
98 <id>ecomp-snapshots</id>
99 <name>Clamp Snapshot Repository</name>
100 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
101 </snapshotRepository>
102 <site>
103 <id>ecomp-site</id>
104 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
105 </site>
106 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700107
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100108 <repositories>
109 <repository>
110 <id>central</id>
111 <name>Maven 2 repository 2</name>
112 <url>http://repo2.maven.org/maven2/</url>
113 </repository>
114 <repository>
115 <id>ecomp-releases</id>
116 <name>ONAP Release Repository</name>
117 <url>https://nexus.onap.org/content/repositories/releases/</url>
118 </repository>
119 <repository>
120 <id>ecomp-staging</id>
121 <name>ONAP Staging Repository</name>
122 <url>https://nexus.onap.org/content/repositories/staging/</url>
123 </repository>
124 <repository>
125 <id>ecomp-snapshots</id>
126 <name>ONAP Snapshot Repository</name>
127 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
128 <snapshots>
129 <enabled>true</enabled>
130 </snapshots>
131 <releases>
132 <enabled>false</enabled>
133 </releases>
134 </repository>
135 <repository>
136 <id>spring-repo</id>
137 <name>Spring repo</name>
138 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
139 </repository>
140 <repository>
141 <id>repository.jboss.org-public</id>
142 <name>JBoss.org Maven repository</name>
143 <url>https://repository.jboss.org/nexus/content/groups/public</url>
144 </repository>
145 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700146
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100147 <dependencyManagement>
148 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100149 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100150 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100151 <groupId>org.springframework.boot</groupId>
152 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100153 <version>${springboot.version}</version>
154 <type>pom</type>
155 <scope>import</scope>
156 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100157 <!-- Camel BOM -->
158 <dependency>
159 <groupId>org.apache.camel</groupId>
160 <artifactId>camel-spring-boot-dependencies</artifactId>
161 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100162 <type>pom</type>
163 <scope>import</scope>
164 </dependency>
165 </dependencies>
166 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700167
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100168 <dependencies>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500169 <!-- Swagger requires at least v20 and policy is bringing version 14 -->
170 <dependency>
171 <groupId>com.google.guava</groupId>
172 <artifactId>guava</artifactId>
173 <version>${guava.version}</version>
174 </dependency>
175 <dependency>
176 <groupId>io.swagger.core.v3</groupId>
177 <artifactId>swagger-jaxrs2</artifactId>
178 <version>${swagger.jaxrs2.version}</version>
179 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100180 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100181 <groupId>com.att.eelf</groupId>
182 <artifactId>eelf-core</artifactId>
183 <version>${eelf.core.version}</version>
184 </dependency>
185 <!-- For CAMEL -->
186 <dependency>
187 <groupId>org.apache.camel</groupId>
188 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100189 </dependency>
190 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100191 <groupId>org.apache.camel</groupId>
192 <artifactId>camel-jaxb-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>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100196 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100197 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200198 <dependency>
199 <groupId>javax.xml.bind</groupId>
200 <artifactId>jaxb-api</artifactId>
201 <version>2.3.0</version>
202 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100203 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100204 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100205 <groupId>org.springframework.boot</groupId>
206 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100207 </dependency>
208 <dependency>
209 <groupId>org.springframework.boot</groupId>
210 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100211 </dependency>
212 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100213 <groupId>com.paypal.springboot</groupId>
214 <artifactId>resteasy-spring-boot-starter</artifactId>
215 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100216 </dependency>
217 <dependency>
218 <groupId>org.springframework</groupId>
219 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100220 </dependency>
221 <dependency>
222 <groupId>org.springframework.boot</groupId>
223 <artifactId>spring-boot-starter-security</artifactId>
224 </dependency>
225 <dependency>
226 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100227 <artifactId>spring-boot-starter-actuator</artifactId>
228 </dependency>
229 <dependency>
230 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100231 <artifactId>spring-boot-starter-test</artifactId>
232 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100233 <exclusions>
234 <exclusion>
235 <groupId>com.vaadin.external.google</groupId>
236 <artifactId>android-json</artifactId>
237 </exclusion>
238 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100239 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100240 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100241 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100242 <groupId>ch.qos.logback</groupId>
243 <artifactId>logback-core</artifactId>
244 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100245 </dependency>
246 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100247 <groupId>ch.qos.logback</groupId>
248 <artifactId>logback-classic</artifactId>
249 <version>1.2.3</version>
250 </dependency>
251 <dependency>
252 <groupId>commons-dbcp</groupId>
253 <artifactId>commons-dbcp</artifactId>
254 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100255 </dependency>
256 <dependency>
257 <groupId>commons-io</groupId>
258 <artifactId>commons-io</artifactId>
259 <version>2.6</version>
260 </dependency>
261 <dependency>
262 <groupId>com.googlecode.json-simple</groupId>
263 <artifactId>json-simple</artifactId>
264 </dependency>
265 <dependency>
266 <groupId>org.apache.commons</groupId>
267 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100268 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100269 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100270 <dependency>
271 <groupId>joda-time</groupId>
272 <artifactId>joda-time</artifactId>
273 </dependency>
274 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100275 <groupId>org.slf4j</groupId>
276 <artifactId>slf4j-api</artifactId>
277 </dependency>
278 <dependency>
279 <groupId>javax.ws.rs</groupId>
280 <artifactId>javax.ws.rs-api</artifactId>
281 <version>2.0</version>
282 </dependency>
283 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100284 <groupId>junit</groupId>
285 <artifactId>junit</artifactId>
286 </dependency>
287 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100288 <groupId>javax.transaction</groupId>
289 <artifactId>jta</artifactId>
290 <version>1.1</version>
291 </dependency>
292 <dependency>
293 <groupId>javax.persistence</groupId>
294 <artifactId>persistence-api</artifactId>
295 <version>1.0.2</version>
296 </dependency>
297 <dependency>
298 <groupId>org.hibernate</groupId>
299 <artifactId>hibernate-annotations</artifactId>
300 <version>3.5.6-Final</version>
301 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100302 <dependency>
303 <groupId>dom4j</groupId>
304 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100305 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700306
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100307 <dependency>
308 <groupId>org.onap.policy.engine</groupId>
309 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200310 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100311 <exclusions>
312 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500313 <groupId>com.google.guava</groupId>
314 <artifactId>guava</artifactId>
315 </exclusion>
316 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100317 <artifactId>log4j</artifactId>
318 <groupId>log4j</groupId>
319 </exclusion>
320 <exclusion>
321 <groupId>org.slf4j</groupId>
322 <artifactId>slf4j-log4j12</artifactId>
323 </exclusion>
324 <exclusion>
325 <artifactId>apache-log4j-extras</artifactId>
326 <groupId>log4j</groupId>
327 </exclusion>
328 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100329 <groupId>mysql</groupId>
330 <artifactId>mysql-connector-java</artifactId>
331 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100332 <exclusion>
333 <groupId>commons-io</groupId>
334 <artifactId>commons-io</artifactId>
335 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200336 <exclusion>
337 <artifactId>grizzly-http</artifactId>
338 <groupId>org.glassfish.grizzly</groupId>
339 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100340 </exclusions>
341 </dependency>
342 <dependency>
343 <groupId>org.onap.policy.common</groupId>
344 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200345 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100346 <exclusions>
347 <exclusion>
348 <artifactId>log4j</artifactId>
349 <groupId>log4j</groupId>
350 </exclusion>
351 <exclusion>
352 <groupId>org.slf4j</groupId>
353 <artifactId>slf4j-log4j12</artifactId>
354 </exclusion>
355 <exclusion>
356 <artifactId>apache-log4j-extras</artifactId>
357 <groupId>log4j</groupId>
358 </exclusion>
359 </exclusions>
360 </dependency>
361 <dependency>
362 <groupId>org.onap.policy.engine</groupId>
363 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200364 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100365 <exclusions>
366 <exclusion>
367 <artifactId>log4j</artifactId>
368 <groupId>log4j</groupId>
369 </exclusion>
370 <exclusion>
371 <groupId>org.slf4j</groupId>
372 <artifactId>slf4j-log4j12</artifactId>
373 </exclusion>
374 <exclusion>
375 <artifactId>apache-log4j-extras</artifactId>
376 <groupId>log4j</groupId>
377 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100378 <exclusion>
379 <groupId>mysql</groupId>
380 <artifactId>mysql-connector-java</artifactId>
381 </exclusion>
382 <exclusion>
383 <groupId>org.mariadb.jdbc</groupId>
384 <artifactId>mariadb-java-client</artifactId>
385 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100386 <exclusion>
387 <groupId>com.att.nsa</groupId>
388 <artifactId>dmaapClient</artifactId>
389 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100390 </exclusions>
391 </dependency>
392 <dependency>
393 <groupId>org.onap.policy.drools-applications</groupId>
394 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200395 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100396 <exclusions>
397 <exclusion>
398 <artifactId>log4j</artifactId>
399 <groupId>log4j</groupId>
400 </exclusion>
401 <exclusion>
402 <groupId>org.slf4j</groupId>
403 <artifactId>slf4j-log4j12</artifactId>
404 </exclusion>
405 <exclusion>
406 <artifactId>apache-log4j-extras</artifactId>
407 <groupId>log4j</groupId>
408 </exclusion>
409 </exclusions>
410 </dependency>
411 <dependency>
412 <groupId>org.onap.policy.drools-applications</groupId>
413 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200414 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100415 <exclusions>
416 <exclusion>
417 <artifactId>log4j</artifactId>
418 <groupId>log4j</groupId>
419 </exclusion>
420 <exclusion>
421 <groupId>org.slf4j</groupId>
422 <artifactId>slf4j-log4j12</artifactId>
423 </exclusion>
424 <exclusion>
425 <artifactId>apache-log4j-extras</artifactId>
426 <groupId>log4j</groupId>
427 </exclusion>
428 </exclusions>
429 </dependency>
430 <dependency>
431 <groupId>org.onap.policy.drools-applications</groupId>
432 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200433 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100434 <exclusions>
435 <exclusion>
436 <artifactId>log4j</artifactId>
437 <groupId>log4j</groupId>
438 </exclusion>
439 <exclusion>
440 <groupId>org.slf4j</groupId>
441 <artifactId>slf4j-log4j12</artifactId>
442 </exclusion>
443 <exclusion>
444 <artifactId>apache-log4j-extras</artifactId>
445 <groupId>log4j</groupId>
446 </exclusion>
447 </exclusions>
448 </dependency>
449 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100450 <groupId>org.apache.commons</groupId>
451 <artifactId>commons-csv</artifactId>
452 <version>1.3</version>
453 </dependency>
454 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100455 <groupId>com.sun.faces</groupId>
456 <artifactId>jsf-api</artifactId>
457 <version>2.1.7</version>
458 </dependency>
459 <dependency>
460 <groupId>com.sun.faces</groupId>
461 <artifactId>jsf-impl</artifactId>
462 <version>2.1.7</version>
463 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100464 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
465 <dependency>
466 <groupId>org.codehaus.plexus</groupId>
467 <artifactId>plexus-utils</artifactId>
468 <version>3.0.24</version>
469 </dependency>
470 <dependency>
471 <groupId>commons-fileupload</groupId>
472 <artifactId>commons-fileupload</artifactId>
473 <version>1.3.3</version>
474 </dependency>
475 <dependency>
476 <groupId>org.jboss.spec.javax.ws.rs</groupId>
477 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
478 <version>1.0.1.Final</version>
479 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100480 <!-- Remove the MYSQL connector and replace it by Mariadb -->
481 <dependency>
482 <groupId>org.mariadb.jdbc</groupId>
483 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100484 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100485 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100486 <!-- For SDC Controller -->
487 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200488 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100489 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200490 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100491 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100492 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200493 <groupId>org.onap.sdc.sdc-tosca</groupId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100494 <artifactId>sdc-tosca</artifactId>
Determe, Sebastien (sd378r)e78f00c2018-04-11 17:25:04 +0200495 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100496 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100497 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700498
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100499 <build>
500 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700501
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100502 <testResources>
503 <testResource>
504 <directory>src/test/resources</directory>
505 <excludes>
506 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100507 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100508 </excludes>
509 <filtering>true</filtering>
510 </testResource>
511 <testResource>
512 <directory>src/test/resources/https</directory>
513 <includes>
514 <include>**.jks</include>
515 </includes>
516 <filtering>false</filtering>
517 <targetPath>https</targetPath>
518 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100519 <testResource>
520 <directory>src/test/resources/example/sdc</directory>
521 <includes>
522 <include>**.csar</include>
523 </includes>
524 <filtering>false</filtering>
525 <targetPath>example/sdc</targetPath>
526 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100527 </testResources>
528 <resources>
529 <resource>
530 <directory>src/main/resources</directory>
531 <filtering>true</filtering>
532 </resource>
533 <resource>
534 <directory>src/main/docker</directory>
535 <includes>
536 <include>**/*</include>
537 </includes>
538 <filtering>true</filtering>
539 </resource>
540 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700541
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100542 <plugins>
543 <plugin>
544 <groupId>org.codehaus.groovy.maven</groupId>
545 <artifactId>gmaven-plugin</artifactId>
546 <version>1.0</version>
547 <executions>
548 <execution>
549 <phase>validate</phase>
550 <goals>
551 <goal>execute</goal>
552 </goals>
553 <configuration>
554 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
555 </configuration>
556 </execution>
557 </executions>
558 </plugin>
559 <plugin>
560 <groupId>org.apache.maven.plugins</groupId>
561 <artifactId>maven-jar-plugin</artifactId>
562 <version>3.0.2</version>
563 <executions>
564 <execution>
565 <id>jar-with-only-classes</id>
566 <phase>package</phase>
567 <goals>
568 <goal>jar</goal>
569 </goals>
570 <configuration>
571 <classifier>classes</classifier>
572 <includes>
573 <include>org/**</include>
574 </includes>
575 </configuration>
576 </execution>
577 </executions>
578 </plugin>
579 <plugin>
580 <groupId>org.codehaus.mojo</groupId>
581 <artifactId>build-helper-maven-plugin</artifactId>
582 <version>3.0.0</version>
583 <executions>
584 <execution>
585 <goals>
586 <goal>attach-artifact</goal>
587 </goals>
588 <phase>package</phase>
589 <configuration>
590 <artifacts>
591 <artifact>
592 <file>${project.build.directory}/clamp-classes.jar</file>
593 <type>jar</type>
594 <classifier>classes</classifier>
595 </artifact>
596 </artifacts>
597 </configuration>
598 </execution>
599 </executions>
600 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700601
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100602 <plugin>
603 <groupId>org.springframework.boot</groupId>
604 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100605 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100606 <executions>
607 <execution>
608 <goals>
609 <goal>repackage</goal>
610 </goals>
611 <phase>package</phase>
612 </execution>
613 </executions>
614 </plugin>
615 <plugin>
616 <groupId>org.sonatype.plugins</groupId>
617 <artifactId>nexus-staging-maven-plugin</artifactId>
618 <version>1.6.7</version>
619 <extensions>true</extensions>
620 <configuration>
621 <nexusUrl>https://nexus.onap.org</nexusUrl>
622 <stagingProfileId>176c31dfe190a</stagingProfileId>
623 <serverId>ecomp-staging</serverId>
624 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
625 </configuration>
626 </plugin>
627 <plugin>
628 <groupId>com.spotify</groupId>
629 <artifactId>docker-maven-plugin</artifactId>
630 <version>1.0.0</version>
631 <configuration>
632 <imageName>onap/clamp</imageName>
633 <dockerDirectory>src/main/docker</dockerDirectory>
634 <serverId>docker-hub</serverId>
635 <imageTags>
636 <imageTag>latest</imageTag>
637 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
638 <imageTag>${project.docker.latesttag.version}</imageTag>
639 </imageTags>
640 <forceTags>true</forceTags>
641 <resources>
642 <resource>
643 <targetPath>/</targetPath>
644 <directory>${project.build.directory}</directory>
645 <include>${project.build.finalName}.jar</include>
646 </resource>
647 <resource>
648 <targetPath>/</targetPath>
649 <directory>${project.build.directory}</directory>
650 <include>etc/config/**</include>
651 </resource>
652 <resource>
653 <targetPath>/</targetPath>
654 <directory>${project.build.directory}</directory>
655 <include>etc/keystore/**</include>
656 </resource>
657 </resources>
658 </configuration>
659 <executions>
660 <execution>
661 <id>build-image</id>
662 <phase>package</phase>
663 <goals>
664 <goal>build</goal>
665 </goals>
666 <configuration>
667 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
668 <buildArgs>
669 <http_proxy>${env.HTTP_PROXY}</http_proxy>
670 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
671 </buildArgs>
672 </configuration>
673 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700674
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100675 <execution>
676 <id>tag-image-latest-timestamp</id>
677 <phase>package</phase>
678 <goals>
679 <goal>tag</goal>
680 </goals>
681 <configuration>
682 <image>onap/clamp</image>
683 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
684 <skipDockerTag>${skip.docker.push}</skipDockerTag>
685 </configuration>
686 </execution>
687 <execution>
688 <id>push-image-latest-timestamp</id>
689 <phase>deploy</phase>
690 <goals>
691 <goal>push</goal>
692 </goals>
693 <configuration>
694 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
695 <skipDockerPush>${skip.docker.push}</skipDockerPush>
696 </configuration>
697 </execution>
698 <execution>
699 <id>tag-image-latest</id>
700 <phase>package</phase>
701 <goals>
702 <goal>tag</goal>
703 </goals>
704 <configuration>
705 <image>onap/clamp</image>
706 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
707 <skipDockerTag>${skip.docker.push}</skipDockerTag>
708 </configuration>
709 </execution>
710 <execution>
711 <id>push-image-latest</id>
712 <phase>deploy</phase>
713 <goals>
714 <goal>push</goal>
715 </goals>
716 <configuration>
717 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
718 <skipDockerPush>${skip.docker.push}</skipDockerPush>
719 </configuration>
720 </execution>
721 <execution>
722 <id>tag-image</id>
723 <phase>package</phase>
724 <goals>
725 <goal>tag</goal>
726 </goals>
727 <configuration>
728 <image>onap/clamp</image>
729 <newName>${docker.push.registry}/onap/clamp:latest</newName>
730 <skipDockerTag>${skip.docker.push}</skipDockerTag>
731 </configuration>
732 </execution>
733 <execution>
734 <id>push-image</id>
735 <phase>deploy</phase>
736 <goals>
737 <goal>push</goal>
738 </goals>
739 <configuration>
740 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
741 <skipDockerPush>${skip.docker.push}</skipDockerPush>
742 </configuration>
743 </execution>
744 </executions>
745 </plugin>
746 <plugin>
747 <groupId>org.apache.maven.plugins</groupId>
748 <artifactId>maven-surefire-plugin</artifactId>
749 <version>2.19.1</version>
750 <configuration>
751 <forkCount>1</forkCount>
752 <reuseForks>false</reuseForks>
753 </configuration>
754 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200755
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100756 <plugin>
757 <groupId>org.apache.maven.plugins</groupId>
758 <artifactId>maven-failsafe-plugin</artifactId>
759 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700760
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100761 <executions>
762 <execution>
763 <id>integration-tests</id>
764 <goals>
765 <goal>integration-test</goal>
766 <goal>verify</goal>
767 </goals>
768 <configuration>
769 <includes>
770 <include>**/*ItCase.java</include>
771 </includes>
772 <forkCount>1</forkCount>
773 <reuseForks>false</reuseForks>
774 </configuration>
775 </execution>
776 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700777
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100778 </plugin>
779 <plugin>
780 <groupId>io.fabric8</groupId>
781 <artifactId>docker-maven-plugin</artifactId>
782 <version>0.16.5</version>
783 <configuration>
784 <verbose>true</verbose>
785 <apiVersion>1.23</apiVersion>
786 <images>
787 <image>
788 <name>mariadb:10.1.11</name>
789 <alias>mariadb</alias>
790 <run>
791 <env>
792 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
793 </env>
794 <hostname>mariadb</hostname>
795 <volumes>
796 <bind>
797 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
798 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
799 </bind>
800 </volumes>
801 <wait>
802 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100803 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100804 </wait>
805 <ports>
806 <port>${docker.mariadb.port.host}:3306</port>
807 </ports>
808 </run>
809 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100810 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100811 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100812 <alias>python</alias>
813 <run>
814 <hostname>python</hostname>
815 <volumes>
816 <bind>
817 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100818 <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 +0100819 </bind>
820 </volumes>
821 <wait>
822 <tcp>
823 <ports>
824 <port>8080</port>
825 </ports>
826 <mode>direct</mode>
827 </tcp>
828 <time>120000</time>
829 </wait>
830 <ports>
831 <port>${docker.http-cache.port.host}:8080</port>
832 </ports>
833 <workingDir>/usr/src/http-cache-app</workingDir>
834 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200835 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100836 </cmd>
837 </run>
838 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100839 </images>
840 <skip>${skipITs}</skip>
841 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700842
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100843 <executions>
844 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100845 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100846 <phase>pre-integration-test</phase>
847 <goals>
848 <goal>start</goal>
849 </goals>
850 <configuration>
851 <skip>${skipITs}</skip>
852 </configuration>
853 </execution>
854 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100855 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100856 <phase>post-integration-test</phase>
857 <goals>
858 <goal>stop</goal>
859 </goals>
860 <configuration>
861 <skip>${skipITs}</skip>
862 </configuration>
863 </execution>
864 </executions>
865 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700866
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100867 <plugin>
868 <groupId>org.jacoco</groupId>
869 <artifactId>jacoco-maven-plugin</artifactId>
870 <version>0.7.7.201606060606</version>
871 <configuration>
872 <dumpOnExit>true</dumpOnExit>
873 <includes>
874 <include>org.onap.clamp.*</include>
875 </includes>
876 </configuration>
877 <executions>
878 <execution>
879 <id>pre-unit-test</id>
880 <goals>
881 <goal>prepare-agent</goal>
882 </goals>
883 <configuration>
884 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
885 <!-- <append>true</append> -->
886 </configuration>
887 </execution>
888 <execution>
889 <id>pre-integration-test</id>
890 <phase>pre-integration-test</phase>
891 <goals>
892 <goal>prepare-agent</goal>
893 </goals>
894 <configuration>
895 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
896 <!-- <append>true</append> -->
897 </configuration>
898 </execution>
899 <execution>
900 <goals>
901 <goal>merge</goal>
902 </goals>
903 <phase>post-integration-test</phase>
904 <configuration>
905 <fileSets>
906 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
907 <directory>${project.build.directory}/coverage-reports</directory>
908 <includes>
909 <include>*.exec</include>
910 </includes>
911 </fileSet>
912 </fileSets>
913 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
914 </configuration>
915 </execution>
916 </executions>
917 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700918
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100919 <!-- This plugin will be useful when we will have multi-modules project -->
920 <plugin>
921 <groupId>org.codehaus.mojo</groupId>
922 <artifactId>versions-maven-plugin</artifactId>
923 <version>1.3.1</version>
924 </plugin>
925 </plugins>
926 </build>
927 <profiles>
928 <profile>
929 <id>docker</id>
930 <properties>
931 <skip.staging.artifacts>true</skip.staging.artifacts>
932 <skip.docker.build>false</skip.docker.build>
933 <skip.docker.tag>false</skip.docker.tag>
934 <skip.docker.push>false</skip.docker.push>
935 </properties>
936 </profile>
937 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700938</project>