Merge "Rename the CldsSecurityConfig"
[clamp.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4         <modelVersion>4.0.0</modelVersion>
5         <groupId>org.onap.clamp</groupId>
6         <artifactId>clds</artifactId>
7         <version>1.0.1-SNAPSHOT</version>
8         <name>ONAP CLAMP</name>
9
10         <parent>
11                 <groupId>org.onap.oparent</groupId>
12                 <artifactId>oparent</artifactId>
13                 <version>1.0.0-SNAPSHOT</version>
14         </parent>
15
16         <description>
17            This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code.
18
19            By Default "mvn clean install" command will execute also the unit tests
20            and the integration tests. The integration tests require a docker engine running.
21
22            If you want to skip the intergation test you can by doing:
23            "mvn clean install -DskipITs=true"
24
25            For Spring it's possible to specify the application.properties location
26            "mvn clean install -Dspring.config.location=classpath:application-test.properties"
27
28            The application.properties contains the location of the CLAMP parameters files:
29                                 - org.onap.clamp.config.files.cldsReference=classpath:/clds/clds-reference.properties
30                                 - org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config.properties
31                                 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
32                                 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
33            
34     </description>
35
36         <properties>
37                 <maven.compiler.source>1.8</maven.compiler.source>
38                 <maven.compiler.target>1.8</maven.compiler.target>
39                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41
42                 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
43                 <sdk.java.common.logging>0.0.3-oss</sdk.java.common.logging>
44                 <project.scm.id>git-server</project.scm.id>
45                 <java.version>1.8</java.version>
46                 <csi.logging>6.1.0.6-oss</csi.logging>
47                 <sdk.camel.rest>6.2.0.6-oss</sdk.camel.rest>
48                 <sdk.camunda.core>6.1.0.3-oss</sdk.camunda.core>
49
50                 <sonar.language>java</sonar.language>
51                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
52                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
53                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
54                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
55                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
56                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
57
58                 <docker.push.registry>localhost:5000</docker.push.registry>
59                 <skip.docker.build>true</skip.docker.build>
60                 <skip.docker.push>true</skip.docker.push>
61                 <skip.staging.artifacts>false</skip.staging.artifacts>
62
63                 <nexusproxy>https://nexus.onap.org</nexusproxy>
64                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
65                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
66                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
67                 <sitePath>/content/sites/site/org/onap/clamp/${project.version}</sitePath>
68         </properties>
69
70         <distributionManagement>
71                 <repository>
72                         <id>ecomp-releases</id>
73                         <name>Clamp Release Repository</name>
74                         <url>${nexusproxy}/${releaseNexusPath}</url>
75                 </repository>
76                 <snapshotRepository>
77                         <id>ecomp-snapshots</id>
78                         <name>Clamp Snapshot Repository</name>
79                         <url>${nexusproxy}/${snapshotNexusPath}</url>
80                 </snapshotRepository>
81                 <site>
82                         <id>ecomp-site</id>
83                         <url>dav:${nexusproxy}${sitePath}</url>
84                 </site>
85         </distributionManagement>
86
87         <repositories>
88                 <repository>
89                         <id>central</id>
90                         <name>Maven 2 repository 2</name>
91                         <url>http://repo2.maven.org/maven2/</url>
92                 </repository>
93                 <repository>
94                         <id>ecomp-releases</id>
95                         <name>ONAP Release Repository</name>
96                         <url>${nexusproxy}/${releaseNexusPath}</url>
97                 </repository>
98                 <repository>
99                         <id>ecomp-staging</id>
100                         <name>ONAP Staging Repository</name>
101                         <url>${nexusproxy}/${stagingNexusPath}</url>
102                 </repository>
103                 <repository>
104                         <id>ecomp-snapshots</id>
105                         <name>ONAP Snapshot Repository</name>
106                         <url>${nexusproxy}/${snapshotNexusPath}</url>
107                         <snapshots>
108                                 <enabled>true</enabled>
109                         </snapshots>
110                         <releases>
111                                 <enabled>false</enabled>
112                         </releases>
113                 </repository>
114                 <repository>
115                         <id>spring-repo</id>
116                         <name>Spring repo</name>
117                         <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
118                 </repository>
119                 <repository>
120                         <id>repository.jboss.org-public</id>
121                         <name>JBoss.org Maven repository</name>
122                         <url>https://repository.jboss.org/nexus/content/groups/public</url>
123                 </repository>
124         </repositories>
125
126         <dependencyManagement>
127                 <dependencies>
128                         <dependency>
129                                 <!-- Import dependency management from Spring Boot -->
130                                 <groupId>org.springframework.boot</groupId>
131                                 <artifactId>spring-boot-dependencies</artifactId>
132                                 <version>1.4.1.RELEASE</version>
133                                 <type>pom</type>
134                                 <scope>import</scope>
135                         </dependency>
136                 </dependencies>
137         </dependencyManagement>
138
139         <dependencies>
140
141                 <dependency>
142                         <groupId>com.googlecode.json-simple</groupId>
143                         <artifactId>json-simple</artifactId>
144                         <version>1.1</version>
145                 </dependency>
146                 <dependency>
147                         <groupId>org.apache.commons</groupId>
148                         <artifactId>commons-vfs2</artifactId>
149                         <version>2.0</version>
150                 </dependency>
151
152                 <dependency>
153                         <groupId>org.springframework.security</groupId>
154                         <artifactId>spring-security-test</artifactId>
155
156                         <scope>test</scope>
157                 </dependency>
158
159
160                 <!-- Dependencies of parent pom start -->
161                 <dependency>
162                         <groupId>com.att.ajsc</groupId>
163                         <artifactId>sdk-java-common-logging</artifactId>
164                         <version>${sdk.java.common.logging}</version>
165                 </dependency>
166                 <dependency>
167                         <groupId>org.springframework.boot</groupId>
168                         <artifactId>spring-boot-starter-tomcat</artifactId>
169                         <scope>compile</scope>
170                 </dependency>
171                 <dependency>
172                         <groupId>org.springframework.boot</groupId>
173                         <artifactId>spring-boot-starter-actuator</artifactId>
174                 </dependency>
175                 <dependency>
176                         <groupId>org.springframework.boot</groupId>
177                         <artifactId>spring-boot-starter-security</artifactId>
178                 </dependency>
179                 <dependency>
180                         <groupId>org.springframework.boot</groupId>
181                         <artifactId>spring-boot-starter-test</artifactId>
182                         <scope>test</scope>
183                 </dependency>
184                 <dependency>
185                         <groupId>joda-time</groupId>
186                         <artifactId>joda-time</artifactId>
187                 </dependency>
188                 <dependency>
189                         <groupId>org.springframework</groupId>
190                         <artifactId>spring-context</artifactId>
191                 </dependency>
192                 <dependency>
193                         <groupId>org.slf4j</groupId>
194                         <artifactId>slf4j-api</artifactId>
195                 </dependency>
196                 <dependency>
197                         <groupId>javax.ws.rs</groupId>
198                         <artifactId>javax.ws.rs-api</artifactId>
199                         <version>2.0</version>
200                 </dependency>
201                 <dependency>
202                         <groupId>org.springframework</groupId>
203                         <artifactId>spring-test</artifactId>
204                 </dependency>
205                 <dependency>
206                         <groupId>junit</groupId>
207                         <artifactId>junit</artifactId>
208                 </dependency>
209                 <dependency>
210                         <groupId>org.mockito</groupId>
211                         <artifactId>mockito-all</artifactId>
212                         <version>1.9.5</version>
213                 </dependency>
214                 <dependency>
215                         <groupId>commons-logging</groupId>
216                         <artifactId>commons-logging</artifactId>
217                         <version>1.1.1</version>
218                 </dependency>
219                 <dependency>
220                         <groupId>org.springframework</groupId>
221                         <artifactId>spring-aspects</artifactId>
222                 </dependency>
223                 <dependency>
224                         <groupId>com.fasterxml.jackson.core</groupId>
225                         <artifactId>jackson-core</artifactId>
226                 </dependency>
227                 <dependency>
228                         <groupId>com.fasterxml.jackson.core</groupId>
229                         <artifactId>jackson-databind</artifactId>
230                 </dependency>
231                 <dependency>
232                         <groupId>org.springframework</groupId>
233                         <artifactId>spring-webmvc</artifactId>
234                 </dependency>
235                 <dependency>
236                         <groupId>org.springframework.boot</groupId>
237                         <artifactId>spring-boot-starter-web</artifactId>
238                 </dependency>
239                 <dependency>
240                         <groupId>log4j</groupId>
241                         <artifactId>log4j</artifactId>
242                         <version>1.2.17</version>
243                 </dependency>
244                 <dependency>
245                         <groupId>org.springframework.boot</groupId>
246                         <artifactId>spring-boot</artifactId>
247                 </dependency>
248                 <dependency>
249                         <groupId>org.springframework.boot</groupId>
250                         <artifactId>spring-boot-autoconfigure</artifactId>
251                 </dependency>
252                 <dependency>
253                         <groupId>javax.transaction</groupId>
254                         <artifactId>jta</artifactId>
255                         <version>1.1</version>
256                 </dependency>
257                 <dependency>
258                         <groupId>javax.persistence</groupId>
259                         <artifactId>persistence-api</artifactId>
260                         <version>1.0.2</version>
261                 </dependency>
262                 <dependency>
263                         <groupId>org.hibernate</groupId>
264                         <artifactId>hibernate-annotations</artifactId>
265                         <version>3.5.6-Final</version>
266                 </dependency>
267                 <dependency>
268                         <groupId>org.apache.geronimo.specs</groupId>
269                         <artifactId>geronimo-jpa_2.0_spec</artifactId>
270                         <version>1.1</version>
271                 </dependency>
272                 <dependency>
273                         <groupId>dom4j</groupId>
274                         <artifactId>dom4j</artifactId>
275                         <version>1.6.1</version>
276                 </dependency>
277                 <!-- Dependencies of parent pom end -->
278                 <dependency>
279                         <groupId>com.att.ajsc</groupId>
280                         <artifactId>sdk-java-camel-rest</artifactId>
281                         <version>${sdk.camel.rest}</version>
282                 </dependency>
283                 <dependency>
284                         <groupId>io.swagger</groupId>
285                         <artifactId>swagger-core</artifactId>
286                         <version>1.5.8</version>
287                 </dependency>
288                 <dependency>
289                         <groupId>io.swagger</groupId>
290                         <artifactId>swagger-annotations</artifactId>
291                         <version>1.5.8</version>
292                 </dependency>
293                 <!-- Camunda Core -->
294                 <dependency>
295                         <groupId>com.att.ajsc</groupId>
296                         <artifactId>sdk-java-camunda-core</artifactId>
297                         <version>${sdk.camunda.core}</version>
298                 </dependency>
299                 <!-- Spring Mail -->
300                 <dependency>
301                         <groupId>org.springframework</groupId>
302                         <artifactId>spring-context-support</artifactId>
303                 </dependency>
304                 <!-- CSI Logging -->
305                 <dependency>
306                         <groupId>com.att.ajsc</groupId>
307                         <artifactId>sdk-java-common-interceptors</artifactId>
308                         <version>${csi.logging}</version>
309                         <exclusions>
310                                 <exclusion>
311                                         <groupId>org.eclipse.jetty.orbit</groupId>
312                                         <artifactId>javax.servlet</artifactId>
313                                 </exclusion>
314                                 <exclusion>
315                                         <groupId>com.att.ajsc</groupId>
316                                         <artifactId>ajsc-core</artifactId>
317                                 </exclusion>
318                         </exclusions>
319                 </dependency>
320                 <!-- CSI Logging End -->
321                 <dependency>
322                         <groupId>org.onap.policy.engine</groupId>
323                         <artifactId>PolicyEngineAPI</artifactId>
324                         <version>1.1.0-SNAPSHOT</version>
325                         <exclusions>
326                                 <exclusion>
327                                         <artifactId>log4j</artifactId>
328                                         <groupId>log4j</groupId>
329                                 </exclusion>
330                                 <exclusion>
331                                         <groupId>org.slf4j</groupId>
332                                         <artifactId>slf4j-log4j12</artifactId>
333                                 </exclusion>
334                                 <exclusion>
335                                         <artifactId>apache-log4j-extras</artifactId>
336                                         <groupId>log4j</groupId>
337                                 </exclusion>
338                                 <exclusion>
339                                         <artifactId>jackson-databind</artifactId>
340                                         <groupId>com.fasterxml.jackson.core</groupId>
341                                 </exclusion>
342                         </exclusions>
343                 </dependency>
344                 <dependency>
345                         <groupId>org.onap.policy.common</groupId>
346                         <artifactId>ONAP-Logging</artifactId>
347                         <version>1.1.0-SNAPSHOT</version>
348                         <exclusions>
349                                 <exclusion>
350                                         <artifactId>log4j</artifactId>
351                                         <groupId>log4j</groupId>
352                                 </exclusion>
353                                 <exclusion>
354                                         <groupId>org.slf4j</groupId>
355                                         <artifactId>slf4j-log4j12</artifactId>
356                                 </exclusion>
357                                 <exclusion>
358                                         <artifactId>apache-log4j-extras</artifactId>
359                                         <groupId>log4j</groupId>
360                                 </exclusion>
361                         </exclusions>
362                 </dependency>
363                 <dependency>
364                         <groupId>org.onap.policy.engine</groupId>
365                         <artifactId>ControlloopPolicy</artifactId>
366                         <version>1.1.0-SNAPSHOT</version>
367                         <exclusions>
368                                 <exclusion>
369                                         <artifactId>log4j</artifactId>
370                                         <groupId>log4j</groupId>
371                                 </exclusion>
372                                 <exclusion>
373                                         <groupId>org.slf4j</groupId>
374                                         <artifactId>slf4j-log4j12</artifactId>
375                                 </exclusion>
376                                 <exclusion>
377                                         <artifactId>apache-log4j-extras</artifactId>
378                                         <groupId>log4j</groupId>
379                                 </exclusion>
380                         </exclusions>
381                 </dependency>
382
383                 <dependency>
384                         <groupId>com.fasterxml.jackson.core</groupId>
385                         <artifactId>jackson-databind</artifactId>
386                         <version>2.6.3</version>
387                 </dependency>
388                 <dependency>
389                         <groupId>com.fasterxml.jackson.dataformat</groupId>
390                         <artifactId>jackson-dataformat-yaml</artifactId>
391                         <version>2.6.3</version>
392                 </dependency>
393                 <dependency>
394                         <groupId>org.apache.commons</groupId>
395                         <artifactId>commons-csv</artifactId>
396                         <version>1.3</version>
397                 </dependency>
398                 <dependency>
399                         <groupId>org.jboss.resteasy</groupId>
400                         <artifactId>resteasy-client</artifactId>
401                         <version>3.0.8.Final</version>
402                 </dependency>
403                 <dependency>
404                         <groupId>com.sun.faces</groupId>
405                         <artifactId>jsf-api</artifactId>
406                         <version>2.1.7</version>
407                 </dependency>
408                 <dependency>
409                         <groupId>com.sun.faces</groupId>
410                         <artifactId>jsf-impl</artifactId>
411                         <version>2.1.7</version>
412                 </dependency>
413
414         </dependencies>
415
416         <build>
417                 <finalName>clamp</finalName>
418
419                 <testResources>
420                         <testResource>
421                                 <directory>src/test/resources</directory>
422                                 <includes>
423                                         <include>**/*</include>
424                                 </includes>
425                                 <filtering>true</filtering>
426                         </testResource>
427                 </testResources>
428                 <resources>
429                         <resource>
430                                 <directory>src/main/resources</directory>
431                                 <filtering>true</filtering>
432                         </resource>
433                         <resource>
434                                 <directory>src/main/docker</directory>
435                                 <includes>
436                                         <include>**/*</include>
437                                 </includes>
438                                 <filtering>true</filtering>
439                         </resource>
440                         <resource>
441                                 <directory>src/main/doxygen</directory>
442                                 <includes>
443                                         <include>**/*</include>
444                                 </includes>
445                                 <filtering>true</filtering>
446                         </resource>
447                 </resources>
448
449
450
451                 <plugins>
452                         <plugin>
453                                 <groupId>org.apache.maven.plugins</groupId>
454                                 <artifactId>maven-jar-plugin</artifactId>
455                                 <version>3.0.2</version>
456                                 <executions>
457                                         <execution>
458                                                 <id>jar-with-only-classes</id>
459                                                 <phase>package</phase>
460                                                 <goals>
461                                                         <goal>jar</goal>
462                                                 </goals>
463                                                 <configuration>
464                                                         <classifier>classes</classifier>
465                                                         <includes>
466                                                                 <include>org/**</include>
467                                                         </includes>
468                                                 </configuration>
469                                         </execution>
470                                 </executions>
471                         </plugin>
472                         <plugin>
473                                 <groupId>com.github.kongchen</groupId>
474                                 <artifactId>swagger-maven-plugin</artifactId>
475                                 <version>3.1.5</version>
476                                 <executions>
477                                         <execution>
478                                                 <phase>compile</phase>
479                                                 <goals>
480                                                         <goal>generate</goal>
481                                                 </goals>
482                                                 <configuration>
483                                                         <apiSources>
484                                                                 <apiSource>
485                                                                         <locations>
486                                                                                 <location>org.onap.clamp.clds.service</location>
487                                                                         </locations>
488                                                                         <basePath>/</basePath>
489                                                                         <info>
490                                                                                 <title>${project.artifactId} Service</title>
491                                                                                 <version>${project.version}</version>
492                                                                         </info>
493                                                                         <swaggerDirectory>${project.build.directory}/classes/META-INF/resources/icd</swaggerDirectory>
494                                                                 </apiSource>
495                                                         </apiSources>
496                                                 </configuration>
497                                         </execution>
498                                 </executions>
499                         </plugin>
500                         <plugin>
501                                 <groupId>org.codehaus.mojo</groupId>
502                                 <artifactId>build-helper-maven-plugin</artifactId>
503                                 <version>3.0.0</version>
504                                 <executions>
505                                         <execution>
506                                                 <goals>
507                                                         <goal>attach-artifact</goal>
508                                                 </goals>
509                                                 <phase>package</phase>
510                                                 <configuration>
511                                                         <artifacts>
512                                                                 <artifact>
513                                                                         <file>${project.build.directory}/clamp-classes.jar</file>
514                                                                         <type>jar</type>
515                                                                         <classifier>classes</classifier>
516                                                                 </artifact>
517                                                         </artifacts>
518                                                 </configuration>
519                                         </execution>
520                                 </executions>
521                         </plugin>
522
523                         <plugin>
524                                 <groupId>org.springframework.boot</groupId>
525                                 <artifactId>spring-boot-maven-plugin</artifactId>
526                                 <version>1.5.3.RELEASE</version>
527                                 <executions>
528                                         <execution>
529                                                 <goals>
530                                                         <goal>repackage</goal>
531                                                 </goals>
532                                                 <phase>package</phase>
533                                         </execution>
534                                 </executions>
535                         </plugin>
536                         <plugin>
537                                 <groupId>org.apache.maven.plugins</groupId>
538                                 <artifactId>maven-gpg-plugin</artifactId>
539                                 <version>1.5</version>
540                                 <configuration>
541                                         <skip>true</skip>
542                                 </configuration>
543                                 <executions>
544                                         <execution>
545                                                 <id>sign-artifacts</id>
546                                                 <phase>verify</phase>
547                                                 <goals>
548                                                         <goal>sign</goal>
549                                                 </goals>
550                                         </execution>
551                                 </executions>
552                         </plugin>
553                         <plugin>
554                                 <groupId>org.sonatype.plugins</groupId>
555                                 <artifactId>nexus-staging-maven-plugin</artifactId>
556                                 <version>1.6.7</version>
557                                 <extensions>true</extensions>
558                                 <configuration>
559                                         <nexusUrl>${nexusproxy}</nexusUrl>
560                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
561                                         <serverId>ecomp-staging</serverId>
562                                         <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
563                                 </configuration>
564                         </plugin>
565                         <plugin>
566                                 <groupId>com.spotify</groupId>
567                                 <artifactId>docker-maven-plugin</artifactId>
568                                 <version>1.0.0</version>
569                                 <configuration>
570                                         <imageName>onap/clamp</imageName>
571                                         <dockerDirectory>src/main/docker</dockerDirectory>
572                                         <serverId>docker-hub</serverId>
573                                         <imageTags>
574                                                 <imageTag>${project.version}</imageTag>
575                                                 <imageTag>latest</imageTag>
576                                         </imageTags>
577                                         <forceTags>true</forceTags>
578                                         <resources>
579                                                 <resource>
580                                                         <targetPath>/</targetPath>
581                                                         <directory>${project.build.directory}</directory>
582                                                         <include>${project.build.finalName}.jar</include>
583                                                 </resource>
584                                                 <resource>
585                                                         <targetPath>/</targetPath>
586                                                         <directory>${project.build.directory}</directory>
587                                                         <include>etc/config/**</include>
588                                                 </resource>
589                                                 <resource>
590                                                         <targetPath>/</targetPath>
591                                                         <directory>${project.build.directory}</directory>
592                                                         <include>etc/keystore/**</include>
593                                                 </resource>
594                                         </resources>
595                                 </configuration>
596                                 <executions>
597                                         <execution>
598                                                 <id>build-image</id>
599                                                 <phase>package</phase>
600                                                 <goals>
601                                                         <goal>build</goal>
602                                                 </goals>
603                                                 <configuration>
604                                                         <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
605                                                         <buildArgs>
606                                                                 <http_proxy>${env.HTTP_PROXY}</http_proxy>
607                                                                 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
608                                                         </buildArgs>
609                                                 </configuration>
610                                         </execution>
611                                         <execution>
612                                                 <id>tag-image</id>
613                                                 <phase>package</phase>
614                                                 <goals>
615                                                         <goal>tag</goal>
616                                                 </goals>
617                                                 <configuration>
618                                                         <image>onap/clamp</image>
619                                                         <newName>${docker.push.registry}/onap/clamp</newName>
620                                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
621                                                 </configuration>
622                                         </execution>
623                                         <execution>
624                                                 <id>push-image</id>
625                                                 <phase>deploy</phase>
626                                                 <goals>
627                                                         <goal>push</goal>
628                                                 </goals>
629                                                 <configuration>
630                                                         <imageName>${docker.push.registry}/onap/clamp</imageName>
631                                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
632                                                 </configuration>
633                                         </execution>
634                                 </executions>
635                         </plugin>
636                         <plugin>
637                                 <groupId>org.apache.maven.plugins</groupId>
638                                 <artifactId>maven-surefire-plugin</artifactId>
639                                 <version>2.19.1</version>
640                                 <configuration>
641                                         <forkCount>1</forkCount>
642                                         <reuseForks>false</reuseForks>
643                                 </configuration>
644                         </plugin>
645
646                         <plugin>
647                                 <groupId>org.apache.maven.plugins</groupId>
648                                 <artifactId>maven-failsafe-plugin</artifactId>
649                                 <version>2.16</version>
650
651                                 <executions>
652                                         <execution>
653                                                 <goals>
654                                                         <goal>integration-test</goal>
655                                                         <goal>verify</goal>
656                                                 </goals>
657                                                 <configuration>
658                                                         <forkCount>1</forkCount>
659                                                         <reuseForks>false</reuseForks>
660                                                 </configuration>
661                                         </execution>
662                                 </executions>
663
664                         </plugin>
665                         <plugin>
666                                 <groupId>io.fabric8</groupId>
667                                 <artifactId>docker-maven-plugin</artifactId>
668                                 <version>0.16.5</version>
669                                 <configuration>
670                                         <verbose>true</verbose>
671                                         <apiVersion>1.23</apiVersion>
672                                         <images>
673                                                 <image>
674                                                         <name>mariadb:10.1.11</name>
675                                                         <alias>mariadb</alias>
676                                                         <run>
677                                                                 <env>
678                                                                         <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
679                                                                 </env>
680                                                                 <hostname>mariadb</hostname>
681                                                                 <volumes>
682                                                                         <bind>
683                                                                                 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
684                                                                                 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
685                                                                         </bind>
686                                                                 </volumes>
687                                                                 <wait>
688                                                                         <log>socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution</log>
689                                                                         <time>300000</time>
690                                                                 </wait>
691                                                                 <ports>
692                                                                         <port>${docker.mariadb.port.host}:3306</port>
693                                                                 </ports>
694                                                         </run>
695                                                 </image>
696                                         </images>
697                                 </configuration>
698
699                                 <executions>
700                                         <execution>
701                                                 <id>mariadb-start-for-it</id>
702                                                 <phase>pre-integration-test</phase>
703                                                 <goals>
704                                                         <goal>start</goal>
705                                                 </goals>
706                                                 <configuration>
707                                                         <skip>${skipITs}</skip>
708                                                 </configuration>
709                                         </execution>
710                                         <execution>
711                                                 <id>mariadb-stop-for-it</id>
712                                                 <phase>post-integration-test</phase>
713                                                 <goals>
714                                                         <goal>stop</goal>
715                                                 </goals>
716                                                 <configuration>
717                                                         <skip>${skipITs}</skip>
718                                                 </configuration>
719                                         </execution>
720                                 </executions>
721                         </plugin>
722
723                         <plugin>
724                                 <groupId>org.jacoco</groupId>
725                                 <artifactId>jacoco-maven-plugin</artifactId>
726                                 <version>0.7.7.201606060606</version>
727                                 <configuration>
728                                         <dumpOnExit>true</dumpOnExit>
729                                         <includes>
730                                                 <include>org.onap.clamp.*</include>
731                                         </includes>
732                                 </configuration>
733                                 <executions>
734                                         <execution>
735                                                 <id>pre-unit-test</id>
736                                                 <goals>
737                                                         <goal>prepare-agent</goal>
738                                                 </goals>
739                                                 <configuration>
740                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
741                                                         <!-- <append>true</append> -->
742                                                 </configuration>
743                                         </execution>
744                                         <execution>
745                                                 <id>pre-integration-test</id>
746                                                 <phase>pre-integration-test</phase>
747                                                 <goals>
748                                                         <goal>prepare-agent</goal>
749                                                 </goals>
750                                                 <configuration>
751                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
752                                                         <!-- <append>true</append> -->
753                                                 </configuration>
754                                         </execution>
755                                         <execution>
756                                                 <goals>
757                                                         <goal>merge</goal>
758                                                 </goals>
759                                                 <phase>post-integration-test</phase>
760                                                 <configuration>
761                                                         <fileSets>
762                                                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
763                                                                         <directory>${project.build.directory}/coverage-reports</directory>
764                                                                         <includes>
765                                                                                 <include>*.exec</include>
766                                                                         </includes>
767                                                                 </fileSet>
768                                                         </fileSets>
769                                                         <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
770                                                 </configuration>
771                                         </execution>
772                                 </executions>
773                         </plugin>
774
775                         <!-- This plugin will be useful when we will have multi-modules project -->
776                         <plugin>
777                                 <groupId>org.codehaus.mojo</groupId>
778                                 <artifactId>versions-maven-plugin</artifactId>
779                                 <version>1.3.1</version>
780                         </plugin>
781                 </plugins>
782         </build>
783         <profiles>
784                 <profile>
785                         <id>docker</id>
786                         <properties>
787                                 <skip.staging.artifacts>true</skip.staging.artifacts>
788                                 <skip.docker.build>false</skip.docker.build>
789                                 <skip.docker.tag>false</skip.docker.tag>
790                                 <skip.docker.push>false</skip.docker.push>
791                         </properties>
792                 </profile>
793         </profiles>
794 </project>