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