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