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