blob: e11e44e1a16db1807cd139d4891a46e8c01f1b81 [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)b4f7cb62017-11-16 13:27:22 +010069 <project.scm.id>git-server</project.scm.id>
70 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010071
72 <eelf.core.version>1.0.0</eelf.core.version>
73 <camel.version>2.20.1</camel.version>
74 <springboot.version>1.5.9.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>
88 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070089
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010090 <distributionManagement>
91 <repository>
92 <id>ecomp-releases</id>
93 <name>Clamp Release Repository</name>
94 <url>https://nexus.onap.org/content/repositories/releases/</url>
95 </repository>
96 <snapshotRepository>
97 <id>ecomp-snapshots</id>
98 <name>Clamp Snapshot Repository</name>
99 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
100 </snapshotRepository>
101 <site>
102 <id>ecomp-site</id>
103 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
104 </site>
105 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700106
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100107 <repositories>
108 <repository>
109 <id>central</id>
110 <name>Maven 2 repository 2</name>
111 <url>http://repo2.maven.org/maven2/</url>
112 </repository>
113 <repository>
114 <id>ecomp-releases</id>
115 <name>ONAP Release Repository</name>
116 <url>https://nexus.onap.org/content/repositories/releases/</url>
117 </repository>
118 <repository>
119 <id>ecomp-staging</id>
120 <name>ONAP Staging Repository</name>
121 <url>https://nexus.onap.org/content/repositories/staging/</url>
122 </repository>
123 <repository>
124 <id>ecomp-snapshots</id>
125 <name>ONAP Snapshot Repository</name>
126 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
127 <snapshots>
128 <enabled>true</enabled>
129 </snapshots>
130 <releases>
131 <enabled>false</enabled>
132 </releases>
133 </repository>
134 <repository>
135 <id>spring-repo</id>
136 <name>Spring repo</name>
137 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
138 </repository>
139 <repository>
140 <id>repository.jboss.org-public</id>
141 <name>JBoss.org Maven repository</name>
142 <url>https://repository.jboss.org/nexus/content/groups/public</url>
143 </repository>
144 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700145
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100146 <dependencyManagement>
147 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100148 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100149 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100150 <groupId>org.springframework.boot</groupId>
151 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100152 <version>${springboot.version}</version>
153 <type>pom</type>
154 <scope>import</scope>
155 </dependency>
156 <!-- Camunda BOM -->
157 <dependency>
158 <groupId>org.camunda.bpm</groupId>
159 <artifactId>camunda-bom</artifactId>
160 <version>7.6.0</version>
161 <scope>import</scope>
162 <type>pom</type>
163 </dependency>
164 <!-- Camel BOM -->
165 <dependency>
166 <groupId>org.apache.camel</groupId>
167 <artifactId>camel-spring-boot-dependencies</artifactId>
168 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100169 <type>pom</type>
170 <scope>import</scope>
171 </dependency>
172 </dependencies>
173 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700174
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100175 <dependencies>
176 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100177 <groupId>com.att.eelf</groupId>
178 <artifactId>eelf-core</artifactId>
179 <version>${eelf.core.version}</version>
180 </dependency>
181 <!-- For CAMEL -->
182 <dependency>
183 <groupId>org.apache.camel</groupId>
184 <artifactId>camel-spring-boot-starter</artifactId>
185
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100186 </dependency>
187 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100188 <groupId>org.apache.camel</groupId>
189 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100190 </dependency>
191 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100192 <groupId>org.apache.camel</groupId>
193 <artifactId>camel-cxf-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100194 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100195 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100196 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100197 <groupId>org.springframework.boot</groupId>
198 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100199 </dependency>
200 <dependency>
201 <groupId>org.springframework.boot</groupId>
202 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100203 </dependency>
204 <dependency>
205 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100206 <artifactId>spring-boot-starter-jersey</artifactId>
207 </dependency>
208 <dependency>
209 <groupId>org.springframework</groupId>
210 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100211 </dependency>
212 <dependency>
213 <groupId>org.springframework.boot</groupId>
214 <artifactId>spring-boot-starter-security</artifactId>
215 </dependency>
216 <dependency>
217 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100218 <artifactId>spring-boot-starter-actuator</artifactId>
219 </dependency>
220 <dependency>
221 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100222 <artifactId>spring-boot-starter-test</artifactId>
223 <scope>test</scope>
224 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100225
226 <!-- For CAmunda -->
227 <dependency>
228 <groupId>org.camunda.bpm.extension.springboot</groupId>
229 <artifactId>camunda-bpm-spring-boot-starter</artifactId>
230 <version>2.0.0</version>
231 </dependency>
232 <dependency>
233 <groupId>org.camunda.bpm.extension.springboot</groupId>
234 <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
235 <version>2.0.0</version>
236 </dependency>
237 <dependency>
238 <groupId>commons-io</groupId>
239 <artifactId>commons-io</artifactId>
240 <version>2.6</version>
241 </dependency>
242 <dependency>
243 <groupId>com.googlecode.json-simple</groupId>
244 <artifactId>json-simple</artifactId>
245 </dependency>
246 <dependency>
247 <groupId>org.apache.commons</groupId>
248 <artifactId>commons-vfs2</artifactId>
249 <version>2.0</version>
250 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100251 <dependency>
252 <groupId>joda-time</groupId>
253 <artifactId>joda-time</artifactId>
254 </dependency>
255 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100256 <groupId>org.slf4j</groupId>
257 <artifactId>slf4j-api</artifactId>
258 </dependency>
259 <dependency>
260 <groupId>javax.ws.rs</groupId>
261 <artifactId>javax.ws.rs-api</artifactId>
262 <version>2.0</version>
263 </dependency>
264 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100265 <groupId>junit</groupId>
266 <artifactId>junit</artifactId>
267 </dependency>
268 <dependency>
269 <groupId>org.mockito</groupId>
270 <artifactId>mockito-all</artifactId>
271 <version>1.9.5</version>
272 </dependency>
273 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100274 <groupId>com.fasterxml.jackson.core</groupId>
275 <artifactId>jackson-core</artifactId>
276 </dependency>
277 <dependency>
278 <groupId>com.fasterxml.jackson.core</groupId>
279 <artifactId>jackson-databind</artifactId>
280 </dependency>
281 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100282 <groupId>javax.transaction</groupId>
283 <artifactId>jta</artifactId>
284 <version>1.1</version>
285 </dependency>
286 <dependency>
287 <groupId>javax.persistence</groupId>
288 <artifactId>persistence-api</artifactId>
289 <version>1.0.2</version>
290 </dependency>
291 <dependency>
292 <groupId>org.hibernate</groupId>
293 <artifactId>hibernate-annotations</artifactId>
294 <version>3.5.6-Final</version>
295 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100296 <!-- <dependency> -->
297 <!-- <groupId>org.apache.geronimo.specs</groupId> -->
298 <!-- <artifactId>geronimo-jpa_2.0_spec</artifactId> -->
299 <!-- <version>1.1</version> -->
300 <!-- </dependency> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100301 <dependency>
302 <groupId>dom4j</groupId>
303 <artifactId>dom4j</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100304 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700305
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100306 <dependency>
307 <groupId>org.onap.policy.engine</groupId>
308 <artifactId>PolicyEngineAPI</artifactId>
309 <version>1.1.0</version>
310 <exclusions>
311 <exclusion>
312 <artifactId>log4j</artifactId>
313 <groupId>log4j</groupId>
314 </exclusion>
315 <exclusion>
316 <groupId>org.slf4j</groupId>
317 <artifactId>slf4j-log4j12</artifactId>
318 </exclusion>
319 <exclusion>
320 <artifactId>apache-log4j-extras</artifactId>
321 <groupId>log4j</groupId>
322 </exclusion>
323 <exclusion>
324 <artifactId>jackson-databind</artifactId>
325 <groupId>com.fasterxml.jackson.core</groupId>
326 </exclusion>
327 <exclusion>
328 <groupId>mysql</groupId>
329 <artifactId>mysql-connector-java</artifactId>
330 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100331 <exclusion>
332 <groupId>commons-io</groupId>
333 <artifactId>commons-io</artifactId>
334 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100335 </exclusions>
336 </dependency>
337 <dependency>
338 <groupId>org.onap.policy.common</groupId>
339 <artifactId>ONAP-Logging</artifactId>
340 <version>1.1.0</version>
341 <exclusions>
342 <exclusion>
343 <artifactId>log4j</artifactId>
344 <groupId>log4j</groupId>
345 </exclusion>
346 <exclusion>
347 <groupId>org.slf4j</groupId>
348 <artifactId>slf4j-log4j12</artifactId>
349 </exclusion>
350 <exclusion>
351 <artifactId>apache-log4j-extras</artifactId>
352 <groupId>log4j</groupId>
353 </exclusion>
354 </exclusions>
355 </dependency>
356 <dependency>
357 <groupId>org.onap.policy.engine</groupId>
358 <artifactId>PolicyEngineUtils</artifactId>
359 <version>1.1.0</version>
360 <exclusions>
361 <exclusion>
362 <artifactId>log4j</artifactId>
363 <groupId>log4j</groupId>
364 </exclusion>
365 <exclusion>
366 <groupId>org.slf4j</groupId>
367 <artifactId>slf4j-log4j12</artifactId>
368 </exclusion>
369 <exclusion>
370 <artifactId>apache-log4j-extras</artifactId>
371 <groupId>log4j</groupId>
372 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100373 <exclusion>
374 <groupId>mysql</groupId>
375 <artifactId>mysql-connector-java</artifactId>
376 </exclusion>
377 <exclusion>
378 <groupId>org.mariadb.jdbc</groupId>
379 <artifactId>mariadb-java-client</artifactId>
380 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100381 </exclusions>
382 </dependency>
383 <dependency>
384 <groupId>org.onap.policy.drools-applications</groupId>
385 <artifactId>policy-yaml</artifactId>
386 <version>1.1.0</version>
387 <exclusions>
388 <exclusion>
389 <artifactId>log4j</artifactId>
390 <groupId>log4j</groupId>
391 </exclusion>
392 <exclusion>
393 <groupId>org.slf4j</groupId>
394 <artifactId>slf4j-log4j12</artifactId>
395 </exclusion>
396 <exclusion>
397 <artifactId>apache-log4j-extras</artifactId>
398 <groupId>log4j</groupId>
399 </exclusion>
400 </exclusions>
401 </dependency>
402 <dependency>
403 <groupId>org.onap.policy.drools-applications</groupId>
404 <artifactId>sdc</artifactId>
405 <version>1.1.0</version>
406 <exclusions>
407 <exclusion>
408 <artifactId>log4j</artifactId>
409 <groupId>log4j</groupId>
410 </exclusion>
411 <exclusion>
412 <groupId>org.slf4j</groupId>
413 <artifactId>slf4j-log4j12</artifactId>
414 </exclusion>
415 <exclusion>
416 <artifactId>apache-log4j-extras</artifactId>
417 <groupId>log4j</groupId>
418 </exclusion>
419 </exclusions>
420 </dependency>
421 <dependency>
422 <groupId>org.onap.policy.drools-applications</groupId>
423 <artifactId>aai</artifactId>
424 <version>1.1.0</version>
425 <exclusions>
426 <exclusion>
427 <artifactId>log4j</artifactId>
428 <groupId>log4j</groupId>
429 </exclusion>
430 <exclusion>
431 <groupId>org.slf4j</groupId>
432 <artifactId>slf4j-log4j12</artifactId>
433 </exclusion>
434 <exclusion>
435 <artifactId>apache-log4j-extras</artifactId>
436 <groupId>log4j</groupId>
437 </exclusion>
438 </exclusions>
439 </dependency>
440 <dependency>
441 <groupId>com.fasterxml.jackson.core</groupId>
442 <artifactId>jackson-databind</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100443 </dependency>
444 <dependency>
445 <groupId>com.fasterxml.jackson.dataformat</groupId>
446 <artifactId>jackson-dataformat-yaml</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100447 </dependency>
448 <dependency>
449 <groupId>org.apache.commons</groupId>
450 <artifactId>commons-csv</artifactId>
451 <version>1.3</version>
452 </dependency>
453 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100454 <groupId>com.sun.faces</groupId>
455 <artifactId>jsf-api</artifactId>
456 <version>2.1.7</version>
457 </dependency>
458 <dependency>
459 <groupId>com.sun.faces</groupId>
460 <artifactId>jsf-impl</artifactId>
461 <version>2.1.7</version>
462 </dependency>
463 <!-- Remove the MYSQL connector and replace it by Mariadb -->
464 <dependency>
465 <groupId>org.mariadb.jdbc</groupId>
466 <artifactId>mariadb-java-client</artifactId>
467 <version>2.1.1</version>
468 </dependency>
469 </dependencies>
ChrisC5e9feb22017-06-21 02:38:57 -0700470
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100471 <build>
472 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700473
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100474 <testResources>
475 <testResource>
476 <directory>src/test/resources</directory>
477 <excludes>
478 <exclude>**/*.jks</exclude>
479 </excludes>
480 <filtering>true</filtering>
481 </testResource>
482 <testResource>
483 <directory>src/test/resources/https</directory>
484 <includes>
485 <include>**.jks</include>
486 </includes>
487 <filtering>false</filtering>
488 <targetPath>https</targetPath>
489 </testResource>
490 </testResources>
491 <resources>
492 <resource>
493 <directory>src/main/resources</directory>
494 <filtering>true</filtering>
495 </resource>
496 <resource>
497 <directory>src/main/docker</directory>
498 <includes>
499 <include>**/*</include>
500 </includes>
501 <filtering>true</filtering>
502 </resource>
503 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700504
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100505 <plugins>
506 <plugin>
507 <groupId>org.codehaus.groovy.maven</groupId>
508 <artifactId>gmaven-plugin</artifactId>
509 <version>1.0</version>
510 <executions>
511 <execution>
512 <phase>validate</phase>
513 <goals>
514 <goal>execute</goal>
515 </goals>
516 <configuration>
517 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
518 </configuration>
519 </execution>
520 </executions>
521 </plugin>
522 <plugin>
523 <groupId>org.apache.maven.plugins</groupId>
524 <artifactId>maven-jar-plugin</artifactId>
525 <version>3.0.2</version>
526 <executions>
527 <execution>
528 <id>jar-with-only-classes</id>
529 <phase>package</phase>
530 <goals>
531 <goal>jar</goal>
532 </goals>
533 <configuration>
534 <classifier>classes</classifier>
535 <includes>
536 <include>org/**</include>
537 </includes>
538 </configuration>
539 </execution>
540 </executions>
541 </plugin>
542 <plugin>
543 <groupId>org.codehaus.mojo</groupId>
544 <artifactId>build-helper-maven-plugin</artifactId>
545 <version>3.0.0</version>
546 <executions>
547 <execution>
548 <goals>
549 <goal>attach-artifact</goal>
550 </goals>
551 <phase>package</phase>
552 <configuration>
553 <artifacts>
554 <artifact>
555 <file>${project.build.directory}/clamp-classes.jar</file>
556 <type>jar</type>
557 <classifier>classes</classifier>
558 </artifact>
559 </artifacts>
560 </configuration>
561 </execution>
562 </executions>
563 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700564
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100565 <plugin>
566 <groupId>org.springframework.boot</groupId>
567 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100568 <version>${springboot.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100569 <executions>
570 <execution>
571 <goals>
572 <goal>repackage</goal>
573 </goals>
574 <phase>package</phase>
575 </execution>
576 </executions>
577 </plugin>
578 <plugin>
579 <groupId>org.sonatype.plugins</groupId>
580 <artifactId>nexus-staging-maven-plugin</artifactId>
581 <version>1.6.7</version>
582 <extensions>true</extensions>
583 <configuration>
584 <nexusUrl>https://nexus.onap.org</nexusUrl>
585 <stagingProfileId>176c31dfe190a</stagingProfileId>
586 <serverId>ecomp-staging</serverId>
587 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
588 </configuration>
589 </plugin>
590 <plugin>
591 <groupId>com.spotify</groupId>
592 <artifactId>docker-maven-plugin</artifactId>
593 <version>1.0.0</version>
594 <configuration>
595 <imageName>onap/clamp</imageName>
596 <dockerDirectory>src/main/docker</dockerDirectory>
597 <serverId>docker-hub</serverId>
598 <imageTags>
599 <imageTag>latest</imageTag>
600 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
601 <imageTag>${project.docker.latesttag.version}</imageTag>
602 </imageTags>
603 <forceTags>true</forceTags>
604 <resources>
605 <resource>
606 <targetPath>/</targetPath>
607 <directory>${project.build.directory}</directory>
608 <include>${project.build.finalName}.jar</include>
609 </resource>
610 <resource>
611 <targetPath>/</targetPath>
612 <directory>${project.build.directory}</directory>
613 <include>etc/config/**</include>
614 </resource>
615 <resource>
616 <targetPath>/</targetPath>
617 <directory>${project.build.directory}</directory>
618 <include>etc/keystore/**</include>
619 </resource>
620 </resources>
621 </configuration>
622 <executions>
623 <execution>
624 <id>build-image</id>
625 <phase>package</phase>
626 <goals>
627 <goal>build</goal>
628 </goals>
629 <configuration>
630 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
631 <buildArgs>
632 <http_proxy>${env.HTTP_PROXY}</http_proxy>
633 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
634 </buildArgs>
635 </configuration>
636 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700637
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100638 <execution>
639 <id>tag-image-latest-timestamp</id>
640 <phase>package</phase>
641 <goals>
642 <goal>tag</goal>
643 </goals>
644 <configuration>
645 <image>onap/clamp</image>
646 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
647 <skipDockerTag>${skip.docker.push}</skipDockerTag>
648 </configuration>
649 </execution>
650 <execution>
651 <id>push-image-latest-timestamp</id>
652 <phase>deploy</phase>
653 <goals>
654 <goal>push</goal>
655 </goals>
656 <configuration>
657 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
658 <skipDockerPush>${skip.docker.push}</skipDockerPush>
659 </configuration>
660 </execution>
661 <execution>
662 <id>tag-image-latest</id>
663 <phase>package</phase>
664 <goals>
665 <goal>tag</goal>
666 </goals>
667 <configuration>
668 <image>onap/clamp</image>
669 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
670 <skipDockerTag>${skip.docker.push}</skipDockerTag>
671 </configuration>
672 </execution>
673 <execution>
674 <id>push-image-latest</id>
675 <phase>deploy</phase>
676 <goals>
677 <goal>push</goal>
678 </goals>
679 <configuration>
680 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
681 <skipDockerPush>${skip.docker.push}</skipDockerPush>
682 </configuration>
683 </execution>
684 <execution>
685 <id>tag-image</id>
686 <phase>package</phase>
687 <goals>
688 <goal>tag</goal>
689 </goals>
690 <configuration>
691 <image>onap/clamp</image>
692 <newName>${docker.push.registry}/onap/clamp:latest</newName>
693 <skipDockerTag>${skip.docker.push}</skipDockerTag>
694 </configuration>
695 </execution>
696 <execution>
697 <id>push-image</id>
698 <phase>deploy</phase>
699 <goals>
700 <goal>push</goal>
701 </goals>
702 <configuration>
703 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
704 <skipDockerPush>${skip.docker.push}</skipDockerPush>
705 </configuration>
706 </execution>
707 </executions>
708 </plugin>
709 <plugin>
710 <groupId>org.apache.maven.plugins</groupId>
711 <artifactId>maven-surefire-plugin</artifactId>
712 <version>2.19.1</version>
713 <configuration>
714 <forkCount>1</forkCount>
715 <reuseForks>false</reuseForks>
716 </configuration>
717 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200718
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100719 <plugin>
720 <groupId>org.apache.maven.plugins</groupId>
721 <artifactId>maven-failsafe-plugin</artifactId>
722 <version>2.16</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700723
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100724 <executions>
725 <execution>
726 <id>integration-tests</id>
727 <goals>
728 <goal>integration-test</goal>
729 <goal>verify</goal>
730 </goals>
731 <configuration>
732 <includes>
733 <include>**/*ItCase.java</include>
734 </includes>
735 <forkCount>1</forkCount>
736 <reuseForks>false</reuseForks>
737 </configuration>
738 </execution>
739 </executions>
ChrisC5e9feb22017-06-21 02:38:57 -0700740
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100741 </plugin>
742 <plugin>
743 <groupId>io.fabric8</groupId>
744 <artifactId>docker-maven-plugin</artifactId>
745 <version>0.16.5</version>
746 <configuration>
747 <verbose>true</verbose>
748 <apiVersion>1.23</apiVersion>
749 <images>
750 <image>
751 <name>mariadb:10.1.11</name>
752 <alias>mariadb</alias>
753 <run>
754 <env>
755 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
756 </env>
757 <hostname>mariadb</hostname>
758 <volumes>
759 <bind>
760 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
761 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
762 </bind>
763 </volumes>
764 <wait>
765 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
ChrisCae04cf32018-02-05 05:21:59 -0800766 <time>1200000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100767 </wait>
768 <ports>
769 <port>${docker.mariadb.port.host}:3306</port>
770 </ports>
771 </run>
772 </image>
773 </images>
774 <skip>${skipITs}</skip>
775 </configuration>
ChrisC5e9feb22017-06-21 02:38:57 -0700776
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100777 <executions>
778 <execution>
779 <id>mariadb-start-for-it</id>
780 <phase>pre-integration-test</phase>
781 <goals>
782 <goal>start</goal>
783 </goals>
784 <configuration>
785 <skip>${skipITs}</skip>
786 </configuration>
787 </execution>
788 <execution>
789 <id>mariadb-stop-for-it</id>
790 <phase>post-integration-test</phase>
791 <goals>
792 <goal>stop</goal>
793 </goals>
794 <configuration>
795 <skip>${skipITs}</skip>
796 </configuration>
797 </execution>
798 </executions>
799 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700800
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100801 <plugin>
802 <groupId>org.jacoco</groupId>
803 <artifactId>jacoco-maven-plugin</artifactId>
804 <version>0.7.7.201606060606</version>
805 <configuration>
806 <dumpOnExit>true</dumpOnExit>
807 <includes>
808 <include>org.onap.clamp.*</include>
809 </includes>
810 </configuration>
811 <executions>
812 <execution>
813 <id>pre-unit-test</id>
814 <goals>
815 <goal>prepare-agent</goal>
816 </goals>
817 <configuration>
818 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
819 <!-- <append>true</append> -->
820 </configuration>
821 </execution>
822 <execution>
823 <id>pre-integration-test</id>
824 <phase>pre-integration-test</phase>
825 <goals>
826 <goal>prepare-agent</goal>
827 </goals>
828 <configuration>
829 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
830 <!-- <append>true</append> -->
831 </configuration>
832 </execution>
833 <execution>
834 <goals>
835 <goal>merge</goal>
836 </goals>
837 <phase>post-integration-test</phase>
838 <configuration>
839 <fileSets>
840 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
841 <directory>${project.build.directory}/coverage-reports</directory>
842 <includes>
843 <include>*.exec</include>
844 </includes>
845 </fileSet>
846 </fileSets>
847 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
848 </configuration>
849 </execution>
850 </executions>
851 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700852
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100853 <!-- This plugin will be useful when we will have multi-modules project -->
854 <plugin>
855 <groupId>org.codehaus.mojo</groupId>
856 <artifactId>versions-maven-plugin</artifactId>
857 <version>1.3.1</version>
858 </plugin>
859 </plugins>
860 </build>
861 <profiles>
862 <profile>
863 <id>docker</id>
864 <properties>
865 <skip.staging.artifacts>true</skip.staging.artifacts>
866 <skip.docker.build>false</skip.docker.build>
867 <skip.docker.tag>false</skip.docker.tag>
868 <skip.docker.push>false</skip.docker.push>
869 </properties>
870 </profile>
871 </profiles>
ChrisC5e9feb22017-06-21 02:38:57 -0700872</project>