blob: 0d97cf6e716a345d8e355664eae0d991a25711b5 [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)7e44fa72018-02-07 10:11:30 +010036 <version>1.1.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010037 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070038
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010039 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010040 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070041
42 By Default "mvn clean install" command will execute also the unit tests
43 and the integration tests. The integration tests require a docker engine running.
44
45 If you want to skip the intergation test you can by doing:
46 "mvn clean install -DskipITs=true"
47
48 For Spring it's possible to specify the application.properties location
49 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
50
51 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010052 - org.onap.clamp.config.files.cldsReference=classpath:/clds/clds-reference.properties
53 - org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config.properties
54 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
55 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080056
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010057 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070058
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010059 <properties>
60 <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format>
61 <clamp.project.version>${project.version}</clamp.project.version>
62 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
63 <maven.compiler.source>1.8</maven.compiler.source>
64 <maven.compiler.target>1.8</maven.compiler.target>
65 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
66 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070067
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010068 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010069 <docker.http-cache.port.host>2080</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010070 <project.scm.id>git-server</project.scm.id>
71 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010072
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -050073 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
74 <guava.version>20.0</guava.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010075 <eelf.core.version>1.0.0</eelf.core.version>
76 <camel.version>2.20.1</camel.version>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010077 <springboot.version>1.5.10.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070078
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010079 <sonar.language>java</sonar.language>
80 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
81 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
82 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
83 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
84 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
85 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC5e9feb22017-06-21 02:38:57 -070086
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010087 <docker.push.registry>localhost:5000</docker.push.registry>
88 <skip.docker.build>true</skip.docker.build>
89 <skip.docker.push>true</skip.docker.push>
90 <skip.staging.artifacts>false</skip.staging.artifacts>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010091 <http.proxy></http.proxy>
92
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010093 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070094
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010095 <distributionManagement>
96 <repository>
97 <id>ecomp-releases</id>
98 <name>Clamp Release Repository</name>
99 <url>https://nexus.onap.org/content/repositories/releases/</url>
100 </repository>
101 <snapshotRepository>
102 <id>ecomp-snapshots</id>
103 <name>Clamp Snapshot Repository</name>
104 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
105 </snapshotRepository>
106 <site>
107 <id>ecomp-site</id>
108 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
109 </site>
110 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700111
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100112 <repositories>
113 <repository>
114 <id>central</id>
115 <name>Maven 2 repository 2</name>
116 <url>http://repo2.maven.org/maven2/</url>
117 </repository>
118 <repository>
119 <id>ecomp-releases</id>
120 <name>ONAP Release Repository</name>
121 <url>https://nexus.onap.org/content/repositories/releases/</url>
122 </repository>
123 <repository>
124 <id>ecomp-staging</id>
125 <name>ONAP Staging Repository</name>
126 <url>https://nexus.onap.org/content/repositories/staging/</url>
127 </repository>
128 <repository>
129 <id>ecomp-snapshots</id>
130 <name>ONAP Snapshot Repository</name>
131 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
132 <snapshots>
133 <enabled>true</enabled>
134 </snapshots>
135 <releases>
136 <enabled>false</enabled>
137 </releases>
138 </repository>
139 <repository>
140 <id>spring-repo</id>
141 <name>Spring repo</name>
142 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
143 </repository>
144 <repository>
145 <id>repository.jboss.org-public</id>
146 <name>JBoss.org Maven repository</name>
147 <url>https://repository.jboss.org/nexus/content/groups/public</url>
148 </repository>
149 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700150
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100151 <dependencyManagement>
152 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100153 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100154 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100155 <groupId>org.springframework.boot</groupId>
156 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100157 <version>${springboot.version}</version>
158 <type>pom</type>
159 <scope>import</scope>
160 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100161 <!-- Camel BOM -->
162 <dependency>
163 <groupId>org.apache.camel</groupId>
164 <artifactId>camel-spring-boot-dependencies</artifactId>
165 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100166 <type>pom</type>
167 <scope>import</scope>
168 </dependency>
169 </dependencies>
170 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700171
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100172 <dependencies>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500173 <!-- Swagger requires at least v20 and policy is bringing version 14 -->
174 <dependency>
175 <groupId>com.google.guava</groupId>
176 <artifactId>guava</artifactId>
177 <version>${guava.version}</version>
178 </dependency>
179 <dependency>
180 <groupId>io.swagger.core.v3</groupId>
181 <artifactId>swagger-jaxrs2</artifactId>
182 <version>${swagger.jaxrs2.version}</version>
183 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100184 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100185 <groupId>com.att.eelf</groupId>
186 <artifactId>eelf-core</artifactId>
187 <version>${eelf.core.version}</version>
188 </dependency>
189 <!-- For CAMEL -->
190 <dependency>
191 <groupId>org.apache.camel</groupId>
192 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100193 </dependency>
194 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100195 <groupId>org.apache.camel</groupId>
196 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100197 </dependency>
198 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100199 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100200 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100201 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100202 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100203 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100204 <groupId>org.springframework.boot</groupId>
205 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100206 </dependency>
207 <dependency>
208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100210 </dependency>
211 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100212 <groupId>com.paypal.springboot</groupId>
213 <artifactId>resteasy-spring-boot-starter</artifactId>
214 <version>2.3.4-RELEASE</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100215 </dependency>
216 <dependency>
217 <groupId>org.springframework</groupId>
218 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100219 </dependency>
220 <dependency>
221 <groupId>org.springframework.boot</groupId>
222 <artifactId>spring-boot-starter-security</artifactId>
223 </dependency>
224 <dependency>
225 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100226 <artifactId>spring-boot-starter-actuator</artifactId>
227 </dependency>
228 <dependency>
229 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100230 <artifactId>spring-boot-starter-test</artifactId>
231 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100232 <exclusions>
233 <exclusion>
234 <groupId>com.vaadin.external.google</groupId>
235 <artifactId>android-json</artifactId>
236 </exclusion>
237 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100238 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100239 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100240 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100241 <groupId>ch.qos.logback</groupId>
242 <artifactId>logback-core</artifactId>
243 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100244 </dependency>
245 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100246 <groupId>ch.qos.logback</groupId>
247 <artifactId>logback-classic</artifactId>
248 <version>1.2.3</version>
249 </dependency>
250 <dependency>
251 <groupId>commons-dbcp</groupId>
252 <artifactId>commons-dbcp</artifactId>
253 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100254 </dependency>
255 <dependency>
256 <groupId>commons-io</groupId>
257 <artifactId>commons-io</artifactId>
258 <version>2.6</version>
259 </dependency>
260 <dependency>
261 <groupId>com.googlecode.json-simple</groupId>
262 <artifactId>json-simple</artifactId>
263 </dependency>
264 <dependency>
265 <groupId>org.apache.commons</groupId>
266 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100267 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100268 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100269 <dependency>
270 <groupId>joda-time</groupId>
271 <artifactId>joda-time</artifactId>
272 </dependency>
273 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100274 <groupId>org.slf4j</groupId>
275 <artifactId>slf4j-api</artifactId>
276 </dependency>
277 <dependency>
278 <groupId>javax.ws.rs</groupId>
279 <artifactId>javax.ws.rs-api</artifactId>
280 <version>2.0</version>
281 </dependency>
282 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100283 <groupId>junit</groupId>
284 <artifactId>junit</artifactId>
285 </dependency>
286 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100287 <groupId>com.fasterxml.jackson.core</groupId>
288 <artifactId>jackson-core</artifactId>
289 </dependency>
290 <dependency>
291 <groupId>com.fasterxml.jackson.core</groupId>
292 <artifactId>jackson-databind</artifactId>
293 </dependency>
294 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100295 <groupId>javax.transaction</groupId>
296 <artifactId>jta</artifactId>
297 <version>1.1</version>
298 </dependency>
299 <dependency>
300 <groupId>javax.persistence</groupId>
301 <artifactId>persistence-api</artifactId>
302 <version>1.0.2</version>
303 </dependency>
304 <dependency>
305 <groupId>org.hibernate</groupId>
306 <artifactId>hibernate-annotations</artifactId>
307 <version>3.5.6-Final</version>
308 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100309 <dependency>
310 <groupId>dom4j</groupId>
311 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100312 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700313
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100314 <dependency>
315 <groupId>org.onap.policy.engine</groupId>
316 <artifactId>PolicyEngineAPI</artifactId>
317 <version>1.1.0</version>
318 <exclusions>
319 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500320 <groupId>com.google.guava</groupId>
321 <artifactId>guava</artifactId>
322 </exclusion>
323 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100324 <artifactId>log4j</artifactId>
325 <groupId>log4j</groupId>
326 </exclusion>
327 <exclusion>
328 <groupId>org.slf4j</groupId>
329 <artifactId>slf4j-log4j12</artifactId>
330 </exclusion>
331 <exclusion>
332 <artifactId>apache-log4j-extras</artifactId>
333 <groupId>log4j</groupId>
334 </exclusion>
335 <exclusion>
336 <artifactId>jackson-databind</artifactId>
337 <groupId>com.fasterxml.jackson.core</groupId>
338 </exclusion>
339 <exclusion>
340 <groupId>mysql</groupId>
341 <artifactId>mysql-connector-java</artifactId>
342 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100343 <exclusion>
344 <groupId>commons-io</groupId>
345 <artifactId>commons-io</artifactId>
346 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100347 </exclusions>
348 </dependency>
349 <dependency>
350 <groupId>org.onap.policy.common</groupId>
351 <artifactId>ONAP-Logging</artifactId>
352 <version>1.1.0</version>
353 <exclusions>
354 <exclusion>
355 <artifactId>log4j</artifactId>
356 <groupId>log4j</groupId>
357 </exclusion>
358 <exclusion>
359 <groupId>org.slf4j</groupId>
360 <artifactId>slf4j-log4j12</artifactId>
361 </exclusion>
362 <exclusion>
363 <artifactId>apache-log4j-extras</artifactId>
364 <groupId>log4j</groupId>
365 </exclusion>
366 </exclusions>
367 </dependency>
368 <dependency>
369 <groupId>org.onap.policy.engine</groupId>
370 <artifactId>PolicyEngineUtils</artifactId>
371 <version>1.1.0</version>
372 <exclusions>
373 <exclusion>
374 <artifactId>log4j</artifactId>
375 <groupId>log4j</groupId>
376 </exclusion>
377 <exclusion>
378 <groupId>org.slf4j</groupId>
379 <artifactId>slf4j-log4j12</artifactId>
380 </exclusion>
381 <exclusion>
382 <artifactId>apache-log4j-extras</artifactId>
383 <groupId>log4j</groupId>
384 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100385 <exclusion>
386 <groupId>mysql</groupId>
387 <artifactId>mysql-connector-java</artifactId>
388 </exclusion>
389 <exclusion>
390 <groupId>org.mariadb.jdbc</groupId>
391 <artifactId>mariadb-java-client</artifactId>
392 </exclusion>
Determe, Sebastien (sd378r)57867d12018-02-15 16:04:12 +0100393 <exclusion>
394 <groupId>com.att.nsa</groupId>
395 <artifactId>dmaapClient</artifactId>
396 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100397 </exclusions>
398 </dependency>
399 <dependency>
400 <groupId>org.onap.policy.drools-applications</groupId>
401 <artifactId>policy-yaml</artifactId>
402 <version>1.1.0</version>
403 <exclusions>
404 <exclusion>
405 <artifactId>log4j</artifactId>
406 <groupId>log4j</groupId>
407 </exclusion>
408 <exclusion>
409 <groupId>org.slf4j</groupId>
410 <artifactId>slf4j-log4j12</artifactId>
411 </exclusion>
412 <exclusion>
413 <artifactId>apache-log4j-extras</artifactId>
414 <groupId>log4j</groupId>
415 </exclusion>
416 </exclusions>
417 </dependency>
418 <dependency>
419 <groupId>org.onap.policy.drools-applications</groupId>
420 <artifactId>sdc</artifactId>
421 <version>1.1.0</version>
422 <exclusions>
423 <exclusion>
424 <artifactId>log4j</artifactId>
425 <groupId>log4j</groupId>
426 </exclusion>
427 <exclusion>
428 <groupId>org.slf4j</groupId>
429 <artifactId>slf4j-log4j12</artifactId>
430 </exclusion>
431 <exclusion>
432 <artifactId>apache-log4j-extras</artifactId>
433 <groupId>log4j</groupId>
434 </exclusion>
435 </exclusions>
436 </dependency>
437 <dependency>
438 <groupId>org.onap.policy.drools-applications</groupId>
439 <artifactId>aai</artifactId>
440 <version>1.1.0</version>
441 <exclusions>
442 <exclusion>
443 <artifactId>log4j</artifactId>
444 <groupId>log4j</groupId>
445 </exclusion>
446 <exclusion>
447 <groupId>org.slf4j</groupId>
448 <artifactId>slf4j-log4j12</artifactId>
449 </exclusion>
450 <exclusion>
451 <artifactId>apache-log4j-extras</artifactId>
452 <groupId>log4j</groupId>
453 </exclusion>
454 </exclusions>
455 </dependency>
456 <dependency>
457 <groupId>com.fasterxml.jackson.core</groupId>
458 <artifactId>jackson-databind</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100459 </dependency>
460 <dependency>
461 <groupId>com.fasterxml.jackson.dataformat</groupId>
462 <artifactId>jackson-dataformat-yaml</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100463 </dependency>
464 <dependency>
465 <groupId>org.apache.commons</groupId>
466 <artifactId>commons-csv</artifactId>
467 <version>1.3</version>
468 </dependency>
469 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100470 <groupId>com.sun.faces</groupId>
471 <artifactId>jsf-api</artifactId>
472 <version>2.1.7</version>
473 </dependency>
474 <dependency>
475 <groupId>com.sun.faces</groupId>
476 <artifactId>jsf-impl</artifactId>
477 <version>2.1.7</version>
478 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100479 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
480 <dependency>
481 <groupId>org.codehaus.plexus</groupId>
482 <artifactId>plexus-utils</artifactId>
483 <version>3.0.24</version>
484 </dependency>
485 <dependency>
486 <groupId>commons-fileupload</groupId>
487 <artifactId>commons-fileupload</artifactId>
488 <version>1.3.3</version>
489 </dependency>
490 <dependency>
491 <groupId>org.jboss.spec.javax.ws.rs</groupId>
492 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
493 <version>1.0.1.Final</version>
494 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100495 <!-- Remove the MYSQL connector and replace it by Mariadb -->
496 <dependency>
497 <groupId>org.mariadb.jdbc</groupId>
498 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100499 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100500 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100501 <!-- For SDC Controller -->
502 <dependency>
503 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
504 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100505 <version>1.2.2</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100506 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100507 <dependency>
508 <groupId>org.openecomp.sdc.sdc-tosca</groupId>
509 <artifactId>sdc-tosca</artifactId>
510 <version>1.2.2</version>
511 </dependency>
512
513
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100514 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700515
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100516 <build>
517 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700518
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100519 <testResources>
520 <testResource>
521 <directory>src/test/resources</directory>
522 <excludes>
523 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100524 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100525 </excludes>
526 <filtering>true</filtering>
527 </testResource>
528 <testResource>
529 <directory>src/test/resources/https</directory>
530 <includes>
531 <include>**.jks</include>
532 </includes>
533 <filtering>false</filtering>
534 <targetPath>https</targetPath>
535 </testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100536 <testResource>
537 <directory>src/test/resources/example/sdc</directory>
538 <includes>
539 <include>**.csar</include>
540 </includes>
541 <filtering>false</filtering>
542 <targetPath>example/sdc</targetPath>
543 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100544 </testResources>
545 <resources>
546 <resource>
547 <directory>src/main/resources</directory>
548 <filtering>true</filtering>
549 </resource>
550 <resource>
551 <directory>src/main/docker</directory>
552 <includes>
553 <include>**/*</include>
554 </includes>
555 <filtering>true</filtering>
556 </resource>
557 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700558
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100559 <plugins>
560 <plugin>
561 <groupId>org.codehaus.groovy.maven</groupId>
562 <artifactId>gmaven-plugin</artifactId>
563 <version>1.0</version>
564 <executions>
565 <execution>
566 <phase>validate</phase>
567 <goals>
568 <goal>execute</goal>
569 </goals>
570 <configuration>
571 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
572 </configuration>
573 </execution>
574 </executions>
575 </plugin>
576 <plugin>
577 <groupId>org.apache.maven.plugins</groupId>
578 <artifactId>maven-jar-plugin</artifactId>
579 <version>3.0.2</version>
580 <executions>
581 <execution>
582 <id>jar-with-only-classes</id>
583 <phase>package</phase>
584 <goals>
585 <goal>jar</goal>
586 </goals>
587 <configuration>
588 <classifier>classes</classifier>
589 <includes>
590 <include>org/**</include>
591 </includes>
592 </configuration>
593 </execution>
594 </executions>
595 </plugin>
596 <plugin>
597 <groupId>org.codehaus.mojo</groupId>
598 <artifactId>build-helper-maven-plugin</artifactId>
599 <version>3.0.0</version>
600 <executions>
601 <execution>
602 <goals>
603 <goal>attach-artifact</goal>
604 </goals>
605 <phase>package</phase>
606 <configuration>
607 <artifacts>
608 <artifact>
609 <file>${project.build.directory}/clamp-classes.jar</file>
610 <type>jar</type>
611 <classifier>classes</classifier>
612 </artifact>
613 </artifacts>
614 </configuration>
615 </execution>
616 </executions>
617 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700618
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100619 <plugin>
620 <groupId>org.springframework.boot</groupId>
621 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100622 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100623 <executions>
624 <execution>
625 <goals>
626 <goal>repackage</goal>
627 </goals>
628 <phase>package</phase>
629 </execution>
630 </executions>
631 </plugin>
632 <plugin>
633 <groupId>org.sonatype.plugins</groupId>
634 <artifactId>nexus-staging-maven-plugin</artifactId>
635 <version>1.6.7</version>
636 <extensions>true</extensions>
637 <configuration>
638 <nexusUrl>https://nexus.onap.org</nexusUrl>
639 <stagingProfileId>176c31dfe190a</stagingProfileId>
640 <serverId>ecomp-staging</serverId>
641 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
642 </configuration>
643 </plugin>
644 <plugin>
645 <groupId>com.spotify</groupId>
646 <artifactId>docker-maven-plugin</artifactId>
647 <version>1.0.0</version>
648 <configuration>
649 <imageName>onap/clamp</imageName>
650 <dockerDirectory>src/main/docker</dockerDirectory>
651 <serverId>docker-hub</serverId>
652 <imageTags>
653 <imageTag>latest</imageTag>
654 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
655 <imageTag>${project.docker.latesttag.version}</imageTag>
656 </imageTags>
657 <forceTags>true</forceTags>
658 <resources>
659 <resource>
660 <targetPath>/</targetPath>
661 <directory>${project.build.directory}</directory>
662 <include>${project.build.finalName}.jar</include>
663 </resource>
664 <resource>
665 <targetPath>/</targetPath>
666 <directory>${project.build.directory}</directory>
667 <include>etc/config/**</include>
668 </resource>
669 <resource>
670 <targetPath>/</targetPath>
671 <directory>${project.build.directory}</directory>
672 <include>etc/keystore/**</include>
673 </resource>
674 </resources>
675 </configuration>
676 <executions>
677 <execution>
678 <id>build-image</id>
679 <phase>package</phase>
680 <goals>
681 <goal>build</goal>
682 </goals>
683 <configuration>
684 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
685 <buildArgs>
686 <http_proxy>${env.HTTP_PROXY}</http_proxy>
687 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
688 </buildArgs>
689 </configuration>
690 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700691
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100692 <execution>
693 <id>tag-image-latest-timestamp</id>
694 <phase>package</phase>
695 <goals>
696 <goal>tag</goal>
697 </goals>
698 <configuration>
699 <image>onap/clamp</image>
700 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
701 <skipDockerTag>${skip.docker.push}</skipDockerTag>
702 </configuration>
703 </execution>
704 <execution>
705 <id>push-image-latest-timestamp</id>
706 <phase>deploy</phase>
707 <goals>
708 <goal>push</goal>
709 </goals>
710 <configuration>
711 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
712 <skipDockerPush>${skip.docker.push}</skipDockerPush>
713 </configuration>
714 </execution>
715 <execution>
716 <id>tag-image-latest</id>
717 <phase>package</phase>
718 <goals>
719 <goal>tag</goal>
720 </goals>
721 <configuration>
722 <image>onap/clamp</image>
723 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
724 <skipDockerTag>${skip.docker.push}</skipDockerTag>
725 </configuration>
726 </execution>
727 <execution>
728 <id>push-image-latest</id>
729 <phase>deploy</phase>
730 <goals>
731 <goal>push</goal>
732 </goals>
733 <configuration>
734 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
735 <skipDockerPush>${skip.docker.push}</skipDockerPush>
736 </configuration>
737 </execution>
738 <execution>
739 <id>tag-image</id>
740 <phase>package</phase>
741 <goals>
742 <goal>tag</goal>
743 </goals>
744 <configuration>
745 <image>onap/clamp</image>
746 <newName>${docker.push.registry}/onap/clamp:latest</newName>
747 <skipDockerTag>${skip.docker.push}</skipDockerTag>
748 </configuration>
749 </execution>
750 <execution>
751 <id>push-image</id>
752 <phase>deploy</phase>
753 <goals>
754 <goal>push</goal>
755 </goals>
756 <configuration>
757 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
758 <skipDockerPush>${skip.docker.push}</skipDockerPush>
759 </configuration>
760 </execution>
761 </executions>
762 </plugin>
763 <plugin>
764 <groupId>org.apache.maven.plugins</groupId>
765 <artifactId>maven-surefire-plugin</artifactId>
766 <version>2.19.1</version>
767 <configuration>
768 <forkCount>1</forkCount>
769 <reuseForks>false</reuseForks>
770 </configuration>
771 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200772
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100773 <plugin>
774 <groupId>org.apache.maven.plugins</groupId>
775 <artifactId>maven-failsafe-plugin</artifactId>
776 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700777
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100778 <executions>
779 <execution>
780 <id>integration-tests</id>
781 <goals>
782 <goal>integration-test</goal>
783 <goal>verify</goal>
784 </goals>
785 <configuration>
786 <includes>
787 <include>**/*ItCase.java</include>
788 </includes>
789 <forkCount>1</forkCount>
790 <reuseForks>false</reuseForks>
791 </configuration>
792 </execution>
793 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700794
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100795 </plugin>
796 <plugin>
797 <groupId>io.fabric8</groupId>
798 <artifactId>docker-maven-plugin</artifactId>
799 <version>0.16.5</version>
800 <configuration>
801 <verbose>true</verbose>
802 <apiVersion>1.23</apiVersion>
803 <images>
804 <image>
805 <name>mariadb:10.1.11</name>
806 <alias>mariadb</alias>
807 <run>
808 <env>
809 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
810 </env>
811 <hostname>mariadb</hostname>
812 <volumes>
813 <bind>
814 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
815 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
816 </bind>
817 </volumes>
818 <wait>
819 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100820 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100821 </wait>
822 <ports>
823 <port>${docker.mariadb.port.host}:3306</port>
824 </ports>
825 </run>
826 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100827 <image>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100828 <name>python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100829 <alias>python</alias>
830 <run>
831 <hostname>python</hostname>
832 <volumes>
833 <bind>
834 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
835 <volume>${project.basedir}/src/test/resources/http-cache/sdc-example/:/usr/src/http-cache-app/data-cache</volume>
836 </bind>
837 </volumes>
838 <wait>
839 <tcp>
840 <ports>
841 <port>8080</port>
842 </ports>
843 <mode>direct</mode>
844 </tcp>
845 <time>120000</time>
846 </wait>
847 <ports>
848 <port>${docker.http-cache.port.host}:8080</port>
849 </ports>
850 <workingDir>/usr/src/http-cache-app</workingDir>
851 <cmd>
852 <shell>./start_http_cache.sh ${http.proxy}</shell>
853 </cmd>
854 </run>
855 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100856 </images>
857 <skip>${skipITs}</skip>
858 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700859
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100860 <executions>
861 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100862 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100863 <phase>pre-integration-test</phase>
864 <goals>
865 <goal>start</goal>
866 </goals>
867 <configuration>
868 <skip>${skipITs}</skip>
869 </configuration>
870 </execution>
871 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100872 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100873 <phase>post-integration-test</phase>
874 <goals>
875 <goal>stop</goal>
876 </goals>
877 <configuration>
878 <skip>${skipITs}</skip>
879 </configuration>
880 </execution>
881 </executions>
882 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700883
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100884 <plugin>
885 <groupId>org.jacoco</groupId>
886 <artifactId>jacoco-maven-plugin</artifactId>
887 <version>0.7.7.201606060606</version>
888 <configuration>
889 <dumpOnExit>true</dumpOnExit>
890 <includes>
891 <include>org.onap.clamp.*</include>
892 </includes>
893 </configuration>
894 <executions>
895 <execution>
896 <id>pre-unit-test</id>
897 <goals>
898 <goal>prepare-agent</goal>
899 </goals>
900 <configuration>
901 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
902 <!-- <append>true</append> -->
903 </configuration>
904 </execution>
905 <execution>
906 <id>pre-integration-test</id>
907 <phase>pre-integration-test</phase>
908 <goals>
909 <goal>prepare-agent</goal>
910 </goals>
911 <configuration>
912 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
913 <!-- <append>true</append> -->
914 </configuration>
915 </execution>
916 <execution>
917 <goals>
918 <goal>merge</goal>
919 </goals>
920 <phase>post-integration-test</phase>
921 <configuration>
922 <fileSets>
923 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
924 <directory>${project.build.directory}/coverage-reports</directory>
925 <includes>
926 <include>*.exec</include>
927 </includes>
928 </fileSet>
929 </fileSets>
930 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
931 </configuration>
932 </execution>
933 </executions>
934 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700935
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100936 <!-- This plugin will be useful when we will have multi-modules project -->
937 <plugin>
938 <groupId>org.codehaus.mojo</groupId>
939 <artifactId>versions-maven-plugin</artifactId>
940 <version>1.3.1</version>
941 </plugin>
942 </plugins>
943 </build>
944 <profiles>
945 <profile>
946 <id>docker</id>
947 <properties>
948 <skip.staging.artifacts>true</skip.staging.artifacts>
949 <skip.docker.build>false</skip.docker.build>
950 <skip.docker.tag>false</skip.docker.tag>
951 <skip.docker.push>false</skip.docker.push>
952 </properties>
953 </profile>
954 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700955</project>