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