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