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