Release clamp
[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.7</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.6.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                         </exclusions>
394                 </dependency>
395                 <dependency>
396                         <groupId>org.springframework.boot</groupId>
397                         <artifactId>spring-boot-starter-tomcat</artifactId>
398                 </dependency>
399                 <dependency>
400                         <groupId>org.springframework</groupId>
401                         <artifactId>spring-jdbc</artifactId>
402                 </dependency>
403                 <dependency>
404                         <groupId>org.springframework.boot</groupId>
405                         <artifactId>spring-boot-starter-security</artifactId>
406                 </dependency>
407                 <dependency>
408                         <groupId>org.springframework.boot</groupId>
409                         <artifactId>spring-boot-autoconfigure</artifactId>
410                 </dependency>
411                 <dependency>
412                         <groupId>org.springframework.boot</groupId>
413                         <artifactId>spring-boot-starter-test</artifactId>
414                         <scope>test</scope>
415                         <exclusions>
416                                 <exclusion>
417                                         <groupId>com.vaadin.external.google</groupId>
418                                         <artifactId>android-json</artifactId>
419                                 </exclusion>
420                         </exclusions>
421                 </dependency>
422                 <dependency>
423                         <groupId>org.springframework.boot</groupId>
424                         <artifactId>spring-boot-starter-data-jpa</artifactId>
425                 </dependency>
426                 <!-- Others dependencies -->
427                 <dependency>
428                         <groupId>org.onap.aaf.authz</groupId>
429                         <artifactId>aaf-cadi-aaf</artifactId>
430                         <version>2.1.15</version>
431                         <exclusions>
432                                 <exclusion>
433                                         <groupId>javax.servlet</groupId>
434                                         <artifactId>servlet-api</artifactId>
435                                 </exclusion>
436                                 <exclusion>
437                                         <groupId>log4j</groupId>
438                                         <artifactId>log4j</artifactId>
439                                 </exclusion>
440                         </exclusions>
441                 </dependency>
442                 <dependency>
443                         <groupId>ch.qos.logback</groupId>
444                         <artifactId>logback-core</artifactId>
445                         <version>1.2.3</version>
446                 </dependency>
447                 <dependency>
448                         <groupId>ch.qos.logback</groupId>
449                         <artifactId>logback-classic</artifactId>
450                         <version>1.2.3</version>
451                 </dependency>
452                 <dependency>
453                         <groupId>commons-dbcp</groupId>
454                         <artifactId>commons-dbcp</artifactId>
455                         <version>1.4</version>
456                 </dependency>
457                 <dependency>
458                         <groupId>commons-io</groupId>
459                         <artifactId>commons-io</artifactId>
460                         <version>2.6</version>
461                 </dependency>
462                 <dependency>
463                         <groupId>com.googlecode.json-simple</groupId>
464                         <artifactId>json-simple</artifactId>
465                         <version>1.1.1</version>
466                 </dependency>
467                 <dependency>
468                         <groupId>org.apache.commons</groupId>
469                         <artifactId>commons-vfs2</artifactId>
470                         <version>2.2</version>
471                 </dependency>
472                 <dependency>
473                         <groupId>joda-time</groupId>
474                         <artifactId>joda-time</artifactId>
475                 </dependency>
476                 <dependency>
477                         <groupId>org.slf4j</groupId>
478                         <artifactId>slf4j-api</artifactId>
479                 </dependency>
480                 <dependency>
481                         <groupId>javax.ws.rs</groupId>
482                         <artifactId>javax.ws.rs-api</artifactId>
483                         <version>2.0</version>
484                 </dependency>
485                 <dependency>
486                         <groupId>junit</groupId>
487                         <artifactId>junit</artifactId>
488                 </dependency>
489                 <dependency>
490                         <groupId>javax.transaction</groupId>
491                         <artifactId>jta</artifactId>
492                         <version>1.1</version>
493                 </dependency>
494                 <dependency>
495                         <groupId>javax.persistence</groupId>
496                         <artifactId>persistence-api</artifactId>
497                         <version>1.0.2</version>
498                 </dependency>
499                 <dependency>
500                         <groupId>org.apache.commons</groupId>
501                         <artifactId>commons-csv</artifactId>
502                         <version>1.3</version>
503                 </dependency>
504                 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
505                 <dependency>
506                         <groupId>org.springframework.security</groupId>
507                         <artifactId>spring-security-web</artifactId>
508                         <version>5.2.3.RELEASE</version>
509                 </dependency>
510                 <dependency>
511                         <groupId>org.codehaus.plexus</groupId>
512                         <artifactId>plexus-utils</artifactId>
513                         <version>3.0.24</version>
514                 </dependency>
515                 <dependency>
516                         <groupId>org.jboss.spec.javax.ws.rs</groupId>
517                         <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
518                         <version>1.0.1.Final</version>
519                 </dependency>
520                 <dependency>
521                         <groupId>com.google.guava</groupId>
522                         <artifactId>guava</artifactId>
523                         <version>27.0-jre</version>
524                 </dependency>
525                 <dependency>
526                         <groupId>commons-codec</groupId>
527                         <artifactId>commons-codec</artifactId>
528                         <version>1.13</version>
529                 </dependency>
530                 <!-- Remove the MYSQL connector and replace it by Mariadb -->
531                 <dependency>
532                         <groupId>org.mariadb.jdbc</groupId>
533                         <artifactId>mariadb-java-client</artifactId>
534                         <version>2.2.1</version>
535                 </dependency>
536                 <!-- For SDC Controller -->
537                 <dependency>
538                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
539                         <artifactId>sdc-distribution-client</artifactId>
540                         <version>1.3.0</version>
541                 </dependency>
542                 <dependency>
543                         <groupId>org.onap.sdc.sdc-tosca</groupId>
544                         <artifactId>sdc-tosca</artifactId>
545                         <version>1.5.1</version>
546                 </dependency>
547                 <dependency>
548                         <groupId>org.yaml</groupId>
549                         <artifactId>snakeyaml</artifactId>
550                         <version>1.26</version>
551                 </dependency>
552                 <dependency>
553                         <groupId>org.dom4j</groupId>
554                         <artifactId>dom4j</artifactId>
555                         <version>2.1.3</version>
556                 </dependency>
557
558                 <!-- TESTING -->
559                 <dependency>
560                         <groupId>org.assertj</groupId>
561                         <artifactId>assertj-core</artifactId>
562                         <version>3.10.0</version>
563                         <scope>test</scope>
564                 </dependency>
565                 <dependency>
566                         <groupId>org.mockito</groupId>
567                         <artifactId>mockito-core</artifactId>
568                         <version>2.28.2</version>
569                         <scope>test</scope>
570                 </dependency>
571                 <dependency>
572                         <groupId>org.powermock</groupId>
573                         <artifactId>powermock-api-mockito2</artifactId>
574                         <version>2.0.4</version>
575                         <scope>test</scope>
576                 </dependency>
577                 <dependency>
578                         <groupId>org.powermock</groupId>
579                         <artifactId>powermock-module-junit4</artifactId>
580                         <version>2.0.4</version>
581                         <scope>test</scope>
582                 </dependency>
583         </dependencies>
584
585         <build>
586                 <finalName>clamp</finalName>
587
588                 <testResources>
589                         <testResource>
590                                 <directory>src/main/resources</directory>
591                                 <filtering>true</filtering>
592                                 <excludes>
593                                         <exclude>clds/aaf/**</exclude>
594                                 </excludes>
595                         </testResource>
596                         <testResource>
597                                 <directory>src/main/resources</directory>
598                                 <filtering>false</filtering>
599                                 <includes>
600                                         <include>clds/aaf/**</include>
601                                 </includes>
602                         </testResource>
603                         <testResource>
604                                 <directory>src/test/resources</directory>
605                                 <excludes>
606                                         <exclude>**/*.jks</exclude>
607                                         <exclude>**/*.csar</exclude>
608                                 </excludes>
609                                 <filtering>true</filtering>
610                         </testResource>
611                         <testResource>
612                                 <directory>src/test/resources/https</directory>
613                                 <includes>
614                                         <include>**.jks</include>
615                                 </includes>
616                                 <filtering>false</filtering>
617                                 <targetPath>https</targetPath>
618                         </testResource>
619                         <testResource>
620                                 <directory>src/test/resources/example/sdc</directory>
621                                 <includes>
622                                         <include>**.csar</include>
623                                 </includes>
624                                 <filtering>false</filtering>
625                                 <targetPath>example/sdc</targetPath>
626                         </testResource>
627                 </testResources>
628                 <resources>
629                         <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
630                                 they will be broken and unreadable -->
631                         <resource>
632                                 <directory>src/main/resources</directory>
633                                 <filtering>true</filtering>
634                                 <excludes>
635                                         <exclude>clds/aaf/**</exclude>
636                                 </excludes>
637                         </resource>
638                         <resource>
639                                 <directory>src/main/resources</directory>
640                                 <filtering>false</filtering>
641                                 <includes>
642                                         <include>clds/aaf/**</include>
643                                 </includes>
644                         </resource>
645                         <resource>
646                                 <directory>${ui.react.src}</directory>
647                                 <excludes>
648                                         <exclude>node_modules</exclude>
649                                 </excludes>
650                                 <includes>
651                                         <include>src/**</include>
652                                         <include>public/**</include>
653                                         <include>package.json</include>
654                                         <include>package-lock.json</include>
655                                 </includes>
656                                 <filtering>true</filtering>
657                                 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
658                         </resource>
659                         <resource>
660                                 <directory>${ui.react.src}</directory>
661                                 <includes>
662                                         <include>src/**</include>
663                                 </includes>
664                                 <excludes>
665                                         <exclude>**/__snapshots__/**</exclude>
666                                         <exclude>**/**.test.js</exclude>
667                                 </excludes>
668                                 <filtering>true</filtering>
669                                 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
670                         </resource>
671                         <resource>
672                                 <directory>${ui.react.lib.src}</directory>
673                                 <includes>
674                                         <include>**</include>
675                                 </includes>
676                                 <excludes>
677                                         <exclude>node_modules/**</exclude>
678                                         <exclude>package-lock.json</exclude>
679                                 </excludes>
680                                 <filtering>true</filtering>
681                                 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
682                         </resource>
683                 </resources>
684
685                 <plugins>
686                         <plugin>
687                                         <groupId>de.jpdigital</groupId>
688                                         <artifactId>hibernate52-ddl-maven-plugin</artifactId>
689                                         <version>2.2.0</version>
690                                 <dependencies>
691                                         <dependency>
692                                                 <groupId>javax.xml.bind</groupId>
693                                                 <artifactId>jaxb-api</artifactId>
694                                                 <version>2.3.0</version>
695                                         </dependency>
696                                 </dependencies>
697                                 <executions>
698                                         <execution>
699                                                 <phase>process-classes</phase>
700                                                 <goals>
701                                                         <goal>gen-ddl</goal>
702                                                 </goals>
703                                                 <configuration>
704                                                         <packages>
705                                                                 <param>org.onap.clamp</param>
706                                                         </packages>
707                                                         <dialects>
708                                                                 <param>MARIADB53</param>
709                                                         </dialects>
710                                                         <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
711                                                         <outputFileNameSuffix>create-tables</outputFileNameSuffix>
712                                                         <!-- <createDropStatements>true</createDropStatements> -->
713                                                         <omitDialectFromFileName>true</omitDialectFromFileName>
714                                                 </configuration>
715                                         </execution>
716                                 </executions>
717
718                         </plugin>
719                         <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
720                                 a list of .adoc files containing the APIs info in more structured way -->
721                         <plugin>
722                                 <groupId>io.github.swagger2markup</groupId>
723                                 <artifactId>swagger2markup-maven-plugin</artifactId>
724                                 <version>1.3.3</version>
725                                 <dependencies>
726                                         <dependency>
727                                                 <groupId>io.github.swagger2markup</groupId>
728                                                 <artifactId>swagger2markup-import-files-ext</artifactId>
729                                                 <version>1.3.3</version>
730                                         </dependency>
731                                         <dependency>
732                                                 <groupId>io.github.swagger2markup</groupId>
733                                                 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
734                                                 <version>1.3.3</version>
735                                         </dependency>
736                                 </dependencies>
737                                 <configuration>
738                                         <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
739                                         <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
740                                         <config>
741                                                 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
742                                         </config>
743                                 </configuration>
744                                 <executions>
745                                         <execution>
746                                                 <phase>post-integration-test</phase>
747                                                 <goals>
748                                                         <goal>convertSwagger2markup</goal>
749                                                 </goals>
750                                         </execution>
751                                 </executions>
752                         </plugin>
753
754                         <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
755                                 types, such as PDFs or HTML5 -->
756                         <plugin>
757                                 <groupId>org.asciidoctor</groupId>
758                                 <artifactId>asciidoctor-maven-plugin</artifactId>
759                                 <version>1.5.7.1</version>
760                                 <dependencies>
761                                         <dependency>
762                                                 <groupId>org.asciidoctor</groupId>
763                                                 <artifactId>asciidoctorj-pdf</artifactId>
764                                                 <version>1.5.0-alpha.10.1</version>
765                                         </dependency>
766                                 </dependencies>
767                                 <configuration>
768                                         <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
769                                         <sourceDocumentName>swagger.adoc</sourceDocumentName>
770                                         <attributes>
771                                                 <doctype>book</doctype>
772                                                 <toc>left</toc>
773                                                 <toclevels>3</toclevels>
774                                                 <numbered />
775                                                 <hardbreaks />
776                                                 <sectlinks />
777                                                 <sectanchors />
778                                                 <generated>${project.build.directory}/asciidoc/generated</generated>
779                                         </attributes>
780                                 </configuration>
781
782                                 <executions>
783                                         <execution>
784                                                 <id>output-html</id>
785                                                 <phase>post-integration-test</phase>
786                                                 <goals>
787                                                         <goal>process-asciidoc</goal>
788                                                 </goals>
789                                                 <configuration>
790                                                         <backend>html5</backend>
791                                                         <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
792                                                         <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
793                                                 </configuration>
794                                         </execution>
795                                         <execution>
796                                                 <id>output-pdf</id>
797                                                 <phase>post-integration-test</phase>
798                                                 <goals>
799                                                         <goal>process-asciidoc</goal>
800                                                 </goals>
801                                                 <configuration>
802                                                         <backend>pdf</backend>
803                                                         <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
804                                                 </configuration>
805                                         </execution>
806                                 </executions>
807                         </plugin>
808                         <plugin>
809                                 <groupId>org.codehaus.groovy.maven</groupId>
810                                 <artifactId>gmaven-plugin</artifactId>
811                                 <version>1.0</version>
812                                 <executions>
813                                         <execution>
814                                                 <id>docker-tags</id>
815                                                 <phase>validate</phase>
816                                                 <goals>
817                                                         <goal>execute</goal>
818                                                 </goals>
819                                                 <configuration>
820                                                         <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
821                                                 </configuration>
822                                         </execution>
823                                         <execution>
824                                                 <id>npm-repos-selection</id>
825                                                 <phase>validate</phase>
826                                                 <goals>
827                                                         <goal>execute</goal>
828                                                 </goals>
829                                                 <configuration>
830                                                         <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
831                                                 </configuration>
832                                         </execution>
833                                 </executions>
834                         </plugin>
835                         <plugin>
836                                 <groupId>org.apache.maven.plugins</groupId>
837                                 <artifactId>maven-jar-plugin</artifactId>
838                                 <version>3.0.2</version>
839                                 <executions>
840                                         <execution>
841                                                 <id>jar-with-only-classes</id>
842                                                 <phase>package</phase>
843                                                 <goals>
844                                                         <goal>jar</goal>
845                                                 </goals>
846                                                 <configuration>
847                                                         <classifier>classes</classifier>
848                                                         <includes>
849                                                                 <include>org/**</include>
850                                                         </includes>
851                                                 </configuration>
852                                         </execution>
853                                 </executions>
854                         </plugin>
855                         <plugin>
856                                 <groupId>org.codehaus.mojo</groupId>
857                                 <artifactId>build-helper-maven-plugin</artifactId>
858                                 <version>3.0.0</version>
859                                 <executions>
860                                         <execution>
861                                                 <goals>
862                                                         <goal>attach-artifact</goal>
863                                                 </goals>
864                                                 <phase>package</phase>
865                                                 <configuration>
866                                                         <artifacts>
867                                                                 <artifact>
868                                                                         <file>${project.build.directory}/clamp-classes.jar</file>
869                                                                         <type>jar</type>
870                                                                         <classifier>classes</classifier>
871                                                                 </artifact>
872                                                         </artifacts>
873                                                 </configuration>
874                                         </execution>
875                                         <execution>
876                                                 <id>reserve-port-for-tests</id>
877                                                 <phase>process-resources</phase>
878                                                 <goals>
879                                                         <goal>reserve-network-port</goal>
880                                                 </goals>
881                                                 <configuration>
882                                                         <portNames>
883                                                                 <portName>docker.mariadb.port.host</portName>
884                                                                 <portName>docker.http-cache.port.host</portName>
885                                                                 <portName>clamp.it.tests.http-redirected</portName>
886                                                                 <portName>clamp.it.tests.https</portName>
887                                                                 <portName>clamp.it.tests.http</portName>
888                                                         </portNames>
889                                                 </configuration>
890                                         </execution>
891                                 </executions>
892                         </plugin>
893
894                         <plugin>
895                                 <groupId>org.springframework.boot</groupId>
896                                 <artifactId>spring-boot-maven-plugin</artifactId>
897                                 <version>${springboot.version}</version>
898                                 <executions>
899                                         <execution>
900                                                 <goals>
901                                                         <goal>repackage</goal>
902                                                 </goals>
903                                                 <phase>package</phase>
904                                         </execution>
905                                 </executions>
906                         </plugin>
907                         <plugin>
908                                 <groupId>org.apache.maven.plugins</groupId>
909                                 <artifactId>maven-surefire-plugin</artifactId>
910                                 <version>2.22.2</version>
911                                 <configuration>
912                                         <forkCount>1C</forkCount>
913                                         <reuseForks>true</reuseForks>
914                                         <useSystemClassLoader>false</useSystemClassLoader>
915                                         <argLine>${surefireArgLine}</argLine>
916                                 </configuration>
917                         </plugin>
918
919                         <plugin>
920                                 <groupId>org.apache.maven.plugins</groupId>
921                                 <artifactId>maven-failsafe-plugin</artifactId>
922                                 <version>2.22.2</version>
923                                 <executions>
924                                         <execution>
925                                                 <id>integration-tests</id>
926                                                 <goals>
927                                                         <goal>integration-test</goal>
928                                                         <goal>verify</goal>
929                                                 </goals>
930                                                 <configuration>
931                                                         <additionalClasspathElements>
932                                                                 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
933                                                         </additionalClasspathElements>
934                                                         <includes>
935                                                                 <include>**/*ItCase.java</include>
936                                                         </includes>
937                                                         <forkCount>1C</forkCount>
938                                                         <reuseForks>true</reuseForks>
939                                                         <useSystemClassLoader>false</useSystemClassLoader>
940                                                         <argLine>${failsafeArgLine}</argLine>
941                                                 </configuration>
942                                         </execution>
943                                 </executions>
944                         </plugin>
945                         <plugin>
946                                 <groupId>io.fabric8</groupId>
947                                 <artifactId>docker-maven-plugin</artifactId>
948                                 <version>0.31.0</version>
949                                 <dependencies>
950                                         <dependency>
951                                                 <groupId>org.apache.httpcomponents</groupId>
952                                                 <artifactId>httpclient</artifactId>
953                                                 <version>4.5.5</version>
954                                         </dependency>
955                                 </dependencies>
956                                 <configuration>
957                                         <verbose>true</verbose>
958                                         <apiVersion>1.35</apiVersion>
959                                         <images>
960                                                 <image>
961                                                         <name>library/mariadb:10.3.12</name>
962                                                         <alias>mariadb</alias>
963                                                         <run>
964                                                                 <env>
965                                                                         <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
966                                                                 </env>
967                                                                 <hostname>mariadb</hostname>
968                                                                 <volumes>
969                                                                         <bind>
970                                                                                 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
971                                                                                 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
972                                                                         </bind>
973                                                                 </volumes>
974                                                                 <wait>
975                                                                         <log>socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution</log>
976                                                                         <time>600000</time>
977                                                                         <exec>
978                                                                                 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
979                                                                         </exec>
980                                                                 </wait>
981                                                                 <ports>
982                                                                         <port>${docker.mariadb.port.host}:3306</port>
983                                                                 </ports>
984                                                                 <network>
985                                                                         <mode>bridge</mode>
986                                                                 </network>
987                                                         </run>
988                                                 </image>
989                                                 <image>
990                                                         <name>library/python:2-slim</name>
991                                                         <alias>python</alias>
992                                                         <run>
993                                                                 <hostname>python</hostname>
994                                                                 <volumes>
995                                                                         <bind>
996                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
997                                                                                 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
998                                                                         </bind>
999                                                                 </volumes>
1000                                                                 <wait>
1001                                                                         <tcp>
1002                                                                                 <ports>
1003                                                                                         <port>8080</port>
1004                                                                                 </ports>
1005                                                                                 <mode>direct</mode>
1006                                                                         </tcp>
1007                                                                         <time>120000</time>
1008                                                                 </wait>
1009                                                                 <ports>
1010                                                                         <port>${docker.http-cache.port.host}:8080</port>
1011                                                                 </ports>
1012                                                                 <workingDir>/usr/src/http-cache-app</workingDir>
1013                                                                 <cmd>
1014                                                                         <shell>./start_http_cache.sh ${python.http.proxy.param}
1015                                                                                 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1016                                                                 </cmd>
1017                                                                 <network>
1018                                                                         <mode>bridge</mode>
1019                                                                 </network>
1020                                                         </run>
1021                                                 </image>
1022                                                 <image>
1023                                                         <name>onap/clamp-backend</name>
1024                                                         <alias>onap-clamp-backend</alias>
1025                                                         <run>
1026                                                                 <skip>true</skip>
1027                                                         </run>
1028                                                         <build>
1029                                                                 <cleanup>true</cleanup>
1030                                                                 <tags>
1031                                                                         <tag>latest</tag>
1032                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
1033                                                                         <tag>${project.docker.latesttag.version}</tag>
1034                                                                 </tags>
1035                                                                 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1036                                                                         default -->
1037                                                                 <dockerFile>backend/Dockerfile</dockerFile>
1038                                                                 <assembly>
1039                                                                         <descriptor>backend/backend-files.xml</descriptor>
1040                                                                         <name>onap-clamp-backend</name>
1041                                                                 </assembly>
1042                                                         </build>
1043                                                 </image>
1044                                                 <image>
1045                                                         <name>onap/clamp-frontend</name>
1046                                                         <alias>onap-clamp-frontend</alias>
1047                                                         <run>
1048                                                                 <skip>true</skip>
1049                                                         </run>
1050                                                         <build>
1051                                                                 <cleanup>true</cleanup>
1052                                                                 <tags>
1053                                                                         <tag>latest</tag>
1054                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
1055                                                                         <tag>${project.docker.latesttag.version}</tag>
1056                                                                 </tags>
1057                                                                 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1058                                                                         default -->
1059                                                                 <dockerFile>frontend/Dockerfile</dockerFile>
1060                                                                 <assembly>
1061                                                                         <descriptor>frontend/frontend-files.xml</descriptor>
1062                                                                         <name>onap-clamp-frontend</name>
1063                                                                 </assembly>
1064                                                         </build>
1065                                                 </image>
1066                                         </images>
1067                                 </configuration>
1068
1069                                 <executions>
1070                                         <execution>
1071                                                 <id>generate-images</id>
1072                                                 <phase>install</phase>
1073                                                 <goals>
1074                                                         <goal>build</goal>
1075                                                 </goals>
1076                                         </execution>
1077                                         <execution>
1078                                                 <id>push-images</id>
1079                                                 <phase>deploy</phase>
1080                                                 <goals>
1081                                                         <goal>push</goal>
1082                                                 </goals>
1083                                         </execution>
1084                                         <execution>
1085                                                 <id>docker-start-for-it</id>
1086                                                 <phase>pre-integration-test</phase>
1087                                                 <goals>
1088                                                         <goal>start</goal>
1089                                                 </goals>
1090                                         </execution>
1091                                         <execution>
1092                                                 <id>docker-stop-for-it</id>
1093                                                 <phase>post-integration-test</phase>
1094                                                 <goals>
1095                                                         <goal>stop</goal>
1096                                                 </goals>
1097                                         </execution>
1098                                 </executions>
1099                         </plugin>
1100
1101                         <plugin>
1102                                 <groupId>org.jacoco</groupId>
1103                                 <artifactId>jacoco-maven-plugin</artifactId>
1104                                 <version>0.8.5</version>
1105                                 <configuration>
1106                                         <dumpOnExit>true</dumpOnExit>
1107                                         <append>true</append>
1108                                         <includes>
1109                                                 <include>org/onap/clamp/**</include>
1110                                         </includes>
1111                                 </configuration>
1112                                 <executions>
1113                                         <execution>
1114                                                 <id>pre-unit-test</id>
1115                                                 <goals>
1116                                                         <goal>prepare-agent</goal>
1117                                                 </goals>
1118                                                 <configuration>
1119                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1120                                                         <propertyName>surefireArgLine</propertyName>
1121                                                         <!-- <append>true</append> -->
1122                                                 </configuration>
1123                                         </execution>
1124                                         <execution>
1125                                                 <id>pre-integration-test</id>
1126                                                 <phase>pre-integration-test</phase>
1127                                                 <goals>
1128                                                         <goal>prepare-agent</goal>
1129                                                 </goals>
1130                                                 <configuration>
1131                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1132                                                         <propertyName>failsafeArgLine</propertyName>
1133                                                         <!-- <append>true</append> -->
1134                                                 </configuration>
1135                                         </execution>
1136                                         <execution>
1137                                                 <goals>
1138                                                         <goal>merge</goal>
1139                                                 </goals>
1140                                                 <phase>post-integration-test</phase>
1141                                                 <configuration>
1142                                                         <fileSets>
1143                                                                 <fileSet
1144                                                                         implementation="org.apache.maven.shared.model.fileset.FileSet">
1145                                                                         <directory>${project.build.directory}/coverage-reports</directory>
1146                                                                         <includes>
1147                                                                                 <include>*.exec</include>
1148                                                                         </includes>
1149                                                                 </fileSet>
1150                                                         </fileSets>
1151                                                         <destFile>${project.build.directory}/jacoco.exec</destFile>
1152                                                 </configuration>
1153                                         </execution>
1154                                         <execution>
1155                                                 <id>report-xml</id>
1156                                                 <goals>
1157                                                         <goal>report</goal>
1158                                                 </goals>
1159                                                 <configuration>
1160                                                         <!-- Setting explicit path, so that we remember where it picks them up from -->
1161                                                         <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1162                                                         <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
1163                                                 </configuration>
1164                                         </execution>
1165                                 </executions>
1166                         </plugin>
1167
1168                         <!-- This plugin will be useful when we will have multi-modules project -->
1169                         <plugin>
1170                                 <groupId>org.codehaus.mojo</groupId>
1171                                 <artifactId>versions-maven-plugin</artifactId>
1172                                 <version>1.3.1</version>
1173                         </plugin>
1174
1175                         <plugin>
1176                                 <groupId>com.github.eirslett</groupId>
1177                                 <artifactId>frontend-maven-plugin</artifactId>
1178                                 <version>1.8.0</version>
1179                                 <configuration>
1180                                         <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
1181                                 </configuration>
1182                                 <executions>
1183                                         <execution>
1184                                                 <id>install_node_and_npm</id>
1185                                                 <goals>
1186                                                         <goal>install-node-and-npm</goal>
1187                                                 </goals>
1188                                                 <phase>generate-sources</phase>
1189                                                 <configuration>
1190                                                         <nodeVersion>v12.13.0</nodeVersion>
1191                                                         <npmVersion>6.13.0</npmVersion>
1192                                                 </configuration>
1193                                         </execution>
1194                                         <execution>
1195                                                 <id>npm_install</id>
1196                                                 <goals>
1197                                                         <goal>npm</goal>
1198                                                 </goals>
1199                                                 <phase>compile</phase>
1200                                                 <configuration>
1201                                                         <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1202                                                         <arguments>install</arguments>
1203                                                 </configuration>
1204                                         </execution>
1205                                         <execution>
1206                                                 <id>npm_test</id>
1207                                                 <goals>
1208                                                         <goal>npm</goal>
1209                                                 </goals>
1210                                                 <phase>test</phase>
1211                                                 <configuration>
1212                                                         <skip>${maven.test.skip}</skip>
1213                                                         <arguments>run-script test:coverage</arguments>
1214                                                         <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1215                                                 </configuration>
1216                                         </execution>
1217                                         <execution>
1218                                                 <id>npm_install_lib</id>
1219                                                 <goals>
1220                                                         <goal>npm</goal>
1221                                                 </goals>
1222                                                 <phase>deploy</phase>
1223                                                 <configuration>
1224                                                         <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1225                                                         <arguments>install</arguments>
1226                                                 </configuration>
1227                                         </execution>
1228                                         <execution>
1229                                                 <id>npm_build_lib</id>
1230                                                 <goals>
1231                                                         <goal>npm</goal>
1232                                                 </goals>
1233                                                 <phase>deploy</phase>
1234                                                 <configuration>
1235                                                         <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1236                                                         <arguments>run build</arguments>
1237                                                 </configuration>
1238                                         </execution>
1239                                         <execution>
1240                                                 <id>npm_publish</id>
1241                                                 <goals>
1242                                                         <goal>npm</goal>
1243                                                 </goals>
1244                                                 <phase>deploy</phase>
1245                                                 <configuration>
1246                                                         <skip>true</skip>
1247                                                         <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1248                                                         <arguments>publish</arguments>
1249                                                 </configuration>
1250                                         </execution>
1251                                 </executions>
1252                         </plugin>
1253                         <plugin>
1254                                 <groupId>org.apache.maven.plugins</groupId>
1255                                 <artifactId>maven-compiler-plugin</artifactId>
1256                                 <version>3.8.1</version>
1257                                 <configuration>
1258                                         <source>11</source>
1259                                         <target>11</target>
1260                                 </configuration>
1261                         </plugin>
1262                         <plugin>
1263                                 <groupId>org.sonarsource.scanner.maven</groupId>
1264                                 <artifactId>sonar-maven-plugin</artifactId>
1265                                 <version>3.7.0.1746</version>
1266                         </plugin>
1267                 </plugins>
1268         </build>
1269 </project>