blob: e2de1e27c52afeb1bcc019b6537ec98107745f58 [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>
sebdet54c42cd2020-04-15 01:21:42 +020029 <version>5.0.4-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>
sebdete65d4572020-03-24 08:51:20 -070079 <camel.version>2.25.0</camel.version>
80 <springboot.version>2.2.5.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 />
JulienBe8af7cda2020-03-23 15:59:11 +0100102 <tomcat.version>9.0.33</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>
sebdet1ccb7072020-03-27 10:40:14 -0700370 <groupId>javax.xml.ws</groupId>
371 <artifactId>jaxws-api</artifactId>
372 <version>2.3.1</version>
373 </dependency>
374 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200375 <groupId>javax.xml.bind</groupId>
376 <artifactId>jaxb-api</artifactId>
377 <version>2.3.0</version>
378 </dependency>
379 <dependency>
380 <groupId>org.glassfish.jersey.core</groupId>
381 <artifactId>jersey-common</artifactId>
382 <version>2.27</version>
383 </dependency>
384 <!-- Spring famework -->
385 <dependency>
386 <groupId>org.springframework.boot</groupId>
387 <artifactId>spring-boot-starter-web</artifactId>
388 <exclusions>
389 <exclusion>
390 <groupId>org.springframework.boot</groupId>
391 <artifactId>spring-boot-starter-json</artifactId>
392 </exclusion>
393 </exclusions>
394 </dependency>
395 <dependency>
396 <groupId>org.springframework.boot</groupId>
397 <artifactId>spring-boot-starter-tomcat</artifactId>
398 </dependency>
399 <dependency>
400 <groupId>org.springframework</groupId>
401 <artifactId>spring-jdbc</artifactId>
402 </dependency>
403 <dependency>
404 <groupId>org.springframework.boot</groupId>
405 <artifactId>spring-boot-starter-security</artifactId>
406 </dependency>
407 <dependency>
408 <groupId>org.springframework.boot</groupId>
409 <artifactId>spring-boot-autoconfigure</artifactId>
410 </dependency>
411 <dependency>
412 <groupId>org.springframework.boot</groupId>
413 <artifactId>spring-boot-starter-test</artifactId>
414 <scope>test</scope>
415 <exclusions>
416 <exclusion>
417 <groupId>com.vaadin.external.google</groupId>
418 <artifactId>android-json</artifactId>
419 </exclusion>
420 </exclusions>
421 </dependency>
422 <dependency>
423 <groupId>org.springframework.boot</groupId>
424 <artifactId>spring-boot-starter-data-jpa</artifactId>
425 </dependency>
426 <!-- Others dependencies -->
427 <dependency>
428 <groupId>org.onap.aaf.authz</groupId>
429 <artifactId>aaf-cadi-aaf</artifactId>
sebdetdcc4bdc2019-10-15 14:04:00 +0200430 <version>2.1.15</version>
sebdet101193d2019-09-05 18:25:59 +0200431 <exclusions>
432 <exclusion>
433 <groupId>javax.servlet</groupId>
434 <artifactId>servlet-api</artifactId>
435 </exclusion>
JulienBead6ab002020-03-23 17:37:33 +0100436 <exclusion>
437 <groupId>log4j</groupId>
438 <artifactId>log4j</artifactId>
439 </exclusion>
sebdet101193d2019-09-05 18:25:59 +0200440 </exclusions>
441 </dependency>
442 <dependency>
443 <groupId>ch.qos.logback</groupId>
444 <artifactId>logback-core</artifactId>
445 <version>1.2.3</version>
446 </dependency>
447 <dependency>
448 <groupId>ch.qos.logback</groupId>
449 <artifactId>logback-classic</artifactId>
450 <version>1.2.3</version>
451 </dependency>
452 <dependency>
453 <groupId>commons-dbcp</groupId>
454 <artifactId>commons-dbcp</artifactId>
455 <version>1.4</version>
456 </dependency>
457 <dependency>
458 <groupId>commons-io</groupId>
459 <artifactId>commons-io</artifactId>
460 <version>2.6</version>
461 </dependency>
462 <dependency>
463 <groupId>com.googlecode.json-simple</groupId>
464 <artifactId>json-simple</artifactId>
465 <version>1.1.1</version>
466 </dependency>
467 <dependency>
468 <groupId>org.apache.commons</groupId>
469 <artifactId>commons-vfs2</artifactId>
470 <version>2.2</version>
471 </dependency>
472 <dependency>
473 <groupId>joda-time</groupId>
474 <artifactId>joda-time</artifactId>
475 </dependency>
476 <dependency>
477 <groupId>org.slf4j</groupId>
478 <artifactId>slf4j-api</artifactId>
479 </dependency>
480 <dependency>
481 <groupId>javax.ws.rs</groupId>
482 <artifactId>javax.ws.rs-api</artifactId>
483 <version>2.0</version>
484 </dependency>
485 <dependency>
486 <groupId>junit</groupId>
487 <artifactId>junit</artifactId>
488 </dependency>
489 <dependency>
490 <groupId>javax.transaction</groupId>
491 <artifactId>jta</artifactId>
492 <version>1.1</version>
493 </dependency>
494 <dependency>
495 <groupId>javax.persistence</groupId>
496 <artifactId>persistence-api</artifactId>
497 <version>1.0.2</version>
498 </dependency>
499 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200500 <groupId>org.apache.commons</groupId>
501 <artifactId>commons-csv</artifactId>
502 <version>1.3</version>
503 </dependency>
504 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
505 <dependency>
506 <groupId>org.codehaus.plexus</groupId>
507 <artifactId>plexus-utils</artifactId>
508 <version>3.0.24</version>
509 </dependency>
510 <dependency>
511 <groupId>org.jboss.spec.javax.ws.rs</groupId>
512 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
513 <version>1.0.1.Final</version>
514 </dependency>
515 <dependency>
516 <groupId>com.google.guava</groupId>
517 <artifactId>guava</artifactId>
518 <version>27.0-jre</version>
519 </dependency>
sebdete77e0ff2019-09-09 13:18:35 +0200520 <dependency>
521 <groupId>commons-codec</groupId>
522 <artifactId>commons-codec</artifactId>
523 <version>1.13</version>
524 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200525 <!-- Remove the MYSQL connector and replace it by Mariadb -->
526 <dependency>
527 <groupId>org.mariadb.jdbc</groupId>
528 <artifactId>mariadb-java-client</artifactId>
529 <version>2.2.1</version>
530 </dependency>
531 <!-- For SDC Controller -->
532 <dependency>
533 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
534 <artifactId>sdc-distribution-client</artifactId>
535 <version>1.3.0</version>
536 </dependency>
537 <dependency>
538 <groupId>org.onap.sdc.sdc-tosca</groupId>
539 <artifactId>sdc-tosca</artifactId>
540 <version>1.5.1</version>
541 </dependency>
sebdet3ed8d432020-03-24 15:49:19 -0700542 <dependency>
543 <groupId>org.yaml</groupId>
544 <artifactId>snakeyaml</artifactId>
545 <version>1.26</version>
546 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200547 <!-- TESTING -->
548 <dependency>
549 <groupId>org.assertj</groupId>
550 <artifactId>assertj-core</artifactId>
551 <version>3.10.0</version>
552 <scope>test</scope>
553 </dependency>
554 <dependency>
555 <groupId>org.mockito</groupId>
556 <artifactId>mockito-core</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100557 <version>2.28.2</version>
558 <scope>test</scope>
559 </dependency>
560 <dependency>
561 <groupId>org.powermock</groupId>
562 <artifactId>powermock-api-mockito2</artifactId>
563 <version>2.0.4</version>
564 <scope>test</scope>
565 </dependency>
566 <dependency>
567 <groupId>org.powermock</groupId>
568 <artifactId>powermock-module-junit4</artifactId>
569 <version>2.0.4</version>
sebdet101193d2019-09-05 18:25:59 +0200570 <scope>test</scope>
571 </dependency>
572 </dependencies>
573
574 <build>
575 <finalName>clamp</finalName>
576
577 <testResources>
578 <testResource>
sebdet29e3cd12020-02-13 05:49:21 -0800579 <directory>src/main/resources</directory>
580 <filtering>true</filtering>
581 <excludes>
582 <exclude>clds/aaf/**</exclude>
583 </excludes>
584 </testResource>
585 <testResource>
586 <directory>src/main/resources</directory>
587 <filtering>false</filtering>
588 <includes>
589 <include>clds/aaf/**</include>
590 </includes>
591 </testResource>
592 <testResource>
sebdet101193d2019-09-05 18:25:59 +0200593 <directory>src/test/resources</directory>
594 <excludes>
595 <exclude>**/*.jks</exclude>
596 <exclude>**/*.csar</exclude>
597 </excludes>
598 <filtering>true</filtering>
599 </testResource>
600 <testResource>
601 <directory>src/test/resources/https</directory>
602 <includes>
603 <include>**.jks</include>
604 </includes>
605 <filtering>false</filtering>
606 <targetPath>https</targetPath>
607 </testResource>
608 <testResource>
609 <directory>src/test/resources/example/sdc</directory>
610 <includes>
611 <include>**.csar</include>
612 </includes>
613 <filtering>false</filtering>
614 <targetPath>example/sdc</targetPath>
615 </testResource>
616 </testResources>
617 <resources>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500618 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
sebdet101193d2019-09-05 18:25:59 +0200619 they will be broken and unreadable -->
620 <resource>
621 <directory>src/main/resources</directory>
622 <filtering>true</filtering>
623 <excludes>
624 <exclude>clds/aaf/**</exclude>
625 </excludes>
626 </resource>
627 <resource>
628 <directory>src/main/resources</directory>
629 <filtering>false</filtering>
630 <includes>
631 <include>clds/aaf/**</include>
632 </includes>
633 </resource>
634 <resource>
635 <directory>${ui.react.src}</directory>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500636 <excludes>
637 <exclude>node_modules</exclude>
638 </excludes>
sebdet101193d2019-09-05 18:25:59 +0200639 <includes>
640 <include>src/**</include>
641 <include>public/**</include>
642 <include>package.json</include>
643 <include>package-lock.json</include>
644 </includes>
645 <filtering>true</filtering>
646 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
647 </resource>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500648 <resource>
649 <directory>${ui.react.src}</directory>
650 <includes>
651 <include>src/**</include>
652 </includes>
653 <excludes>
654 <exclude>**/__snapshots__/**</exclude>
655 <exclude>**/**.test.js</exclude>
656 </excludes>
657 <filtering>true</filtering>
658 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
659 </resource>
660 <resource>
661 <directory>${ui.react.lib.src}</directory>
662 <includes>
663 <include>**</include>
664 </includes>
665 <excludes>
666 <exclude>node_modules/**</exclude>
667 <exclude>package-lock.json</exclude>
668 </excludes>
669 <filtering>true</filtering>
670 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
671 </resource>
sebdet101193d2019-09-05 18:25:59 +0200672 </resources>
673
674 <plugins>
675 <plugin>
nrpandya82561262019-11-21 11:51:18 -0600676 <groupId>de.jpdigital</groupId>
677 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
678 <version>2.2.0</version>
sebdet101193d2019-09-05 18:25:59 +0200679 <dependencies>
680 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200681 <groupId>javax.xml.bind</groupId>
682 <artifactId>jaxb-api</artifactId>
683 <version>2.3.0</version>
sebdet101193d2019-09-05 18:25:59 +0200684 </dependency>
685 </dependencies>
686 <executions>
687 <execution>
688 <phase>process-classes</phase>
689 <goals>
690 <goal>gen-ddl</goal>
691 </goals>
sebdete4422002018-10-16 17:47:54 +0200692 <configuration>
sebdet101193d2019-09-05 18:25:59 +0200693 <packages>
nrpandya82561262019-11-21 11:51:18 -0600694 <param>org.onap.clamp</param>
sebdet101193d2019-09-05 18:25:59 +0200695 </packages>
696 <dialects>
697 <param>MARIADB53</param>
698 </dialects>
699 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
700 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
701 <!-- <createDropStatements>true</createDropStatements> -->
702 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdete4422002018-10-16 17:47:54 +0200703 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200704 </execution>
705 </executions>
706
707 </plugin>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500708 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
sebdet101193d2019-09-05 18:25:59 +0200709 a list of .adoc files containing the APIs info in more structured way -->
710 <plugin>
711 <groupId>io.github.swagger2markup</groupId>
712 <artifactId>swagger2markup-maven-plugin</artifactId>
713 <version>1.3.3</version>
714 <dependencies>
715 <dependency>
716 <groupId>io.github.swagger2markup</groupId>
717 <artifactId>swagger2markup-import-files-ext</artifactId>
718 <version>1.3.3</version>
719 </dependency>
720 <dependency>
721 <groupId>io.github.swagger2markup</groupId>
722 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
723 <version>1.3.3</version>
724 </dependency>
725 </dependencies>
726 <configuration>
727 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
728 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
729 <config>
730 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
731 </config>
732 </configuration>
733 <executions>
734 <execution>
735 <phase>post-integration-test</phase>
736 <goals>
737 <goal>convertSwagger2markup</goal>
738 </goals>
739 </execution>
740 </executions>
741 </plugin>
742
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500743 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
sebdet101193d2019-09-05 18:25:59 +0200744 types, such as PDFs or HTML5 -->
745 <plugin>
746 <groupId>org.asciidoctor</groupId>
747 <artifactId>asciidoctor-maven-plugin</artifactId>
748 <version>1.5.7.1</version>
749 <dependencies>
750 <dependency>
751 <groupId>org.asciidoctor</groupId>
752 <artifactId>asciidoctorj-pdf</artifactId>
753 <version>1.5.0-alpha.10.1</version>
754 </dependency>
755 </dependencies>
756 <configuration>
757 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
758 <sourceDocumentName>swagger.adoc</sourceDocumentName>
759 <attributes>
760 <doctype>book</doctype>
761 <toc>left</toc>
762 <toclevels>3</toclevels>
763 <numbered />
764 <hardbreaks />
765 <sectlinks />
766 <sectanchors />
767 <generated>${project.build.directory}/asciidoc/generated</generated>
768 </attributes>
769 </configuration>
770
771 <executions>
772 <execution>
773 <id>output-html</id>
774 <phase>post-integration-test</phase>
775 <goals>
776 <goal>process-asciidoc</goal>
777 </goals>
778 <configuration>
779 <backend>html5</backend>
780 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
781 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
782 </configuration>
783 </execution>
784 <execution>
785 <id>output-pdf</id>
786 <phase>post-integration-test</phase>
787 <goals>
788 <goal>process-asciidoc</goal>
789 </goals>
790 <configuration>
791 <backend>pdf</backend>
792 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
793 </configuration>
794 </execution>
795 </executions>
796 </plugin>
797 <plugin>
798 <groupId>org.codehaus.groovy.maven</groupId>
799 <artifactId>gmaven-plugin</artifactId>
800 <version>1.0</version>
801 <executions>
802 <execution>
sebdet7a739a52020-03-25 09:11:54 -0700803 <id>docker-tags</id>
sebdet101193d2019-09-05 18:25:59 +0200804 <phase>validate</phase>
805 <goals>
806 <goal>execute</goal>
807 </goals>
808 <configuration>
809 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
810 </configuration>
811 </execution>
sebdetc6622c42019-11-05 18:28:05 +0100812 <execution>
sebdet7a739a52020-03-25 09:11:54 -0700813 <id>npm-repos-selection</id>
sebdetc6622c42019-11-05 18:28:05 +0100814 <phase>validate</phase>
815 <goals>
816 <goal>execute</goal>
817 </goals>
818 <configuration>
819 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
820 </configuration>
821 </execution>
822 </executions>
823 </plugin>
824 <plugin>
sebdet101193d2019-09-05 18:25:59 +0200825 <groupId>org.apache.maven.plugins</groupId>
826 <artifactId>maven-jar-plugin</artifactId>
827 <version>3.0.2</version>
828 <executions>
829 <execution>
830 <id>jar-with-only-classes</id>
831 <phase>package</phase>
832 <goals>
833 <goal>jar</goal>
834 </goals>
835 <configuration>
836 <classifier>classes</classifier>
837 <includes>
838 <include>org/**</include>
839 </includes>
840 </configuration>
841 </execution>
842 </executions>
843 </plugin>
844 <plugin>
845 <groupId>org.codehaus.mojo</groupId>
846 <artifactId>build-helper-maven-plugin</artifactId>
847 <version>3.0.0</version>
848 <executions>
849 <execution>
850 <goals>
851 <goal>attach-artifact</goal>
852 </goals>
853 <phase>package</phase>
854 <configuration>
855 <artifacts>
856 <artifact>
857 <file>${project.build.directory}/clamp-classes.jar</file>
858 <type>jar</type>
859 <classifier>classes</classifier>
860 </artifact>
861 </artifacts>
862 </configuration>
863 </execution>
864 <execution>
865 <id>reserve-port-for-tests</id>
866 <phase>process-resources</phase>
867 <goals>
868 <goal>reserve-network-port</goal>
869 </goals>
870 <configuration>
871 <portNames>
872 <portName>docker.mariadb.port.host</portName>
873 <portName>docker.http-cache.port.host</portName>
874 <portName>clamp.it.tests.http-redirected</portName>
875 <portName>clamp.it.tests.https</portName>
876 <portName>clamp.it.tests.http</portName>
877 </portNames>
878 </configuration>
879 </execution>
880 </executions>
881 </plugin>
882
883 <plugin>
884 <groupId>org.springframework.boot</groupId>
885 <artifactId>spring-boot-maven-plugin</artifactId>
sebdete65d4572020-03-24 08:51:20 -0700886 <version>${springboot.version}</version>
sebdet101193d2019-09-05 18:25:59 +0200887 <executions>
888 <execution>
889 <goals>
890 <goal>repackage</goal>
891 </goals>
892 <phase>package</phase>
893 </execution>
894 </executions>
895 </plugin>
896 <plugin>
897 <groupId>org.apache.maven.plugins</groupId>
898 <artifactId>maven-surefire-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100899 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200900 <configuration>
901 <forkCount>1C</forkCount>
902 <reuseForks>true</reuseForks>
903 <useSystemClassLoader>false</useSystemClassLoader>
904 <argLine>${surefireArgLine}</argLine>
905 </configuration>
906 </plugin>
907
908 <plugin>
909 <groupId>org.apache.maven.plugins</groupId>
910 <artifactId>maven-failsafe-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100911 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200912 <executions>
913 <execution>
914 <id>integration-tests</id>
915 <goals>
916 <goal>integration-test</goal>
917 <goal>verify</goal>
918 </goals>
919 <configuration>
920 <additionalClasspathElements>
921 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
922 </additionalClasspathElements>
923 <includes>
924 <include>**/*ItCase.java</include>
925 </includes>
sebdet4f0110b2020-01-29 14:05:24 +0100926 <forkCount>1C</forkCount>
sebdet101193d2019-09-05 18:25:59 +0200927 <reuseForks>true</reuseForks>
928 <useSystemClassLoader>false</useSystemClassLoader>
929 <argLine>${failsafeArgLine}</argLine>
930 </configuration>
931 </execution>
932 </executions>
sebdet101193d2019-09-05 18:25:59 +0200933 </plugin>
934 <plugin>
935 <groupId>io.fabric8</groupId>
936 <artifactId>docker-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100937 <version>0.31.0</version>
sebdet101193d2019-09-05 18:25:59 +0200938 <dependencies>
939 <dependency>
940 <groupId>org.apache.httpcomponents</groupId>
941 <artifactId>httpclient</artifactId>
942 <version>4.5.5</version>
943 </dependency>
944 </dependencies>
945 <configuration>
946 <verbose>true</verbose>
947 <apiVersion>1.35</apiVersion>
948 <images>
949 <image>
950 <name>library/mariadb:10.3.12</name>
951 <alias>mariadb</alias>
952 <run>
953 <env>
954 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
955 </env>
956 <hostname>mariadb</hostname>
957 <volumes>
958 <bind>
sebdetfdfde212019-09-12 10:59:15 +0200959 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
sebdet101193d2019-09-05 18:25:59 +0200960 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
961 </bind>
962 </volumes>
963 <wait>
964 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
965 <time>600000</time>
sebdetfdfde212019-09-12 10:59:15 +0200966 <exec>
967 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
968 </exec>
sebdet101193d2019-09-05 18:25:59 +0200969 </wait>
970 <ports>
971 <port>${docker.mariadb.port.host}:3306</port>
972 </ports>
sebdet1b6a4282019-11-05 13:44:53 +0100973 <network>
974 <mode>bridge</mode>
975 </network>
sebdet101193d2019-09-05 18:25:59 +0200976 </run>
977 </image>
978 <image>
979 <name>library/python:2-slim</name>
980 <alias>python</alias>
981 <run>
982 <hostname>python</hostname>
983 <volumes>
984 <bind>
985 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
986 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
987 </bind>
988 </volumes>
989 <wait>
990 <tcp>
991 <ports>
992 <port>8080</port>
993 </ports>
994 <mode>direct</mode>
995 </tcp>
996 <time>120000</time>
997 </wait>
998 <ports>
999 <port>${docker.http-cache.port.host}:8080</port>
1000 </ports>
1001 <workingDir>/usr/src/http-cache-app</workingDir>
1002 <cmd>
1003 <shell>./start_http_cache.sh ${python.http.proxy.param}
1004 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1005 </cmd>
sebdet1b6a4282019-11-05 13:44:53 +01001006 <network>
1007 <mode>bridge</mode>
1008 </network>
sebdet101193d2019-09-05 18:25:59 +02001009 </run>
1010 </image>
1011 <image>
1012 <name>onap/clamp-backend</name>
1013 <alias>onap-clamp-backend</alias>
1014 <run>
1015 <skip>true</skip>
1016 </run>
1017 <build>
1018 <cleanup>true</cleanup>
1019 <tags>
1020 <tag>latest</tag>
1021 <tag>${project.docker.latesttagtimestamp.version}</tag>
1022 <tag>${project.docker.latesttag.version}</tag>
1023 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001024 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001025 default -->
1026 <dockerFile>backend/Dockerfile</dockerFile>
1027 <assembly>
1028 <descriptor>backend/backend-files.xml</descriptor>
1029 <name>onap-clamp-backend</name>
1030 </assembly>
1031 </build>
1032 </image>
1033 <image>
1034 <name>onap/clamp-frontend</name>
1035 <alias>onap-clamp-frontend</alias>
1036 <run>
1037 <skip>true</skip>
1038 </run>
1039 <build>
1040 <cleanup>true</cleanup>
1041 <tags>
1042 <tag>latest</tag>
1043 <tag>${project.docker.latesttagtimestamp.version}</tag>
1044 <tag>${project.docker.latesttag.version}</tag>
1045 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001046 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001047 default -->
1048 <dockerFile>frontend/Dockerfile</dockerFile>
1049 <assembly>
1050 <descriptor>frontend/frontend-files.xml</descriptor>
1051 <name>onap-clamp-frontend</name>
1052 </assembly>
1053 </build>
1054 </image>
sebdet101193d2019-09-05 18:25:59 +02001055 </images>
1056 </configuration>
1057
1058 <executions>
1059 <execution>
1060 <id>generate-images</id>
1061 <phase>install</phase>
1062 <goals>
1063 <goal>build</goal>
1064 </goals>
1065 </execution>
1066 <execution>
1067 <id>push-images</id>
1068 <phase>deploy</phase>
1069 <goals>
1070 <goal>push</goal>
1071 </goals>
1072 </execution>
1073 <execution>
1074 <id>docker-start-for-it</id>
1075 <phase>pre-integration-test</phase>
1076 <goals>
1077 <goal>start</goal>
1078 </goals>
1079 </execution>
1080 <execution>
1081 <id>docker-stop-for-it</id>
1082 <phase>post-integration-test</phase>
1083 <goals>
1084 <goal>stop</goal>
1085 </goals>
1086 </execution>
1087 </executions>
1088 </plugin>
1089
1090 <plugin>
1091 <groupId>org.jacoco</groupId>
1092 <artifactId>jacoco-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +01001093 <version>0.8.5</version>
sebdet101193d2019-09-05 18:25:59 +02001094 <configuration>
1095 <dumpOnExit>true</dumpOnExit>
1096 <append>true</append>
1097 <includes>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001098 <include>org/onap/clamp/**</include>
sebdet101193d2019-09-05 18:25:59 +02001099 </includes>
1100 </configuration>
1101 <executions>
1102 <execution>
1103 <id>pre-unit-test</id>
1104 <goals>
1105 <goal>prepare-agent</goal>
1106 </goals>
1107 <configuration>
1108 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1109 <propertyName>surefireArgLine</propertyName>
1110 <!-- <append>true</append> -->
1111 </configuration>
1112 </execution>
1113 <execution>
1114 <id>pre-integration-test</id>
1115 <phase>pre-integration-test</phase>
1116 <goals>
1117 <goal>prepare-agent</goal>
1118 </goals>
1119 <configuration>
1120 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1121 <propertyName>failsafeArgLine</propertyName>
1122 <!-- <append>true</append> -->
1123 </configuration>
1124 </execution>
1125 <execution>
1126 <goals>
1127 <goal>merge</goal>
1128 </goals>
1129 <phase>post-integration-test</phase>
1130 <configuration>
1131 <fileSets>
1132 <fileSet
1133 implementation="org.apache.maven.shared.model.fileset.FileSet">
1134 <directory>${project.build.directory}/coverage-reports</directory>
1135 <includes>
1136 <include>*.exec</include>
1137 </includes>
1138 </fileSet>
1139 </fileSets>
sebdetf332e2e2020-01-24 13:49:49 +01001140 <destFile>${project.build.directory}/jacoco.exec</destFile>
sebdet101193d2019-09-05 18:25:59 +02001141 </configuration>
1142 </execution>
sebdet749c0f12020-01-23 13:35:34 +01001143 <execution>
sebdetf332e2e2020-01-24 13:49:49 +01001144 <id>report-xml</id>
sebdet749c0f12020-01-23 13:35:34 +01001145 <goals>
1146 <goal>report</goal>
1147 </goals>
sebdet749c0f12020-01-23 13:35:34 +01001148 <configuration>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001149 <!-- Setting explicit path, so that we remember where it picks them up from -->
1150 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1151 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
sebdet749c0f12020-01-23 13:35:34 +01001152 </configuration>
1153 </execution>
sebdet101193d2019-09-05 18:25:59 +02001154 </executions>
1155 </plugin>
1156
1157 <!-- This plugin will be useful when we will have multi-modules project -->
1158 <plugin>
1159 <groupId>org.codehaus.mojo</groupId>
1160 <artifactId>versions-maven-plugin</artifactId>
1161 <version>1.3.1</version>
1162 </plugin>
1163
1164 <plugin>
1165 <groupId>com.github.eirslett</groupId>
1166 <artifactId>frontend-maven-plugin</artifactId>
1167 <version>1.8.0</version>
1168 <configuration>
1169 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
sebdet101193d2019-09-05 18:25:59 +02001170 </configuration>
1171 <executions>
1172 <execution>
1173 <id>install_node_and_npm</id>
1174 <goals>
1175 <goal>install-node-and-npm</goal>
1176 </goals>
1177 <phase>generate-sources</phase>
1178 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001179 <nodeVersion>v12.13.0</nodeVersion>
1180 <npmVersion>6.13.0</npmVersion>
sebdet101193d2019-09-05 18:25:59 +02001181 </configuration>
1182 </execution>
1183 <execution>
1184 <id>npm_install</id>
1185 <goals>
1186 <goal>npm</goal>
1187 </goals>
1188 <phase>compile</phase>
1189 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001190 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
sebdet996071f2019-10-25 13:25:57 +02001191 <arguments>install</arguments>
sebdet101193d2019-09-05 18:25:59 +02001192 </configuration>
1193 </execution>
1194 <execution>
1195 <id>npm_test</id>
1196 <goals>
1197 <goal>npm</goal>
1198 </goals>
1199 <phase>test</phase>
1200 <configuration>
sebdet2dd4e992020-03-04 15:47:39 -08001201 <skip>${maven.test.skip}</skip>
sebdet101193d2019-09-05 18:25:59 +02001202 <arguments>run-script test:coverage</arguments>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001203 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1204 </configuration>
1205 </execution>
1206 <execution>
1207 <id>npm_install_lib</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>install</arguments>
1215 </configuration>
1216 </execution>
1217 <execution>
1218 <id>npm_build_lib</id>
1219 <goals>
1220 <goal>npm</goal>
1221 </goals>
1222 <phase>deploy</phase>
1223 <configuration>
1224 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1225 <arguments>run build</arguments>
sebdet101193d2019-09-05 18:25:59 +02001226 </configuration>
1227 </execution>
1228 <execution>
1229 <id>npm_publish</id>
1230 <goals>
1231 <goal>npm</goal>
1232 </goals>
1233 <phase>deploy</phase>
1234 <configuration>
sebdetffdf3822020-03-25 07:55:28 -07001235 <skip>true</skip>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001236 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
sebdetdd107682019-11-13 13:13:07 +01001237 <arguments>publish</arguments>
sebdet101193d2019-09-05 18:25:59 +02001238 </configuration>
1239 </execution>
1240 </executions>
1241 </plugin>
sebdet1b6a4282019-11-05 13:44:53 +01001242 <plugin>
1243 <groupId>org.apache.maven.plugins</groupId>
1244 <artifactId>maven-compiler-plugin</artifactId>
1245 <version>3.8.1</version>
1246 <configuration>
sebdete17bc1b2019-11-18 17:57:32 +01001247 <source>11</source>
1248 <target>11</target>
sebdet1b6a4282019-11-05 13:44:53 +01001249 </configuration>
1250 </plugin>
sebdetd07b6502019-11-08 13:49:44 +01001251 <plugin>
1252 <groupId>org.sonarsource.scanner.maven</groupId>
1253 <artifactId>sonar-maven-plugin</artifactId>
1254 <version>3.7.0.1746</version>
1255 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001256 </plugins>
1257 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001258</project>