blob: efd3a65d25c1d631e2f43921075ff09c4c13e9ed [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>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070060 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010061 <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)885d7c12018-04-09 17:56:53 +020091 <python.http.proxy.param></python.http.proxy.param>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010092 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070093
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010094 <distributionManagement>
95 <repository>
96 <id>ecomp-releases</id>
97 <name>Clamp Release Repository</name>
98 <url>https://nexus.onap.org/content/repositories/releases/</url>
99 </repository>
100 <snapshotRepository>
101 <id>ecomp-snapshots</id>
102 <name>Clamp Snapshot Repository</name>
103 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
104 </snapshotRepository>
105 <site>
106 <id>ecomp-site</id>
107 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
108 </site>
109 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700110
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100111 <repositories>
112 <repository>
113 <id>central</id>
114 <name>Maven 2 repository 2</name>
115 <url>http://repo2.maven.org/maven2/</url>
116 </repository>
117 <repository>
118 <id>ecomp-releases</id>
119 <name>ONAP Release Repository</name>
120 <url>https://nexus.onap.org/content/repositories/releases/</url>
121 </repository>
122 <repository>
123 <id>ecomp-staging</id>
124 <name>ONAP Staging Repository</name>
125 <url>https://nexus.onap.org/content/repositories/staging/</url>
126 </repository>
127 <repository>
128 <id>ecomp-snapshots</id>
129 <name>ONAP Snapshot Repository</name>
130 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
131 <snapshots>
132 <enabled>true</enabled>
133 </snapshots>
134 <releases>
135 <enabled>false</enabled>
136 </releases>
137 </repository>
138 <repository>
139 <id>spring-repo</id>
140 <name>Spring repo</name>
141 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
142 </repository>
143 <repository>
144 <id>repository.jboss.org-public</id>
145 <name>JBoss.org Maven repository</name>
146 <url>https://repository.jboss.org/nexus/content/groups/public</url>
147 </repository>
148 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700149
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100150 <dependencyManagement>
151 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100152 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100153 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100154 <groupId>org.springframework.boot</groupId>
155 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100156 <version>${springboot.version}</version>
157 <type>pom</type>
158 <scope>import</scope>
159 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100160 <!-- Camel BOM -->
161 <dependency>
162 <groupId>org.apache.camel</groupId>
163 <artifactId>camel-spring-boot-dependencies</artifactId>
164 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100165 <type>pom</type>
166 <scope>import</scope>
167 </dependency>
168 </dependencies>
169 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700170
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100171 <dependencies>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500172 <!-- Swagger requires at least v20 and policy is bringing version 14 -->
173 <dependency>
174 <groupId>com.google.guava</groupId>
175 <artifactId>guava</artifactId>
176 <version>${guava.version}</version>
177 </dependency>
178 <dependency>
179 <groupId>io.swagger.core.v3</groupId>
180 <artifactId>swagger-jaxrs2</artifactId>
181 <version>${swagger.jaxrs2.version}</version>
182 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100183 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100184 <groupId>com.att.eelf</groupId>
185 <artifactId>eelf-core</artifactId>
186 <version>${eelf.core.version}</version>
187 </dependency>
188 <!-- For CAMEL -->
189 <dependency>
190 <groupId>org.apache.camel</groupId>
191 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100192 </dependency>
193 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100194 <groupId>org.apache.camel</groupId>
195 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100196 </dependency>
197 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100198 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100199 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100200 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100201 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100202 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100203 <groupId>org.springframework.boot</groupId>
204 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100205 </dependency>
206 <dependency>
207 <groupId>org.springframework.boot</groupId>
208 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100209 </dependency>
210 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100211 <groupId>com.paypal.springboot</groupId>
212 <artifactId>resteasy-spring-boot-starter</artifactId>
213 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100214 </dependency>
215 <dependency>
216 <groupId>org.springframework</groupId>
217 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100218 </dependency>
219 <dependency>
220 <groupId>org.springframework.boot</groupId>
221 <artifactId>spring-boot-starter-security</artifactId>
222 </dependency>
223 <dependency>
224 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100225 <artifactId>spring-boot-starter-actuator</artifactId>
226 </dependency>
227 <dependency>
228 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100229 <artifactId>spring-boot-starter-test</artifactId>
230 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100231 <exclusions>
232 <exclusion>
233 <groupId>com.vaadin.external.google</groupId>
234 <artifactId>android-json</artifactId>
235 </exclusion>
236 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100237 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100238 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100239 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100240 <groupId>ch.qos.logback</groupId>
241 <artifactId>logback-core</artifactId>
242 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100243 </dependency>
244 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100245 <groupId>ch.qos.logback</groupId>
246 <artifactId>logback-classic</artifactId>
247 <version>1.2.3</version>
248 </dependency>
249 <dependency>
250 <groupId>commons-dbcp</groupId>
251 <artifactId>commons-dbcp</artifactId>
252 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100253 </dependency>
254 <dependency>
255 <groupId>commons-io</groupId>
256 <artifactId>commons-io</artifactId>
257 <version>2.6</version>
258 </dependency>
259 <dependency>
260 <groupId>com.googlecode.json-simple</groupId>
261 <artifactId>json-simple</artifactId>
262 </dependency>
263 <dependency>
264 <groupId>org.apache.commons</groupId>
265 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100266 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100267 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100268 <dependency>
269 <groupId>joda-time</groupId>
270 <artifactId>joda-time</artifactId>
271 </dependency>
272 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100273 <groupId>org.slf4j</groupId>
274 <artifactId>slf4j-api</artifactId>
275 </dependency>
276 <dependency>
277 <groupId>javax.ws.rs</groupId>
278 <artifactId>javax.ws.rs-api</artifactId>
279 <version>2.0</version>
280 </dependency>
281 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100282 <groupId>junit</groupId>
283 <artifactId>junit</artifactId>
284 </dependency>
285 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100286 <groupId>javax.transaction</groupId>
287 <artifactId>jta</artifactId>
288 <version>1.1</version>
289 </dependency>
290 <dependency>
291 <groupId>javax.persistence</groupId>
292 <artifactId>persistence-api</artifactId>
293 <version>1.0.2</version>
294 </dependency>
295 <dependency>
296 <groupId>org.hibernate</groupId>
297 <artifactId>hibernate-annotations</artifactId>
298 <version>3.5.6-Final</version>
299 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100300 <dependency>
301 <groupId>dom4j</groupId>
302 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100303 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700304
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100305 <dependency>
306 <groupId>org.onap.policy.engine</groupId>
307 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200308 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100309 <exclusions>
310 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500311 <groupId>com.google.guava</groupId>
312 <artifactId>guava</artifactId>
313 </exclusion>
314 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100315 <artifactId>log4j</artifactId>
316 <groupId>log4j</groupId>
317 </exclusion>
318 <exclusion>
319 <groupId>org.slf4j</groupId>
320 <artifactId>slf4j-log4j12</artifactId>
321 </exclusion>
322 <exclusion>
323 <artifactId>apache-log4j-extras</artifactId>
324 <groupId>log4j</groupId>
325 </exclusion>
326 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100327 <groupId>mysql</groupId>
328 <artifactId>mysql-connector-java</artifactId>
329 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100330 <exclusion>
331 <groupId>commons-io</groupId>
332 <artifactId>commons-io</artifactId>
333 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200334 <exclusion>
335 <artifactId>grizzly-http</artifactId>
336 <groupId>org.glassfish.grizzly</groupId>
337 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100338 </exclusions>
339 </dependency>
340 <dependency>
341 <groupId>org.onap.policy.common</groupId>
342 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200343 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100344 <exclusions>
345 <exclusion>
346 <artifactId>log4j</artifactId>
347 <groupId>log4j</groupId>
348 </exclusion>
349 <exclusion>
350 <groupId>org.slf4j</groupId>
351 <artifactId>slf4j-log4j12</artifactId>
352 </exclusion>
353 <exclusion>
354 <artifactId>apache-log4j-extras</artifactId>
355 <groupId>log4j</groupId>
356 </exclusion>
357 </exclusions>
358 </dependency>
359 <dependency>
360 <groupId>org.onap.policy.engine</groupId>
361 <artifactId>PolicyEngineUtils</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200362 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100363 <exclusions>
364 <exclusion>
365 <artifactId>log4j</artifactId>
366 <groupId>log4j</groupId>
367 </exclusion>
368 <exclusion>
369 <groupId>org.slf4j</groupId>
370 <artifactId>slf4j-log4j12</artifactId>
371 </exclusion>
372 <exclusion>
373 <artifactId>apache-log4j-extras</artifactId>
374 <groupId>log4j</groupId>
375 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100376 <exclusion>
377 <groupId>mysql</groupId>
378 <artifactId>mysql-connector-java</artifactId>
379 </exclusion>
380 <exclusion>
381 <groupId>org.mariadb.jdbc</groupId>
382 <artifactId>mariadb-java-client</artifactId>
383 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100384 <exclusion>
385 <groupId>com.att.nsa</groupId>
386 <artifactId>dmaapClient</artifactId>
387 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100388 </exclusions>
389 </dependency>
390 <dependency>
391 <groupId>org.onap.policy.drools-applications</groupId>
392 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200393 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100394 <exclusions>
395 <exclusion>
396 <artifactId>log4j</artifactId>
397 <groupId>log4j</groupId>
398 </exclusion>
399 <exclusion>
400 <groupId>org.slf4j</groupId>
401 <artifactId>slf4j-log4j12</artifactId>
402 </exclusion>
403 <exclusion>
404 <artifactId>apache-log4j-extras</artifactId>
405 <groupId>log4j</groupId>
406 </exclusion>
407 </exclusions>
408 </dependency>
409 <dependency>
410 <groupId>org.onap.policy.drools-applications</groupId>
411 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200412 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100413 <exclusions>
414 <exclusion>
415 <artifactId>log4j</artifactId>
416 <groupId>log4j</groupId>
417 </exclusion>
418 <exclusion>
419 <groupId>org.slf4j</groupId>
420 <artifactId>slf4j-log4j12</artifactId>
421 </exclusion>
422 <exclusion>
423 <artifactId>apache-log4j-extras</artifactId>
424 <groupId>log4j</groupId>
425 </exclusion>
426 </exclusions>
427 </dependency>
428 <dependency>
429 <groupId>org.onap.policy.drools-applications</groupId>
430 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200431 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100432 <exclusions>
433 <exclusion>
434 <artifactId>log4j</artifactId>
435 <groupId>log4j</groupId>
436 </exclusion>
437 <exclusion>
438 <groupId>org.slf4j</groupId>
439 <artifactId>slf4j-log4j12</artifactId>
440 </exclusion>
441 <exclusion>
442 <artifactId>apache-log4j-extras</artifactId>
443 <groupId>log4j</groupId>
444 </exclusion>
445 </exclusions>
446 </dependency>
447 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100448 <groupId>org.apache.commons</groupId>
449 <artifactId>commons-csv</artifactId>
450 <version>1.3</version>
451 </dependency>
452 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100453 <groupId>com.sun.faces</groupId>
454 <artifactId>jsf-api</artifactId>
455 <version>2.1.7</version>
456 </dependency>
457 <dependency>
458 <groupId>com.sun.faces</groupId>
459 <artifactId>jsf-impl</artifactId>
460 <version>2.1.7</version>
461 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100462 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
463 <dependency>
464 <groupId>org.codehaus.plexus</groupId>
465 <artifactId>plexus-utils</artifactId>
466 <version>3.0.24</version>
467 </dependency>
468 <dependency>
469 <groupId>commons-fileupload</groupId>
470 <artifactId>commons-fileupload</artifactId>
471 <version>1.3.3</version>
472 </dependency>
473 <dependency>
474 <groupId>org.jboss.spec.javax.ws.rs</groupId>
475 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
476 <version>1.0.1.Final</version>
477 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100478 <!-- Remove the MYSQL connector and replace it by Mariadb -->
479 <dependency>
480 <groupId>org.mariadb.jdbc</groupId>
481 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100482 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100483 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100484 <!-- For SDC Controller -->
485 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200486 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100487 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200488 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100489 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100490 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200491 <groupId>org.onap.sdc.sdc-tosca</groupId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100492 <artifactId>sdc-tosca</artifactId>
Determe, Sebastien (sd378r)e78f00c2018-04-11 17:25:04 +0200493 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100494 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100495 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700496
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100497 <build>
498 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700499
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100500 <testResources>
501 <testResource>
502 <directory>src/test/resources</directory>
503 <excludes>
504 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100505 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100506 </excludes>
507 <filtering>true</filtering>
508 </testResource>
509 <testResource>
510 <directory>src/test/resources/https</directory>
511 <includes>
512 <include>**.jks</include>
513 </includes>
514 <filtering>false</filtering>
515 <targetPath>https</targetPath>
516 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100517 <testResource>
518 <directory>src/test/resources/example/sdc</directory>
519 <includes>
520 <include>**.csar</include>
521 </includes>
522 <filtering>false</filtering>
523 <targetPath>example/sdc</targetPath>
524 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100525 </testResources>
526 <resources>
527 <resource>
528 <directory>src/main/resources</directory>
529 <filtering>true</filtering>
530 </resource>
531 <resource>
532 <directory>src/main/docker</directory>
533 <includes>
534 <include>**/*</include>
535 </includes>
536 <filtering>true</filtering>
537 </resource>
538 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700539
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100540 <plugins>
541 <plugin>
542 <groupId>org.codehaus.groovy.maven</groupId>
543 <artifactId>gmaven-plugin</artifactId>
544 <version>1.0</version>
545 <executions>
546 <execution>
547 <phase>validate</phase>
548 <goals>
549 <goal>execute</goal>
550 </goals>
551 <configuration>
552 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
553 </configuration>
554 </execution>
555 </executions>
556 </plugin>
557 <plugin>
558 <groupId>org.apache.maven.plugins</groupId>
559 <artifactId>maven-jar-plugin</artifactId>
560 <version>3.0.2</version>
561 <executions>
562 <execution>
563 <id>jar-with-only-classes</id>
564 <phase>package</phase>
565 <goals>
566 <goal>jar</goal>
567 </goals>
568 <configuration>
569 <classifier>classes</classifier>
570 <includes>
571 <include>org/**</include>
572 </includes>
573 </configuration>
574 </execution>
575 </executions>
576 </plugin>
577 <plugin>
578 <groupId>org.codehaus.mojo</groupId>
579 <artifactId>build-helper-maven-plugin</artifactId>
580 <version>3.0.0</version>
581 <executions>
582 <execution>
583 <goals>
584 <goal>attach-artifact</goal>
585 </goals>
586 <phase>package</phase>
587 <configuration>
588 <artifacts>
589 <artifact>
590 <file>${project.build.directory}/clamp-classes.jar</file>
591 <type>jar</type>
592 <classifier>classes</classifier>
593 </artifact>
594 </artifacts>
595 </configuration>
596 </execution>
597 </executions>
598 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700599
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100600 <plugin>
601 <groupId>org.springframework.boot</groupId>
602 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100603 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100604 <executions>
605 <execution>
606 <goals>
607 <goal>repackage</goal>
608 </goals>
609 <phase>package</phase>
610 </execution>
611 </executions>
612 </plugin>
613 <plugin>
614 <groupId>org.sonatype.plugins</groupId>
615 <artifactId>nexus-staging-maven-plugin</artifactId>
616 <version>1.6.7</version>
617 <extensions>true</extensions>
618 <configuration>
619 <nexusUrl>https://nexus.onap.org</nexusUrl>
620 <stagingProfileId>176c31dfe190a</stagingProfileId>
621 <serverId>ecomp-staging</serverId>
622 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
623 </configuration>
624 </plugin>
625 <plugin>
626 <groupId>com.spotify</groupId>
627 <artifactId>docker-maven-plugin</artifactId>
628 <version>1.0.0</version>
629 <configuration>
630 <imageName>onap/clamp</imageName>
631 <dockerDirectory>src/main/docker</dockerDirectory>
632 <serverId>docker-hub</serverId>
633 <imageTags>
634 <imageTag>latest</imageTag>
635 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
636 <imageTag>${project.docker.latesttag.version}</imageTag>
637 </imageTags>
638 <forceTags>true</forceTags>
639 <resources>
640 <resource>
641 <targetPath>/</targetPath>
642 <directory>${project.build.directory}</directory>
643 <include>${project.build.finalName}.jar</include>
644 </resource>
645 <resource>
646 <targetPath>/</targetPath>
647 <directory>${project.build.directory}</directory>
648 <include>etc/config/**</include>
649 </resource>
650 <resource>
651 <targetPath>/</targetPath>
652 <directory>${project.build.directory}</directory>
653 <include>etc/keystore/**</include>
654 </resource>
655 </resources>
656 </configuration>
657 <executions>
658 <execution>
659 <id>build-image</id>
660 <phase>package</phase>
661 <goals>
662 <goal>build</goal>
663 </goals>
664 <configuration>
665 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
666 <buildArgs>
667 <http_proxy>${env.HTTP_PROXY}</http_proxy>
668 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
669 </buildArgs>
670 </configuration>
671 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700672
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100673 <execution>
674 <id>tag-image-latest-timestamp</id>
675 <phase>package</phase>
676 <goals>
677 <goal>tag</goal>
678 </goals>
679 <configuration>
680 <image>onap/clamp</image>
681 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
682 <skipDockerTag>${skip.docker.push}</skipDockerTag>
683 </configuration>
684 </execution>
685 <execution>
686 <id>push-image-latest-timestamp</id>
687 <phase>deploy</phase>
688 <goals>
689 <goal>push</goal>
690 </goals>
691 <configuration>
692 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
693 <skipDockerPush>${skip.docker.push}</skipDockerPush>
694 </configuration>
695 </execution>
696 <execution>
697 <id>tag-image-latest</id>
698 <phase>package</phase>
699 <goals>
700 <goal>tag</goal>
701 </goals>
702 <configuration>
703 <image>onap/clamp</image>
704 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
705 <skipDockerTag>${skip.docker.push}</skipDockerTag>
706 </configuration>
707 </execution>
708 <execution>
709 <id>push-image-latest</id>
710 <phase>deploy</phase>
711 <goals>
712 <goal>push</goal>
713 </goals>
714 <configuration>
715 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
716 <skipDockerPush>${skip.docker.push}</skipDockerPush>
717 </configuration>
718 </execution>
719 <execution>
720 <id>tag-image</id>
721 <phase>package</phase>
722 <goals>
723 <goal>tag</goal>
724 </goals>
725 <configuration>
726 <image>onap/clamp</image>
727 <newName>${docker.push.registry}/onap/clamp:latest</newName>
728 <skipDockerTag>${skip.docker.push}</skipDockerTag>
729 </configuration>
730 </execution>
731 <execution>
732 <id>push-image</id>
733 <phase>deploy</phase>
734 <goals>
735 <goal>push</goal>
736 </goals>
737 <configuration>
738 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
739 <skipDockerPush>${skip.docker.push}</skipDockerPush>
740 </configuration>
741 </execution>
742 </executions>
743 </plugin>
744 <plugin>
745 <groupId>org.apache.maven.plugins</groupId>
746 <artifactId>maven-surefire-plugin</artifactId>
747 <version>2.19.1</version>
748 <configuration>
749 <forkCount>1</forkCount>
750 <reuseForks>false</reuseForks>
751 </configuration>
752 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200753
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100754 <plugin>
755 <groupId>org.apache.maven.plugins</groupId>
756 <artifactId>maven-failsafe-plugin</artifactId>
757 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700758
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100759 <executions>
760 <execution>
761 <id>integration-tests</id>
762 <goals>
763 <goal>integration-test</goal>
764 <goal>verify</goal>
765 </goals>
766 <configuration>
767 <includes>
768 <include>**/*ItCase.java</include>
769 </includes>
770 <forkCount>1</forkCount>
771 <reuseForks>false</reuseForks>
772 </configuration>
773 </execution>
774 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700775
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100776 </plugin>
777 <plugin>
778 <groupId>io.fabric8</groupId>
779 <artifactId>docker-maven-plugin</artifactId>
780 <version>0.16.5</version>
781 <configuration>
782 <verbose>true</verbose>
783 <apiVersion>1.23</apiVersion>
784 <images>
785 <image>
786 <name>mariadb:10.1.11</name>
787 <alias>mariadb</alias>
788 <run>
789 <env>
790 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
791 </env>
792 <hostname>mariadb</hostname>
793 <volumes>
794 <bind>
795 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
796 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
797 </bind>
798 </volumes>
799 <wait>
800 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100801 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100802 </wait>
803 <ports>
804 <port>${docker.mariadb.port.host}:3306</port>
805 </ports>
806 </run>
807 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100808 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100809 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100810 <alias>python</alias>
811 <run>
812 <hostname>python</hostname>
813 <volumes>
814 <bind>
815 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100816 <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 +0100817 </bind>
818 </volumes>
819 <wait>
820 <tcp>
821 <ports>
822 <port>8080</port>
823 </ports>
824 <mode>direct</mode>
825 </tcp>
826 <time>120000</time>
827 </wait>
828 <ports>
829 <port>${docker.http-cache.port.host}:8080</port>
830 </ports>
831 <workingDir>/usr/src/http-cache-app</workingDir>
832 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200833 <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 +0100834 </cmd>
835 </run>
836 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100837 </images>
838 <skip>${skipITs}</skip>
839 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700840
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100841 <executions>
842 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100843 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100844 <phase>pre-integration-test</phase>
845 <goals>
846 <goal>start</goal>
847 </goals>
848 <configuration>
849 <skip>${skipITs}</skip>
850 </configuration>
851 </execution>
852 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100853 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100854 <phase>post-integration-test</phase>
855 <goals>
856 <goal>stop</goal>
857 </goals>
858 <configuration>
859 <skip>${skipITs}</skip>
860 </configuration>
861 </execution>
862 </executions>
863 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700864
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100865 <plugin>
866 <groupId>org.jacoco</groupId>
867 <artifactId>jacoco-maven-plugin</artifactId>
868 <version>0.7.7.201606060606</version>
869 <configuration>
870 <dumpOnExit>true</dumpOnExit>
871 <includes>
872 <include>org.onap.clamp.*</include>
873 </includes>
874 </configuration>
875 <executions>
876 <execution>
877 <id>pre-unit-test</id>
878 <goals>
879 <goal>prepare-agent</goal>
880 </goals>
881 <configuration>
882 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
883 <!-- <append>true</append> -->
884 </configuration>
885 </execution>
886 <execution>
887 <id>pre-integration-test</id>
888 <phase>pre-integration-test</phase>
889 <goals>
890 <goal>prepare-agent</goal>
891 </goals>
892 <configuration>
893 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
894 <!-- <append>true</append> -->
895 </configuration>
896 </execution>
897 <execution>
898 <goals>
899 <goal>merge</goal>
900 </goals>
901 <phase>post-integration-test</phase>
902 <configuration>
903 <fileSets>
904 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
905 <directory>${project.build.directory}/coverage-reports</directory>
906 <includes>
907 <include>*.exec</include>
908 </includes>
909 </fileSet>
910 </fileSets>
911 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
912 </configuration>
913 </execution>
914 </executions>
915 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700916
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100917 <!-- This plugin will be useful when we will have multi-modules project -->
918 <plugin>
919 <groupId>org.codehaus.mojo</groupId>
920 <artifactId>versions-maven-plugin</artifactId>
921 <version>1.3.1</version>
922 </plugin>
923 </plugins>
924 </build>
925 <profiles>
926 <profile>
927 <id>docker</id>
928 <properties>
929 <skip.staging.artifacts>true</skip.staging.artifacts>
930 <skip.docker.build>false</skip.docker.build>
931 <skip.docker.tag>false</skip.docker.tag>
932 <skip.docker.push>false</skip.docker.push>
933 </properties>
934 </profile>
935 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700936</project>