blob: 36661b86caeb586f6bbb3f7399b0a033dd578c02 [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<?xml version="1.0" encoding="UTF-8"?>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07002<!--
3 ============LICENSE_START=======================================================
sebdetbfabac92021-01-06 17:24:18 +01004 ONAP POLICY-CLAMP
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07005 ================================================================================
sebdetbfabac92021-01-06 17:24:18 +01006 Copyright (C) 2017-2021 AT&T Intellectual Property. All rights
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07007 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
ChrisC6c9759e2017-08-30 01:13:58 -070012
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070013 http://www.apache.org/licenses/LICENSE-2.0
ChrisC6c9759e2017-08-30 01:13:58 -070014
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070015 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 ===================================================================
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070022-->
sebdet101193d2019-09-05 18:25:59 +020023<project xmlns="http://maven.apache.org/POM/4.0.0"
sebdet078c34d2021-01-20 23:02:17 +010024 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.policy</groupId>
28 <artifactId>clamp</artifactId>
sebdete7e46e52021-03-25 09:48:06 +010029 <version>6.1.0-SNAPSHOT</version>
sebdet078c34d2021-01-20 23:02:17 +010030 <name>policy-clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
sebdeta5243a42019-06-13 13:48:04 +020032
sebdet025e65f2020-12-10 15:10:15 +010033 <parent>
sebdet078c34d2021-01-20 23:02:17 +010034 <groupId>org.onap.policy.parent</groupId>
35 <artifactId>integration</artifactId>
sebdet25f228a2021-02-17 12:01:01 +010036 <version>3.3.0</version>
sebdet078c34d2021-01-20 23:02:17 +010037 <relativePath/>
sebdet025e65f2020-12-10 15:10:15 +010038 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070039
sebdet078c34d2021-01-20 23:02:17 +010040 <description>
41 This is the MAVEN project that builds everything for ONAP POLICY-CLAMP.
42 Docker engine is normally requires to perfom all possible tasks (including integration tests)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050043
sebdet078c34d2021-01-20 23:02:17 +010044 It can build:
45 - The ONAP POLICY-CLAMP JAR that contains CLAMP back-end code.
46 - The DOCKER images for:
47 * POLICY-CLAMP backend (Java Spring)
sebdet1f2d62d2021-04-07 10:10:45 +020048 * POLICY-CLAMP frontend (Javascript React)
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070049
sebdet078c34d2021-01-20 23:02:17 +010050 It can test:
51 - The POLICY-CLAMP backend, JAVA unit testing
52 - The POLICY-CLAMP backend, JAVA integration tests (with Spring + docker mariadb database + docker policy/dcae
53 emulator written in python)
sebdeteeaef282021-02-19 14:07:05 +010054 - The POLICY-CLAMP frontend, Javascript tests (NodeJS(NPM) + JEST and Enzyme for React)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050055
sebdet078c34d2021-01-20 23:02:17 +010056 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
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070060
sebdet078c34d2021-01-20 23:02:17 +010061 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
64 does not require a DOCKER engine
65 - mvn clean install -DskipTests -P docker: Build Clamp backend JAR + all docker images
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070066
sebdet078c34d2021-01-20 23:02:17 +010067 To start POLICY-CLAMP (Build it before):
68 - Use docker-compose file in ./extra/docker/clamp/docker-compose.yml
69 - Use the script located in ./extra/bin/start-backend.sh + start-frontend.sh
70 - Use your IDE to use the Jar or start NVM/NPM
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070071
sebdet078c34d2021-01-20 23:02:17 +010072 </description>
ChrisCae04cf32018-02-05 05:21:59 -080073
sebdet078c34d2021-01-20 23:02:17 +010074 <properties>
75 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
76 <clamp.project.version>${project.version}</clamp.project.version>
77 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
78 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
79 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070080
sebdet078c34d2021-01-20 23:02:17 +010081 <eelf.core.version>1.0.0</eelf.core.version>
sebdet1f2d62d2021-04-07 10:10:45 +020082 <camel.version>3.7.3</camel.version>
83 <springboot.version>2.4.4</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070084
sebdet078c34d2021-01-20 23:02:17 +010085 <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
88 </sonar.coverage.jacoco.xmlReportPaths>
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
97 </sonar.javascript.lcov.reportPaths>
98 <sonar.coverage.exclusions>
99 src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js
100 </sonar.coverage.exclusions>
101 <docker.push.registry>localhost:5000</docker.push.registry>
102 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
103 <docker.skip.build>true</docker.skip.build>
104 <docker.skip.push>true</docker.skip.push>
105 <docker.skip.tag>true</docker.skip.tag>
106 <skip.staging.artifacts>false</skip.staging.artifacts>
107 <python.http.proxy.param/>
sebdet1f2d62d2021-04-07 10:10:45 +0200108 <tomcat.version>9.0.45</tomcat.version>
sebdet078c34d2021-01-20 23:02:17 +0100109 <ui.react.src>ui-react</ui.react.src>
110 <ui.react.lib.src>ui-react-lib</ui.react.lib.src>
111 <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
sebdeteeaef282021-02-19 14:07:05 +0100112
113 <policy.models.version>2.4.0</policy.models.version>
sebdet7f685aa2021-03-25 18:19:29 +0100114 <policy.common.version>1.8.1</policy.common.version>
sebdet078c34d2021-01-20 23:02:17 +0100115 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -0700116
sebdet078c34d2021-01-20 23:02:17 +0100117 <profiles>
118 <!-- BEGIN: NOT USABLE profiles, those are defined when specific flags are enabled -->
119 <profile>
120 <id>without-test</id>
121 <activation>
122 <property>
123 <name>maven.test.skip</name>
124 <value>true</value>
125 </property>
126 </activation>
127 <properties>
128 <docker.skip.run>true</docker.skip.run>
129 <docker.skip>true</docker.skip>
130 </properties>
131 </profile>
132 <profile>
133 <id>without-IT-only</id>
134 <activation>
135 <property>
136 <name>skipITs</name>
137 <value>true</value>
138 </property>
139 </activation>
140 <properties>
141 <docker.skip.run>true</docker.skip.run>
142 <docker.skip>true</docker.skip>
143 </properties>
144 </profile>
145 <profile>
146 <id>without-IT-only2</id>
147 <activation>
148 <property>
149 <name>skipTests</name>
150 <value>true</value>
151 </property>
152 </activation>
153 <properties>
154 <docker.skip.run>true</docker.skip.run>
155 <docker.skip>true</docker.skip>
156 </properties>
157 </profile>
158 <!-- END: NOT USABLE profiles, those are defined when specific flags are enabled -->
159 <profile>
160 <id>docker</id>
161 <properties>
162 <skip.staging.artifacts>true</skip.staging.artifacts>
163 <docker.skip.build>false</docker.skip.build>
164 <docker.skip.tag>false</docker.skip.tag>
165 <docker.skip.push>false</docker.skip.push>
166 <docker.skip>false</docker.skip>
167 </properties>
168 </profile>
169 </profiles>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200170
sebdet078c34d2021-01-20 23:02:17 +0100171 <distributionManagement>
172 <repository>
173 <id>ecomp-releases</id>
174 <name>ONAP Release Repository</name>
175 <url>https://nexus.onap.org/content/repositories/releases/</url>
176 </repository>
177 <snapshotRepository>
178 <id>ecomp-snapshots</id>
179 <name>ONAP Snapshot Repository</name>
180 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
181 </snapshotRepository>
182 <site>
183 <id>ecomp-site</id>
184 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/policy/clamp/${project.version}</url>
185 </site>
186 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700187
sebdet078c34d2021-01-20 23:02:17 +0100188 <repositories>
189 <repository>
190 <id>onap-public</id>
191 <name>onap-public</name>
192 <url>https://nexus.onap.org/content/repositories/public/</url>
193 <releases>
194 <enabled>true</enabled>
195 </releases>
196 <snapshots>
197 <enabled>false</enabled>
198 </snapshots>
199 </repository>
200 <repository>
201 <id>ecomp-releases</id>
202 <name>ONAP Release Repository</name>
203 <url>https://nexus.onap.org/content/repositories/releases/</url>
204 </repository>
205 <repository>
206 <id>ecomp-staging</id>
207 <name>ONAP Staging Repository</name>
208 <url>https://nexus.onap.org/content/repositories/staging/</url>
209 </repository>
210 <repository>
211 <id>ecomp-snapshots</id>
212 <name>ONAP Snapshot Repository</name>
213 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
214 <snapshots>
215 <enabled>true</enabled>
216 </snapshots>
217 <releases>
218 <enabled>false</enabled>
219 </releases>
220 </repository>
221 <repository>
222 <id>central</id>
223 <url>http://repo1.maven.org/maven2/</url>
224 </repository>
225 </repositories>
226 <pluginRepositories>
227 <pluginRepository>
228 <id>onap-public</id>
229 <name>onap-public</name>
230 <url>https://nexus.onap.org/content/repositories/public/</url>
231 <releases>
232 <enabled>true</enabled>
233 </releases>
234 <snapshots>
235 <enabled>false</enabled>
236 </snapshots>
237 </pluginRepository>
238 <pluginRepository>
239 <id>central</id>
240 <url>http://repo1.maven.org/maven2/</url>
241 </pluginRepository>
242 </pluginRepositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700243
sebdet078c34d2021-01-20 23:02:17 +0100244 <dependencyManagement>
245 <dependencies>
246 <!-- Spring Boot BOM -->
247 <dependency>
248 <groupId>org.springframework.boot</groupId>
249 <artifactId>spring-boot-dependencies</artifactId>
250 <version>${springboot.version}</version>
251 <type>pom</type>
252 <scope>import</scope>
253 </dependency>
254 <!-- Camel BOM -->
255 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200256 <groupId>org.apache.camel.springboot</groupId>
257 <artifactId>camel-spring-boot-bom</artifactId>
sebdet078c34d2021-01-20 23:02:17 +0100258 <version>${camel.version}</version>
259 <type>pom</type>
260 <scope>import</scope>
261 </dependency>
262 </dependencies>
263 </dependencyManagement>
sebdet101193d2019-09-05 18:25:59 +0200264
sebdet078c34d2021-01-20 23:02:17 +0100265 <dependencies>
266 <dependency>
267 <groupId>com.att.eelf</groupId>
268 <artifactId>eelf-core</artifactId>
269 <version>${eelf.core.version}</version>
270 <exclusions>
271 <exclusion>
272 <groupId>org.powermock</groupId>
273 <artifactId>powermock-module-junit4</artifactId>
274 </exclusion>
275 <exclusion>
276 <groupId>org.powermock</groupId>
277 <artifactId>powermock-api-mockito</artifactId>
278 </exclusion>
279 </exclusions>
280 </dependency>
281 <dependency>
282 <groupId>org.codehaus.janino</groupId>
283 <artifactId>janino</artifactId>
284 <version>3.0.8</version>
285 </dependency>
286 <dependency>
287 <groupId>org.apache.tomcat.embed</groupId>
288 <artifactId>tomcat-embed-core</artifactId>
289 <version>${tomcat.version}</version>
290 </dependency>
291 <dependency>
292 <groupId>org.apache.tomcat.embed</groupId>
293 <artifactId>tomcat-embed-el</artifactId>
294 <version>${tomcat.version}</version>
295 </dependency>
296 <dependency>
297 <groupId>org.apache.tomcat.embed</groupId>
298 <artifactId>tomcat-embed-websocket</artifactId>
299 <version>${tomcat.version}</version>
300 </dependency>
301 <dependency>
302 <groupId>org.apache.tomcat</groupId>
303 <artifactId>tomcat-annotations-api</artifactId>
304 <version>${tomcat.version}</version>
305 </dependency>
306 <!-- For CAMEL -->
307 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200308 <groupId>org.apache.camel.springboot</groupId>
309 <artifactId>camel-http-starter</artifactId>
sebdet078c34d2021-01-20 23:02:17 +0100310 </dependency>
311 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200312 <groupId>org.apache.camel.springboot</groupId>
sebdet078c34d2021-01-20 23:02:17 +0100313 <artifactId>camel-spring-boot-starter</artifactId>
314 </dependency>
315 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200316 <groupId>org.apache.camel.springboot</groupId>
sebdet078c34d2021-01-20 23:02:17 +0100317 <artifactId>camel-jaxb-starter</artifactId>
318 </dependency>
319 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200320 <groupId>org.apache.camel.springboot</groupId>
sebdet078c34d2021-01-20 23:02:17 +0100321 <artifactId>camel-servlet-starter</artifactId>
322 </dependency>
323 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200324 <groupId>org.apache.camel.springboot</groupId>
sebdet078c34d2021-01-20 23:02:17 +0100325 <artifactId>camel-gson-starter</artifactId>
326 </dependency>
327 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200328 <groupId>org.apache.camel.springboot</groupId>
sebdet078c34d2021-01-20 23:02:17 +0100329 <artifactId>camel-swagger-java-starter</artifactId>
330 <exclusions>
331 <exclusion>
332 <groupId>javax.ws.rs</groupId>
333 <artifactId>jsr311-api</artifactId>
334 </exclusion>
335 <exclusion>
336 <groupId>org.slf4j</groupId>
337 <artifactId>slf4j-ext</artifactId>
338 </exclusion>
339 </exclusions>
340 </dependency>
341 <!-- Spring famework -->
342 <dependency>
343 <groupId>org.springframework.boot</groupId>
344 <artifactId>spring-boot-starter-web</artifactId>
345 <exclusions>
346 <exclusion>
347 <groupId>org.springframework.boot</groupId>
348 <artifactId>spring-boot-starter-json</artifactId>
349 </exclusion>
350 </exclusions>
351 </dependency>
352 <dependency>
353 <groupId>org.springframework.boot</groupId>
354 <artifactId>spring-boot-starter-tomcat</artifactId>
355 </dependency>
356 <dependency>
357 <groupId>org.springframework</groupId>
358 <artifactId>spring-jdbc</artifactId>
359 </dependency>
360 <dependency>
361 <groupId>org.springframework.boot</groupId>
362 <artifactId>spring-boot-starter-security</artifactId>
363 </dependency>
364 <dependency>
365 <groupId>org.springframework.boot</groupId>
366 <artifactId>spring-boot-autoconfigure</artifactId>
367 </dependency>
368 <dependency>
369 <groupId>org.springframework.boot</groupId>
370 <artifactId>spring-boot-starter-test</artifactId>
371 <scope>test</scope>
372 <exclusions>
373 <exclusion>
374 <groupId>com.vaadin.external.google</groupId>
375 <artifactId>android-json</artifactId>
376 </exclusion>
377 </exclusions>
378 </dependency>
379 <dependency>
380 <groupId>org.springframework.boot</groupId>
381 <artifactId>spring-boot-starter-data-jpa</artifactId>
382 </dependency>
383 <!-- Policy dependencies mainly for the models required -->
384 <dependency>
385 <groupId>org.onap.policy.models</groupId>
386 <artifactId>policy-models-pdp</artifactId>
sebdeteeaef282021-02-19 14:07:05 +0100387 <version>${policy.models.version}</version>
sebdet078c34d2021-01-20 23:02:17 +0100388 </dependency>
sebdet5ec88e42020-08-03 15:25:07 +0200389
sebdet078c34d2021-01-20 23:02:17 +0100390 <!-- Others dependencies -->
391 <!-- Jaxws is required for AAF -->
392 <dependency>
393 <groupId>javax.xml.ws</groupId>
394 <artifactId>jaxws-api</artifactId>
395 <version>2.3.1</version>
396 </dependency>
397 <dependency>
398 <groupId>org.onap.aaf.authz</groupId>
399 <artifactId>aaf-cadi-aaf</artifactId>
400 <version>2.1.15</version>
401 <exclusions>
402 <exclusion>
403 <groupId>javax.servlet</groupId>
404 <artifactId>servlet-api</artifactId>
405 </exclusion>
406 <exclusion>
407 <groupId>log4j</groupId>
408 <artifactId>log4j</artifactId>
409 </exclusion>
410 </exclusions>
411 </dependency>
412 <dependency>
413 <groupId>ch.qos.logback</groupId>
414 <artifactId>logback-core</artifactId>
415 <version>1.2.3</version>
416 </dependency>
417 <dependency>
418 <groupId>ch.qos.logback</groupId>
419 <artifactId>logback-classic</artifactId>
420 <version>1.2.3</version>
421 </dependency>
422 <dependency>
423 <groupId>commons-io</groupId>
424 <artifactId>commons-io</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200425 <version>2.8.0</version>
sebdet078c34d2021-01-20 23:02:17 +0100426 </dependency>
427 <dependency>
428 <groupId>com.googlecode.json-simple</groupId>
429 <artifactId>json-simple</artifactId>
430 <version>1.1.1</version>
431 </dependency>
432 <dependency>
433 <groupId>org.apache.commons</groupId>
434 <artifactId>commons-vfs2</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200435 <version>2.8.0</version>
sebdet078c34d2021-01-20 23:02:17 +0100436 </dependency>
437 <dependency>
438 <groupId>org.slf4j</groupId>
439 <artifactId>slf4j-api</artifactId>
440 </dependency>
441 <dependency>
442 <groupId>javax.transaction</groupId>
443 <artifactId>jta</artifactId>
444 <version>1.1</version>
445 </dependency>
446 <dependency>
447 <groupId>javax.persistence</groupId>
448 <artifactId>persistence-api</artifactId>
449 <version>1.0.2</version>
450 </dependency>
451 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
452 <dependency>
453 <groupId>commons-codec</groupId>
454 <artifactId>commons-codec</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200455 <version>1.15</version>
sebdet078c34d2021-01-20 23:02:17 +0100456 </dependency>
457 <dependency>
458 <groupId>org.codehaus.plexus</groupId>
459 <artifactId>plexus-utils</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200460 <version>3.3.0</version>
sebdet078c34d2021-01-20 23:02:17 +0100461 </dependency>
462 <dependency>
463 <groupId>org.jboss.spec.javax.ws.rs</groupId>
464 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
465 <version>1.0.1.Final</version>
466 </dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200467
sebdet3b017732020-04-20 15:30:45 +0200468
sebdet078c34d2021-01-20 23:02:17 +0100469 <!-- Remove the MYSQL connector and replace it by Mariadb -->
470 <dependency>
471 <groupId>org.mariadb.jdbc</groupId>
472 <artifactId>mariadb-java-client</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200473 <version>2.7.2</version>
sebdet078c34d2021-01-20 23:02:17 +0100474 </dependency>
475 <!-- For SDC Controller -->
476 <dependency>
477 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
478 <artifactId>sdc-distribution-client</artifactId>
479 <version>1.4.1</version>
480 </dependency>
481 <dependency>
482 <groupId>org.onap.sdc.sdc-tosca</groupId>
483 <artifactId>sdc-tosca</artifactId>
484 <version>1.5.1</version>
485 <exclusions>
486 <exclusion>
487 <groupId>com.fasterxml.jackson.core</groupId>
488 <artifactId>jackson-databind</artifactId>
489 </exclusion>
490 </exclusions>
491 </dependency>
492 <dependency>
493 <groupId>org.yaml</groupId>
494 <artifactId>snakeyaml</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200495 <version>1.28</version>
sebdet078c34d2021-01-20 23:02:17 +0100496 </dependency>
497 <dependency>
498 <groupId>org.dom4j</groupId>
499 <artifactId>dom4j</artifactId>
500 <version>2.1.3</version>
501 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200502
sebdet078c34d2021-01-20 23:02:17 +0100503 <!-- TESTING -->
504 <dependency>
sebdet1f2d62d2021-04-07 10:10:45 +0200505 <groupId>org.junit.vintage</groupId>
506 <artifactId>junit-vintage-engine</artifactId>
507 <version>5.7.1</version>
sebdet078c34d2021-01-20 23:02:17 +0100508 <scope>test</scope>
509 </dependency>
510 <dependency>
511 <groupId>org.assertj</groupId>
512 <artifactId>assertj-core</artifactId>
513 <version>3.10.0</version>
514 <scope>test</scope>
515 </dependency>
516 <dependency>
sebdet078c34d2021-01-20 23:02:17 +0100517 <groupId>com.github.docker-java</groupId>
518 <artifactId>docker-java-core</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200519 <version>3.2.7</version>
sebdet078c34d2021-01-20 23:02:17 +0100520 <scope>test</scope>
521 <exclusions>
522 <exclusion>
523 <groupId>com.fasterxml.jackson.core</groupId>
524 <artifactId>jackson-databind</artifactId>
525 </exclusion>
526 </exclusions>
527 </dependency>
528 <dependency>
529 <groupId>com.github.docker-java</groupId>
530 <artifactId>docker-java</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200531 <version>3.2.7</version>
sebdet078c34d2021-01-20 23:02:17 +0100532 <scope>test</scope>
533 </dependency>
sebdet7f685aa2021-03-25 18:19:29 +0100534 <dependency>
535 <groupId>org.onap.policy.common</groupId>
536 <artifactId>utils-test</artifactId>
537 <version>${policy.common.version}</version>
538 <scope>test</scope>
539 </dependency>
sebdet078c34d2021-01-20 23:02:17 +0100540 </dependencies>
sebdet101193d2019-09-05 18:25:59 +0200541
sebdet078c34d2021-01-20 23:02:17 +0100542 <build>
543 <finalName>policy-clamp-backend</finalName>
sebdet101193d2019-09-05 18:25:59 +0200544
sebdet078c34d2021-01-20 23:02:17 +0100545 <testResources>
546 <testResource>
547 <directory>src/main/resources</directory>
548 <filtering>true</filtering>
549 <excludes>
550 <exclude>clds/aaf/**</exclude>
551 </excludes>
552 </testResource>
553 <testResource>
554 <directory>src/main/resources</directory>
555 <filtering>false</filtering>
556 <includes>
557 <include>clds/aaf/**</include>
558 </includes>
559 </testResource>
560 <testResource>
561 <directory>src/test/resources</directory>
562 <excludes>
563 <exclude>**/*.jks</exclude>
564 <exclude>**/*.csar</exclude>
565 </excludes>
566 <filtering>true</filtering>
567 </testResource>
568 <testResource>
569 <directory>src/test/resources/https</directory>
570 <includes>
571 <include>**.jks</include>
572 </includes>
573 <filtering>false</filtering>
574 <targetPath>https</targetPath>
575 </testResource>
576 <testResource>
577 <directory>src/test/resources/example/sdc</directory>
578 <includes>
579 <include>**.csar</include>
580 </includes>
581 <filtering>false</filtering>
582 <targetPath>example/sdc</targetPath>
583 </testResource>
584 </testResources>
585 <resources>
586 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
587 they will be broken and unreadable -->
588 <resource>
589 <directory>src/main/resources</directory>
590 <filtering>true</filtering>
591 <excludes>
592 <exclude>clds/aaf/**</exclude>
593 </excludes>
594 </resource>
595 <resource>
596 <directory>src/main/resources</directory>
597 <filtering>false</filtering>
598 <includes>
599 <include>clds/aaf/**</include>
600 </includes>
601 </resource>
602 <resource>
603 <directory>${ui.react.src}</directory>
604 <excludes>
605 <exclude>node_modules</exclude>
606 </excludes>
607 <includes>
608 <include>src/**</include>
609 <include>public/**</include>
610 <include>package.json</include>
611 <include>package-lock.json</include>
612 </includes>
613 <filtering>true</filtering>
614 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
615 </resource>
616 <resource>
617 <directory>${ui.react.src}</directory>
618 <includes>
619 <include>src/**</include>
620 </includes>
621 <excludes>
622 <exclude>**/__snapshots__/**</exclude>
623 <exclude>**/**.test.js</exclude>
624 </excludes>
625 <filtering>true</filtering>
626 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
627 </resource>
628 <resource>
629 <directory>${ui.react.lib.src}</directory>
630 <includes>
631 <include>**</include>
632 </includes>
633 <excludes>
634 <exclude>node_modules/**</exclude>
635 <exclude>package-lock.json</exclude>
636 </excludes>
637 <filtering>true</filtering>
638 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
639 </resource>
640 </resources>
sebdet101193d2019-09-05 18:25:59 +0200641
sebdet078c34d2021-01-20 23:02:17 +0100642 <plugins>
643 <plugin>
644 <groupId>de.jpdigital</groupId>
645 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
646 <version>2.2.0</version>
647 <dependencies>
648 <dependency>
649 <groupId>javax.xml.bind</groupId>
650 <artifactId>jaxb-api</artifactId>
651 <version>2.3.0</version>
652 </dependency>
653 </dependencies>
654 <executions>
655 <execution>
656 <phase>process-classes</phase>
657 <goals>
658 <goal>gen-ddl</goal>
659 </goals>
660 <configuration>
661 <packages>
662 <param>org.onap.policy.clamp</param>
663 </packages>
664 <dialects>
665 <param>MARIADB53</param>
666 </dialects>
667 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
668 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
669 <!-- <createDropStatements>true</createDropStatements> -->
670 <omitDialectFromFileName>true</omitDialectFromFileName>
671 </configuration>
672 </execution>
673 </executions>
sebdet101193d2019-09-05 18:25:59 +0200674
sebdet078c34d2021-01-20 23:02:17 +0100675 </plugin>
676 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
677 a list of .adoc files containing the APIs info in more structured way -->
678 <plugin>
679 <groupId>io.github.swagger2markup</groupId>
680 <artifactId>swagger2markup-maven-plugin</artifactId>
681 <version>1.3.3</version>
682 <dependencies>
683 <dependency>
684 <groupId>io.github.swagger2markup</groupId>
685 <artifactId>swagger2markup-import-files-ext</artifactId>
686 <version>1.3.3</version>
687 </dependency>
688 <dependency>
689 <groupId>io.github.swagger2markup</groupId>
690 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
691 <version>1.3.3</version>
692 </dependency>
693 </dependencies>
694 <configuration>
695 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
696 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
697 <config>
698 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
699 </config>
700 </configuration>
701 <executions>
702 <execution>
703 <phase>post-integration-test</phase>
704 <goals>
705 <goal>convertSwagger2markup</goal>
706 </goals>
707 </execution>
708 </executions>
709 </plugin>
sebdet101193d2019-09-05 18:25:59 +0200710
sebdet078c34d2021-01-20 23:02:17 +0100711 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
712 types, such as PDFs or HTML5 -->
713 <plugin>
714 <groupId>org.asciidoctor</groupId>
715 <artifactId>asciidoctor-maven-plugin</artifactId>
716 <version>1.5.7.1</version>
717 <dependencies>
718 <dependency>
719 <groupId>org.asciidoctor</groupId>
720 <artifactId>asciidoctorj-pdf</artifactId>
721 <version>1.5.0-alpha.10.1</version>
722 </dependency>
723 </dependencies>
724 <configuration>
725 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
726 <sourceDocumentName>swagger.adoc</sourceDocumentName>
727 <attributes>
728 <doctype>book</doctype>
729 <toc>left</toc>
730 <toclevels>3</toclevels>
731 <numbered/>
732 <hardbreaks/>
733 <sectlinks/>
734 <sectanchors/>
735 <generated>${project.build.directory}/asciidoc/generated</generated>
736 </attributes>
737 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200738
sebdet078c34d2021-01-20 23:02:17 +0100739 <executions>
740 <execution>
741 <id>output-html</id>
742 <phase>post-integration-test</phase>
743 <goals>
744 <goal>process-asciidoc</goal>
745 </goals>
746 <configuration>
747 <backend>html5</backend>
748 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
749 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
750 </configuration>
751 </execution>
752 <execution>
753 <id>output-pdf</id>
754 <phase>post-integration-test</phase>
755 <goals>
756 <goal>process-asciidoc</goal>
757 </goals>
758 <configuration>
759 <backend>pdf</backend>
760 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
761 </configuration>
762 </execution>
763 </executions>
764 </plugin>
765 <plugin>
766 <groupId>org.codehaus.groovy.maven</groupId>
767 <artifactId>gmaven-plugin</artifactId>
768 <version>1.0</version>
769 <executions>
770 <execution>
771 <id>docker-tags</id>
772 <phase>validate</phase>
773 <goals>
774 <goal>execute</goal>
775 </goals>
776 <configuration>
777 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
778 </configuration>
779 </execution>
780 <execution>
781 <id>npm-repos-selection</id>
782 <phase>validate</phase>
783 <goals>
784 <goal>execute</goal>
785 </goals>
786 <configuration>
787 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
788 </configuration>
789 </execution>
790 </executions>
791 </plugin>
792 <plugin>
793 <groupId>org.apache.maven.plugins</groupId>
794 <artifactId>maven-jar-plugin</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200795 <version>3.2.0</version>
sebdet078c34d2021-01-20 23:02:17 +0100796 <executions>
797 <execution>
798 <id>jar-with-only-classes</id>
799 <phase>package</phase>
800 <goals>
801 <goal>jar</goal>
802 </goals>
803 <configuration>
804 <classifier>classes</classifier>
805 <includes>
806 <include>org/**</include>
807 </includes>
808 </configuration>
809 </execution>
810 </executions>
811 </plugin>
812 <plugin>
813 <groupId>org.codehaus.mojo</groupId>
814 <artifactId>build-helper-maven-plugin</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200815 <version>3.2.0</version>
sebdet078c34d2021-01-20 23:02:17 +0100816 <executions>
817 <execution>
818 <goals>
819 <goal>attach-artifact</goal>
820 </goals>
821 <phase>package</phase>
822 <configuration>
823 <artifacts>
824 <artifact>
825 <file>${project.build.directory}/policy-clamp-backend-classes.jar</file>
826 <type>jar</type>
827 <classifier>classes</classifier>
828 </artifact>
829 </artifacts>
830 </configuration>
831 </execution>
832 <execution>
833 <id>reserve-port-for-tests</id>
834 <phase>process-resources</phase>
835 <goals>
836 <goal>reserve-network-port</goal>
837 </goals>
838 <configuration>
839 <portNames>
840 <portName>docker.mariadb.port.host</portName>
841 <portName>docker.http-cache.port.host</portName>
842 <portName>clamp.it.tests.http-redirected</portName>
843 <portName>clamp.it.tests.robotframework.http</portName>
844 <portName>clamp.it.tests.https</portName>
845 <portName>clamp.it.tests.http</portName>
846 </portNames>
847 </configuration>
848 </execution>
849 </executions>
850 </plugin>
sebdet101193d2019-09-05 18:25:59 +0200851
sebdet078c34d2021-01-20 23:02:17 +0100852 <plugin>
853 <groupId>org.springframework.boot</groupId>
854 <artifactId>spring-boot-maven-plugin</artifactId>
855 <version>${springboot.version}</version>
856 <executions>
857 <execution>
858 <goals>
859 <goal>repackage</goal>
860 </goals>
861 <phase>package</phase>
862 </execution>
863 </executions>
864 </plugin>
865 <plugin>
866 <groupId>org.apache.maven.plugins</groupId>
867 <artifactId>maven-surefire-plugin</artifactId>
868 <version>2.22.2</version>
869 <configuration>
870 <forkCount>1C</forkCount>
871 <reuseForks>true</reuseForks>
872 <useSystemClassLoader>false</useSystemClassLoader>
873 <argLine>${surefireArgLine}</argLine>
874 </configuration>
875 </plugin>
sebdet101193d2019-09-05 18:25:59 +0200876
sebdet078c34d2021-01-20 23:02:17 +0100877 <plugin>
878 <groupId>org.apache.maven.plugins</groupId>
879 <artifactId>maven-failsafe-plugin</artifactId>
880 <version>2.22.2</version>
881 <executions>
882 <execution>
883 <id>integration-tests</id>
884 <goals>
885 <goal>integration-test</goal>
886 <goal>verify</goal>
887 </goals>
888 <configuration>
889 <additionalClasspathElements>
890 <additionalClasspathElement>${project.build.directory}/classes
891 </additionalClasspathElement>
892 </additionalClasspathElements>
893 <includes>
894 <include>**/*ItCase.java</include>
895 </includes>
896 <forkCount>1C</forkCount>
897 <reuseForks>true</reuseForks>
898 <useSystemClassLoader>false</useSystemClassLoader>
899 <argLine>${failsafeArgLine}</argLine>
900 </configuration>
901 </execution>
902 </executions>
903 </plugin>
904 <plugin>
905 <groupId>io.fabric8</groupId>
906 <artifactId>docker-maven-plugin</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +0200907 <version>0.35.0</version>
sebdet078c34d2021-01-20 23:02:17 +0100908 <dependencies>
909 <dependency>
910 <groupId>org.apache.httpcomponents</groupId>
911 <artifactId>httpclient</artifactId>
912 <version>4.5.5</version>
913 </dependency>
914 </dependencies>
915 <configuration>
916 <verbose>true</verbose>
917 <apiVersion>1.35</apiVersion>
918 <images>
919 <image>
920 <name>docker.io/mariadb:10.5.4</name>
921 <alias>mariadb</alias>
922 <run>
923 <env>
924 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
925 </env>
926 <hostname>mariadb</hostname>
927 <volumes>
928 <bind>
929 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
930 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
931 </bind>
932 </volumes>
933 <wait>
sebdetb8831e52021-03-12 19:30:22 +0100934 <log>port: 3306</log>
sebdet078c34d2021-01-20 23:02:17 +0100935 <time>300000</time>
936 <exec>
937 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
938 </exec>
939 </wait>
940 <ports>
941 <port>${docker.mariadb.port.host}:3306</port>
942 </ports>
943 <network>
944 <mode>bridge</mode>
945 </network>
946 </run>
947 </image>
948 <image>
949 <name>docker.io/python:2-slim</name>
950 <alias>python</alias>
951 <run>
952 <hostname>python</hostname>
953 <volumes>
954 <bind>
955 <volume>
956 ${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app
957 </volume>
958 <volume>
959 ${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache
960 </volume>
961 </bind>
962 </volumes>
963 <wait>
964 <tcp>
965 <ports>
966 <port>8080</port>
967 </ports>
968 <mode>direct</mode>
969 </tcp>
970 <time>120000</time>
971 </wait>
972 <ports>
973 <port>${docker.http-cache.port.host}:8080</port>
974 </ports>
975 <workingDir>/usr/src/http-cache-app</workingDir>
976 <cmd>
977 <shell>./start_http_cache.sh ${python.http.proxy.param}
978 --python_proxyaddress=localhost:${docker.http-cache.port.host}
979 </shell>
980 </cmd>
981 <network>
982 <mode>bridge</mode>
983 </network>
984 </run>
985 </image>
986 <image>
987 <name>onap/policy-clamp-backend</name>
988 <alias>onap-policy-clamp-backend</alias>
989 <run>
990 <skip>true</skip>
991 </run>
992 <build>
993 <cleanup>true</cleanup>
994 <tags>
995 <tag>latest</tag>
996 <tag>${project.docker.latesttagtimestamp.version}</tag>
997 <tag>${project.docker.latesttag.version}</tag>
998 </tags>
999 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1000 default -->
1001 <dockerFile>backend/Dockerfile</dockerFile>
1002 <assembly>
1003 <descriptor>backend/backend-files.xml</descriptor>
1004 <name>onap-policy-clamp-backend</name>
1005 </assembly>
1006 </build>
1007 </image>
1008 <image>
1009 <name>onap/policy-clamp-frontend</name>
1010 <alias>onap-policy-clamp-frontend</alias>
1011 <run>
1012 <skip>true</skip>
1013 </run>
1014 <build>
1015 <cleanup>true</cleanup>
1016 <tags>
1017 <tag>latest</tag>
1018 <tag>${project.docker.latesttagtimestamp.version}</tag>
1019 <tag>${project.docker.latesttag.version}</tag>
1020 </tags>
1021 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1022 default -->
1023 <dockerFile>frontend/Dockerfile</dockerFile>
1024 <assembly>
1025 <descriptor>frontend/frontend-files.xml</descriptor>
1026 <name>onap-policy-clamp-frontend</name>
1027 </assembly>
1028 </build>
1029 </image>
1030 </images>
1031 </configuration>
sebdet101193d2019-09-05 18:25:59 +02001032
sebdet078c34d2021-01-20 23:02:17 +01001033 <executions>
1034 <execution>
1035 <id>generate-images</id>
1036 <phase>install</phase>
1037 <goals>
1038 <goal>build</goal>
1039 </goals>
1040 </execution>
1041 <execution>
1042 <id>push-images</id>
1043 <phase>deploy</phase>
1044 <goals>
1045 <goal>push</goal>
1046 </goals>
1047 </execution>
1048 <execution>
1049 <id>docker-start-for-it</id>
1050 <phase>pre-integration-test</phase>
1051 <goals>
1052 <goal>start</goal>
1053 </goals>
1054 </execution>
1055 <execution>
1056 <id>docker-stop-for-it</id>
1057 <phase>post-integration-test</phase>
1058 <goals>
1059 <goal>stop</goal>
1060 </goals>
1061 </execution>
1062 </executions>
1063 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001064
sebdet078c34d2021-01-20 23:02:17 +01001065 <plugin>
1066 <groupId>org.jacoco</groupId>
1067 <artifactId>jacoco-maven-plugin</artifactId>
1068 <version>0.8.5</version>
1069 <configuration>
1070 <dumpOnExit>true</dumpOnExit>
1071 <append>true</append>
1072 <includes>
1073 <include>org/onap/policy/clamp/**</include>
1074 </includes>
1075 </configuration>
1076 <executions>
1077 <execution>
1078 <id>pre-unit-test</id>
1079 <goals>
1080 <goal>prepare-agent</goal>
1081 </goals>
1082 <configuration>
1083 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1084 <propertyName>surefireArgLine</propertyName>
1085 <!-- <append>true</append> -->
1086 </configuration>
1087 </execution>
1088 <execution>
1089 <id>pre-integration-test</id>
1090 <phase>pre-integration-test</phase>
1091 <goals>
1092 <goal>prepare-agent</goal>
1093 </goals>
1094 <configuration>
1095 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1096 <propertyName>failsafeArgLine</propertyName>
1097 <!-- <append>true</append> -->
1098 <!-- Need to overwrite the policy integration parent flag -->
1099 <skip>false</skip>
1100 </configuration>
1101 </execution>
1102 <execution>
1103 <goals>
1104 <goal>merge</goal>
1105 </goals>
1106 <phase>post-integration-test</phase>
1107 <configuration>
1108 <fileSets>
1109 <fileSet
1110 implementation="org.apache.maven.shared.model.fileset.FileSet">
1111 <directory>${project.build.directory}/coverage-reports</directory>
1112 <includes>
1113 <include>*.exec</include>
1114 </includes>
1115 </fileSet>
1116 </fileSets>
1117 <destFile>${project.build.directory}/jacoco.exec</destFile>
1118 </configuration>
1119 </execution>
1120 <execution>
1121 <id>report-xml</id>
1122 <goals>
1123 <goal>report</goal>
1124 </goals>
1125 <configuration>
1126 <!-- Setting explicit path, so that we remember where it picks them up from -->
1127 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1128 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
1129 </configuration>
1130 </execution>
1131 </executions>
1132 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001133
sebdet078c34d2021-01-20 23:02:17 +01001134 <!-- This plugin will be useful when we will have multi-modules project -->
1135 <plugin>
1136 <groupId>org.codehaus.mojo</groupId>
1137 <artifactId>versions-maven-plugin</artifactId>
1138 <version>1.3.1</version>
1139 </plugin>
1140
1141 <plugin>
1142 <groupId>com.github.eirslett</groupId>
1143 <artifactId>frontend-maven-plugin</artifactId>
sebdet1f2d62d2021-04-07 10:10:45 +02001144 <version>1.11.3</version>
sebdet078c34d2021-01-20 23:02:17 +01001145 <configuration>
1146 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
Jim Hahn44946f62021-04-09 14:50:26 -04001147 <npmDownloadRoot>${repo.npm}</npmDownloadRoot>
sebdet078c34d2021-01-20 23:02:17 +01001148 </configuration>
1149 <executions>
1150 <execution>
1151 <id>install_node_and_npm</id>
1152 <goals>
1153 <goal>install-node-and-npm</goal>
1154 </goals>
1155 <phase>generate-sources</phase>
1156 <configuration>
sebdet1f2d62d2021-04-07 10:10:45 +02001157 <nodeVersion>v14.16.1</nodeVersion>
1158 <npmVersion>6.14.12</npmVersion>
sebdet078c34d2021-01-20 23:02:17 +01001159 </configuration>
1160 </execution>
1161 <execution>
1162 <id>npm_install</id>
1163 <goals>
1164 <goal>npm</goal>
1165 </goals>
1166 <phase>compile</phase>
1167 <configuration>
1168 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1169 <arguments>install</arguments>
1170 </configuration>
1171 </execution>
1172 <execution>
1173 <id>npm_test</id>
1174 <goals>
1175 <goal>npm</goal>
1176 </goals>
1177 <phase>test</phase>
1178 <configuration>
1179 <skip>${maven.test.skip}</skip>
1180 <arguments>run-script test:coverage</arguments>
1181 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1182 </configuration>
1183 </execution>
1184 <execution>
1185 <id>npm_install_lib</id>
1186 <goals>
1187 <goal>npm</goal>
1188 </goals>
1189 <phase>deploy</phase>
1190 <configuration>
1191 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1192 <arguments>install</arguments>
1193 </configuration>
1194 </execution>
1195 <execution>
1196 <id>npm_build_lib</id>
1197 <goals>
1198 <goal>npm</goal>
1199 </goals>
1200 <phase>deploy</phase>
1201 <configuration>
1202 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1203 <arguments>run build</arguments>
1204 </configuration>
1205 </execution>
1206 <execution>
1207 <id>npm_publish</id>
1208 <goals>
1209 <goal>npm</goal>
1210 </goals>
1211 <phase>deploy</phase>
1212 <configuration>
1213 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1214 <arguments>publish</arguments>
1215 </configuration>
1216 </execution>
1217 </executions>
1218 </plugin>
1219 <plugin>
1220 <groupId>org.apache.maven.plugins</groupId>
1221 <artifactId>maven-compiler-plugin</artifactId>
1222 <version>3.8.1</version>
1223 <configuration>
1224 <source>11</source>
1225 <target>11</target>
1226 </configuration>
1227 </plugin>
1228 <plugin>
1229 <groupId>org.sonarsource.scanner.maven</groupId>
1230 <artifactId>sonar-maven-plugin</artifactId>
1231 <version>3.7.0.1746</version>
1232 </plugin>
Ted Humphreyfd8f0132020-06-02 09:39:30 -04001233 <plugin>
1234 <groupId>org.codehaus.mojo</groupId>
1235 <artifactId>exec-maven-plugin</artifactId>
sebdet078c34d2021-01-20 23:02:17 +01001236 <version>1.3.2</version>
1237 <executions>
Ted Humphreyfd8f0132020-06-02 09:39:30 -04001238 <execution>
1239 <id>libIndexCheck</id>
1240 <phase>validate</phase>
1241 <goals>
1242 <goal>exec</goal>
1243 </goals>
1244 </execution>
1245 </executions>
1246 <configuration>
1247 <executable>bash</executable>
1248 <arguments>
1249 <argument>${project.basedir}/src/main/script/checkLibIndex.sh</argument>
1250 </arguments>
1251 </configuration>
sebdet078c34d2021-01-20 23:02:17 +01001252 </plugin>
sebdetd2178bc2021-02-08 14:36:11 +01001253 <!-- Plugin to generate a X509 Certificate for https tests -->
1254 <plugin>
1255 <groupId>org.codehaus.mojo</groupId>
1256 <artifactId>keytool-maven-plugin</artifactId>
1257 <version>1.5</version>
1258 <executions>
1259 <execution>
1260 <id>add-certificate-for-dev</id>
1261 <configuration>
1262 <keystore>${project.build.directory}/classes/clds/aaf/org.onap.clamp.p12</keystore>
1263 <storepass>China in the Spring</storepass>
1264 <alias>clamptest</alias>
1265 <storetype>PKCS12</storetype>
1266 <keyalg>RSA</keyalg>
1267 <dname>cn=CN, ou=OU, o=O, c=C</dname>
1268 <validity>365</validity>
1269 </configuration>
1270 <goals>
1271 <goal>generateKeyPair</goal>
1272 </goals>
1273 <phase>generate-resources</phase>
1274 </execution>
1275 <execution>
1276 <id>add-certificate-for-test</id>
1277 <configuration>
1278 <keystore>${project.build.directory}/test-classes/clds/aaf/org.onap.clamp.p12</keystore>
1279 <storepass>China in the Spring</storepass>
1280 <alias>clamptest</alias>
1281 <storetype>PKCS12</storetype>
1282 <keyalg>RSA</keyalg>
1283 <dname>cn=CN, ou=OU, o=O, c=C</dname>
1284 <validity>365</validity>
1285 </configuration>
1286 <goals>
1287 <goal>generateKeyPair</goal>
1288 </goals>
1289 <phase>generate-test-resources</phase>
1290 </execution>
1291 </executions>
1292 </plugin>
sebdet078c34d2021-01-20 23:02:17 +01001293 </plugins>
1294 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001295</project>