Merge "correct emails"
[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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24                 <modelVersion>4.0.0</modelVersion>
25                 <groupId>org.onap.clamp</groupId>
26                 <artifactId>clds</artifactId>
27                 <version>4.0.0-SNAPSHOT</version>
28                 <name>clamp</name>
29
30                 <parent>
31                                 <groupId>org.onap.oparent</groupId>
32                                 <artifactId>oparent</artifactId>
33                                 <version>1.2.0</version>
34                 </parent>
35
36                 <description>
37            This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
38
39            By Default "mvn clean install" command will execute also the unit tests
40            and the integration tests. The integration tests require a docker engine running.
41
42            If you want to skip the integration test you can by doing:
43            "mvn clean install -DskipITs=true"
44
45            For Spring it's possible to specify the application.properties location
46            "mvn clean install -Dspring.config.location=classpath:application-test.properties"
47
48            The application.properties contains the location of the CLAMP parameters files:
49                                 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
50                                 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
51
52                 </description>
53
54                 <properties>
55                                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
56                                 <clamp.project.version>${project.version}</clamp.project.version>
57                                 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
58                                 <maven.compiler.source>1.8</maven.compiler.source>
59                                 <maven.compiler.target>1.8</maven.compiler.target>
60                                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61                                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
62
63                                 <project.scm.id>git-server</project.scm.id>
64                                 <java.version>1.8</java.version>
65
66                                 <eelf.core.version>1.0.0</eelf.core.version>
67                                 <camel.version>2.22.1</camel.version>
68                                 <springboot.version>2.0.6.RELEASE</springboot.version>
69
70                                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
71                                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
72                                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
73                                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
74                                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
75                                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
76                                 <!-- Enable language to disable javascript analysis -->
77                                 <sonar.language>java</sonar.language>
78                                 <!-- Parameters for Javascript coverage
79                                         <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
80                                         <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
81                                  -->
82                                 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
83
84                                 <docker.push.registry>localhost:5000</docker.push.registry>
85                                 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
86                                 <docker.skip.build>true</docker.skip.build>
87                                 <docker.skip.push>true</docker.skip.push>
88                                 <docker.skip.tag>true</docker.skip.tag>
89                                 <skip.staging.artifacts>false</skip.staging.artifacts>
90                                 <python.http.proxy.param/>
91                                 <tomcat.version>8.5.34</tomcat.version>
92                 </properties>
93
94                 <profiles>
95                                 <profile>
96                                                 <id>without-test</id>
97                                                 <activation>
98                                                         <property>
99                                                                 <name>maven.test.skip</name>
100                                                                 <value>true</value>
101                                                         </property>
102                                                 </activation>
103                                                 <properties>
104                                                         <docker.skip.run>true</docker.skip.run>
105                                                         <docker.skip>true</docker.skip>
106                                                 </properties>
107                                 </profile>
108                                 <profile>
109                                                 <id>without-IT-only</id>
110                                                 <activation>
111                                                         <property>
112                                                                 <name>skipITs</name>
113                                                                 <value>true</value>
114                                                         </property>
115                                                 </activation>
116                                                 <properties>
117                                                         <docker.skip.run>true</docker.skip.run>
118                                                         <docker.skip>true</docker.skip>
119                                                 </properties>
120                                 </profile>
121                                 <profile>
122                                                 <id>without-IT-only2</id>
123                                                 <activation>
124                                                         <property>
125                                                                 <name>skipTests</name>
126                                                                 <value>true</value>
127                                                         </property>
128                                                 </activation>
129                                                 <properties>
130                                                         <docker.skip.run>true</docker.skip.run>
131                                                         <docker.skip>true</docker.skip>
132                                                 </properties>
133                                 </profile>
134                                 <profile>
135                                                 <id>docker</id>
136                                                 <properties>
137                                                                 <skip.staging.artifacts>true</skip.staging.artifacts>
138                                                                 <docker.skip.build>false</docker.skip.build>
139                                                                 <docker.skip.tag>false</docker.skip.tag>
140                                                                 <docker.skip.push>false</docker.skip.push>
141                                                                 <docker.skip>false</docker.skip>
142                                                 </properties>
143                                 </profile>
144                 </profiles>
145
146                 <distributionManagement>
147                                 <repository>
148                                                 <id>onap-releases</id>
149                                                 <name>Clamp Release Repository</name>
150                                                 <url>https://nexus.onap.org/content/repositories/releases/</url>
151                                 </repository>
152                                 <snapshotRepository>
153                                                 <id>onap-snapshots</id>
154                                                 <name>Clamp Snapshot Repository</name>
155                                                 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
156                                 </snapshotRepository>
157                                 <site>
158                                                 <id>onap-site</id>
159                                                 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
160                                 </site>
161                 </distributionManagement>
162
163                 <repositories>
164                                 <repository>
165                                                 <id>central</id>
166                                                 <name>Maven 2 repository 2</name>
167                                                 <url>http://repo2.maven.org/maven2/</url>
168                                 </repository>
169                                 <repository>
170                                                 <id>onap-releases</id>
171                                                 <name>ONAP Release Repository</name>
172                                                 <url>https://nexus.onap.org/content/repositories/releases/</url>
173                                 </repository>
174                                 <repository>
175                                                 <id>onap-staging</id>
176                                                 <name>ONAP Staging Repository</name>
177                                                 <url>https://nexus.onap.org/content/repositories/staging/</url>
178                                 </repository>
179                                 <repository>
180                                                 <id>onap-snapshots</id>
181                                                 <name>ONAP Snapshot Repository</name>
182                                                 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
183                                                 <snapshots>
184                                                                 <enabled>true</enabled>
185                                                 </snapshots>
186                                                 <releases>
187                                                                 <enabled>false</enabled>
188                                                 </releases>
189                                 </repository>
190                                 <repository>
191                                                 <id>spring-repo</id>
192                                                 <name>Spring repo</name>
193                                                 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
194                                 </repository>
195                                 <repository>
196                                                 <id>repository.jboss.org-public</id>
197                                                 <name>JBoss.org Maven repository</name>
198                                                 <url>https://repository.jboss.org/nexus/content/groups/public</url>
199                                 </repository>
200                 </repositories>
201
202                 <dependencyManagement>
203                                 <dependencies>
204                                                 <!-- Spring Boot BOM -->
205                                                 <dependency>
206                                                                 <groupId>org.springframework.boot</groupId>
207                                                                 <artifactId>spring-boot-dependencies</artifactId>
208                                                                 <version>${springboot.version}</version>
209                                                                 <type>pom</type>
210                                                                 <scope>import</scope>
211                                                 </dependency>
212                                                 <!-- Camel BOM -->
213                                                 <dependency>
214                                                                 <groupId>org.apache.camel</groupId>
215                                                                 <artifactId>camel-spring-boot-dependencies</artifactId>
216                                                                 <version>${camel.version}</version>
217                                                                 <type>pom</type>
218                                                                 <scope>import</scope>
219                                                 </dependency>
220                                 </dependencies>
221                 </dependencyManagement>
222
223                 <dependencies>
224                                 <dependency>
225                                                 <groupId>com.att.eelf</groupId>
226                                                 <artifactId>eelf-core</artifactId>
227                                                 <version>${eelf.core.version}</version>
228                                 </dependency>
229                                 <dependency>
230                                                 <groupId>org.codehaus.janino</groupId>
231                                                 <artifactId>janino</artifactId>
232                                                 <version>3.0.8</version>
233                                 </dependency>
234                                 <dependency>
235                                                 <groupId>org.apache.tomcat.embed</groupId>
236                                                 <artifactId>tomcat-embed-core</artifactId>
237                                                 <version>${tomcat.version}</version>
238                                 </dependency>
239                                 <dependency>
240                                                 <groupId>org.apache.tomcat.embed</groupId>
241                                                 <artifactId>tomcat-embed-el</artifactId>
242                                                 <version>${tomcat.version}</version>
243                                 </dependency>
244                                 <dependency>
245                                                 <groupId>org.apache.tomcat.embed</groupId>
246                                                 <artifactId>tomcat-embed-websocket</artifactId>
247                                                 <version>${tomcat.version}</version>
248                                 </dependency>
249                                 <dependency>
250                                                 <groupId>org.apache.tomcat</groupId>
251                                                 <artifactId>tomcat-annotations-api</artifactId>
252                                                 <version>${tomcat.version}</version>
253                                 </dependency>
254                                 <!-- For CAMEL -->
255                                 <dependency>
256                                                 <groupId>org.apache.camel</groupId>
257                                                 <artifactId>camel-spring-boot-starter</artifactId>
258                                 </dependency>
259                                 <dependency>
260                                                 <groupId>org.apache.camel</groupId>
261                                                 <artifactId>camel-jaxb-starter</artifactId>
262                                 </dependency>
263                                 <dependency>
264                                                 <groupId>org.apache.camel</groupId>
265                                                 <artifactId>camel-servlet-starter</artifactId>
266                                 </dependency>
267                                 <dependency>
268                                         <groupId>org.apache.camel</groupId>
269                                         <artifactId>camel-jackson-starter</artifactId>
270                                 </dependency>
271                                 <dependency>
272                                         <groupId>org.apache.camel</groupId>
273                                         <artifactId>camel-swagger-java-starter</artifactId>
274                                         <exclusions>
275                                                 <exclusion>
276                                                         <groupId>javax.ws.rs</groupId>
277                                                         <artifactId>jsr311-api</artifactId>
278                                                 </exclusion>
279                                                 <exclusion>
280                                                         <groupId>org.slf4j</groupId>
281                                                         <artifactId>slf4j-ext</artifactId>
282                                                 </exclusion>
283                                         </exclusions>
284                                 </dependency>
285                                 <dependency>
286                                                 <groupId>javax.xml.bind</groupId>
287                                                 <artifactId>jaxb-api</artifactId>
288                                                 <version>2.3.0</version>
289                                 </dependency>
290                                 <dependency>
291                                         <groupId>org.glassfish.jersey.core</groupId>
292                                         <artifactId>jersey-common</artifactId>
293                                         <version>2.27</version>
294                                 </dependency>
295                                 <!-- Spring famework -->
296                                 <dependency>
297                                                 <groupId>org.springframework.boot</groupId>
298                                                 <artifactId>spring-boot-starter-web</artifactId>
299                                                 <exclusions>
300                                                         <exclusion>
301                                                                 <groupId>org.springframework.boot</groupId>
302                                                                 <artifactId>spring-boot-starter-json</artifactId>
303                                                                 </exclusion>
304                                                 </exclusions>
305                                 </dependency>
306                                 <dependency>
307                                                 <groupId>org.springframework.boot</groupId>
308                                                 <artifactId>spring-boot-starter-tomcat</artifactId>
309                                 </dependency>
310                                 <dependency>
311                                                 <groupId>org.springframework</groupId>
312                                                 <artifactId>spring-jdbc</artifactId>
313                                 </dependency>
314                                 <dependency>
315                                                 <groupId>org.springframework.boot</groupId>
316                                                 <artifactId>spring-boot-starter-security</artifactId>
317                                 </dependency>
318                                 <dependency>
319                                                 <groupId>org.springframework.boot</groupId>
320                                         <artifactId>spring-boot-autoconfigure</artifactId>
321                                 </dependency>
322                                 <dependency>
323                                                 <groupId>org.springframework.boot</groupId>
324                                                 <artifactId>spring-boot-starter-test</artifactId>
325                                                 <scope>test</scope>
326                                                 <exclusions>
327                                                                 <exclusion>
328                                                                                 <groupId>com.vaadin.external.google</groupId>
329                                                                                 <artifactId>android-json</artifactId>
330                                                                 </exclusion>
331                                                 </exclusions>
332                                 </dependency>
333                                 <!-- Others dependencies -->
334                                 <dependency>
335                                         <groupId>org.onap.aaf.authz</groupId>
336                                         <artifactId>aaf-cadi-aaf</artifactId>
337                                         <version>2.1.1</version>
338                                         <exclusions>
339                                                 <exclusion>
340                                                         <groupId>javax.servlet</groupId>
341                                                         <artifactId>servlet-api</artifactId>
342                                                 </exclusion>
343                                         </exclusions>
344                                 </dependency>
345                                 <dependency>
346                                                 <groupId>ch.qos.logback</groupId>
347                                                 <artifactId>logback-core</artifactId>
348                                                 <version>1.2.3</version>
349                                 </dependency>
350                                 <dependency>
351                                                 <groupId>ch.qos.logback</groupId>
352                                                 <artifactId>logback-classic</artifactId>
353                                                 <version>1.2.3</version>
354                                 </dependency>
355                                 <dependency>
356                                                 <groupId>commons-dbcp</groupId>
357                                                 <artifactId>commons-dbcp</artifactId>
358                                                 <version>1.4</version>
359                                 </dependency>
360                                 <dependency>
361                                                 <groupId>commons-io</groupId>
362                                                 <artifactId>commons-io</artifactId>
363                                                 <version>2.6</version>
364                                 </dependency>
365                                 <dependency>
366                                                 <groupId>com.googlecode.json-simple</groupId>
367                                                 <artifactId>json-simple</artifactId>
368                                 </dependency>
369                                 <dependency>
370                                                 <groupId>org.apache.commons</groupId>
371                                                 <artifactId>commons-vfs2</artifactId>
372                                                 <version>2.2</version>
373                                 </dependency>
374                                 <dependency>
375                                                 <groupId>joda-time</groupId>
376                                                 <artifactId>joda-time</artifactId>
377                                 </dependency>
378                                 <dependency>
379                                                 <groupId>org.slf4j</groupId>
380                                                 <artifactId>slf4j-api</artifactId>
381                                 </dependency>
382                                 <dependency>
383                                                 <groupId>javax.ws.rs</groupId>
384                                                 <artifactId>javax.ws.rs-api</artifactId>
385                                                 <version>2.0</version>
386                                 </dependency>
387                                 <dependency>
388                                                 <groupId>junit</groupId>
389                                                 <artifactId>junit</artifactId>
390                                 </dependency>
391                                 <dependency>
392                                                 <groupId>javax.transaction</groupId>
393                                                 <artifactId>jta</artifactId>
394                                                 <version>1.1</version>
395                                 </dependency>
396                                 <dependency>
397                                                 <groupId>javax.persistence</groupId>
398                                                 <artifactId>persistence-api</artifactId>
399                                                 <version>1.0.2</version>
400                                 </dependency>
401                                 <dependency>
402                                                 <groupId>org.onap.policy.engine</groupId>
403                                                 <artifactId>PolicyEngineAPI</artifactId>
404                                                 <version>1.3.3</version>
405                                                 <exclusions>
406                                                                 <exclusion>
407                                                                                 <groupId>com.google.guava</groupId>
408                                                                                 <artifactId>guava</artifactId>
409                                                                 </exclusion>
410                                                                 <exclusion>
411                                                                                 <artifactId>log4j</artifactId>
412                                                                                 <groupId>log4j</groupId>
413                                                                 </exclusion>
414                                                                 <exclusion>
415                                                                                 <groupId>org.slf4j</groupId>
416                                                                                 <artifactId>slf4j-log4j12</artifactId>
417                                                                 </exclusion>
418                                                                 <exclusion>
419                                                                                 <artifactId>apache-log4j-extras</artifactId>
420                                                                                 <groupId>log4j</groupId>
421                                                                 </exclusion>
422                                                                 <exclusion>
423                                                                                 <groupId>mysql</groupId>
424                                                                                 <artifactId>mysql-connector-java</artifactId>
425                                                                 </exclusion>
426                                                                 <exclusion>
427                                                                                 <groupId>commons-io</groupId>
428                                                                                 <artifactId>commons-io</artifactId>
429                                                                 </exclusion>
430                                                                 <exclusion>
431                                                                                 <artifactId>grizzly-http-server</artifactId>
432                                                                                 <groupId>org.glassfish.grizzly</groupId>
433                                                                 </exclusion>
434                                                                 <exclusion>
435                                                                                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
436                                                                                 <artifactId>dmaapClient</artifactId>
437                                                                 </exclusion>
438                                                                 <exclusion>
439                                                                                 <groupId>org.onap.policy.common</groupId>
440                                                                                 <artifactId>integrity-monitor</artifactId>
441                                                                 </exclusion>
442                                                                 <exclusion>
443                                                                                 <groupId>org.onap.policy.common</groupId>
444                                                                                 <artifactId>integrity-audit</artifactId>
445                                                                 </exclusion>
446                                                                 <exclusion>
447                                                                         <groupId>com.fasterxml.jackson.core</groupId>
448                                                                         <artifactId>jackson-databind</artifactId>
449                                                                 </exclusion>
450                                                                 <exclusion>
451                                                                                 <groupId>org.onap.aaf.cadi</groupId>
452                                                                                 <artifactId>cadi-aaf</artifactId>
453                                                                 </exclusion>
454                                                                 <exclusion>
455                                                                                 <groupId>javax.jms</groupId>
456                                                                                 <artifactId>jms</artifactId>
457                                                                 </exclusion>
458                                                                 <exclusion>
459                                                                                 <groupId>commons-fileupload</groupId>
460                                                                                 <artifactId>commons-fileupload</artifactId>
461                                                                 </exclusion>
462                                                                 <exclusion>
463                                                                                 <groupId>com.att.research.xacml</groupId>
464                                                                                 <artifactId>xacml</artifactId>
465                                                                 </exclusion>
466                                                 </exclusions>
467                                 </dependency>
468                                 <dependency>
469                                                 <groupId>org.onap.policy.common</groupId>
470                                                 <artifactId>ONAP-Logging</artifactId>
471                                                 <version>1.2.3</version>
472                                                 <exclusions>
473                                                                 <exclusion>
474                                                                                 <artifactId>log4j</artifactId>
475                                                                                 <groupId>log4j</groupId>
476                                                                 </exclusion>
477                                                                 <exclusion>
478                                                                                 <groupId>org.slf4j</groupId>
479                                                                                 <artifactId>slf4j-log4j12</artifactId>
480                                                                 </exclusion>
481                                                                 <exclusion>
482                                                                                 <artifactId>apache-log4j-extras</artifactId>
483                                                                                 <groupId>log4j</groupId>
484                                                                 </exclusion>
485                                                 </exclusions>
486                                 </dependency>
487                                 <dependency>
488                                                 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
489                                                 <artifactId>policy-yaml</artifactId>
490                                                 <version>1.2.3</version>
491                                                 <exclusions>
492                                                                 <exclusion>
493                                                                                 <artifactId>log4j</artifactId>
494                                                                                 <groupId>log4j</groupId>
495                                                                 </exclusion>
496                                                                 <exclusion>
497                                                                                 <groupId>org.slf4j</groupId>
498                                                                                 <artifactId>slf4j-log4j12</artifactId>
499                                                                 </exclusion>
500                                                                 <exclusion>
501                                                                                 <artifactId>apache-log4j-extras</artifactId>
502                                                                                 <groupId>log4j</groupId>
503                                                                 </exclusion>
504                                                 </exclusions>
505                                 </dependency>
506                                 <dependency>
507                                                 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
508                                                 <artifactId>sdc</artifactId>
509                                                 <version>1.2.3</version>
510                                                 <exclusions>
511                                                                 <exclusion>
512                                                                                 <artifactId>log4j</artifactId>
513                                                                                 <groupId>log4j</groupId>
514                                                                 </exclusion>
515                                                                 <exclusion>
516                                                                                 <groupId>org.slf4j</groupId>
517                                                                                 <artifactId>slf4j-log4j12</artifactId>
518                                                                 </exclusion>
519                                                                 <exclusion>
520                                                                                 <artifactId>apache-log4j-extras</artifactId>
521                                                                                 <groupId>log4j</groupId>
522                                                                 </exclusion>
523                                                 </exclusions>
524                                 </dependency>
525                                 <dependency>
526                                                 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
527                                                 <artifactId>aai</artifactId>
528                                                 <version>1.2.3</version>
529                                                 <exclusions>
530                                                                 <exclusion>
531                                                                                 <artifactId>log4j</artifactId>
532                                                                                 <groupId>log4j</groupId>
533                                                                 </exclusion>
534                                                                 <exclusion>
535                                                                                 <groupId>org.slf4j</groupId>
536                                                                                 <artifactId>slf4j-log4j12</artifactId>
537                                                                 </exclusion>
538                                                                 <exclusion>
539                                                                                 <artifactId>apache-log4j-extras</artifactId>
540                                                                                 <groupId>log4j</groupId>
541                                                                 </exclusion>
542                                                 </exclusions>
543                                 </dependency>
544                                 <dependency>
545                                                 <groupId>org.apache.commons</groupId>
546                                                 <artifactId>commons-csv</artifactId>
547                                                 <version>1.3</version>
548                                 </dependency>
549                                 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
550                                 <dependency>
551                                                 <groupId>org.codehaus.plexus</groupId>
552                                                 <artifactId>plexus-utils</artifactId>
553                                                 <version>3.0.24</version>
554                                 </dependency>
555                                 <dependency>
556                                                 <groupId>org.jboss.spec.javax.ws.rs</groupId>
557                                                 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
558                                                 <version>1.0.1.Final</version>
559                                 </dependency>
560                                 <dependency>
561                                                 <groupId>com.google.guava</groupId>
562                                                 <artifactId>guava</artifactId>
563                                 </dependency>
564                                 <!-- Remove the MYSQL connector and replace it by Mariadb -->
565                                 <dependency>
566                                                 <groupId>org.mariadb.jdbc</groupId>
567                                                 <artifactId>mariadb-java-client</artifactId>
568                                                 <version>2.2.1</version>
569                                 </dependency>
570                                 <!-- For SDC Controller -->
571                                 <dependency>
572                                                 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
573                                                 <artifactId>sdc-distribution-client</artifactId>
574                                                 <version>1.3.0</version>
575                                 </dependency>
576                                 <dependency>
577                                                 <groupId>org.onap.sdc.sdc-tosca</groupId>
578                                                 <artifactId>sdc-tosca</artifactId>
579                                                 <version>1.4.1</version>
580                                                 <exclusions>
581                                                         <exclusion>
582                                                                 <groupId>com.fasterxml.jackson.core</groupId>
583                                                                 <artifactId>jackson-databind</artifactId>
584                                                         </exclusion>
585                                                 </exclusions>
586                                 </dependency>
587                                 <!-- TESTING -->
588                                 <dependency>
589                                                 <groupId>org.assertj</groupId>
590                                                 <artifactId>assertj-core</artifactId>
591                                                 <version>3.10.0</version>
592                                                 <scope>test</scope>
593                                 </dependency>
594                                 <dependency>
595                                         <groupId>org.mockito</groupId>
596                                         <artifactId>mockito-core</artifactId>
597                                         <version>1.10.19</version>
598                                         <scope>test</scope>
599                                 </dependency>
600                 </dependencies>
601                 <pluginRepositories>
602                                 <pluginRepository>
603                                                 <id>central-for-plugins</id>
604                                                 <name>Maven 2 repository 2</name>
605                                                 <url>http://repo2.maven.org/maven2/</url>
606                                 </pluginRepository>
607                                 <pluginRepository>
608                                                 <snapshots>
609                                                                 <enabled>false</enabled>
610                                                 </snapshots>
611                                                 <id>jcenter-releases-for-plugins</id>
612                                                 <name>jcenter</name>
613                                                 <url>http://jcenter.bintray.com</url>
614                                 </pluginRepository>
615                 </pluginRepositories>
616                 <build>
617                                 <finalName>clamp</finalName>
618
619                                 <testResources>
620                                                 <testResource>
621                                                                 <directory>src/test/resources</directory>
622                                                                 <excludes>
623                                                                                 <exclude>**/*.jks</exclude>
624                                                                                 <exclude>**/*.csar</exclude>
625                                                                 </excludes>
626                                                                 <filtering>true</filtering>
627                                                 </testResource>
628                                                 <testResource>
629                                                                 <directory>src/test/resources/https</directory>
630                                                                 <includes>
631                                                                                 <include>**.jks</include>
632                                                                 </includes>
633                                                                 <filtering>false</filtering>
634                                                                 <targetPath>https</targetPath>
635                                                 </testResource>
636                                                 <testResource>
637                                                                 <directory>src/test/resources/example/sdc</directory>
638                                                                 <includes>
639                                                                                 <include>**.csar</include>
640                                                                 </includes>
641                                                                 <filtering>false</filtering>
642                                                                 <targetPath>example/sdc</targetPath>
643                                                 </testResource>
644
645                                                 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
646                                                 <testResource>
647                                                                 <directory>src/test/javascript</directory>
648                                                                 <includes>
649                                                                                 <include>**/**.json</include>
650                                                                 </includes>
651                                                                 <filtering>true</filtering>
652                                                                 <targetPath>${project.build.directory}/clamp-ui</targetPath>
653                                                 </testResource>
654                                                 <testResource>
655                                                                 <directory>src/main/resources/META-INF/resources/designer</directory>
656                                                                 <filtering>false</filtering>
657                                                                 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
658                                                 </testResource>
659                                 </testResources>
660                                 <resources>
661                                                 <!--  For AAF folder maven should not try to filter Keystores/Truststores ...
662                                                           Otherwise they will be broken and unreadable
663                                                 -->
664                                                 <resource>
665                                                                 <directory>src/main/resources</directory>
666                                                                 <filtering>true</filtering>
667                                                                 <excludes>
668                                                                         <exclude>clds/aaf/**</exclude>
669                                                                 </excludes>
670                                                 </resource>
671                                                 <resource>
672                                                                 <directory>src/main/resources</directory>
673                                                                 <filtering>false</filtering>
674                                                                 <includes>
675                                                                         <include>clds/aaf/**</include>
676                                                                 </includes>
677                                                 </resource>
678                                                 <resource>
679                                                                 <directory>src/main/docker</directory>
680                                                                 <includes>
681                                                                                 <include>**/*</include>
682                                                                 </includes>
683                                                                 <filtering>true</filtering>
684                                                 </resource>
685                                 </resources>
686
687                                 <plugins>
688                                                 <plugin>
689                                                         <groupId>org.sonatype.plugins</groupId>
690                                                         <artifactId>port-allocator-maven-plugin</artifactId>
691                                                         <version>1.2</version>
692                                                         <executions>
693                                                                 <execution>
694                                                                         <phase>validate</phase>
695                                                                         <goals>
696                                                                                 <goal>allocate-ports</goal>
697                                                                         </goals>
698                                                                         <configuration>
699                                                                                 <ports>
700                                                                                         <port>
701                                                                                                 <name>docker.mariadb.port.host</name>
702                                                                                         </port>
703                                                                                         <port>
704                                                                                                 <name>docker.http-cache.port.host</name>
705                                                                                         </port>
706                                                                                         <port>
707                                                                                                 <name>clamp.it.tests.http-redirected</name>
708                                                                                         </port>
709                                                                                         <port>
710                                                                                                 <name>clamp.it.tests.https</name>
711                                                                                         </port>
712                                                                                         <port>
713                                                                                                 <name>clamp.it.tests.http</name>
714                                                                                         </port>
715                                                                                 </ports>
716                                                                         </configuration>
717                                                                 </execution>
718                                                         </executions>
719                                                 </plugin>
720                                                 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
721                                                         generate a list of .adoc files containing the APIs info in more structured
722                                                         way -->
723                                                 <plugin>
724                                                                 <groupId>io.github.swagger2markup</groupId>
725                                                                 <artifactId>swagger2markup-maven-plugin</artifactId>
726                                                                 <version>1.3.3</version>
727                                                                 <dependencies>
728                                                                                 <dependency>
729                                                                                                 <groupId>io.github.swagger2markup</groupId>
730                                                                                                 <artifactId>swagger2markup-import-files-ext</artifactId>
731                                                                                                 <version>1.3.3</version>
732                                                                                 </dependency>
733                                                                                 <dependency>
734                                                                                                 <groupId>io.github.swagger2markup</groupId>
735                                                                                                 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
736                                                                                                 <version>1.3.3</version>
737                                                                                 </dependency>
738                                                                 </dependencies>
739                                                                 <configuration>
740                                                                                 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
741                                                                                 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
742                                                                                 <config>
743                                                                                                 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
744                                                                                 </config>
745                                                                 </configuration>
746                                                                 <executions>
747                                                                                 <execution>
748                                                                                                 <phase>post-integration-test</phase>
749                                                                                                 <goals>
750                                                                                                                 <goal>convertSwagger2markup</goal>
751                                                                                                 </goals>
752                                                                                 </execution>
753                                                                 </executions>
754                                                 </plugin>
755
756                                                 <!-- Run the generated asciidoc through Asciidoctor to generate other
757                                                                 documentation types, such as PDFs or HTML5 -->
758                                                 <plugin>
759                                                                 <groupId>org.asciidoctor</groupId>
760                                                                 <artifactId>asciidoctor-maven-plugin</artifactId>
761                                                                 <version>1.5.6</version>
762                                                                 <dependencies>
763                                                                                 <dependency>
764                                                                                                 <groupId>org.asciidoctor</groupId>
765                                                                                                 <artifactId>asciidoctorj-pdf</artifactId>
766                                                                                                 <version>1.5.0-alpha.10.1</version>
767                                                                                 </dependency>
768                                                                                 <dependency>
769                                                                                                 <groupId>org.jruby</groupId>
770                                                                                                 <artifactId>jruby-complete</artifactId>
771                                                                                                 <version>1.7.21</version>
772                                                                                 </dependency>
773                                                                 </dependencies>
774                                                                 <configuration>
775                                                                                 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
776                                                                                 <sourceDocumentName>swagger.adoc</sourceDocumentName>
777                                                                                 <attributes>
778                                                                                                 <doctype>book</doctype>
779                                                                                                 <toc>left</toc>
780                                                                                                 <toclevels>3</toclevels>
781                                                                                                 <numbered/>
782                                                                                                 <hardbreaks/>
783                                                                                                 <sectlinks/>
784                                                                                                 <sectanchors/>
785                                                                                                 <generated>${project.build.directory}/asciidoc/generated</generated>
786                                                                                 </attributes>
787                                                                 </configuration>
788
789                                                                 <executions>
790                                                                                 <execution>
791                                                                                                 <id>output-html</id>
792                                                                                                 <phase>post-integration-test</phase>
793                                                                                                 <goals>
794                                                                                                                 <goal>process-asciidoc</goal>
795                                                                                                 </goals>
796                                                                                                 <configuration>
797                                                                                                                 <backend>html5</backend>
798                                                                                                                 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
799                                                                                                                 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
800                                                                                                 </configuration>
801                                                                                 </execution>
802                                                                                 <execution>
803                                                                                                 <id>output-pdf</id>
804                                                                                                 <phase>post-integration-test</phase>
805                                                                                                 <goals>
806                                                                                                                 <goal>process-asciidoc</goal>
807                                                                                                 </goals>
808                                                                                                 <configuration>
809                                                                                                                 <backend>pdf</backend>
810                                                                                                                 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
811                                                                                                 </configuration>
812                                                                                 </execution>
813                                                                 </executions>
814                                                 </plugin>
815                                                 <plugin>
816                                                                 <groupId>org.codehaus.groovy.maven</groupId>
817                                                                 <artifactId>gmaven-plugin</artifactId>
818                                                                 <version>1.0</version>
819                                                                 <executions>
820                                                                                 <execution>
821                                                                                                 <phase>validate</phase>
822                                                                                                 <goals>
823                                                                                                                 <goal>execute</goal>
824                                                                                                 </goals>
825                                                                                                 <configuration>
826                                                                                                                 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
827                                                                                                 </configuration>
828                                                                                 </execution>
829                                                                 </executions>
830                                                 </plugin>
831                                                 <plugin>
832                                                                 <groupId>org.apache.maven.plugins</groupId>
833                                                                 <artifactId>maven-jar-plugin</artifactId>
834                                                                 <version>3.0.2</version>
835                                                                 <executions>
836                                                                                 <execution>
837                                                                                                 <id>jar-with-only-classes</id>
838                                                                                                 <phase>package</phase>
839                                                                                                 <goals>
840                                                                                                                 <goal>jar</goal>
841                                                                                                 </goals>
842                                                                                                 <configuration>
843                                                                                                                 <classifier>classes</classifier>
844                                                                                                                 <includes>
845                                                                                                                                 <include>org/**</include>
846                                                                                                                 </includes>
847                                                                                                 </configuration>
848                                                                                 </execution>
849                                                                 </executions>
850                                                 </plugin>
851                                                 <plugin>
852                                                                 <groupId>org.codehaus.mojo</groupId>
853                                                                 <artifactId>build-helper-maven-plugin</artifactId>
854                                                                 <version>3.0.0</version>
855                                                                 <executions>
856                                                                                 <execution>
857                                                                                                 <goals>
858                                                                                                                 <goal>attach-artifact</goal>
859                                                                                                 </goals>
860                                                                                                 <phase>package</phase>
861                                                                                                 <configuration>
862                                                                                                                 <artifacts>
863                                                                                                                                 <artifact>
864                                                                                                                                                 <file>${project.build.directory}/clamp-classes.jar</file>
865                                                                                                                                                 <type>jar</type>
866                                                                                                                                                 <classifier>classes</classifier>
867                                                                                                                                 </artifact>
868                                                                                                                 </artifacts>
869                                                                                                 </configuration>
870                                                                                 </execution>
871                                                                 </executions>
872                                                 </plugin>
873
874                                                 <plugin>
875                                                                 <groupId>org.springframework.boot</groupId>
876                                                                 <artifactId>spring-boot-maven-plugin</artifactId>
877                                                                 <!-- Temporary fix -->
878                                                                 <version>1.5.13.RELEASE</version>
879                                                                 <!-- <version>${springboot.version}</version> -->
880                                                                 <executions>
881                                                                                 <execution>
882                                                                                                 <goals>
883                                                                                                                 <goal>repackage</goal>
884                                                                                                 </goals>
885                                                                                                 <phase>package</phase>
886                                                                                 </execution>
887                                                                 </executions>
888                                                 </plugin>
889                                                 <plugin>
890                                                                 <groupId>org.sonatype.plugins</groupId>
891                                                                 <artifactId>nexus-staging-maven-plugin</artifactId>
892                                                                 <version>1.6.7</version>
893                                                                 <extensions>true</extensions>
894                                                                 <configuration>
895                                                                                 <nexusUrl>https://nexus.onap.org</nexusUrl>
896                                                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
897                                                                                 <serverId>ecomp-staging</serverId>
898                                                                                 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
899                                                                 </configuration>
900                                                 </plugin>
901
902                                                 <plugin>
903                                                                 <groupId>org.apache.maven.plugins</groupId>
904                                                                 <artifactId>maven-surefire-plugin</artifactId>
905                                                                 <version>2.22.1</version>
906                                                                 <configuration>
907                                                                                 <forkCount>1C</forkCount>
908                                                                                 <reuseForks>true</reuseForks>
909                                                                                 <useSystemClassLoader>false</useSystemClassLoader>
910                                                                                 <argLine>${surefireArgLine}</argLine>
911                                                                 </configuration>
912                                                 </plugin>
913
914                                                 <plugin>
915                                                                 <groupId>org.apache.maven.plugins</groupId>
916                                                                 <artifactId>maven-failsafe-plugin</artifactId>
917                                                                 <version>2.22.1</version>
918                                                                 <executions>
919                                                                                 <execution>
920                                                                                                 <id>integration-tests</id>
921                                                                                                 <goals>
922                                                                                                                 <goal>integration-test</goal>
923                                                                                                                 <goal>verify</goal>
924                                                                                                 </goals>
925                                                                                                 <configuration>
926                                                                                                                 <additionalClasspathElements>
927                                                                                                                         <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
928                                                                                                                 </additionalClasspathElements>
929                                                                                                                 <includes>
930                                                                                                                                 <include>**/*ItCase.java</include>
931                                                                                                                 </includes>
932                                                                                                                 <forkCount>1</forkCount>
933                                                                                                                 <reuseForks>true</reuseForks>
934                                                                                                                 <useSystemClassLoader>false</useSystemClassLoader>
935                                                                                                                 <argLine>${failsafeArgLine}</argLine>
936                                                                                                 </configuration>
937                                                                                 </execution>
938                                                                 </executions>
939
940                                                 </plugin>
941                                                 <plugin>
942                                                                 <groupId>io.fabric8</groupId>
943                                                                 <artifactId>docker-maven-plugin</artifactId>
944                                                                 <version>0.27.2</version>
945                                                                 <dependencies>
946                                                                         <dependency>
947                                                                                 <groupId>org.apache.httpcomponents</groupId>
948                                                                                 <artifactId>httpclient</artifactId>
949                                                                                 <version>4.5.5</version>
950                                                                         </dependency>
951                                                                 </dependencies>
952                                                                 <configuration>
953                                                                                 <verbose>true</verbose>
954                                                                                 <apiVersion>1.35</apiVersion>
955                                                                                 <images>
956                                                                                                 <image>
957                                                                                                                 <name>library/mariadb:10.1.11</name>
958                                                                                                                 <alias>mariadb</alias>
959                                                                                                                 <run>
960                                                                                                                                 <env>
961                                                                                                                                                 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
962                                                                                                                                 </env>
963                                                                                                                                 <hostname>mariadb</hostname>
964                                                                                                                                 <volumes>
965                                                                                                                                                 <bind>
966                                                                                                                                                                 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
967                                                                                                                                                                 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
968                                                                                                                                                 </bind>
969                                                                                                                                 </volumes>
970                                                                                                                                 <wait>
971                                                                                                                                                 <log>socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution</log>
972                                                                                                                                                 <time>600000</time>
973                                                                                                                                 </wait>
974                                                                                                                                 <ports>
975                                                                                                                                                 <port>${docker.mariadb.port.host}:3306</port>
976                                                                                                                                 </ports>
977                                                                                                                 </run>
978                                                                                                 </image>
979                                                                                                 <image>
980                                                                                                                 <name>library/python:2-slim</name>
981                                                                                                                 <alias>python</alias>
982                                                                                                                 <run>
983                                                                                                                                 <hostname>python</hostname>
984                                                                                                                                 <volumes>
985                                                                                                                                                 <bind>
986                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
987                                                                                                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
988                                                                                                                                                 </bind>
989                                                                                                                                 </volumes>
990                                                                                                                                 <wait>
991                                                                                                                                                 <tcp>
992                                                                                                                                                                 <ports>
993                                                                                                                                                                                 <port>8080</port>
994                                                                                                                                                                 </ports>
995                                                                                                                                                                 <mode>direct</mode>
996                                                                                                                                                 </tcp>
997                                                                                                                                                 <time>120000</time>
998                                                                                                                                 </wait>
999                                                                                                                                 <ports>
1000                                                                                                                                                 <port>${docker.http-cache.port.host}:8080</port>
1001                                                                                                                                 </ports>
1002                                                                                                                                 <workingDir>/usr/src/http-cache-app</workingDir>
1003                                                                                                                                 <cmd>
1004                                                                                                                                                 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1005                                                                                                                                 </cmd>
1006                                                                                                                 </run>
1007                                                                                                 </image>
1008                                                                                                 <image>
1009                                                                                                                 <name>onap/clamp</name>
1010                                                                                                                 <alias>onap-clamp</alias>
1011                                                                                                                 <run>
1012                                                                                                                         <skip>true</skip>
1013                                                                                                                 </run>
1014                                                                                                                 <build>
1015                                                                                                                                 <cleanup>true</cleanup>
1016                                                                                                                                 <tags>
1017                                                                                                                                                 <tag>latest</tag>
1018                                                                                                                                                 <tag>${project.docker.latesttagtimestamp.version}</tag>
1019                                                                                                                                                 <tag>${project.docker.latesttag.version}</tag>
1020                                                                                                                                 </tags>
1021                                                                                                                                 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1022                                                                                                                                                 by default -->
1023                                                                                                                                 <dockerFile>Dockerfile</dockerFile>
1024                                                                                                                                 <assembly>
1025                                                                                                                                                 <descriptor>assembly/clamp-files.xml</descriptor>
1026                                                                                                                                                 <name>onap-clamp</name>
1027                                                                                                                                 </assembly>
1028                                                                                                                 </build>
1029                                                                                                 </image>
1030                                                                                                 <image>
1031                                                                                                                 <name>onap/clamp-dashboard-logstash</name>
1032                                                                                                                 <alias>onap-clamp-dashboard-logstash</alias>
1033                                                                                                                 <run>
1034                                                                                                                         <skip>true</skip>
1035                                                                                                                 </run>
1036                                                                                                                 <build>
1037                                                                                                                                 <cleanup>true</cleanup>
1038                                                                                                                                 <tags>
1039                                                                                                                                                 <tag>latest</tag>
1040                                                                                                                                                 <tag>${project.docker.latesttagtimestamp.version}</tag>
1041                                                                                                                                                 <tag>${project.docker.latesttag.version}</tag>
1042                                                                                                                                 </tags>
1043                                                                                                                                 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
1044                                                                                                                 </build>
1045                                                                                                 </image>
1046                                                                                                 <image>
1047                                                                                                                 <name>onap/clamp-dashboard-kibana</name>
1048                                                                                                                 <alias>onap-clamp-dashboard-kibana</alias>
1049                                                                                                                 <run>
1050                                                                                                                         <skip>true</skip>
1051                                                                                                                 </run>
1052                                                                                                                 <build>
1053                                                                                                                                 <cleanup>true</cleanup>
1054                                                                                                                                 <tags>
1055                                                                                                                                                 <tag>latest</tag>
1056                                                                                                                                                 <tag>${project.docker.latesttagtimestamp.version}</tag>
1057                                                                                                                                                 <tag>${project.docker.latesttag.version}</tag>
1058                                                                                                                                 </tags>
1059                                                                                                                                 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1060                                                                                                                 </build>
1061                                                                                                 </image>
1062                                                                                 </images>
1063                                                                 </configuration>
1064
1065                                                                 <executions>
1066                                                                                 <execution>
1067                                                                                                 <id>generate-images</id>
1068                                                                                                 <phase>install</phase>
1069                                                                                                 <goals>
1070                                                                                                                 <goal>build</goal>
1071                                                                                                 </goals>
1072                                                                                 </execution>
1073                                                                                 <execution>
1074                                                                                                 <id>push-images</id>
1075                                                                                                 <phase>deploy</phase>
1076                                                                                                 <goals>
1077                                                                                                                 <goal>push</goal>
1078                                                                                                 </goals>
1079                                                                                 </execution>
1080                                                                                 <execution>
1081                                                                                                 <id>docker-start-for-it</id>
1082                                                                                                 <phase>pre-integration-test</phase>
1083                                                                                                 <goals>
1084                                                                                                                 <goal>start</goal>
1085                                                                                                 </goals>
1086                                                                                 </execution>
1087                                                                                 <execution>
1088                                                                                                 <id>docker-stop-for-it</id>
1089                                                                                                 <phase>post-integration-test</phase>
1090                                                                                                 <goals>
1091                                                                                                                 <goal>stop</goal>
1092                                                                                                 </goals>
1093                                                                                 </execution>
1094                                                                 </executions>
1095                                                 </plugin>
1096
1097                                                 <plugin>
1098                                                                 <groupId>org.jacoco</groupId>
1099                                                                 <artifactId>jacoco-maven-plugin</artifactId>
1100                                                                 <version>0.8.2</version>
1101                                                                 <configuration>
1102                                                                                 <dumpOnExit>true</dumpOnExit>
1103                                                                                 <append>true</append>
1104                                                                                 <includes>
1105                                                                                                 <include>org.onap.clamp.*</include>
1106                                                                                 </includes>
1107                                                                 </configuration>
1108                                                                 <executions>
1109                                                                                 <execution>
1110                                                                                                 <id>pre-unit-test</id>
1111                                                                                                 <goals>
1112                                                                                                                 <goal>prepare-agent</goal>
1113                                                                                                 </goals>
1114                                                                                                 <configuration>
1115                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1116                                                                                                                 <propertyName>surefireArgLine</propertyName>
1117                                                                                                                 <!-- <append>true</append> -->
1118                                                                                                 </configuration>
1119                                                                                 </execution>
1120                                                                                 <execution>
1121                                                                                                 <id>pre-integration-test</id>
1122                                                                                                 <phase>pre-integration-test</phase>
1123                                                                                                 <goals>
1124                                                                                                                 <goal>prepare-agent</goal>
1125                                                                                                 </goals>
1126                                                                                                 <configuration>
1127                                                                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1128                                                                                                                 <propertyName>failsafeArgLine</propertyName>
1129                                                                                                                 <!-- <append>true</append> -->
1130                                                                                                 </configuration>
1131                                                                                 </execution>
1132                                                                                 <execution>
1133                                                                                                 <goals>
1134                                                                                                                 <goal>merge</goal>
1135                                                                                                 </goals>
1136                                                                                                 <phase>post-integration-test</phase>
1137                                                                                                 <configuration>
1138                                                                                                                 <fileSets>
1139                                                                                                                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1140                                                                                                                                                 <directory>${project.build.directory}/coverage-reports</directory>
1141                                                                                                                                                 <includes>
1142                                                                                                                                                                 <include>*.exec</include>
1143                                                                                                                                                 </includes>
1144                                                                                                                                 </fileSet>
1145                                                                                                                 </fileSets>
1146                                                                                                                 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1147                                                                                                 </configuration>
1148                                                                                 </execution>
1149                                                                 </executions>
1150                                                 </plugin>
1151
1152                                                 <!-- This plugin will be useful when we will have multi-modules project -->
1153                                                 <plugin>
1154                                                                 <groupId>org.codehaus.mojo</groupId>
1155                                                                 <artifactId>versions-maven-plugin</artifactId>
1156                                                                 <version>1.3.1</version>
1157                                                 </plugin>
1158
1159                                         <plugin>
1160                                                 <groupId>com.github.eirslett</groupId>
1161                                                 <artifactId>frontend-maven-plugin</artifactId>
1162                                                 <version>1.6</version>
1163                                                 <configuration>
1164                                                         <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1165                                                         <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1166                                                         <skip>${maven.test.skip}</skip>
1167                                                 </configuration>
1168
1169                                                 <executions>
1170                                                         <execution>
1171                                                                 <id>install_node_and_npm</id>
1172                                                                 <goals>
1173                                                                         <goal>install-node-and-npm</goal>
1174                                                                 </goals>
1175                                                                 <phase>test</phase>
1176                                                                 <configuration>
1177                                                                         <nodeVersion>v8.11.1</nodeVersion>
1178                                                                         <npmVersion>5.6.0</npmVersion>
1179                                                                 </configuration>
1180                                                         </execution>
1181                                                         <execution>
1182                                                                 <id>npm_install</id>
1183                                                                 <goals>
1184                                                                         <goal>npm</goal>
1185                                                                 </goals>
1186                                                                 <phase>test</phase>
1187                                                                 <configuration>
1188                                                                         <arguments>install</arguments>
1189                                                                 </configuration>
1190                                                         </execution>
1191                                                         <execution>
1192                                                                 <id>npm_test</id>
1193                                                                 <goals>
1194                                                                         <goal>npm</goal>
1195                                                                 </goals>
1196                                                                 <phase>test</phase>
1197                                                                 <configuration>
1198                                                                         <arguments>run-script test:coverage</arguments>
1199                                                                 </configuration>
1200                                                         </execution>
1201
1202                                                 </executions>
1203                                         </plugin>
1204                                 </plugins>
1205                 </build>
1206 </project>