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