Merge changes from topic 'feature/sdc-controller'
[clamp.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP CLAMP
5   ================================================================================
6   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
7                               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
12
13   http://www.apache.org/licenses/LICENSE-2.0
14
15   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
25 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26                 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>
32
33                 <parent>
34                                 <groupId>org.onap.oparent</groupId>
35                                 <artifactId>oparent</artifactId>
36                                 <version>1.1.0</version>
37                 </parent>
38
39                 <description>
40            This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
41
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:
52                                 - 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
56
57                 </description>
58
59                 <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>
67
68                                 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
69                                 <docker.http-cache.port.host>2080</docker.http-cache.port.host>
70                                 <project.scm.id>git-server</project.scm.id>
71                                 <java.version>1.8</java.version>
72
73                                 <swagger.jaxrs2.version>2.0.0-rc4</swagger.jaxrs2.version>
74                                 <guava.version>20.0</guava.version>
75                                 <eelf.core.version>1.0.0</eelf.core.version>
76                                 <camel.version>2.20.1</camel.version>
77                                 <springboot.version>1.5.10.RELEASE</springboot.version>
78
79                                 <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>
86
87                                 <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>
91                                 <http.proxy></http.proxy>
92
93                 </properties>
94
95                 <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>
111
112                 <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>
150
151                 <dependencyManagement>
152                                 <dependencies>
153                                                 <!-- Spring Boot BOM -->
154                                                 <dependency>
155                                                                 <groupId>org.springframework.boot</groupId>
156                                                                 <artifactId>spring-boot-dependencies</artifactId>
157                                                                 <version>${springboot.version}</version>
158                                                                 <type>pom</type>
159                                                                 <scope>import</scope>
160                                                 </dependency>
161                                                 <!-- Camel BOM -->
162                                                 <dependency>
163                                                                 <groupId>org.apache.camel</groupId>
164                                                                 <artifactId>camel-spring-boot-dependencies</artifactId>
165                                                                 <version>${camel.version}</version>
166                                                                 <type>pom</type>
167                                                                 <scope>import</scope>
168                                                 </dependency>
169                                 </dependencies>
170                 </dependencyManagement>
171
172                 <dependencies>
173                                 <!-- 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>
184                                 <dependency>
185                                                 <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>
193                                 </dependency>
194                                 <dependency>
195                                                 <groupId>org.apache.camel</groupId>
196                                                 <artifactId>camel-jaxb-starter</artifactId>
197                                 </dependency>
198                                 <dependency>
199                                                 <groupId>org.apache.camel</groupId>
200                                                 <artifactId>camel-servlet-starter</artifactId>
201                                 </dependency>
202                                 <!-- Spring famework -->
203                                 <dependency>
204                                                 <groupId>org.springframework.boot</groupId>
205                                                 <artifactId>spring-boot-starter-web</artifactId>
206                                 </dependency>
207                                 <dependency>
208                                                 <groupId>org.springframework.boot</groupId>
209                                                 <artifactId>spring-boot-starter-tomcat</artifactId>
210                                 </dependency>
211                                 <dependency>
212                                                 <groupId>com.paypal.springboot</groupId>
213                                                 <artifactId>resteasy-spring-boot-starter</artifactId>
214                                                 <version>2.3.4-RELEASE</version>
215                                 </dependency>
216                                 <dependency>
217                                                 <groupId>org.springframework</groupId>
218                                                 <artifactId>spring-jdbc</artifactId>
219                                 </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>
226                                                 <artifactId>spring-boot-starter-actuator</artifactId>
227                                 </dependency>
228                                 <dependency>
229                                                 <groupId>org.springframework.boot</groupId>
230                                                 <artifactId>spring-boot-starter-test</artifactId>
231                                                 <scope>test</scope>
232                                                 <exclusions>
233                                                                 <exclusion>
234                                                                                 <groupId>com.vaadin.external.google</groupId>
235                                                                                 <artifactId>android-json</artifactId>
236                                                                 </exclusion>
237                                                 </exclusions>
238                                 </dependency>
239                                 <!-- Others dependencies -->
240                                 <dependency>
241                                                 <groupId>ch.qos.logback</groupId>
242                                                 <artifactId>logback-core</artifactId>
243                                                 <version>1.2.3</version>
244                                 </dependency>
245                                 <dependency>
246                                                 <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>
254                                 </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>
267                                                 <version>2.2</version>
268                                 </dependency>
269                                 <dependency>
270                                                 <groupId>joda-time</groupId>
271                                                 <artifactId>joda-time</artifactId>
272                                 </dependency>
273                                 <dependency>
274                                                 <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>
283                                                 <groupId>junit</groupId>
284                                                 <artifactId>junit</artifactId>
285                                 </dependency>
286                                 <dependency>
287                                                 <groupId>com.fasterxml.jackson.core</groupId>
288                                                 <artifactId>jackson-core</artifactId>
289                                 </dependency>
290                                 <dependency>
291                                                 <groupId>javax.transaction</groupId>
292                                                 <artifactId>jta</artifactId>
293                                                 <version>1.1</version>
294                                 </dependency>
295                                 <dependency>
296                                                 <groupId>javax.persistence</groupId>
297                                                 <artifactId>persistence-api</artifactId>
298                                                 <version>1.0.2</version>
299                                 </dependency>
300                                 <dependency>
301                                                 <groupId>org.hibernate</groupId>
302                                                 <artifactId>hibernate-annotations</artifactId>
303                                                 <version>3.5.6-Final</version>
304                                 </dependency>
305                                 <dependency>
306                                                 <groupId>dom4j</groupId>
307                                                 <artifactId>dom4j</artifactId>
308                                 </dependency>
309
310                                 <dependency>
311                                                 <groupId>org.onap.policy.engine</groupId>
312                                                 <artifactId>PolicyEngineAPI</artifactId>
313                                                 <version>1.1.0</version>
314                                                 <exclusions>
315                                                                 <exclusion>
316                                                                                 <groupId>com.google.guava</groupId>
317                                                                                 <artifactId>guava</artifactId>
318                                                                 </exclusion>
319                                                                 <exclusion>
320                                                                                 <artifactId>log4j</artifactId>
321                                                                                 <groupId>log4j</groupId>
322                                                                 </exclusion>
323                                                                 <exclusion>
324                                                                                 <groupId>org.slf4j</groupId>
325                                                                                 <artifactId>slf4j-log4j12</artifactId>
326                                                                 </exclusion>
327                                                                 <exclusion>
328                                                                                 <artifactId>apache-log4j-extras</artifactId>
329                                                                                 <groupId>log4j</groupId>
330                                                                 </exclusion>
331                                                                 <exclusion>
332                                                                                 <artifactId>jackson-databind</artifactId>
333                                                                                 <groupId>com.fasterxml.jackson.core</groupId>
334                                                                 </exclusion>
335                                                                 <exclusion>
336                                                                                 <groupId>mysql</groupId>
337                                                                                 <artifactId>mysql-connector-java</artifactId>
338                                                                 </exclusion>
339                                                                 <exclusion>
340                                                                                 <groupId>commons-io</groupId>
341                                                                                 <artifactId>commons-io</artifactId>
342                                                                 </exclusion>
343                                                 </exclusions>
344                                 </dependency>
345                                 <dependency>
346                                                 <groupId>org.onap.policy.common</groupId>
347                                                 <artifactId>ONAP-Logging</artifactId>
348                                                 <version>1.1.0</version>
349                                                 <exclusions>
350                                                                 <exclusion>
351                                                                                 <artifactId>log4j</artifactId>
352                                                                                 <groupId>log4j</groupId>
353                                                                 </exclusion>
354                                                                 <exclusion>
355                                                                                 <groupId>org.slf4j</groupId>
356                                                                                 <artifactId>slf4j-log4j12</artifactId>
357                                                                 </exclusion>
358                                                                 <exclusion>
359                                                                                 <artifactId>apache-log4j-extras</artifactId>
360                                                                                 <groupId>log4j</groupId>
361                                                                 </exclusion>
362                                                 </exclusions>
363                                 </dependency>
364                                 <dependency>
365                                                 <groupId>org.onap.policy.engine</groupId>
366                                                 <artifactId>PolicyEngineUtils</artifactId>
367                                                 <version>1.1.0</version>
368                                                 <exclusions>
369                                                                 <exclusion>
370                                                                                 <artifactId>log4j</artifactId>
371                                                                                 <groupId>log4j</groupId>
372                                                                 </exclusion>
373                                                                 <exclusion>
374                                                                                 <groupId>org.slf4j</groupId>
375                                                                                 <artifactId>slf4j-log4j12</artifactId>
376                                                                 </exclusion>
377                                                                 <exclusion>
378                                                                                 <artifactId>apache-log4j-extras</artifactId>
379                                                                                 <groupId>log4j</groupId>
380                                                                 </exclusion>
381                                                                 <exclusion>
382                                                                                 <groupId>mysql</groupId>
383                                                                                 <artifactId>mysql-connector-java</artifactId>
384                                                                 </exclusion>
385                                                                 <exclusion>
386                                                                                 <groupId>org.mariadb.jdbc</groupId>
387                                                                                 <artifactId>mariadb-java-client</artifactId>
388                                                                 </exclusion>
389                                                                 <exclusion>
390                                                                                 <groupId>com.att.nsa</groupId>
391                                                                                 <artifactId>dmaapClient</artifactId>
392                                                                 </exclusion>
393                                                 </exclusions>
394                                 </dependency>
395                                 <dependency>
396                                                 <groupId>org.onap.policy.drools-applications</groupId>
397                                                 <artifactId>policy-yaml</artifactId>
398                                                 <version>1.1.0</version>
399                                                 <exclusions>
400                                                                 <exclusion>
401                                                                                 <artifactId>log4j</artifactId>
402                                                                                 <groupId>log4j</groupId>
403                                                                 </exclusion>
404                                                                 <exclusion>
405                                                                                 <groupId>org.slf4j</groupId>
406                                                                                 <artifactId>slf4j-log4j12</artifactId>
407                                                                 </exclusion>
408                                                                 <exclusion>
409                                                                                 <artifactId>apache-log4j-extras</artifactId>
410                                                                                 <groupId>log4j</groupId>
411                                                                 </exclusion>
412                                                 </exclusions>
413                                 </dependency>
414                                 <dependency>
415                                                 <groupId>org.onap.policy.drools-applications</groupId>
416                                                 <artifactId>sdc</artifactId>
417                                                 <version>1.1.0</version>
418                                                 <exclusions>
419                                                                 <exclusion>
420                                                                                 <artifactId>log4j</artifactId>
421                                                                                 <groupId>log4j</groupId>
422                                                                 </exclusion>
423                                                                 <exclusion>
424                                                                                 <groupId>org.slf4j</groupId>
425                                                                                 <artifactId>slf4j-log4j12</artifactId>
426                                                                 </exclusion>
427                                                                 <exclusion>
428                                                                                 <artifactId>apache-log4j-extras</artifactId>
429                                                                                 <groupId>log4j</groupId>
430                                                                 </exclusion>
431                                                 </exclusions>
432                                 </dependency>
433                                 <dependency>
434                                                 <groupId>org.onap.policy.drools-applications</groupId>
435                                                 <artifactId>aai</artifactId>
436                                                 <version>1.1.0</version>
437                                                 <exclusions>
438                                                                 <exclusion>
439                                                                                 <artifactId>log4j</artifactId>
440                                                                                 <groupId>log4j</groupId>
441                                                                 </exclusion>
442                                                                 <exclusion>
443                                                                                 <groupId>org.slf4j</groupId>
444                                                                                 <artifactId>slf4j-log4j12</artifactId>
445                                                                 </exclusion>
446                                                                 <exclusion>
447                                                                                 <artifactId>apache-log4j-extras</artifactId>
448                                                                                 <groupId>log4j</groupId>
449                                                                 </exclusion>
450                                                 </exclusions>
451                                 </dependency>
452                                 <dependency>
453                                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
454                                                 <artifactId>jackson-dataformat-yaml</artifactId>
455                                 </dependency>
456                                 <dependency>
457                                                 <groupId>org.apache.commons</groupId>
458                                                 <artifactId>commons-csv</artifactId>
459                                                 <version>1.3</version>
460                                 </dependency>
461                                 <dependency>
462                                                 <groupId>com.sun.faces</groupId>
463                                                 <artifactId>jsf-api</artifactId>
464                                                 <version>2.1.7</version>
465                                 </dependency>
466                                 <dependency>
467                                                 <groupId>com.sun.faces</groupId>
468                                                 <artifactId>jsf-impl</artifactId>
469                                                 <version>2.1.7</version>
470                                 </dependency>
471                                 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
472                                 <dependency>
473                                         <groupId>org.codehaus.plexus</groupId>
474                                         <artifactId>plexus-utils</artifactId>
475                                         <version>3.0.24</version>
476                                 </dependency>
477                                 <dependency>
478                                         <groupId>commons-fileupload</groupId>
479                                         <artifactId>commons-fileupload</artifactId>
480                                         <version>1.3.3</version>
481                                 </dependency>
482                                 <dependency>
483                                         <groupId>org.jboss.spec.javax.ws.rs</groupId>
484                                         <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
485                                         <version>1.0.1.Final</version>
486                                 </dependency>
487                                 <dependency>
488                                                 <groupId>com.fasterxml.jackson.core</groupId>
489                                                 <artifactId>jackson-databind</artifactId>
490                                                 <version>2.8.11.1</version>
491                                 </dependency>
492                                 <!-- Remove the MYSQL connector and replace it by Mariadb -->
493                                 <dependency>
494                                                 <groupId>org.mariadb.jdbc</groupId>
495                                                 <artifactId>mariadb-java-client</artifactId>
496                                                 <version>2.2.1</version>
497                                 </dependency>
498                                 <!-- For SDC Controller -->
499                                 <dependency>
500                                                 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
501                                                 <artifactId>sdc-distribution-client</artifactId>
502                                                 <version>1.2.2</version>
503                                 </dependency>
504                                 <dependency>
505                                         <groupId>org.openecomp.sdc.sdc-tosca</groupId>
506                                         <artifactId>sdc-tosca</artifactId>
507                                         <version>1.2.2</version>
508                                 </dependency>
509                                 
510                                 
511                 </dependencies>
512
513                 <build>
514                                 <finalName>clamp</finalName>
515
516                                 <testResources>
517                                                 <testResource>
518                                                                 <directory>src/test/resources</directory>
519                                                                 <excludes>
520                                                                                 <exclude>**/*.jks</exclude>
521                                                                                 <exclude>**/*.csar</exclude>
522                                                                 </excludes>
523                                                                 <filtering>true</filtering>
524                                                 </testResource>
525                                                 <testResource>
526                                                                 <directory>src/test/resources/https</directory>
527                                                                 <includes>
528                                                                                 <include>**.jks</include>
529                                                                 </includes>
530                                                                 <filtering>false</filtering>
531                                                                 <targetPath>https</targetPath>
532                                                 </testResource>
533                                           <testResource>
534                                                                 <directory>src/test/resources/example/sdc</directory>
535                                                                 <includes>
536                                                                                 <include>**.csar</include>
537                                                                 </includes>
538                                                                 <filtering>false</filtering>
539                                                                 <targetPath>example/sdc</targetPath>
540                                                 </testResource>
541                                 </testResources>
542                                 <resources>
543                                                 <resource>
544                                                                 <directory>src/main/resources</directory>
545                                                                 <filtering>true</filtering>
546                                                 </resource>
547                                                 <resource>
548                                                                 <directory>src/main/docker</directory>
549                                                                 <includes>
550                                                                                 <include>**/*</include>
551                                                                 </includes>
552                                                                 <filtering>true</filtering>
553                                                 </resource>
554                                 </resources>
555
556                                 <plugins>
557                                                 <plugin>
558                                                                 <groupId>org.codehaus.groovy.maven</groupId>
559                                                                 <artifactId>gmaven-plugin</artifactId>
560                                                                 <version>1.0</version>
561                                                                 <executions>
562                                                                                 <execution>
563                                                                                                 <phase>validate</phase>
564                                                                                                 <goals>
565                                                                                                                 <goal>execute</goal>
566                                                                                                 </goals>
567                                                                                                 <configuration>
568                                                                                                                 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
569                                                                                                 </configuration>
570                                                                                 </execution>
571                                                                 </executions>
572                                                 </plugin>
573                                                 <plugin>
574                                                                 <groupId>org.apache.maven.plugins</groupId>
575                                                                 <artifactId>maven-jar-plugin</artifactId>
576                                                                 <version>3.0.2</version>
577                                                                 <executions>
578                                                                                 <execution>
579                                                                                                 <id>jar-with-only-classes</id>
580                                                                                                 <phase>package</phase>
581                                                                                                 <goals>
582                                                                                                                 <goal>jar</goal>
583                                                                                                 </goals>
584                                                                                                 <configuration>
585                                                                                                                 <classifier>classes</classifier>
586                                                                                                                 <includes>
587                                                                                                                                 <include>org/**</include>
588                                                                                                                 </includes>
589                                                                                                 </configuration>
590                                                                                 </execution>
591                                                                 </executions>
592                                                 </plugin>
593                                                 <plugin>
594                                                                 <groupId>org.codehaus.mojo</groupId>
595                                                                 <artifactId>build-helper-maven-plugin</artifactId>
596                                                                 <version>3.0.0</version>
597                                                                 <executions>
598                                                                                 <execution>
599                                                                                                 <goals>
600                                                                                                                 <goal>attach-artifact</goal>
601                                                                                                 </goals>
602                                                                                                 <phase>package</phase>
603                                                                                                 <configuration>
604                                                                                                                 <artifacts>
605                                                                                                                                 <artifact>
606                                                                                                                                                 <file>${project.build.directory}/clamp-classes.jar</file>
607                                                                                                                                                 <type>jar</type>
608                                                                                                                                                 <classifier>classes</classifier>
609                                                                                                                                 </artifact>
610                                                                                                                 </artifacts>
611                                                                                                 </configuration>
612                                                                                 </execution>
613                                                                 </executions>
614                                                 </plugin>
615
616                                                 <plugin>
617                                                                 <groupId>org.springframework.boot</groupId>
618                                                                 <artifactId>spring-boot-maven-plugin</artifactId>
619                                                                 <version>${springboot.version}</version>
620                                                                 <executions>
621                                                                                 <execution>
622                                                                                                 <goals>
623                                                                                                                 <goal>repackage</goal>
624                                                                                                 </goals>
625                                                                                                 <phase>package</phase>
626                                                                                 </execution>
627                                                                 </executions>
628                                                 </plugin>
629                                                 <plugin>
630                                                                 <groupId>org.sonatype.plugins</groupId>
631                                                                 <artifactId>nexus-staging-maven-plugin</artifactId>
632                                                                 <version>1.6.7</version>
633                                                                 <extensions>true</extensions>
634                                                                 <configuration>
635                                                                                 <nexusUrl>https://nexus.onap.org</nexusUrl>
636                                                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
637                                                                                 <serverId>ecomp-staging</serverId>
638                                                                                 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
639                                                                 </configuration>
640                                                 </plugin>
641                                                 <plugin>
642                                                                 <groupId>com.spotify</groupId>
643                                                                 <artifactId>docker-maven-plugin</artifactId>
644                                                                 <version>1.0.0</version>
645                                                                 <configuration>
646                                                                                 <imageName>onap/clamp</imageName>
647                                                                                 <dockerDirectory>src/main/docker</dockerDirectory>
648                                                                                 <serverId>docker-hub</serverId>
649                                                                                 <imageTags>
650                                                                                                 <imageTag>latest</imageTag>
651                                                                                                 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
652                                                                                                 <imageTag>${project.docker.latesttag.version}</imageTag>
653                                                                                 </imageTags>
654                                                                                 <forceTags>true</forceTags>
655                                                                                 <resources>
656                                                                                                 <resource>
657                                                                                                                 <targetPath>/</targetPath>
658                                                                                                                 <directory>${project.build.directory}</directory>
659                                                                                                                 <include>${project.build.finalName}.jar</include>
660                                                                                                 </resource>
661                                                                                                 <resource>
662                                                                                                                 <targetPath>/</targetPath>
663                                                                                                                 <directory>${project.build.directory}</directory>
664                                                                                                                 <include>etc/config/**</include>
665                                                                                                 </resource>
666                                                                                                 <resource>
667                                                                                                                 <targetPath>/</targetPath>
668                                                                                                                 <directory>${project.build.directory}</directory>
669                                                                                                                 <include>etc/keystore/**</include>
670                                                                                                 </resource>
671                                                                                 </resources>
672                                                                 </configuration>
673                                                                 <executions>
674                                                                                 <execution>
675                                                                                                 <id>build-image</id>
676                                                                                                 <phase>package</phase>
677                                                                                                 <goals>
678                                                                                                                 <goal>build</goal>
679                                                                                                 </goals>
680                                                                                                 <configuration>
681                                                                                                                 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
682                                                                                                                 <buildArgs>
683                                                                                                                                 <http_proxy>${env.HTTP_PROXY}</http_proxy>
684                                                                                                                                 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
685                                                                                                                 </buildArgs>
686                                                                                                 </configuration>
687                                                                                 </execution>
688
689                                                                                 <execution>
690                                                                                                 <id>tag-image-latest-timestamp</id>
691                                                                                                 <phase>package</phase>
692                                                                                                 <goals>
693                                                                                                                 <goal>tag</goal>
694                                                                                                 </goals>
695                                                                                                 <configuration>
696                                                                                                                 <image>onap/clamp</image>
697                                                                                                                 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName>
698                                                                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
699                                                                                                 </configuration>
700                                                                                 </execution>
701                                                                                 <execution>
702                                                                                                 <id>push-image-latest-timestamp</id>
703                                                                                                 <phase>deploy</phase>
704                                                                                                 <goals>
705                                                                                                                 <goal>push</goal>
706                                                                                                 </goals>
707                                                                                                 <configuration>
708                                                                                                                 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName>
709                                                                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
710                                                                                                 </configuration>
711                                                                                 </execution>
712                                                                                 <execution>
713                                                                                                 <id>tag-image-latest</id>
714                                                                                                 <phase>package</phase>
715                                                                                                 <goals>
716                                                                                                                 <goal>tag</goal>
717                                                                                                 </goals>
718                                                                                                 <configuration>
719                                                                                                                 <image>onap/clamp</image>
720                                                                                                                 <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName>
721                                                                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
722                                                                                                 </configuration>
723                                                                                 </execution>
724                                                                                 <execution>
725                                                                                                 <id>push-image-latest</id>
726                                                                                                 <phase>deploy</phase>
727                                                                                                 <goals>
728                                                                                                                 <goal>push</goal>
729                                                                                                 </goals>
730                                                                                                 <configuration>
731                                                                                                                 <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName>
732                                                                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
733                                                                                                 </configuration>
734                                                                                 </execution>
735                                                                                 <execution>
736                                                                                                 <id>tag-image</id>
737                                                                                                 <phase>package</phase>
738                                                                                                 <goals>
739                                                                                                                 <goal>tag</goal>
740                                                                                                 </goals>
741                                                                                                 <configuration>
742                                                                                                                 <image>onap/clamp</image>
743                                                                                                                 <newName>${docker.push.registry}/onap/clamp:latest</newName>
744                                                                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
745                                                                                                 </configuration>
746                                                                                 </execution>
747                                                                                 <execution>
748                                                                                                 <id>push-image</id>
749                                                                                                 <phase>deploy</phase>
750                                                                                                 <goals>
751                                                                                                                 <goal>push</goal>
752                                                                                                 </goals>
753                                                                                                 <configuration>
754                                                                                                                 <imageName>${docker.push.registry}/onap/clamp:latest</imageName>
755                                                                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
756                                                                                                 </configuration>
757                                                                                 </execution>
758                                                                 </executions>
759                                                 </plugin>
760                                                 <plugin>
761                                                                 <groupId>org.apache.maven.plugins</groupId>
762                                                                 <artifactId>maven-surefire-plugin</artifactId>
763                                                                 <version>2.19.1</version>
764                                                                 <configuration>
765                                                                                 <forkCount>1</forkCount>
766                                                                                 <reuseForks>false</reuseForks>
767                                                                 </configuration>
768                                                 </plugin>
769
770                                                 <plugin>
771                                                                 <groupId>org.apache.maven.plugins</groupId>
772                                                                 <artifactId>maven-failsafe-plugin</artifactId>
773                                                                 <version>2.16</version>
774
775                                                                 <executions>
776                                                                                 <execution>
777                                                                                                 <id>integration-tests</id>
778                                                                                                 <goals>
779                                                                                                                 <goal>integration-test</goal>
780                                                                                                                 <goal>verify</goal>
781                                                                                                 </goals>
782                                                                                                 <configuration>
783                                                                                                                 <includes>
784                                                                                                                                 <include>**/*ItCase.java</include>
785                                                                                                                 </includes>
786                                                                                                                 <forkCount>1</forkCount>
787                                                                                                                 <reuseForks>false</reuseForks>
788                                                                                                 </configuration>
789                                                                                 </execution>
790                                                                 </executions>
791
792                                                 </plugin>
793                                                 <plugin>
794                                                                 <groupId>io.fabric8</groupId>
795                                                                 <artifactId>docker-maven-plugin</artifactId>
796                                                                 <version>0.16.5</version>
797                                                                 <configuration>
798                                                                                 <verbose>true</verbose>
799                                                                                 <apiVersion>1.23</apiVersion>
800                                                                                 <images>
801                                                                                                 <image>
802                                                                                                                 <name>mariadb:10.1.11</name>
803                                                                                                                 <alias>mariadb</alias>
804                                                                                                                 <run>
805                                                                                                                                 <env>
806                                                                                                                                                 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
807                                                                                                                                 </env>
808                                                                                                                                 <hostname>mariadb</hostname>
809                                                                                                                                 <volumes>
810                                                                                                                                                 <bind>
811                                                                                                                                                                 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
812                                                                                                                                                                 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
813                                                                                                                                                 </bind>
814                                                                                                                                 </volumes>
815                                                                                                                                 <wait>
816                                                                                                                                                 <log>socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution</log>
817                                                                                                                                                 <time>600000</time>
818                                                                                                                                 </wait>
819                                                                                                                                 <ports>
820                                                                                                                                                 <port>${docker.mariadb.port.host}:3306</port>
821                                                                                                                                 </ports>
822                                                                                                                 </run>
823                                                                                                 </image>
824                                                                                                 <image>
825                                                                                                                 <name>python:2-slim</name>
826                                                                                                                 <alias>python</alias>
827                                                                                                                 <run>
828                                                                                                                                 <hostname>python</hostname>
829                                                                                                                                 <volumes>
830                                                                                                                                                 <bind>
831                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
832                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/sdc-example/:/usr/src/http-cache-app/data-cache</volume>
833                                                                                                                                                 </bind>
834                                                                                                                                 </volumes>
835                                                                                                                                 <wait>
836                                                                                                                                                 <tcp>
837                                                                                                                                                                 <ports>
838                                                                                                                                                                                 <port>8080</port>
839                                                                                                                                                                 </ports>
840                                                                                                                                                                 <mode>direct</mode>
841                                                                                                                                                 </tcp>
842                                                                                                                                                 <time>120000</time>
843                                                                                                                                 </wait>
844                                                                                                                                 <ports>
845                                                                                                                                                 <port>${docker.http-cache.port.host}:8080</port>
846                                                                                                                                 </ports>
847                                                                                                                                 <workingDir>/usr/src/http-cache-app</workingDir>
848                                                                                                                                 <cmd>
849                                                                                                                                                 <shell>./start_http_cache.sh ${http.proxy}</shell>
850                                                                                                                                 </cmd>
851                                                                                                                 </run>
852                                                                                                 </image>
853                                                                                 </images>
854                                                                                 <skip>${skipITs}</skip>
855                                                                 </configuration>
856
857                                                                 <executions>
858                                                                                 <execution>
859                                                                                                 <id>docker-start-for-it</id>
860                                                                                                 <phase>pre-integration-test</phase>
861                                                                                                 <goals>
862                                                                                                                 <goal>start</goal>
863                                                                                                 </goals>
864                                                                                                 <configuration>
865                                                                                                                 <skip>${skipITs}</skip>
866                                                                                                 </configuration>
867                                                                                 </execution>
868                                                                                 <execution>
869                                                                                                 <id>docker-stop-for-it</id>
870                                                                                                 <phase>post-integration-test</phase>
871                                                                                                 <goals>
872                                                                                                                 <goal>stop</goal>
873                                                                                                 </goals>
874                                                                                                 <configuration>
875                                                                                                                 <skip>${skipITs}</skip>
876                                                                                                 </configuration>
877                                                                                 </execution>
878                                                                 </executions>
879                                                 </plugin>
880
881                                                 <plugin>
882                                                                 <groupId>org.jacoco</groupId>
883                                                                 <artifactId>jacoco-maven-plugin</artifactId>
884                                                                 <version>0.7.7.201606060606</version>
885                                                                 <configuration>
886                                                                                 <dumpOnExit>true</dumpOnExit>
887                                                                                 <includes>
888                                                                                                 <include>org.onap.clamp.*</include>
889                                                                                 </includes>
890                                                                 </configuration>
891                                                                 <executions>
892                                                                                 <execution>
893                                                                                                 <id>pre-unit-test</id>
894                                                                                                 <goals>
895                                                                                                                 <goal>prepare-agent</goal>
896                                                                                                 </goals>
897                                                                                                 <configuration>
898                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
899                                                                                                                 <!-- <append>true</append> -->
900                                                                                                 </configuration>
901                                                                                 </execution>
902                                                                                 <execution>
903                                                                                                 <id>pre-integration-test</id>
904                                                                                                 <phase>pre-integration-test</phase>
905                                                                                                 <goals>
906                                                                                                                 <goal>prepare-agent</goal>
907                                                                                                 </goals>
908                                                                                                 <configuration>
909                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
910                                                                                                                 <!-- <append>true</append> -->
911                                                                                                 </configuration>
912                                                                                 </execution>
913                                                                                 <execution>
914                                                                                                 <goals>
915                                                                                                                 <goal>merge</goal>
916                                                                                                 </goals>
917                                                                                                 <phase>post-integration-test</phase>
918                                                                                                 <configuration>
919                                                                                                                 <fileSets>
920                                                                                                                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
921                                                                                                                                                 <directory>${project.build.directory}/coverage-reports</directory>
922                                                                                                                                                 <includes>
923                                                                                                                                                                 <include>*.exec</include>
924                                                                                                                                                 </includes>
925                                                                                                                                 </fileSet>
926                                                                                                                 </fileSets>
927                                                                                                                 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
928                                                                                                 </configuration>
929                                                                                 </execution>
930                                                                 </executions>
931                                                 </plugin>
932
933                                                 <!-- This plugin will be useful when we will have multi-modules project -->
934                                                 <plugin>
935                                                                 <groupId>org.codehaus.mojo</groupId>
936                                                                 <artifactId>versions-maven-plugin</artifactId>
937                                                                 <version>1.3.1</version>
938                                                 </plugin>
939                                 </plugins>
940                 </build>
941                 <profiles>
942                                 <profile>
943                                                 <id>docker</id>
944                                                 <properties>
945                                                                 <skip.staging.artifacts>true</skip.staging.artifacts>
946                                                                 <skip.docker.build>false</skip.docker.build>
947                                                                 <skip.docker.tag>false</skip.docker.tag>
948                                                                 <skip.docker.push>false</skip.docker.push>
949                                                 </properties>
950                                 </profile>
951                 </profiles>
952 </project>