blob: ad450b5bd7cb0a1ec4ea947c7116a5c31df69192 [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>
sebdet400f7fc2020-04-23 15:45:59 +020029 <version>5.0.6-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>
sebdet5ad6a2f2020-04-27 18:26:28 +020080 <springboot.version>2.2.6.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>
sebdet5ad6a2f2020-04-27 18:26:28 +0200506 <groupId>org.springframework.security</groupId>
507 <artifactId>spring-security-web</artifactId>
508 <version>5.2.3.RELEASE</version>
509 </dependency>
510 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200511 <groupId>org.codehaus.plexus</groupId>
512 <artifactId>plexus-utils</artifactId>
513 <version>3.0.24</version>
514 </dependency>
515 <dependency>
516 <groupId>org.jboss.spec.javax.ws.rs</groupId>
517 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
518 <version>1.0.1.Final</version>
519 </dependency>
520 <dependency>
521 <groupId>com.google.guava</groupId>
522 <artifactId>guava</artifactId>
523 <version>27.0-jre</version>
524 </dependency>
sebdete77e0ff2019-09-09 13:18:35 +0200525 <dependency>
526 <groupId>commons-codec</groupId>
527 <artifactId>commons-codec</artifactId>
528 <version>1.13</version>
529 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200530 <!-- Remove the MYSQL connector and replace it by Mariadb -->
531 <dependency>
532 <groupId>org.mariadb.jdbc</groupId>
533 <artifactId>mariadb-java-client</artifactId>
534 <version>2.2.1</version>
535 </dependency>
536 <!-- For SDC Controller -->
537 <dependency>
538 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
539 <artifactId>sdc-distribution-client</artifactId>
540 <version>1.3.0</version>
541 </dependency>
542 <dependency>
543 <groupId>org.onap.sdc.sdc-tosca</groupId>
544 <artifactId>sdc-tosca</artifactId>
545 <version>1.5.1</version>
546 </dependency>
sebdet3ed8d432020-03-24 15:49:19 -0700547 <dependency>
548 <groupId>org.yaml</groupId>
549 <artifactId>snakeyaml</artifactId>
550 <version>1.26</version>
551 </dependency>
sebdet3b017732020-04-20 15:30:45 +0200552 <dependency>
553 <groupId>org.dom4j</groupId>
554 <artifactId>dom4j</artifactId>
555 <version>2.1.3</version>
556 </dependency>
557
sebdet101193d2019-09-05 18:25:59 +0200558 <!-- TESTING -->
559 <dependency>
560 <groupId>org.assertj</groupId>
561 <artifactId>assertj-core</artifactId>
562 <version>3.10.0</version>
563 <scope>test</scope>
564 </dependency>
565 <dependency>
566 <groupId>org.mockito</groupId>
567 <artifactId>mockito-core</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100568 <version>2.28.2</version>
569 <scope>test</scope>
570 </dependency>
571 <dependency>
572 <groupId>org.powermock</groupId>
573 <artifactId>powermock-api-mockito2</artifactId>
574 <version>2.0.4</version>
575 <scope>test</scope>
576 </dependency>
577 <dependency>
578 <groupId>org.powermock</groupId>
579 <artifactId>powermock-module-junit4</artifactId>
580 <version>2.0.4</version>
sebdet101193d2019-09-05 18:25:59 +0200581 <scope>test</scope>
582 </dependency>
583 </dependencies>
584
585 <build>
586 <finalName>clamp</finalName>
587
588 <testResources>
589 <testResource>
sebdet29e3cd12020-02-13 05:49:21 -0800590 <directory>src/main/resources</directory>
591 <filtering>true</filtering>
592 <excludes>
593 <exclude>clds/aaf/**</exclude>
594 </excludes>
595 </testResource>
596 <testResource>
597 <directory>src/main/resources</directory>
598 <filtering>false</filtering>
599 <includes>
600 <include>clds/aaf/**</include>
601 </includes>
602 </testResource>
603 <testResource>
sebdet101193d2019-09-05 18:25:59 +0200604 <directory>src/test/resources</directory>
605 <excludes>
606 <exclude>**/*.jks</exclude>
607 <exclude>**/*.csar</exclude>
608 </excludes>
609 <filtering>true</filtering>
610 </testResource>
611 <testResource>
612 <directory>src/test/resources/https</directory>
613 <includes>
614 <include>**.jks</include>
615 </includes>
616 <filtering>false</filtering>
617 <targetPath>https</targetPath>
618 </testResource>
619 <testResource>
620 <directory>src/test/resources/example/sdc</directory>
621 <includes>
622 <include>**.csar</include>
623 </includes>
624 <filtering>false</filtering>
625 <targetPath>example/sdc</targetPath>
626 </testResource>
627 </testResources>
628 <resources>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500629 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
sebdet101193d2019-09-05 18:25:59 +0200630 they will be broken and unreadable -->
631 <resource>
632 <directory>src/main/resources</directory>
633 <filtering>true</filtering>
634 <excludes>
635 <exclude>clds/aaf/**</exclude>
636 </excludes>
637 </resource>
638 <resource>
639 <directory>src/main/resources</directory>
640 <filtering>false</filtering>
641 <includes>
642 <include>clds/aaf/**</include>
643 </includes>
644 </resource>
645 <resource>
646 <directory>${ui.react.src}</directory>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500647 <excludes>
648 <exclude>node_modules</exclude>
649 </excludes>
sebdet101193d2019-09-05 18:25:59 +0200650 <includes>
651 <include>src/**</include>
652 <include>public/**</include>
653 <include>package.json</include>
654 <include>package-lock.json</include>
655 </includes>
656 <filtering>true</filtering>
657 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
658 </resource>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500659 <resource>
660 <directory>${ui.react.src}</directory>
661 <includes>
662 <include>src/**</include>
663 </includes>
664 <excludes>
665 <exclude>**/__snapshots__/**</exclude>
666 <exclude>**/**.test.js</exclude>
667 </excludes>
668 <filtering>true</filtering>
669 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
670 </resource>
671 <resource>
672 <directory>${ui.react.lib.src}</directory>
673 <includes>
674 <include>**</include>
675 </includes>
676 <excludes>
677 <exclude>node_modules/**</exclude>
678 <exclude>package-lock.json</exclude>
679 </excludes>
680 <filtering>true</filtering>
681 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
682 </resource>
sebdet101193d2019-09-05 18:25:59 +0200683 </resources>
684
685 <plugins>
686 <plugin>
nrpandya82561262019-11-21 11:51:18 -0600687 <groupId>de.jpdigital</groupId>
688 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
689 <version>2.2.0</version>
sebdet101193d2019-09-05 18:25:59 +0200690 <dependencies>
691 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200692 <groupId>javax.xml.bind</groupId>
693 <artifactId>jaxb-api</artifactId>
694 <version>2.3.0</version>
sebdet101193d2019-09-05 18:25:59 +0200695 </dependency>
696 </dependencies>
697 <executions>
698 <execution>
699 <phase>process-classes</phase>
700 <goals>
701 <goal>gen-ddl</goal>
702 </goals>
sebdete4422002018-10-16 17:47:54 +0200703 <configuration>
sebdet101193d2019-09-05 18:25:59 +0200704 <packages>
nrpandya82561262019-11-21 11:51:18 -0600705 <param>org.onap.clamp</param>
sebdet101193d2019-09-05 18:25:59 +0200706 </packages>
707 <dialects>
708 <param>MARIADB53</param>
709 </dialects>
710 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
711 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
712 <!-- <createDropStatements>true</createDropStatements> -->
713 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdete4422002018-10-16 17:47:54 +0200714 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200715 </execution>
716 </executions>
717
718 </plugin>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500719 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
sebdet101193d2019-09-05 18:25:59 +0200720 a list of .adoc files containing the APIs info in more structured way -->
721 <plugin>
722 <groupId>io.github.swagger2markup</groupId>
723 <artifactId>swagger2markup-maven-plugin</artifactId>
724 <version>1.3.3</version>
725 <dependencies>
726 <dependency>
727 <groupId>io.github.swagger2markup</groupId>
728 <artifactId>swagger2markup-import-files-ext</artifactId>
729 <version>1.3.3</version>
730 </dependency>
731 <dependency>
732 <groupId>io.github.swagger2markup</groupId>
733 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
734 <version>1.3.3</version>
735 </dependency>
736 </dependencies>
737 <configuration>
738 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
739 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
740 <config>
741 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
742 </config>
743 </configuration>
744 <executions>
745 <execution>
746 <phase>post-integration-test</phase>
747 <goals>
748 <goal>convertSwagger2markup</goal>
749 </goals>
750 </execution>
751 </executions>
752 </plugin>
753
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500754 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
sebdet101193d2019-09-05 18:25:59 +0200755 types, such as PDFs or HTML5 -->
756 <plugin>
757 <groupId>org.asciidoctor</groupId>
758 <artifactId>asciidoctor-maven-plugin</artifactId>
759 <version>1.5.7.1</version>
760 <dependencies>
761 <dependency>
762 <groupId>org.asciidoctor</groupId>
763 <artifactId>asciidoctorj-pdf</artifactId>
764 <version>1.5.0-alpha.10.1</version>
765 </dependency>
766 </dependencies>
767 <configuration>
768 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
769 <sourceDocumentName>swagger.adoc</sourceDocumentName>
770 <attributes>
771 <doctype>book</doctype>
772 <toc>left</toc>
773 <toclevels>3</toclevels>
774 <numbered />
775 <hardbreaks />
776 <sectlinks />
777 <sectanchors />
778 <generated>${project.build.directory}/asciidoc/generated</generated>
779 </attributes>
780 </configuration>
781
782 <executions>
783 <execution>
784 <id>output-html</id>
785 <phase>post-integration-test</phase>
786 <goals>
787 <goal>process-asciidoc</goal>
788 </goals>
789 <configuration>
790 <backend>html5</backend>
791 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
792 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
793 </configuration>
794 </execution>
795 <execution>
796 <id>output-pdf</id>
797 <phase>post-integration-test</phase>
798 <goals>
799 <goal>process-asciidoc</goal>
800 </goals>
801 <configuration>
802 <backend>pdf</backend>
803 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
804 </configuration>
805 </execution>
806 </executions>
807 </plugin>
808 <plugin>
809 <groupId>org.codehaus.groovy.maven</groupId>
810 <artifactId>gmaven-plugin</artifactId>
811 <version>1.0</version>
812 <executions>
813 <execution>
sebdet7a739a52020-03-25 09:11:54 -0700814 <id>docker-tags</id>
sebdet101193d2019-09-05 18:25:59 +0200815 <phase>validate</phase>
816 <goals>
817 <goal>execute</goal>
818 </goals>
819 <configuration>
820 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
821 </configuration>
822 </execution>
sebdetc6622c42019-11-05 18:28:05 +0100823 <execution>
sebdet7a739a52020-03-25 09:11:54 -0700824 <id>npm-repos-selection</id>
sebdetc6622c42019-11-05 18:28:05 +0100825 <phase>validate</phase>
826 <goals>
827 <goal>execute</goal>
828 </goals>
829 <configuration>
830 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
831 </configuration>
832 </execution>
833 </executions>
834 </plugin>
835 <plugin>
sebdet101193d2019-09-05 18:25:59 +0200836 <groupId>org.apache.maven.plugins</groupId>
837 <artifactId>maven-jar-plugin</artifactId>
838 <version>3.0.2</version>
839 <executions>
840 <execution>
841 <id>jar-with-only-classes</id>
842 <phase>package</phase>
843 <goals>
844 <goal>jar</goal>
845 </goals>
846 <configuration>
847 <classifier>classes</classifier>
848 <includes>
849 <include>org/**</include>
850 </includes>
851 </configuration>
852 </execution>
853 </executions>
854 </plugin>
855 <plugin>
856 <groupId>org.codehaus.mojo</groupId>
857 <artifactId>build-helper-maven-plugin</artifactId>
858 <version>3.0.0</version>
859 <executions>
860 <execution>
861 <goals>
862 <goal>attach-artifact</goal>
863 </goals>
864 <phase>package</phase>
865 <configuration>
866 <artifacts>
867 <artifact>
868 <file>${project.build.directory}/clamp-classes.jar</file>
869 <type>jar</type>
870 <classifier>classes</classifier>
871 </artifact>
872 </artifacts>
873 </configuration>
874 </execution>
875 <execution>
876 <id>reserve-port-for-tests</id>
877 <phase>process-resources</phase>
878 <goals>
879 <goal>reserve-network-port</goal>
880 </goals>
881 <configuration>
882 <portNames>
883 <portName>docker.mariadb.port.host</portName>
884 <portName>docker.http-cache.port.host</portName>
885 <portName>clamp.it.tests.http-redirected</portName>
886 <portName>clamp.it.tests.https</portName>
887 <portName>clamp.it.tests.http</portName>
888 </portNames>
889 </configuration>
890 </execution>
891 </executions>
892 </plugin>
893
894 <plugin>
895 <groupId>org.springframework.boot</groupId>
896 <artifactId>spring-boot-maven-plugin</artifactId>
sebdete65d4572020-03-24 08:51:20 -0700897 <version>${springboot.version}</version>
sebdet101193d2019-09-05 18:25:59 +0200898 <executions>
899 <execution>
900 <goals>
901 <goal>repackage</goal>
902 </goals>
903 <phase>package</phase>
904 </execution>
905 </executions>
906 </plugin>
907 <plugin>
908 <groupId>org.apache.maven.plugins</groupId>
909 <artifactId>maven-surefire-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100910 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200911 <configuration>
912 <forkCount>1C</forkCount>
913 <reuseForks>true</reuseForks>
914 <useSystemClassLoader>false</useSystemClassLoader>
915 <argLine>${surefireArgLine}</argLine>
916 </configuration>
917 </plugin>
918
919 <plugin>
920 <groupId>org.apache.maven.plugins</groupId>
921 <artifactId>maven-failsafe-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100922 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200923 <executions>
924 <execution>
925 <id>integration-tests</id>
926 <goals>
927 <goal>integration-test</goal>
928 <goal>verify</goal>
929 </goals>
930 <configuration>
931 <additionalClasspathElements>
932 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
933 </additionalClasspathElements>
934 <includes>
935 <include>**/*ItCase.java</include>
936 </includes>
sebdet4f0110b2020-01-29 14:05:24 +0100937 <forkCount>1C</forkCount>
sebdet101193d2019-09-05 18:25:59 +0200938 <reuseForks>true</reuseForks>
939 <useSystemClassLoader>false</useSystemClassLoader>
940 <argLine>${failsafeArgLine}</argLine>
941 </configuration>
942 </execution>
943 </executions>
sebdet101193d2019-09-05 18:25:59 +0200944 </plugin>
945 <plugin>
946 <groupId>io.fabric8</groupId>
947 <artifactId>docker-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100948 <version>0.31.0</version>
sebdet101193d2019-09-05 18:25:59 +0200949 <dependencies>
950 <dependency>
951 <groupId>org.apache.httpcomponents</groupId>
952 <artifactId>httpclient</artifactId>
953 <version>4.5.5</version>
954 </dependency>
955 </dependencies>
956 <configuration>
957 <verbose>true</verbose>
958 <apiVersion>1.35</apiVersion>
959 <images>
960 <image>
961 <name>library/mariadb:10.3.12</name>
962 <alias>mariadb</alias>
963 <run>
964 <env>
965 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
966 </env>
967 <hostname>mariadb</hostname>
968 <volumes>
969 <bind>
sebdetfdfde212019-09-12 10:59:15 +0200970 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
sebdet101193d2019-09-05 18:25:59 +0200971 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
972 </bind>
973 </volumes>
974 <wait>
975 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
976 <time>600000</time>
sebdetfdfde212019-09-12 10:59:15 +0200977 <exec>
978 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
979 </exec>
sebdet101193d2019-09-05 18:25:59 +0200980 </wait>
981 <ports>
982 <port>${docker.mariadb.port.host}:3306</port>
983 </ports>
sebdet1b6a4282019-11-05 13:44:53 +0100984 <network>
985 <mode>bridge</mode>
986 </network>
sebdet101193d2019-09-05 18:25:59 +0200987 </run>
988 </image>
989 <image>
990 <name>library/python:2-slim</name>
991 <alias>python</alias>
992 <run>
993 <hostname>python</hostname>
994 <volumes>
995 <bind>
996 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
997 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
998 </bind>
999 </volumes>
1000 <wait>
1001 <tcp>
1002 <ports>
1003 <port>8080</port>
1004 </ports>
1005 <mode>direct</mode>
1006 </tcp>
1007 <time>120000</time>
1008 </wait>
1009 <ports>
1010 <port>${docker.http-cache.port.host}:8080</port>
1011 </ports>
1012 <workingDir>/usr/src/http-cache-app</workingDir>
1013 <cmd>
1014 <shell>./start_http_cache.sh ${python.http.proxy.param}
1015 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1016 </cmd>
sebdet1b6a4282019-11-05 13:44:53 +01001017 <network>
1018 <mode>bridge</mode>
1019 </network>
sebdet101193d2019-09-05 18:25:59 +02001020 </run>
1021 </image>
1022 <image>
1023 <name>onap/clamp-backend</name>
1024 <alias>onap-clamp-backend</alias>
1025 <run>
1026 <skip>true</skip>
1027 </run>
1028 <build>
1029 <cleanup>true</cleanup>
1030 <tags>
1031 <tag>latest</tag>
1032 <tag>${project.docker.latesttagtimestamp.version}</tag>
1033 <tag>${project.docker.latesttag.version}</tag>
1034 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001035 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001036 default -->
1037 <dockerFile>backend/Dockerfile</dockerFile>
1038 <assembly>
1039 <descriptor>backend/backend-files.xml</descriptor>
1040 <name>onap-clamp-backend</name>
1041 </assembly>
1042 </build>
1043 </image>
1044 <image>
1045 <name>onap/clamp-frontend</name>
1046 <alias>onap-clamp-frontend</alias>
1047 <run>
1048 <skip>true</skip>
1049 </run>
1050 <build>
1051 <cleanup>true</cleanup>
1052 <tags>
1053 <tag>latest</tag>
1054 <tag>${project.docker.latesttagtimestamp.version}</tag>
1055 <tag>${project.docker.latesttag.version}</tag>
1056 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001057 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001058 default -->
1059 <dockerFile>frontend/Dockerfile</dockerFile>
1060 <assembly>
1061 <descriptor>frontend/frontend-files.xml</descriptor>
1062 <name>onap-clamp-frontend</name>
1063 </assembly>
1064 </build>
1065 </image>
sebdet101193d2019-09-05 18:25:59 +02001066 </images>
1067 </configuration>
1068
1069 <executions>
1070 <execution>
1071 <id>generate-images</id>
1072 <phase>install</phase>
1073 <goals>
1074 <goal>build</goal>
1075 </goals>
1076 </execution>
1077 <execution>
1078 <id>push-images</id>
1079 <phase>deploy</phase>
1080 <goals>
1081 <goal>push</goal>
1082 </goals>
1083 </execution>
1084 <execution>
1085 <id>docker-start-for-it</id>
1086 <phase>pre-integration-test</phase>
1087 <goals>
1088 <goal>start</goal>
1089 </goals>
1090 </execution>
1091 <execution>
1092 <id>docker-stop-for-it</id>
1093 <phase>post-integration-test</phase>
1094 <goals>
1095 <goal>stop</goal>
1096 </goals>
1097 </execution>
1098 </executions>
1099 </plugin>
1100
1101 <plugin>
1102 <groupId>org.jacoco</groupId>
1103 <artifactId>jacoco-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +01001104 <version>0.8.5</version>
sebdet101193d2019-09-05 18:25:59 +02001105 <configuration>
1106 <dumpOnExit>true</dumpOnExit>
1107 <append>true</append>
1108 <includes>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001109 <include>org/onap/clamp/**</include>
sebdet101193d2019-09-05 18:25:59 +02001110 </includes>
1111 </configuration>
1112 <executions>
1113 <execution>
1114 <id>pre-unit-test</id>
1115 <goals>
1116 <goal>prepare-agent</goal>
1117 </goals>
1118 <configuration>
1119 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1120 <propertyName>surefireArgLine</propertyName>
1121 <!-- <append>true</append> -->
1122 </configuration>
1123 </execution>
1124 <execution>
1125 <id>pre-integration-test</id>
1126 <phase>pre-integration-test</phase>
1127 <goals>
1128 <goal>prepare-agent</goal>
1129 </goals>
1130 <configuration>
1131 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1132 <propertyName>failsafeArgLine</propertyName>
1133 <!-- <append>true</append> -->
1134 </configuration>
1135 </execution>
1136 <execution>
1137 <goals>
1138 <goal>merge</goal>
1139 </goals>
1140 <phase>post-integration-test</phase>
1141 <configuration>
1142 <fileSets>
1143 <fileSet
1144 implementation="org.apache.maven.shared.model.fileset.FileSet">
1145 <directory>${project.build.directory}/coverage-reports</directory>
1146 <includes>
1147 <include>*.exec</include>
1148 </includes>
1149 </fileSet>
1150 </fileSets>
sebdetf332e2e2020-01-24 13:49:49 +01001151 <destFile>${project.build.directory}/jacoco.exec</destFile>
sebdet101193d2019-09-05 18:25:59 +02001152 </configuration>
1153 </execution>
sebdet749c0f12020-01-23 13:35:34 +01001154 <execution>
sebdetf332e2e2020-01-24 13:49:49 +01001155 <id>report-xml</id>
sebdet749c0f12020-01-23 13:35:34 +01001156 <goals>
1157 <goal>report</goal>
1158 </goals>
sebdet749c0f12020-01-23 13:35:34 +01001159 <configuration>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001160 <!-- Setting explicit path, so that we remember where it picks them up from -->
1161 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1162 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
sebdet749c0f12020-01-23 13:35:34 +01001163 </configuration>
1164 </execution>
sebdet101193d2019-09-05 18:25:59 +02001165 </executions>
1166 </plugin>
1167
1168 <!-- This plugin will be useful when we will have multi-modules project -->
1169 <plugin>
1170 <groupId>org.codehaus.mojo</groupId>
1171 <artifactId>versions-maven-plugin</artifactId>
1172 <version>1.3.1</version>
1173 </plugin>
1174
1175 <plugin>
1176 <groupId>com.github.eirslett</groupId>
1177 <artifactId>frontend-maven-plugin</artifactId>
1178 <version>1.8.0</version>
1179 <configuration>
1180 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
sebdet101193d2019-09-05 18:25:59 +02001181 </configuration>
1182 <executions>
1183 <execution>
1184 <id>install_node_and_npm</id>
1185 <goals>
1186 <goal>install-node-and-npm</goal>
1187 </goals>
1188 <phase>generate-sources</phase>
1189 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001190 <nodeVersion>v12.13.0</nodeVersion>
1191 <npmVersion>6.13.0</npmVersion>
sebdet101193d2019-09-05 18:25:59 +02001192 </configuration>
1193 </execution>
1194 <execution>
1195 <id>npm_install</id>
1196 <goals>
1197 <goal>npm</goal>
1198 </goals>
1199 <phase>compile</phase>
1200 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001201 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
sebdet996071f2019-10-25 13:25:57 +02001202 <arguments>install</arguments>
sebdet101193d2019-09-05 18:25:59 +02001203 </configuration>
1204 </execution>
1205 <execution>
1206 <id>npm_test</id>
1207 <goals>
1208 <goal>npm</goal>
1209 </goals>
1210 <phase>test</phase>
1211 <configuration>
sebdet2dd4e992020-03-04 15:47:39 -08001212 <skip>${maven.test.skip}</skip>
sebdet101193d2019-09-05 18:25:59 +02001213 <arguments>run-script test:coverage</arguments>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001214 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1215 </configuration>
1216 </execution>
1217 <execution>
1218 <id>npm_install_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>install</arguments>
1226 </configuration>
1227 </execution>
1228 <execution>
1229 <id>npm_build_lib</id>
1230 <goals>
1231 <goal>npm</goal>
1232 </goals>
1233 <phase>deploy</phase>
1234 <configuration>
1235 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1236 <arguments>run build</arguments>
sebdet101193d2019-09-05 18:25:59 +02001237 </configuration>
1238 </execution>
1239 <execution>
1240 <id>npm_publish</id>
1241 <goals>
1242 <goal>npm</goal>
1243 </goals>
1244 <phase>deploy</phase>
1245 <configuration>
sebdetffdf3822020-03-25 07:55:28 -07001246 <skip>true</skip>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001247 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
sebdetdd107682019-11-13 13:13:07 +01001248 <arguments>publish</arguments>
sebdet101193d2019-09-05 18:25:59 +02001249 </configuration>
1250 </execution>
1251 </executions>
1252 </plugin>
sebdet1b6a4282019-11-05 13:44:53 +01001253 <plugin>
1254 <groupId>org.apache.maven.plugins</groupId>
1255 <artifactId>maven-compiler-plugin</artifactId>
1256 <version>3.8.1</version>
1257 <configuration>
sebdete17bc1b2019-11-18 17:57:32 +01001258 <source>11</source>
1259 <target>11</target>
sebdet1b6a4282019-11-05 13:44:53 +01001260 </configuration>
1261 </plugin>
sebdetd07b6502019-11-08 13:49:44 +01001262 <plugin>
1263 <groupId>org.sonarsource.scanner.maven</groupId>
1264 <artifactId>sonar-maven-plugin</artifactId>
1265 <version>3.7.0.1746</version>
1266 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001267 </plugins>
1268 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001269</project>