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