blob: 84b4d1f3960b6e2bd1af26f840bc356814274904 [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=======================================================
4 ONAP CLAMP
5 ================================================================================
TedHumphrey4aedf732019-08-13 15:56:33 +00006 Copyright (C) 2017-2019 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"
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>
sebdetea9dffa2020-02-05 16:39:34 +010029 <version>5.0.0-SNAPSHOT</version>
sebdet101193d2019-09-05 18:25:59 +020030 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
sebdeta5243a42019-06-13 13:48:04 +020032
sebdet101193d2019-09-05 18:25:59 +020033 <parent>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
sebdet715f0ac2019-11-07 15:03:18 +010036 <version>2.1.0</version>
sebdet101193d2019-09-05 18:25:59 +020037 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070038
sebdet101193d2019-09-05 18:25:59 +020039 <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)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050042
sebdet101193d2019-09-05 18:25:59 +020043 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)
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070048
sebdet101193d2019-09-05 18:25:59 +020049 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)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050053
sebdet101193d2019-09-05 18:25:59 +020054 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
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070058
sebdet101193d2019-09-05 18:25:59 +020059 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
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070063
sebdet101193d2019-09-05 18:25:59 +020064 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
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070068
sebdet101193d2019-09-05 18:25:59 +020069 </description>
ChrisCae04cf32018-02-05 05:21:59 -080070
sebdet101193d2019-09-05 18:25:59 +020071 <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>
sebdet101193d2019-09-05 18:25:59 +020075 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
76 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070077
sebdet101193d2019-09-05 18:25:59 +020078 <eelf.core.version>1.0.0</eelf.core.version>
79 <camel.version>2.24.0</camel.version>
sebdet1b6a4282019-11-05 13:44:53 +010080 <springboot.version>2.2.0.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070081
sebdet101193d2019-09-05 18:25:59 +020082 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
83 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
ChrisC4c4c3fd2020-01-27 14:54:56 +010084 <sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/jacoco-html-xml-reports/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
sebdet101193d2019-09-05 18:25:59 +020085 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
86 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC9abd1982020-01-28 11:00:02 +010087 <sonar.log.level>DEBUG</sonar.log.level>
sebdetf2d71eb2020-01-30 16:37:27 +010088 <sonar.nodejs.executable>${project.build.directory}/${ui.react.src}/node/node</sonar.nodejs.executable>
89 <sonar.verbose>true</sonar.verbose>
ChrisCf04d3752020-01-28 14:14:53 +010090 <sonar.sources>src/main,${project.build.directory}/${ui.react.src}/src</sonar.sources>
sebdet156d6ea2019-09-06 15:52:18 +020091 <sonar.exclusions>src/main/resources/**</sonar.exclusions>
ChrisC83ad93c2020-01-27 17:26:24 +010092 <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>
sebdete06b7ef2020-02-10 15:51:07 +010094 <sonar.coverage.exclusions>src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js</sonar.coverage.exclusions>
sebdet101193d2019-09-05 18:25:59 +020095 <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 />
sebdet1b6a4282019-11-05 13:44:53 +0100102 <tomcat.version>9.0.27</tomcat.version>
sebdet101193d2019-09-05 18:25:59 +0200103 <ui.react.src>ui-react</ui.react.src>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500104 <ui.react.lib.src>ui-react-lib</ui.react.lib.src>
sebdetb0fba2f2020-02-10 18:25:49 +0100105 <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
sebdet101193d2019-09-05 18:25:59 +0200106 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -0700107
sebdet101193d2019-09-05 18:25:59 +0200108 <profiles>
sebdetf2d71eb2020-01-30 16:37:27 +0100109 <!-- BEGIN: NOT USABLE profiles, those are defined when specific flags are enabled -->
sebdet101193d2019-09-05 18:25:59 +0200110 <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>
sebdetf2d71eb2020-01-30 16:37:27 +0100149 <!-- END: NOT USABLE profiles, those are defined when specific flags are enabled -->
sebdet101193d2019-09-05 18:25:59 +0200150 <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>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200161
sebdet101193d2019-09-05 18:25:59 +0200162 <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>
ChrisC5e9feb22017-06-21 02:38:57 -0700178
sebdet101193d2019-09-05 18:25:59 +0200179 <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>
ChrisC5e9feb22017-06-21 02:38:57 -0700234
sebdet101193d2019-09-05 18:25:59 +0200235 <dependencyManagement>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100236 <dependencies>
sebdet101193d2019-09-05 18:25:59 +0200237 <!-- Spring Boot BOM -->
Piotr Darosz6eb37422019-03-08 14:50:29 +0100238 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-dependencies</artifactId>
241 <version>${springboot.version}</version>
242 <type>pom</type>
243 <scope>import</scope>
Piotr Darosz6eb37422019-03-08 14:50:29 +0100244 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200245 <!-- Camel BOM -->
Piotr Darosz6eb37422019-03-08 14:50:29 +0100246 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200247 <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>
Piotr Darosz6eb37422019-03-08 14:50:29 +0100252 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200253 </dependencies>
254 </dependencyManagement>
255
256 <dependencies>
257 <dependency>
258 <groupId>org.apache.xmlgraphics</groupId>
259 <artifactId>batik-svggen</artifactId>
260 <version>1.11</version>
nrpandya82561262019-11-21 11:51:18 -0600261 <exclusions>
262 <exclusion>
263 <groupId>xml-apis</groupId>
264 <artifactId>xml-apis</artifactId>
265 </exclusion>
266 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200267 </dependency>
268 <dependency>
269 <groupId>org.apache.xmlgraphics</groupId>
270 <artifactId>batik-svg-dom</artifactId>
271 <version>1.11</version>
sebdet5106a5b2020-01-28 15:30:44 +0100272 <exclusions>
273 <exclusion>
274 <groupId>xml-apis</groupId>
275 <artifactId>xml-apis</artifactId>
276 </exclusion>
277 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200278 </dependency>
279 <dependency>
280 <groupId>org.apache.xmlgraphics</groupId>
281 <artifactId>batik-transcoder</artifactId>
282 <version>1.11</version>
sebdet5106a5b2020-01-28 15:30:44 +0100283 <exclusions>
284 <exclusion>
285 <groupId>xml-apis</groupId>
286 <artifactId>xml-apis</artifactId>
287 </exclusion>
288 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200289 </dependency>
290 <dependency>
291 <groupId>com.att.eelf</groupId>
292 <artifactId>eelf-core</artifactId>
293 <version>${eelf.core.version}</version>
sebdet1b6a4282019-11-05 13:44:53 +0100294 <exclusions>
295 <exclusion>
296 <groupId>org.powermock</groupId>
297 <artifactId>powermock-module-junit4</artifactId>
298 </exclusion>
299 <exclusion>
300 <groupId>org.powermock</groupId>
301 <artifactId>powermock-api-mockito</artifactId>
302 </exclusion>
303 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200304 </dependency>
305 <dependency>
306 <groupId>org.codehaus.janino</groupId>
307 <artifactId>janino</artifactId>
308 <version>3.0.8</version>
309 </dependency>
310 <dependency>
311 <groupId>org.apache.tomcat.embed</groupId>
312 <artifactId>tomcat-embed-core</artifactId>
313 <version>${tomcat.version}</version>
314 </dependency>
315 <dependency>
316 <groupId>org.apache.tomcat.embed</groupId>
317 <artifactId>tomcat-embed-el</artifactId>
318 <version>${tomcat.version}</version>
319 </dependency>
320 <dependency>
321 <groupId>org.apache.tomcat.embed</groupId>
322 <artifactId>tomcat-embed-websocket</artifactId>
323 <version>${tomcat.version}</version>
324 </dependency>
325 <dependency>
326 <groupId>org.apache.tomcat</groupId>
327 <artifactId>tomcat-annotations-api</artifactId>
328 <version>${tomcat.version}</version>
329 </dependency>
330 <!-- For CAMEL -->
331 <dependency>
332 <groupId>org.apache.camel</groupId>
333 <artifactId>camel-http4-starter</artifactId>
334 </dependency>
335 <dependency>
336 <groupId>org.apache.camel</groupId>
337 <artifactId>camel-spring-boot-starter</artifactId>
338 </dependency>
339 <dependency>
340 <groupId>org.apache.camel</groupId>
341 <artifactId>camel-jaxb-starter</artifactId>
342 </dependency>
343 <dependency>
344 <groupId>org.apache.camel</groupId>
345 <artifactId>camel-servlet-starter</artifactId>
346 </dependency>
347 <dependency>
348 <groupId>org.apache.camel</groupId>
349 <artifactId>camel-gson-starter</artifactId>
350 </dependency>
351 <dependency>
352 <groupId>org.apache.camel</groupId>
353 <artifactId>camel-swagger-java-starter</artifactId>
354 <exclusions>
355 <exclusion>
356 <groupId>javax.ws.rs</groupId>
357 <artifactId>jsr311-api</artifactId>
358 </exclusion>
359 <exclusion>
360 <groupId>org.slf4j</groupId>
361 <artifactId>slf4j-ext</artifactId>
362 </exclusion>
363 <exclusion>
364 <groupId>com.fasterxml.jackson.core</groupId>
365 <artifactId>jackson-databind</artifactId>
366 </exclusion>
367 </exclusions>
368 </dependency>
369 <dependency>
370 <groupId>javax.xml.bind</groupId>
371 <artifactId>jaxb-api</artifactId>
372 <version>2.3.0</version>
373 </dependency>
374 <dependency>
375 <groupId>org.glassfish.jersey.core</groupId>
376 <artifactId>jersey-common</artifactId>
377 <version>2.27</version>
378 </dependency>
379 <!-- Spring famework -->
380 <dependency>
381 <groupId>org.springframework.boot</groupId>
382 <artifactId>spring-boot-starter-web</artifactId>
383 <exclusions>
384 <exclusion>
385 <groupId>org.springframework.boot</groupId>
386 <artifactId>spring-boot-starter-json</artifactId>
387 </exclusion>
388 </exclusions>
389 </dependency>
390 <dependency>
391 <groupId>org.springframework.boot</groupId>
392 <artifactId>spring-boot-starter-tomcat</artifactId>
393 </dependency>
394 <dependency>
395 <groupId>org.springframework</groupId>
396 <artifactId>spring-jdbc</artifactId>
397 </dependency>
398 <dependency>
399 <groupId>org.springframework.boot</groupId>
400 <artifactId>spring-boot-starter-security</artifactId>
401 </dependency>
402 <dependency>
403 <groupId>org.springframework.boot</groupId>
404 <artifactId>spring-boot-autoconfigure</artifactId>
405 </dependency>
406 <dependency>
407 <groupId>org.springframework.boot</groupId>
408 <artifactId>spring-boot-starter-test</artifactId>
409 <scope>test</scope>
410 <exclusions>
411 <exclusion>
412 <groupId>com.vaadin.external.google</groupId>
413 <artifactId>android-json</artifactId>
414 </exclusion>
415 </exclusions>
416 </dependency>
417 <dependency>
418 <groupId>org.springframework.boot</groupId>
419 <artifactId>spring-boot-starter-data-jpa</artifactId>
420 </dependency>
421 <!-- Others dependencies -->
422 <dependency>
423 <groupId>org.onap.aaf.authz</groupId>
424 <artifactId>aaf-cadi-aaf</artifactId>
sebdetdcc4bdc2019-10-15 14:04:00 +0200425 <version>2.1.15</version>
sebdet101193d2019-09-05 18:25:59 +0200426 <exclusions>
427 <exclusion>
428 <groupId>javax.servlet</groupId>
429 <artifactId>servlet-api</artifactId>
430 </exclusion>
431 </exclusions>
432 </dependency>
433 <dependency>
434 <groupId>ch.qos.logback</groupId>
435 <artifactId>logback-core</artifactId>
436 <version>1.2.3</version>
437 </dependency>
438 <dependency>
439 <groupId>ch.qos.logback</groupId>
440 <artifactId>logback-classic</artifactId>
441 <version>1.2.3</version>
442 </dependency>
443 <dependency>
444 <groupId>commons-dbcp</groupId>
445 <artifactId>commons-dbcp</artifactId>
446 <version>1.4</version>
447 </dependency>
448 <dependency>
449 <groupId>commons-io</groupId>
450 <artifactId>commons-io</artifactId>
451 <version>2.6</version>
452 </dependency>
453 <dependency>
454 <groupId>com.googlecode.json-simple</groupId>
455 <artifactId>json-simple</artifactId>
456 <version>1.1.1</version>
457 </dependency>
458 <dependency>
459 <groupId>org.apache.commons</groupId>
460 <artifactId>commons-vfs2</artifactId>
461 <version>2.2</version>
462 </dependency>
463 <dependency>
464 <groupId>joda-time</groupId>
465 <artifactId>joda-time</artifactId>
466 </dependency>
467 <dependency>
468 <groupId>org.slf4j</groupId>
469 <artifactId>slf4j-api</artifactId>
470 </dependency>
471 <dependency>
472 <groupId>javax.ws.rs</groupId>
473 <artifactId>javax.ws.rs-api</artifactId>
474 <version>2.0</version>
475 </dependency>
476 <dependency>
477 <groupId>junit</groupId>
478 <artifactId>junit</artifactId>
479 </dependency>
480 <dependency>
481 <groupId>javax.transaction</groupId>
482 <artifactId>jta</artifactId>
483 <version>1.1</version>
484 </dependency>
485 <dependency>
486 <groupId>javax.persistence</groupId>
487 <artifactId>persistence-api</artifactId>
488 <version>1.0.2</version>
489 </dependency>
490 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200491 <groupId>org.apache.commons</groupId>
492 <artifactId>commons-csv</artifactId>
493 <version>1.3</version>
494 </dependency>
495 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
496 <dependency>
497 <groupId>org.codehaus.plexus</groupId>
498 <artifactId>plexus-utils</artifactId>
499 <version>3.0.24</version>
500 </dependency>
501 <dependency>
502 <groupId>org.jboss.spec.javax.ws.rs</groupId>
503 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
504 <version>1.0.1.Final</version>
505 </dependency>
506 <dependency>
507 <groupId>com.google.guava</groupId>
508 <artifactId>guava</artifactId>
509 <version>27.0-jre</version>
510 </dependency>
sebdete77e0ff2019-09-09 13:18:35 +0200511 <dependency>
512 <groupId>commons-codec</groupId>
513 <artifactId>commons-codec</artifactId>
514 <version>1.13</version>
515 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200516 <!-- Remove the MYSQL connector and replace it by Mariadb -->
517 <dependency>
518 <groupId>org.mariadb.jdbc</groupId>
519 <artifactId>mariadb-java-client</artifactId>
520 <version>2.2.1</version>
521 </dependency>
522 <!-- For SDC Controller -->
523 <dependency>
524 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
525 <artifactId>sdc-distribution-client</artifactId>
526 <version>1.3.0</version>
527 </dependency>
528 <dependency>
529 <groupId>org.onap.sdc.sdc-tosca</groupId>
530 <artifactId>sdc-tosca</artifactId>
531 <version>1.5.1</version>
532 </dependency>
533 <!-- TESTING -->
534 <dependency>
535 <groupId>org.assertj</groupId>
536 <artifactId>assertj-core</artifactId>
537 <version>3.10.0</version>
538 <scope>test</scope>
539 </dependency>
540 <dependency>
541 <groupId>org.mockito</groupId>
542 <artifactId>mockito-core</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100543 <version>2.28.2</version>
544 <scope>test</scope>
545 </dependency>
546 <dependency>
547 <groupId>org.powermock</groupId>
548 <artifactId>powermock-api-mockito2</artifactId>
549 <version>2.0.4</version>
550 <scope>test</scope>
551 </dependency>
552 <dependency>
553 <groupId>org.powermock</groupId>
554 <artifactId>powermock-module-junit4</artifactId>
555 <version>2.0.4</version>
sebdet101193d2019-09-05 18:25:59 +0200556 <scope>test</scope>
557 </dependency>
558 </dependencies>
559
560 <build>
561 <finalName>clamp</finalName>
562
563 <testResources>
564 <testResource>
565 <directory>src/test/resources</directory>
566 <excludes>
567 <exclude>**/*.jks</exclude>
568 <exclude>**/*.csar</exclude>
569 </excludes>
570 <filtering>true</filtering>
571 </testResource>
572 <testResource>
573 <directory>src/test/resources/https</directory>
574 <includes>
575 <include>**.jks</include>
576 </includes>
577 <filtering>false</filtering>
578 <targetPath>https</targetPath>
579 </testResource>
580 <testResource>
581 <directory>src/test/resources/example/sdc</directory>
582 <includes>
583 <include>**.csar</include>
584 </includes>
585 <filtering>false</filtering>
586 <targetPath>example/sdc</targetPath>
587 </testResource>
588 </testResources>
589 <resources>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500590 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
sebdet101193d2019-09-05 18:25:59 +0200591 they will be broken and unreadable -->
592 <resource>
593 <directory>src/main/resources</directory>
594 <filtering>true</filtering>
595 <excludes>
596 <exclude>clds/aaf/**</exclude>
597 </excludes>
598 </resource>
599 <resource>
600 <directory>src/main/resources</directory>
601 <filtering>false</filtering>
602 <includes>
603 <include>clds/aaf/**</include>
604 </includes>
605 </resource>
606 <resource>
607 <directory>${ui.react.src}</directory>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500608 <excludes>
609 <exclude>node_modules</exclude>
610 </excludes>
sebdet101193d2019-09-05 18:25:59 +0200611 <includes>
612 <include>src/**</include>
613 <include>public/**</include>
614 <include>package.json</include>
615 <include>package-lock.json</include>
616 </includes>
617 <filtering>true</filtering>
618 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
619 </resource>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500620 <resource>
621 <directory>${ui.react.src}</directory>
622 <includes>
623 <include>src/**</include>
624 </includes>
625 <excludes>
626 <exclude>**/__snapshots__/**</exclude>
627 <exclude>**/**.test.js</exclude>
628 </excludes>
629 <filtering>true</filtering>
630 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
631 </resource>
632 <resource>
633 <directory>${ui.react.lib.src}</directory>
634 <includes>
635 <include>**</include>
636 </includes>
637 <excludes>
638 <exclude>node_modules/**</exclude>
639 <exclude>package-lock.json</exclude>
640 </excludes>
641 <filtering>true</filtering>
642 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
643 </resource>
sebdet101193d2019-09-05 18:25:59 +0200644 </resources>
645
646 <plugins>
647 <plugin>
nrpandya82561262019-11-21 11:51:18 -0600648 <groupId>de.jpdigital</groupId>
649 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
650 <version>2.2.0</version>
sebdet101193d2019-09-05 18:25:59 +0200651 <dependencies>
652 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200653 <groupId>javax.xml.bind</groupId>
654 <artifactId>jaxb-api</artifactId>
655 <version>2.3.0</version>
sebdet101193d2019-09-05 18:25:59 +0200656 </dependency>
657 </dependencies>
658 <executions>
659 <execution>
660 <phase>process-classes</phase>
661 <goals>
662 <goal>gen-ddl</goal>
663 </goals>
sebdete4422002018-10-16 17:47:54 +0200664 <configuration>
sebdet101193d2019-09-05 18:25:59 +0200665 <packages>
nrpandya82561262019-11-21 11:51:18 -0600666 <param>org.onap.clamp</param>
sebdet101193d2019-09-05 18:25:59 +0200667 </packages>
668 <dialects>
669 <param>MARIADB53</param>
670 </dialects>
671 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
672 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
673 <!-- <createDropStatements>true</createDropStatements> -->
674 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdete4422002018-10-16 17:47:54 +0200675 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200676 </execution>
677 </executions>
678
679 </plugin>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500680 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
sebdet101193d2019-09-05 18:25:59 +0200681 a list of .adoc files containing the APIs info in more structured way -->
682 <plugin>
683 <groupId>io.github.swagger2markup</groupId>
684 <artifactId>swagger2markup-maven-plugin</artifactId>
685 <version>1.3.3</version>
686 <dependencies>
687 <dependency>
688 <groupId>io.github.swagger2markup</groupId>
689 <artifactId>swagger2markup-import-files-ext</artifactId>
690 <version>1.3.3</version>
691 </dependency>
692 <dependency>
693 <groupId>io.github.swagger2markup</groupId>
694 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
695 <version>1.3.3</version>
696 </dependency>
697 </dependencies>
698 <configuration>
699 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
700 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
701 <config>
702 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
703 </config>
704 </configuration>
705 <executions>
706 <execution>
707 <phase>post-integration-test</phase>
708 <goals>
709 <goal>convertSwagger2markup</goal>
710 </goals>
711 </execution>
712 </executions>
713 </plugin>
714
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500715 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
sebdet101193d2019-09-05 18:25:59 +0200716 types, such as PDFs or HTML5 -->
717 <plugin>
718 <groupId>org.asciidoctor</groupId>
719 <artifactId>asciidoctor-maven-plugin</artifactId>
720 <version>1.5.7.1</version>
721 <dependencies>
722 <dependency>
723 <groupId>org.asciidoctor</groupId>
724 <artifactId>asciidoctorj-pdf</artifactId>
725 <version>1.5.0-alpha.10.1</version>
726 </dependency>
727 </dependencies>
728 <configuration>
729 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
730 <sourceDocumentName>swagger.adoc</sourceDocumentName>
731 <attributes>
732 <doctype>book</doctype>
733 <toc>left</toc>
734 <toclevels>3</toclevels>
735 <numbered />
736 <hardbreaks />
737 <sectlinks />
738 <sectanchors />
739 <generated>${project.build.directory}/asciidoc/generated</generated>
740 </attributes>
741 </configuration>
742
743 <executions>
744 <execution>
745 <id>output-html</id>
746 <phase>post-integration-test</phase>
747 <goals>
748 <goal>process-asciidoc</goal>
749 </goals>
750 <configuration>
751 <backend>html5</backend>
752 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
753 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
754 </configuration>
755 </execution>
756 <execution>
757 <id>output-pdf</id>
758 <phase>post-integration-test</phase>
759 <goals>
760 <goal>process-asciidoc</goal>
761 </goals>
762 <configuration>
763 <backend>pdf</backend>
764 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
765 </configuration>
766 </execution>
767 </executions>
768 </plugin>
769 <plugin>
770 <groupId>org.codehaus.groovy.maven</groupId>
771 <artifactId>gmaven-plugin</artifactId>
772 <version>1.0</version>
773 <executions>
774 <execution>
775 <phase>validate</phase>
776 <goals>
777 <goal>execute</goal>
778 </goals>
779 <configuration>
780 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
781 </configuration>
782 </execution>
783 </executions>
784 </plugin>
785 <plugin>
sebdetc6622c42019-11-05 18:28:05 +0100786 <groupId>org.codehaus.groovy.maven</groupId>
787 <artifactId>gmaven-plugin</artifactId>
788 <version>1.0</version>
789 <executions>
790 <execution>
791 <phase>validate</phase>
792 <goals>
793 <goal>execute</goal>
794 </goals>
795 <configuration>
796 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
797 </configuration>
798 </execution>
799 </executions>
800 </plugin>
801 <plugin>
sebdet101193d2019-09-05 18:25:59 +0200802 <groupId>org.apache.maven.plugins</groupId>
803 <artifactId>maven-jar-plugin</artifactId>
804 <version>3.0.2</version>
805 <executions>
806 <execution>
807 <id>jar-with-only-classes</id>
808 <phase>package</phase>
809 <goals>
810 <goal>jar</goal>
811 </goals>
812 <configuration>
813 <classifier>classes</classifier>
814 <includes>
815 <include>org/**</include>
816 </includes>
817 </configuration>
818 </execution>
819 </executions>
820 </plugin>
821 <plugin>
822 <groupId>org.codehaus.mojo</groupId>
823 <artifactId>build-helper-maven-plugin</artifactId>
824 <version>3.0.0</version>
825 <executions>
826 <execution>
827 <goals>
828 <goal>attach-artifact</goal>
829 </goals>
830 <phase>package</phase>
831 <configuration>
832 <artifacts>
833 <artifact>
834 <file>${project.build.directory}/clamp-classes.jar</file>
835 <type>jar</type>
836 <classifier>classes</classifier>
837 </artifact>
838 </artifacts>
839 </configuration>
840 </execution>
841 <execution>
842 <id>reserve-port-for-tests</id>
843 <phase>process-resources</phase>
844 <goals>
845 <goal>reserve-network-port</goal>
846 </goals>
847 <configuration>
848 <portNames>
849 <portName>docker.mariadb.port.host</portName>
850 <portName>docker.http-cache.port.host</portName>
851 <portName>clamp.it.tests.http-redirected</portName>
852 <portName>clamp.it.tests.https</portName>
853 <portName>clamp.it.tests.http</portName>
854 </portNames>
855 </configuration>
856 </execution>
857 </executions>
858 </plugin>
859
860 <plugin>
861 <groupId>org.springframework.boot</groupId>
862 <artifactId>spring-boot-maven-plugin</artifactId>
863 <!-- Temporary fix -->
864 <version>1.5.13.RELEASE</version>
865 <!-- <version>${springboot.version}</version> -->
866 <executions>
867 <execution>
868 <goals>
869 <goal>repackage</goal>
870 </goals>
871 <phase>package</phase>
872 </execution>
873 </executions>
874 </plugin>
875 <plugin>
876 <groupId>org.apache.maven.plugins</groupId>
877 <artifactId>maven-surefire-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100878 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200879 <configuration>
880 <forkCount>1C</forkCount>
881 <reuseForks>true</reuseForks>
882 <useSystemClassLoader>false</useSystemClassLoader>
883 <argLine>${surefireArgLine}</argLine>
884 </configuration>
885 </plugin>
886
887 <plugin>
888 <groupId>org.apache.maven.plugins</groupId>
889 <artifactId>maven-failsafe-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100890 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200891 <executions>
892 <execution>
893 <id>integration-tests</id>
894 <goals>
895 <goal>integration-test</goal>
896 <goal>verify</goal>
897 </goals>
898 <configuration>
899 <additionalClasspathElements>
900 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
901 </additionalClasspathElements>
902 <includes>
903 <include>**/*ItCase.java</include>
904 </includes>
sebdet4f0110b2020-01-29 14:05:24 +0100905 <forkCount>1C</forkCount>
sebdet101193d2019-09-05 18:25:59 +0200906 <reuseForks>true</reuseForks>
907 <useSystemClassLoader>false</useSystemClassLoader>
908 <argLine>${failsafeArgLine}</argLine>
909 </configuration>
910 </execution>
911 </executions>
sebdet101193d2019-09-05 18:25:59 +0200912 </plugin>
913 <plugin>
914 <groupId>io.fabric8</groupId>
915 <artifactId>docker-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100916 <version>0.31.0</version>
sebdet101193d2019-09-05 18:25:59 +0200917 <dependencies>
918 <dependency>
919 <groupId>org.apache.httpcomponents</groupId>
920 <artifactId>httpclient</artifactId>
921 <version>4.5.5</version>
922 </dependency>
923 </dependencies>
924 <configuration>
925 <verbose>true</verbose>
926 <apiVersion>1.35</apiVersion>
927 <images>
928 <image>
929 <name>library/mariadb:10.3.12</name>
930 <alias>mariadb</alias>
931 <run>
932 <env>
933 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
934 </env>
935 <hostname>mariadb</hostname>
936 <volumes>
937 <bind>
sebdetfdfde212019-09-12 10:59:15 +0200938 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
sebdet101193d2019-09-05 18:25:59 +0200939 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
940 </bind>
941 </volumes>
942 <wait>
943 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
944 <time>600000</time>
sebdetfdfde212019-09-12 10:59:15 +0200945 <exec>
946 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
947 </exec>
sebdet101193d2019-09-05 18:25:59 +0200948 </wait>
949 <ports>
950 <port>${docker.mariadb.port.host}:3306</port>
951 </ports>
sebdet1b6a4282019-11-05 13:44:53 +0100952 <network>
953 <mode>bridge</mode>
954 </network>
sebdet101193d2019-09-05 18:25:59 +0200955 </run>
956 </image>
957 <image>
958 <name>library/python:2-slim</name>
959 <alias>python</alias>
960 <run>
961 <hostname>python</hostname>
962 <volumes>
963 <bind>
964 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
965 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
966 </bind>
967 </volumes>
968 <wait>
969 <tcp>
970 <ports>
971 <port>8080</port>
972 </ports>
973 <mode>direct</mode>
974 </tcp>
975 <time>120000</time>
976 </wait>
977 <ports>
978 <port>${docker.http-cache.port.host}:8080</port>
979 </ports>
980 <workingDir>/usr/src/http-cache-app</workingDir>
981 <cmd>
982 <shell>./start_http_cache.sh ${python.http.proxy.param}
983 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
984 </cmd>
sebdet1b6a4282019-11-05 13:44:53 +0100985 <network>
986 <mode>bridge</mode>
987 </network>
sebdet101193d2019-09-05 18:25:59 +0200988 </run>
989 </image>
990 <image>
991 <name>onap/clamp-backend</name>
992 <alias>onap-clamp-backend</alias>
993 <run>
994 <skip>true</skip>
995 </run>
996 <build>
997 <cleanup>true</cleanup>
998 <tags>
999 <tag>latest</tag>
1000 <tag>${project.docker.latesttagtimestamp.version}</tag>
1001 <tag>${project.docker.latesttag.version}</tag>
1002 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001003 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001004 default -->
1005 <dockerFile>backend/Dockerfile</dockerFile>
1006 <assembly>
1007 <descriptor>backend/backend-files.xml</descriptor>
1008 <name>onap-clamp-backend</name>
1009 </assembly>
1010 </build>
1011 </image>
1012 <image>
1013 <name>onap/clamp-frontend</name>
1014 <alias>onap-clamp-frontend</alias>
1015 <run>
1016 <skip>true</skip>
1017 </run>
1018 <build>
1019 <cleanup>true</cleanup>
1020 <tags>
1021 <tag>latest</tag>
1022 <tag>${project.docker.latesttagtimestamp.version}</tag>
1023 <tag>${project.docker.latesttag.version}</tag>
1024 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001025 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001026 default -->
1027 <dockerFile>frontend/Dockerfile</dockerFile>
1028 <assembly>
1029 <descriptor>frontend/frontend-files.xml</descriptor>
1030 <name>onap-clamp-frontend</name>
1031 </assembly>
1032 </build>
1033 </image>
sebdet101193d2019-09-05 18:25:59 +02001034 </images>
1035 </configuration>
1036
1037 <executions>
1038 <execution>
1039 <id>generate-images</id>
1040 <phase>install</phase>
1041 <goals>
1042 <goal>build</goal>
1043 </goals>
1044 </execution>
1045 <execution>
1046 <id>push-images</id>
1047 <phase>deploy</phase>
1048 <goals>
1049 <goal>push</goal>
1050 </goals>
1051 </execution>
1052 <execution>
1053 <id>docker-start-for-it</id>
1054 <phase>pre-integration-test</phase>
1055 <goals>
1056 <goal>start</goal>
1057 </goals>
1058 </execution>
1059 <execution>
1060 <id>docker-stop-for-it</id>
1061 <phase>post-integration-test</phase>
1062 <goals>
1063 <goal>stop</goal>
1064 </goals>
1065 </execution>
1066 </executions>
1067 </plugin>
1068
1069 <plugin>
1070 <groupId>org.jacoco</groupId>
1071 <artifactId>jacoco-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +01001072 <version>0.8.5</version>
sebdet101193d2019-09-05 18:25:59 +02001073 <configuration>
1074 <dumpOnExit>true</dumpOnExit>
1075 <append>true</append>
1076 <includes>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001077 <include>org/onap/clamp/**</include>
sebdet101193d2019-09-05 18:25:59 +02001078 </includes>
1079 </configuration>
1080 <executions>
1081 <execution>
1082 <id>pre-unit-test</id>
1083 <goals>
1084 <goal>prepare-agent</goal>
1085 </goals>
1086 <configuration>
1087 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1088 <propertyName>surefireArgLine</propertyName>
1089 <!-- <append>true</append> -->
1090 </configuration>
1091 </execution>
1092 <execution>
1093 <id>pre-integration-test</id>
1094 <phase>pre-integration-test</phase>
1095 <goals>
1096 <goal>prepare-agent</goal>
1097 </goals>
1098 <configuration>
1099 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1100 <propertyName>failsafeArgLine</propertyName>
1101 <!-- <append>true</append> -->
1102 </configuration>
1103 </execution>
1104 <execution>
1105 <goals>
1106 <goal>merge</goal>
1107 </goals>
1108 <phase>post-integration-test</phase>
1109 <configuration>
1110 <fileSets>
1111 <fileSet
1112 implementation="org.apache.maven.shared.model.fileset.FileSet">
1113 <directory>${project.build.directory}/coverage-reports</directory>
1114 <includes>
1115 <include>*.exec</include>
1116 </includes>
1117 </fileSet>
1118 </fileSets>
sebdetf332e2e2020-01-24 13:49:49 +01001119 <destFile>${project.build.directory}/jacoco.exec</destFile>
sebdet101193d2019-09-05 18:25:59 +02001120 </configuration>
1121 </execution>
sebdet749c0f12020-01-23 13:35:34 +01001122 <execution>
sebdetf332e2e2020-01-24 13:49:49 +01001123 <id>report-xml</id>
sebdet749c0f12020-01-23 13:35:34 +01001124 <goals>
1125 <goal>report</goal>
1126 </goals>
sebdet749c0f12020-01-23 13:35:34 +01001127 <configuration>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001128 <!-- Setting explicit path, so that we remember where it picks them up from -->
1129 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1130 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
sebdet749c0f12020-01-23 13:35:34 +01001131 </configuration>
1132 </execution>
sebdet101193d2019-09-05 18:25:59 +02001133 </executions>
1134 </plugin>
1135
1136 <!-- This plugin will be useful when we will have multi-modules project -->
1137 <plugin>
1138 <groupId>org.codehaus.mojo</groupId>
1139 <artifactId>versions-maven-plugin</artifactId>
1140 <version>1.3.1</version>
1141 </plugin>
1142
1143 <plugin>
1144 <groupId>com.github.eirslett</groupId>
1145 <artifactId>frontend-maven-plugin</artifactId>
1146 <version>1.8.0</version>
1147 <configuration>
1148 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
sebdet101193d2019-09-05 18:25:59 +02001149 </configuration>
1150 <executions>
1151 <execution>
1152 <id>install_node_and_npm</id>
1153 <goals>
1154 <goal>install-node-and-npm</goal>
1155 </goals>
1156 <phase>generate-sources</phase>
1157 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001158 <nodeVersion>v12.13.0</nodeVersion>
1159 <npmVersion>6.13.0</npmVersion>
sebdet101193d2019-09-05 18:25:59 +02001160 </configuration>
1161 </execution>
1162 <execution>
1163 <id>npm_install</id>
1164 <goals>
1165 <goal>npm</goal>
1166 </goals>
1167 <phase>compile</phase>
1168 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001169 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
sebdet996071f2019-10-25 13:25:57 +02001170 <arguments>install</arguments>
sebdet101193d2019-09-05 18:25:59 +02001171 </configuration>
1172 </execution>
1173 <execution>
1174 <id>npm_test</id>
1175 <goals>
1176 <goal>npm</goal>
1177 </goals>
1178 <phase>test</phase>
1179 <configuration>
1180 <arguments>run-script test:coverage</arguments>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001181 <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>
sebdet101193d2019-09-05 18:25:59 +02001204 </configuration>
1205 </execution>
1206 <execution>
1207 <id>npm_publish</id>
1208 <goals>
1209 <goal>npm</goal>
1210 </goals>
1211 <phase>deploy</phase>
1212 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001213 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
sebdetdd107682019-11-13 13:13:07 +01001214 <arguments>publish</arguments>
sebdet101193d2019-09-05 18:25:59 +02001215 </configuration>
1216 </execution>
1217 </executions>
1218 </plugin>
sebdet1b6a4282019-11-05 13:44:53 +01001219 <plugin>
1220 <groupId>org.apache.maven.plugins</groupId>
1221 <artifactId>maven-compiler-plugin</artifactId>
1222 <version>3.8.1</version>
1223 <configuration>
sebdete17bc1b2019-11-18 17:57:32 +01001224 <source>11</source>
1225 <target>11</target>
sebdet1b6a4282019-11-05 13:44:53 +01001226 </configuration>
1227 </plugin>
sebdetd07b6502019-11-08 13:49:44 +01001228 <plugin>
1229 <groupId>org.sonarsource.scanner.maven</groupId>
1230 <artifactId>sonar-maven-plugin</artifactId>
1231 <version>3.7.0.1746</version>
1232 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001233 </plugins>
1234 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001235</project>