blob: bb22596fb2f6e2adbd6bfa708317260e88502c41 [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>
sebdetbd8a7bf2019-10-21 11:01:10 +020029 <version>4.2.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)
48 * The dashboard - Elastic search
49 * The dashboard - Logstash
50 * The dashboard - Kibana
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070051
sebdet101193d2019-09-05 18:25:59 +020052 It can test:
53 - The CLAMP backend, JAVA unit testing
54 - The CLAMP backend, JAVA integration tests (with Spring + docker mariadb database + docker policy/dcae emulator written in python)
55 - The CLAMP frontend, Javascrip tests (NodeJS(NPM) + JEST + Enzyme fro React)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050056
sebdet101193d2019-09-05 18:25:59 +020057 The test coverage for dev's can be found after a "clean install" build in:
58 - Clamp backend: target/jacoco-dev.exec (unit tests + integration tests merged)
59 or separately target/coverage-reports/jacoco.exec and target/coverage-reports/jacoco-it.exec
60 - Clamp frontend: target/ui-react/coverage
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070061
sebdet101193d2019-09-05 18:25:59 +020062 Useful mvn commands:
63 - mvn clean install: Build Clamp backend JAR + unit tests + integration tests + NPM tests (+coverage for all)
64 - mvn clean install -DskipITs=true: Build Clamp backend JAR + unit tests + NPM tests (+coverage for all), it does not require a DOCKER engine
65 - mvn clean install -DskipTests -P docker: Build Clamp backend JAR + all docker images
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070066
sebdet101193d2019-09-05 18:25:59 +020067 To start CLAMP (Build it before):
68 - Use docker-compose file in ./extra/docker/clamp/docker-compose.yml
69 - Use the script located in ./extra/bin/start-backend.sh + start-frontend.sh
70 - Use your IDE to use the Jar or start NVM/NPM
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070071
sebdet101193d2019-09-05 18:25:59 +020072 </description>
ChrisCae04cf32018-02-05 05:21:59 -080073
sebdet101193d2019-09-05 18:25:59 +020074 <properties>
75 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
76 <clamp.project.version>${project.version}</clamp.project.version>
77 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
sebdet101193d2019-09-05 18:25:59 +020078 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
79 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070080
sebdet101193d2019-09-05 18:25:59 +020081 <eelf.core.version>1.0.0</eelf.core.version>
82 <camel.version>2.24.0</camel.version>
sebdet1b6a4282019-11-05 13:44:53 +010083 <springboot.version>2.2.0.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070084
sebdet101193d2019-09-05 18:25:59 +020085 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
86 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
ChrisC4c4c3fd2020-01-27 14:54:56 +010087 <sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/jacoco-html-xml-reports/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
sebdet101193d2019-09-05 18:25:59 +020088 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
89 <sonar.projectVersion>${project.version}</sonar.projectVersion>
ChrisC9abd1982020-01-28 11:00:02 +010090 <sonar.log.level>DEBUG</sonar.log.level>
sebdetf2d71eb2020-01-30 16:37:27 +010091 <sonar.nodejs.executable>${project.build.directory}/${ui.react.src}/node/node</sonar.nodejs.executable>
92 <sonar.verbose>true</sonar.verbose>
ChrisCf04d3752020-01-28 14:14:53 +010093 <sonar.sources>src/main,${project.build.directory}/${ui.react.src}/src</sonar.sources>
sebdet156d6ea2019-09-06 15:52:18 +020094 <sonar.exclusions>src/main/resources/**</sonar.exclusions>
ChrisC83ad93c2020-01-27 17:26:24 +010095 <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled>
96 <sonar.javascript.lcov.reportPaths>${project.build.directory}/${ui.react.src}/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
xuegao4e2db352019-10-21 13:07:49 +020097 <sonar.coverage.exclusions>src/main/resources/**,target/ui-react/src/**/*.test.js,target/ui-react/src/setupTests.js,src/main/docker/kibana/*.py</sonar.coverage.exclusions>
sebdet101193d2019-09-05 18:25:59 +020098 <docker.push.registry>localhost:5000</docker.push.registry>
99 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
100 <docker.skip.build>true</docker.skip.build>
101 <docker.skip.push>true</docker.skip.push>
102 <docker.skip.tag>true</docker.skip.tag>
103 <skip.staging.artifacts>false</skip.staging.artifacts>
104 <python.http.proxy.param />
sebdet1b6a4282019-11-05 13:44:53 +0100105 <tomcat.version>9.0.27</tomcat.version>
sebdet101193d2019-09-05 18:25:59 +0200106 <ui.react.src>ui-react</ui.react.src>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500107 <ui.react.lib.src>ui-react-lib</ui.react.lib.src>
sebdet6b214fe2019-10-24 10:37:58 +0200108 <npm.publish.url>https://nexus3.onap.org/repository/npm.release/</npm.publish.url>
sebdet101193d2019-09-05 18:25:59 +0200109 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -0700110
sebdet101193d2019-09-05 18:25:59 +0200111 <profiles>
sebdetf2d71eb2020-01-30 16:37:27 +0100112 <!-- BEGIN: NOT USABLE profiles, those are defined when specific flags are enabled -->
sebdet101193d2019-09-05 18:25:59 +0200113 <profile>
114 <id>without-test</id>
115 <activation>
116 <property>
117 <name>maven.test.skip</name>
118 <value>true</value>
119 </property>
120 </activation>
121 <properties>
122 <docker.skip.run>true</docker.skip.run>
123 <docker.skip>true</docker.skip>
124 </properties>
125 </profile>
126 <profile>
127 <id>without-IT-only</id>
128 <activation>
129 <property>
130 <name>skipITs</name>
131 <value>true</value>
132 </property>
133 </activation>
134 <properties>
135 <docker.skip.run>true</docker.skip.run>
136 <docker.skip>true</docker.skip>
137 </properties>
138 </profile>
139 <profile>
140 <id>without-IT-only2</id>
141 <activation>
142 <property>
143 <name>skipTests</name>
144 <value>true</value>
145 </property>
146 </activation>
147 <properties>
148 <docker.skip.run>true</docker.skip.run>
149 <docker.skip>true</docker.skip>
150 </properties>
151 </profile>
sebdetf2d71eb2020-01-30 16:37:27 +0100152 <!-- END: NOT USABLE profiles, those are defined when specific flags are enabled -->
sebdet101193d2019-09-05 18:25:59 +0200153 <profile>
154 <id>docker</id>
155 <properties>
156 <skip.staging.artifacts>true</skip.staging.artifacts>
157 <docker.skip.build>false</docker.skip.build>
158 <docker.skip.tag>false</docker.skip.tag>
159 <docker.skip.push>false</docker.skip.push>
160 <docker.skip>false</docker.skip>
161 </properties>
162 </profile>
163 </profiles>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200164
sebdet101193d2019-09-05 18:25:59 +0200165 <distributionManagement>
166 <repository>
167 <id>ecomp-releases</id>
168 <name>Clamp Release Repository</name>
169 <url>https://nexus.onap.org/content/repositories/releases/</url>
170 </repository>
171 <snapshotRepository>
172 <id>ecomp-snapshots</id>
173 <name>Clamp Snapshot Repository</name>
174 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
175 </snapshotRepository>
176 <site>
177 <id>ecomp-site</id>
178 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
179 </site>
180 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700181
sebdet101193d2019-09-05 18:25:59 +0200182 <repositories>
183 <repository>
184 <id>onap-public</id>
185 <name>onap-public</name>
186 <url>https://nexus.onap.org/content/repositories/public/</url>
187 <releases>
188 <enabled>true</enabled>
189 </releases>
190 <snapshots>
191 <enabled>false</enabled>
192 </snapshots>
193 </repository>
194 <repository>
195 <id>ecomp-releases</id>
196 <name>ONAP Release Repository</name>
197 <url>https://nexus.onap.org/content/repositories/releases/</url>
198 </repository>
199 <repository>
200 <id>ecomp-staging</id>
201 <name>ONAP Staging Repository</name>
202 <url>https://nexus.onap.org/content/repositories/staging/</url>
203 </repository>
204 <repository>
205 <id>ecomp-snapshots</id>
206 <name>ONAP Snapshot Repository</name>
207 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
208 <snapshots>
209 <enabled>true</enabled>
210 </snapshots>
211 <releases>
212 <enabled>false</enabled>
213 </releases>
214 </repository>
215 <repository>
216 <id>central</id>
217 <url>http://repo1.maven.org/maven2/</url>
218 </repository>
219 </repositories>
220 <pluginRepositories>
221 <pluginRepository>
222 <id>onap-public</id>
223 <name>onap-public</name>
224 <url>https://nexus.onap.org/content/repositories/public/</url>
225 <releases>
226 <enabled>true</enabled>
227 </releases>
228 <snapshots>
229 <enabled>false</enabled>
230 </snapshots>
231 </pluginRepository>
232 <pluginRepository>
233 <id>central</id>
234 <url>http://repo1.maven.org/maven2/</url>
235 </pluginRepository>
236 </pluginRepositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700237
sebdet101193d2019-09-05 18:25:59 +0200238 <dependencyManagement>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100239 <dependencies>
sebdet101193d2019-09-05 18:25:59 +0200240 <!-- Spring Boot BOM -->
Piotr Darosz6eb37422019-03-08 14:50:29 +0100241 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200242 <groupId>org.springframework.boot</groupId>
243 <artifactId>spring-boot-dependencies</artifactId>
244 <version>${springboot.version}</version>
245 <type>pom</type>
246 <scope>import</scope>
Piotr Darosz6eb37422019-03-08 14:50:29 +0100247 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200248 <!-- Camel BOM -->
Piotr Darosz6eb37422019-03-08 14:50:29 +0100249 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200250 <groupId>org.apache.camel</groupId>
251 <artifactId>camel-spring-boot-dependencies</artifactId>
252 <version>${camel.version}</version>
253 <type>pom</type>
254 <scope>import</scope>
Piotr Darosz6eb37422019-03-08 14:50:29 +0100255 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200256 </dependencies>
257 </dependencyManagement>
258
259 <dependencies>
260 <dependency>
261 <groupId>org.apache.xmlgraphics</groupId>
262 <artifactId>batik-svggen</artifactId>
263 <version>1.11</version>
nrpandya82561262019-11-21 11:51:18 -0600264 <exclusions>
265 <exclusion>
266 <groupId>xml-apis</groupId>
267 <artifactId>xml-apis</artifactId>
268 </exclusion>
269 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200270 </dependency>
271 <dependency>
272 <groupId>org.apache.xmlgraphics</groupId>
273 <artifactId>batik-svg-dom</artifactId>
274 <version>1.11</version>
sebdet5106a5b2020-01-28 15:30:44 +0100275 <exclusions>
276 <exclusion>
277 <groupId>xml-apis</groupId>
278 <artifactId>xml-apis</artifactId>
279 </exclusion>
280 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200281 </dependency>
282 <dependency>
283 <groupId>org.apache.xmlgraphics</groupId>
284 <artifactId>batik-transcoder</artifactId>
285 <version>1.11</version>
sebdet5106a5b2020-01-28 15:30:44 +0100286 <exclusions>
287 <exclusion>
288 <groupId>xml-apis</groupId>
289 <artifactId>xml-apis</artifactId>
290 </exclusion>
291 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200292 </dependency>
293 <dependency>
294 <groupId>com.att.eelf</groupId>
295 <artifactId>eelf-core</artifactId>
296 <version>${eelf.core.version}</version>
sebdet1b6a4282019-11-05 13:44:53 +0100297 <exclusions>
298 <exclusion>
299 <groupId>org.powermock</groupId>
300 <artifactId>powermock-module-junit4</artifactId>
301 </exclusion>
302 <exclusion>
303 <groupId>org.powermock</groupId>
304 <artifactId>powermock-api-mockito</artifactId>
305 </exclusion>
306 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200307 </dependency>
308 <dependency>
309 <groupId>org.codehaus.janino</groupId>
310 <artifactId>janino</artifactId>
311 <version>3.0.8</version>
312 </dependency>
313 <dependency>
314 <groupId>org.apache.tomcat.embed</groupId>
315 <artifactId>tomcat-embed-core</artifactId>
316 <version>${tomcat.version}</version>
317 </dependency>
318 <dependency>
319 <groupId>org.apache.tomcat.embed</groupId>
320 <artifactId>tomcat-embed-el</artifactId>
321 <version>${tomcat.version}</version>
322 </dependency>
323 <dependency>
324 <groupId>org.apache.tomcat.embed</groupId>
325 <artifactId>tomcat-embed-websocket</artifactId>
326 <version>${tomcat.version}</version>
327 </dependency>
328 <dependency>
329 <groupId>org.apache.tomcat</groupId>
330 <artifactId>tomcat-annotations-api</artifactId>
331 <version>${tomcat.version}</version>
332 </dependency>
333 <!-- For CAMEL -->
334 <dependency>
335 <groupId>org.apache.camel</groupId>
336 <artifactId>camel-http4-starter</artifactId>
337 </dependency>
338 <dependency>
339 <groupId>org.apache.camel</groupId>
340 <artifactId>camel-spring-boot-starter</artifactId>
341 </dependency>
342 <dependency>
343 <groupId>org.apache.camel</groupId>
344 <artifactId>camel-jaxb-starter</artifactId>
345 </dependency>
346 <dependency>
347 <groupId>org.apache.camel</groupId>
348 <artifactId>camel-servlet-starter</artifactId>
349 </dependency>
350 <dependency>
351 <groupId>org.apache.camel</groupId>
352 <artifactId>camel-gson-starter</artifactId>
353 </dependency>
354 <dependency>
355 <groupId>org.apache.camel</groupId>
356 <artifactId>camel-swagger-java-starter</artifactId>
357 <exclusions>
358 <exclusion>
359 <groupId>javax.ws.rs</groupId>
360 <artifactId>jsr311-api</artifactId>
361 </exclusion>
362 <exclusion>
363 <groupId>org.slf4j</groupId>
364 <artifactId>slf4j-ext</artifactId>
365 </exclusion>
366 <exclusion>
367 <groupId>com.fasterxml.jackson.core</groupId>
368 <artifactId>jackson-databind</artifactId>
369 </exclusion>
370 </exclusions>
371 </dependency>
372 <dependency>
373 <groupId>javax.xml.bind</groupId>
374 <artifactId>jaxb-api</artifactId>
375 <version>2.3.0</version>
376 </dependency>
377 <dependency>
378 <groupId>org.glassfish.jersey.core</groupId>
379 <artifactId>jersey-common</artifactId>
380 <version>2.27</version>
381 </dependency>
382 <!-- Spring famework -->
383 <dependency>
384 <groupId>org.springframework.boot</groupId>
385 <artifactId>spring-boot-starter-web</artifactId>
386 <exclusions>
387 <exclusion>
388 <groupId>org.springframework.boot</groupId>
389 <artifactId>spring-boot-starter-json</artifactId>
390 </exclusion>
391 </exclusions>
392 </dependency>
393 <dependency>
394 <groupId>org.springframework.boot</groupId>
395 <artifactId>spring-boot-starter-tomcat</artifactId>
396 </dependency>
397 <dependency>
398 <groupId>org.springframework</groupId>
399 <artifactId>spring-jdbc</artifactId>
400 </dependency>
401 <dependency>
402 <groupId>org.springframework.boot</groupId>
403 <artifactId>spring-boot-starter-security</artifactId>
404 </dependency>
405 <dependency>
406 <groupId>org.springframework.boot</groupId>
407 <artifactId>spring-boot-autoconfigure</artifactId>
408 </dependency>
409 <dependency>
410 <groupId>org.springframework.boot</groupId>
411 <artifactId>spring-boot-starter-test</artifactId>
412 <scope>test</scope>
413 <exclusions>
414 <exclusion>
415 <groupId>com.vaadin.external.google</groupId>
416 <artifactId>android-json</artifactId>
417 </exclusion>
418 </exclusions>
419 </dependency>
420 <dependency>
421 <groupId>org.springframework.boot</groupId>
422 <artifactId>spring-boot-starter-data-jpa</artifactId>
423 </dependency>
424 <!-- Others dependencies -->
425 <dependency>
426 <groupId>org.onap.aaf.authz</groupId>
427 <artifactId>aaf-cadi-aaf</artifactId>
sebdetdcc4bdc2019-10-15 14:04:00 +0200428 <version>2.1.15</version>
sebdet101193d2019-09-05 18:25:59 +0200429 <exclusions>
430 <exclusion>
431 <groupId>javax.servlet</groupId>
432 <artifactId>servlet-api</artifactId>
433 </exclusion>
434 </exclusions>
435 </dependency>
436 <dependency>
437 <groupId>ch.qos.logback</groupId>
438 <artifactId>logback-core</artifactId>
439 <version>1.2.3</version>
440 </dependency>
441 <dependency>
442 <groupId>ch.qos.logback</groupId>
443 <artifactId>logback-classic</artifactId>
444 <version>1.2.3</version>
445 </dependency>
446 <dependency>
447 <groupId>commons-dbcp</groupId>
448 <artifactId>commons-dbcp</artifactId>
449 <version>1.4</version>
450 </dependency>
451 <dependency>
452 <groupId>commons-io</groupId>
453 <artifactId>commons-io</artifactId>
454 <version>2.6</version>
455 </dependency>
456 <dependency>
457 <groupId>com.googlecode.json-simple</groupId>
458 <artifactId>json-simple</artifactId>
459 <version>1.1.1</version>
460 </dependency>
461 <dependency>
462 <groupId>org.apache.commons</groupId>
463 <artifactId>commons-vfs2</artifactId>
464 <version>2.2</version>
465 </dependency>
466 <dependency>
467 <groupId>joda-time</groupId>
468 <artifactId>joda-time</artifactId>
469 </dependency>
470 <dependency>
471 <groupId>org.slf4j</groupId>
472 <artifactId>slf4j-api</artifactId>
473 </dependency>
474 <dependency>
475 <groupId>javax.ws.rs</groupId>
476 <artifactId>javax.ws.rs-api</artifactId>
477 <version>2.0</version>
478 </dependency>
479 <dependency>
480 <groupId>junit</groupId>
481 <artifactId>junit</artifactId>
482 </dependency>
483 <dependency>
484 <groupId>javax.transaction</groupId>
485 <artifactId>jta</artifactId>
486 <version>1.1</version>
487 </dependency>
488 <dependency>
489 <groupId>javax.persistence</groupId>
490 <artifactId>persistence-api</artifactId>
491 <version>1.0.2</version>
492 </dependency>
493 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200494 <groupId>org.apache.commons</groupId>
495 <artifactId>commons-csv</artifactId>
496 <version>1.3</version>
497 </dependency>
498 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
499 <dependency>
500 <groupId>org.codehaus.plexus</groupId>
501 <artifactId>plexus-utils</artifactId>
502 <version>3.0.24</version>
503 </dependency>
504 <dependency>
505 <groupId>org.jboss.spec.javax.ws.rs</groupId>
506 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
507 <version>1.0.1.Final</version>
508 </dependency>
509 <dependency>
510 <groupId>com.google.guava</groupId>
511 <artifactId>guava</artifactId>
512 <version>27.0-jre</version>
513 </dependency>
sebdete77e0ff2019-09-09 13:18:35 +0200514 <dependency>
515 <groupId>commons-codec</groupId>
516 <artifactId>commons-codec</artifactId>
517 <version>1.13</version>
518 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200519 <!-- Remove the MYSQL connector and replace it by Mariadb -->
520 <dependency>
521 <groupId>org.mariadb.jdbc</groupId>
522 <artifactId>mariadb-java-client</artifactId>
523 <version>2.2.1</version>
524 </dependency>
525 <!-- For SDC Controller -->
526 <dependency>
527 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
528 <artifactId>sdc-distribution-client</artifactId>
529 <version>1.3.0</version>
530 </dependency>
531 <dependency>
532 <groupId>org.onap.sdc.sdc-tosca</groupId>
533 <artifactId>sdc-tosca</artifactId>
534 <version>1.5.1</version>
535 </dependency>
536 <!-- TESTING -->
537 <dependency>
538 <groupId>org.assertj</groupId>
539 <artifactId>assertj-core</artifactId>
540 <version>3.10.0</version>
541 <scope>test</scope>
542 </dependency>
543 <dependency>
544 <groupId>org.mockito</groupId>
545 <artifactId>mockito-core</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100546 <version>2.28.2</version>
547 <scope>test</scope>
548 </dependency>
549 <dependency>
550 <groupId>org.powermock</groupId>
551 <artifactId>powermock-api-mockito2</artifactId>
552 <version>2.0.4</version>
553 <scope>test</scope>
554 </dependency>
555 <dependency>
556 <groupId>org.powermock</groupId>
557 <artifactId>powermock-module-junit4</artifactId>
558 <version>2.0.4</version>
sebdet101193d2019-09-05 18:25:59 +0200559 <scope>test</scope>
560 </dependency>
561 </dependencies>
562
563 <build>
564 <finalName>clamp</finalName>
565
566 <testResources>
567 <testResource>
568 <directory>src/test/resources</directory>
569 <excludes>
570 <exclude>**/*.jks</exclude>
571 <exclude>**/*.csar</exclude>
572 </excludes>
573 <filtering>true</filtering>
574 </testResource>
575 <testResource>
576 <directory>src/test/resources/https</directory>
577 <includes>
578 <include>**.jks</include>
579 </includes>
580 <filtering>false</filtering>
581 <targetPath>https</targetPath>
582 </testResource>
583 <testResource>
584 <directory>src/test/resources/example/sdc</directory>
585 <includes>
586 <include>**.csar</include>
587 </includes>
588 <filtering>false</filtering>
589 <targetPath>example/sdc</targetPath>
590 </testResource>
591 </testResources>
592 <resources>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500593 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
sebdet101193d2019-09-05 18:25:59 +0200594 they will be broken and unreadable -->
595 <resource>
596 <directory>src/main/resources</directory>
597 <filtering>true</filtering>
598 <excludes>
599 <exclude>clds/aaf/**</exclude>
600 </excludes>
601 </resource>
602 <resource>
603 <directory>src/main/resources</directory>
604 <filtering>false</filtering>
605 <includes>
606 <include>clds/aaf/**</include>
607 </includes>
608 </resource>
609 <resource>
610 <directory>${ui.react.src}</directory>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500611 <excludes>
612 <exclude>node_modules</exclude>
613 </excludes>
sebdet101193d2019-09-05 18:25:59 +0200614 <includes>
615 <include>src/**</include>
616 <include>public/**</include>
617 <include>package.json</include>
618 <include>package-lock.json</include>
619 </includes>
620 <filtering>true</filtering>
621 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
622 </resource>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500623 <resource>
624 <directory>${ui.react.src}</directory>
625 <includes>
626 <include>src/**</include>
627 </includes>
628 <excludes>
629 <exclude>**/__snapshots__/**</exclude>
630 <exclude>**/**.test.js</exclude>
631 </excludes>
632 <filtering>true</filtering>
633 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
634 </resource>
635 <resource>
636 <directory>${ui.react.lib.src}</directory>
637 <includes>
638 <include>**</include>
639 </includes>
640 <excludes>
641 <exclude>node_modules/**</exclude>
642 <exclude>package-lock.json</exclude>
643 </excludes>
644 <filtering>true</filtering>
645 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
646 </resource>
sebdet101193d2019-09-05 18:25:59 +0200647 </resources>
648
649 <plugins>
650 <plugin>
nrpandya82561262019-11-21 11:51:18 -0600651 <groupId>de.jpdigital</groupId>
652 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
653 <version>2.2.0</version>
sebdet101193d2019-09-05 18:25:59 +0200654 <dependencies>
655 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200656 <groupId>javax.xml.bind</groupId>
657 <artifactId>jaxb-api</artifactId>
658 <version>2.3.0</version>
sebdet101193d2019-09-05 18:25:59 +0200659 </dependency>
660 </dependencies>
661 <executions>
662 <execution>
663 <phase>process-classes</phase>
664 <goals>
665 <goal>gen-ddl</goal>
666 </goals>
sebdete4422002018-10-16 17:47:54 +0200667 <configuration>
sebdet101193d2019-09-05 18:25:59 +0200668 <packages>
nrpandya82561262019-11-21 11:51:18 -0600669 <param>org.onap.clamp</param>
sebdet101193d2019-09-05 18:25:59 +0200670 </packages>
671 <dialects>
672 <param>MARIADB53</param>
673 </dialects>
674 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
675 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
676 <!-- <createDropStatements>true</createDropStatements> -->
677 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdete4422002018-10-16 17:47:54 +0200678 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200679 </execution>
680 </executions>
681
682 </plugin>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500683 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
sebdet101193d2019-09-05 18:25:59 +0200684 a list of .adoc files containing the APIs info in more structured way -->
685 <plugin>
686 <groupId>io.github.swagger2markup</groupId>
687 <artifactId>swagger2markup-maven-plugin</artifactId>
688 <version>1.3.3</version>
689 <dependencies>
690 <dependency>
691 <groupId>io.github.swagger2markup</groupId>
692 <artifactId>swagger2markup-import-files-ext</artifactId>
693 <version>1.3.3</version>
694 </dependency>
695 <dependency>
696 <groupId>io.github.swagger2markup</groupId>
697 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
698 <version>1.3.3</version>
699 </dependency>
700 </dependencies>
701 <configuration>
702 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
703 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
704 <config>
705 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
706 </config>
707 </configuration>
708 <executions>
709 <execution>
710 <phase>post-integration-test</phase>
711 <goals>
712 <goal>convertSwagger2markup</goal>
713 </goals>
714 </execution>
715 </executions>
716 </plugin>
717
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500718 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
sebdet101193d2019-09-05 18:25:59 +0200719 types, such as PDFs or HTML5 -->
720 <plugin>
721 <groupId>org.asciidoctor</groupId>
722 <artifactId>asciidoctor-maven-plugin</artifactId>
723 <version>1.5.7.1</version>
724 <dependencies>
725 <dependency>
726 <groupId>org.asciidoctor</groupId>
727 <artifactId>asciidoctorj-pdf</artifactId>
728 <version>1.5.0-alpha.10.1</version>
729 </dependency>
730 </dependencies>
731 <configuration>
732 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
733 <sourceDocumentName>swagger.adoc</sourceDocumentName>
734 <attributes>
735 <doctype>book</doctype>
736 <toc>left</toc>
737 <toclevels>3</toclevels>
738 <numbered />
739 <hardbreaks />
740 <sectlinks />
741 <sectanchors />
742 <generated>${project.build.directory}/asciidoc/generated</generated>
743 </attributes>
744 </configuration>
745
746 <executions>
747 <execution>
748 <id>output-html</id>
749 <phase>post-integration-test</phase>
750 <goals>
751 <goal>process-asciidoc</goal>
752 </goals>
753 <configuration>
754 <backend>html5</backend>
755 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
756 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
757 </configuration>
758 </execution>
759 <execution>
760 <id>output-pdf</id>
761 <phase>post-integration-test</phase>
762 <goals>
763 <goal>process-asciidoc</goal>
764 </goals>
765 <configuration>
766 <backend>pdf</backend>
767 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
768 </configuration>
769 </execution>
770 </executions>
771 </plugin>
772 <plugin>
773 <groupId>org.codehaus.groovy.maven</groupId>
774 <artifactId>gmaven-plugin</artifactId>
775 <version>1.0</version>
776 <executions>
777 <execution>
778 <phase>validate</phase>
779 <goals>
780 <goal>execute</goal>
781 </goals>
782 <configuration>
783 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
784 </configuration>
785 </execution>
786 </executions>
787 </plugin>
788 <plugin>
sebdetc6622c42019-11-05 18:28:05 +0100789 <groupId>org.codehaus.groovy.maven</groupId>
790 <artifactId>gmaven-plugin</artifactId>
791 <version>1.0</version>
792 <executions>
793 <execution>
794 <phase>validate</phase>
795 <goals>
796 <goal>execute</goal>
797 </goals>
798 <configuration>
799 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
800 </configuration>
801 </execution>
802 </executions>
803 </plugin>
804 <plugin>
sebdet101193d2019-09-05 18:25:59 +0200805 <groupId>org.apache.maven.plugins</groupId>
806 <artifactId>maven-jar-plugin</artifactId>
807 <version>3.0.2</version>
808 <executions>
809 <execution>
810 <id>jar-with-only-classes</id>
811 <phase>package</phase>
812 <goals>
813 <goal>jar</goal>
814 </goals>
815 <configuration>
816 <classifier>classes</classifier>
817 <includes>
818 <include>org/**</include>
819 </includes>
820 </configuration>
821 </execution>
822 </executions>
823 </plugin>
824 <plugin>
825 <groupId>org.codehaus.mojo</groupId>
826 <artifactId>build-helper-maven-plugin</artifactId>
827 <version>3.0.0</version>
828 <executions>
829 <execution>
830 <goals>
831 <goal>attach-artifact</goal>
832 </goals>
833 <phase>package</phase>
834 <configuration>
835 <artifacts>
836 <artifact>
837 <file>${project.build.directory}/clamp-classes.jar</file>
838 <type>jar</type>
839 <classifier>classes</classifier>
840 </artifact>
841 </artifacts>
842 </configuration>
843 </execution>
844 <execution>
845 <id>reserve-port-for-tests</id>
846 <phase>process-resources</phase>
847 <goals>
848 <goal>reserve-network-port</goal>
849 </goals>
850 <configuration>
851 <portNames>
852 <portName>docker.mariadb.port.host</portName>
853 <portName>docker.http-cache.port.host</portName>
854 <portName>clamp.it.tests.http-redirected</portName>
855 <portName>clamp.it.tests.https</portName>
856 <portName>clamp.it.tests.http</portName>
857 </portNames>
858 </configuration>
859 </execution>
860 </executions>
861 </plugin>
862
863 <plugin>
864 <groupId>org.springframework.boot</groupId>
865 <artifactId>spring-boot-maven-plugin</artifactId>
866 <!-- Temporary fix -->
867 <version>1.5.13.RELEASE</version>
868 <!-- <version>${springboot.version}</version> -->
869 <executions>
870 <execution>
871 <goals>
872 <goal>repackage</goal>
873 </goals>
874 <phase>package</phase>
875 </execution>
876 </executions>
877 </plugin>
878 <plugin>
879 <groupId>org.apache.maven.plugins</groupId>
880 <artifactId>maven-surefire-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100881 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200882 <configuration>
883 <forkCount>1C</forkCount>
884 <reuseForks>true</reuseForks>
885 <useSystemClassLoader>false</useSystemClassLoader>
886 <argLine>${surefireArgLine}</argLine>
887 </configuration>
888 </plugin>
889
890 <plugin>
891 <groupId>org.apache.maven.plugins</groupId>
892 <artifactId>maven-failsafe-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100893 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200894 <executions>
895 <execution>
896 <id>integration-tests</id>
897 <goals>
898 <goal>integration-test</goal>
899 <goal>verify</goal>
900 </goals>
901 <configuration>
902 <additionalClasspathElements>
903 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
904 </additionalClasspathElements>
905 <includes>
906 <include>**/*ItCase.java</include>
907 </includes>
sebdet4f0110b2020-01-29 14:05:24 +0100908 <forkCount>1C</forkCount>
sebdet101193d2019-09-05 18:25:59 +0200909 <reuseForks>true</reuseForks>
910 <useSystemClassLoader>false</useSystemClassLoader>
911 <argLine>${failsafeArgLine}</argLine>
912 </configuration>
913 </execution>
914 </executions>
sebdet101193d2019-09-05 18:25:59 +0200915 </plugin>
916 <plugin>
917 <groupId>io.fabric8</groupId>
918 <artifactId>docker-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100919 <version>0.31.0</version>
sebdet101193d2019-09-05 18:25:59 +0200920 <dependencies>
921 <dependency>
922 <groupId>org.apache.httpcomponents</groupId>
923 <artifactId>httpclient</artifactId>
924 <version>4.5.5</version>
925 </dependency>
926 </dependencies>
927 <configuration>
928 <verbose>true</verbose>
929 <apiVersion>1.35</apiVersion>
930 <images>
931 <image>
932 <name>library/mariadb:10.3.12</name>
933 <alias>mariadb</alias>
934 <run>
935 <env>
936 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
937 </env>
938 <hostname>mariadb</hostname>
939 <volumes>
940 <bind>
sebdetfdfde212019-09-12 10:59:15 +0200941 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
sebdet101193d2019-09-05 18:25:59 +0200942 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
943 </bind>
944 </volumes>
945 <wait>
946 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
947 <time>600000</time>
sebdetfdfde212019-09-12 10:59:15 +0200948 <exec>
949 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
950 </exec>
sebdet101193d2019-09-05 18:25:59 +0200951 </wait>
952 <ports>
953 <port>${docker.mariadb.port.host}:3306</port>
954 </ports>
sebdet1b6a4282019-11-05 13:44:53 +0100955 <network>
956 <mode>bridge</mode>
957 </network>
sebdet101193d2019-09-05 18:25:59 +0200958 </run>
959 </image>
960 <image>
961 <name>library/python:2-slim</name>
962 <alias>python</alias>
963 <run>
964 <hostname>python</hostname>
965 <volumes>
966 <bind>
967 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
968 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
969 </bind>
970 </volumes>
971 <wait>
972 <tcp>
973 <ports>
974 <port>8080</port>
975 </ports>
976 <mode>direct</mode>
977 </tcp>
978 <time>120000</time>
979 </wait>
980 <ports>
981 <port>${docker.http-cache.port.host}:8080</port>
982 </ports>
983 <workingDir>/usr/src/http-cache-app</workingDir>
984 <cmd>
985 <shell>./start_http_cache.sh ${python.http.proxy.param}
986 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
987 </cmd>
sebdet1b6a4282019-11-05 13:44:53 +0100988 <network>
989 <mode>bridge</mode>
990 </network>
sebdet101193d2019-09-05 18:25:59 +0200991 </run>
992 </image>
993 <image>
994 <name>onap/clamp-backend</name>
995 <alias>onap-clamp-backend</alias>
996 <run>
997 <skip>true</skip>
998 </run>
999 <build>
1000 <cleanup>true</cleanup>
1001 <tags>
1002 <tag>latest</tag>
1003 <tag>${project.docker.latesttagtimestamp.version}</tag>
1004 <tag>${project.docker.latesttag.version}</tag>
1005 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001006 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001007 default -->
1008 <dockerFile>backend/Dockerfile</dockerFile>
1009 <assembly>
1010 <descriptor>backend/backend-files.xml</descriptor>
1011 <name>onap-clamp-backend</name>
1012 </assembly>
1013 </build>
1014 </image>
1015 <image>
1016 <name>onap/clamp-frontend</name>
1017 <alias>onap-clamp-frontend</alias>
1018 <run>
1019 <skip>true</skip>
1020 </run>
1021 <build>
1022 <cleanup>true</cleanup>
1023 <tags>
1024 <tag>latest</tag>
1025 <tag>${project.docker.latesttagtimestamp.version}</tag>
1026 <tag>${project.docker.latesttag.version}</tag>
1027 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001028 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001029 default -->
1030 <dockerFile>frontend/Dockerfile</dockerFile>
1031 <assembly>
1032 <descriptor>frontend/frontend-files.xml</descriptor>
1033 <name>onap-clamp-frontend</name>
1034 </assembly>
1035 </build>
1036 </image>
1037 <image>
sebdet101193d2019-09-05 18:25:59 +02001038 <name>onap/clamp-dashboard-logstash</name>
1039 <alias>onap-clamp-dashboard-logstash</alias>
1040 <run>
1041 <skip>true</skip>
1042 </run>
1043 <build>
1044 <cleanup>true</cleanup>
1045 <tags>
1046 <tag>latest</tag>
1047 <tag>${project.docker.latesttagtimestamp.version}</tag>
1048 <tag>${project.docker.latesttag.version}</tag>
1049 </tags>
1050 <dockerFile>logstash/Dockerfile</dockerFile>
1051 </build>
1052 </image>
1053 <image>
1054 <name>onap/clamp-dashboard-kibana</name>
1055 <alias>onap-clamp-dashboard-kibana</alias>
1056 <run>
1057 <skip>true</skip>
1058 </run>
1059 <build>
1060 <cleanup>true</cleanup>
1061 <tags>
1062 <tag>latest</tag>
1063 <tag>${project.docker.latesttagtimestamp.version}</tag>
1064 <tag>${project.docker.latesttag.version}</tag>
1065 </tags>
1066 <dockerFile>kibana/Dockerfile</dockerFile>
1067 </build>
1068 </image>
1069 </images>
1070 </configuration>
1071
1072 <executions>
1073 <execution>
1074 <id>generate-images</id>
1075 <phase>install</phase>
1076 <goals>
1077 <goal>build</goal>
1078 </goals>
1079 </execution>
1080 <execution>
1081 <id>push-images</id>
1082 <phase>deploy</phase>
1083 <goals>
1084 <goal>push</goal>
1085 </goals>
1086 </execution>
1087 <execution>
1088 <id>docker-start-for-it</id>
1089 <phase>pre-integration-test</phase>
1090 <goals>
1091 <goal>start</goal>
1092 </goals>
1093 </execution>
1094 <execution>
1095 <id>docker-stop-for-it</id>
1096 <phase>post-integration-test</phase>
1097 <goals>
1098 <goal>stop</goal>
1099 </goals>
1100 </execution>
1101 </executions>
1102 </plugin>
1103
1104 <plugin>
1105 <groupId>org.jacoco</groupId>
1106 <artifactId>jacoco-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +01001107 <version>0.8.5</version>
sebdet101193d2019-09-05 18:25:59 +02001108 <configuration>
1109 <dumpOnExit>true</dumpOnExit>
1110 <append>true</append>
1111 <includes>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001112 <include>org/onap/clamp/**</include>
sebdet101193d2019-09-05 18:25:59 +02001113 </includes>
1114 </configuration>
1115 <executions>
1116 <execution>
1117 <id>pre-unit-test</id>
1118 <goals>
1119 <goal>prepare-agent</goal>
1120 </goals>
1121 <configuration>
1122 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1123 <propertyName>surefireArgLine</propertyName>
1124 <!-- <append>true</append> -->
1125 </configuration>
1126 </execution>
1127 <execution>
1128 <id>pre-integration-test</id>
1129 <phase>pre-integration-test</phase>
1130 <goals>
1131 <goal>prepare-agent</goal>
1132 </goals>
1133 <configuration>
1134 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1135 <propertyName>failsafeArgLine</propertyName>
1136 <!-- <append>true</append> -->
1137 </configuration>
1138 </execution>
1139 <execution>
1140 <goals>
1141 <goal>merge</goal>
1142 </goals>
1143 <phase>post-integration-test</phase>
1144 <configuration>
1145 <fileSets>
1146 <fileSet
1147 implementation="org.apache.maven.shared.model.fileset.FileSet">
1148 <directory>${project.build.directory}/coverage-reports</directory>
1149 <includes>
1150 <include>*.exec</include>
1151 </includes>
1152 </fileSet>
1153 </fileSets>
sebdetf332e2e2020-01-24 13:49:49 +01001154 <destFile>${project.build.directory}/jacoco.exec</destFile>
sebdet101193d2019-09-05 18:25:59 +02001155 </configuration>
1156 </execution>
sebdet749c0f12020-01-23 13:35:34 +01001157 <execution>
sebdetf332e2e2020-01-24 13:49:49 +01001158 <id>report-xml</id>
sebdet749c0f12020-01-23 13:35:34 +01001159 <goals>
1160 <goal>report</goal>
1161 </goals>
sebdet749c0f12020-01-23 13:35:34 +01001162 <configuration>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001163 <!-- Setting explicit path, so that we remember where it picks them up from -->
1164 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1165 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
sebdet749c0f12020-01-23 13:35:34 +01001166 </configuration>
1167 </execution>
sebdet101193d2019-09-05 18:25:59 +02001168 </executions>
1169 </plugin>
1170
1171 <!-- This plugin will be useful when we will have multi-modules project -->
1172 <plugin>
1173 <groupId>org.codehaus.mojo</groupId>
1174 <artifactId>versions-maven-plugin</artifactId>
1175 <version>1.3.1</version>
1176 </plugin>
1177
1178 <plugin>
1179 <groupId>com.github.eirslett</groupId>
1180 <artifactId>frontend-maven-plugin</artifactId>
1181 <version>1.8.0</version>
1182 <configuration>
1183 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
sebdet101193d2019-09-05 18:25:59 +02001184 </configuration>
1185 <executions>
1186 <execution>
1187 <id>install_node_and_npm</id>
1188 <goals>
1189 <goal>install-node-and-npm</goal>
1190 </goals>
1191 <phase>generate-sources</phase>
1192 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001193 <nodeVersion>v12.13.0</nodeVersion>
1194 <npmVersion>6.13.0</npmVersion>
sebdet101193d2019-09-05 18:25:59 +02001195 </configuration>
1196 </execution>
1197 <execution>
1198 <id>npm_install</id>
1199 <goals>
1200 <goal>npm</goal>
1201 </goals>
1202 <phase>compile</phase>
1203 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001204 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
sebdet996071f2019-10-25 13:25:57 +02001205 <arguments>install</arguments>
sebdet101193d2019-09-05 18:25:59 +02001206 </configuration>
1207 </execution>
1208 <execution>
1209 <id>npm_test</id>
1210 <goals>
1211 <goal>npm</goal>
1212 </goals>
1213 <phase>test</phase>
1214 <configuration>
1215 <arguments>run-script test:coverage</arguments>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001216 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1217 </configuration>
1218 </execution>
1219 <execution>
1220 <id>npm_install_lib</id>
1221 <goals>
1222 <goal>npm</goal>
1223 </goals>
1224 <phase>deploy</phase>
1225 <configuration>
1226 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1227 <arguments>install</arguments>
1228 </configuration>
1229 </execution>
1230 <execution>
1231 <id>npm_build_lib</id>
1232 <goals>
1233 <goal>npm</goal>
1234 </goals>
1235 <phase>deploy</phase>
1236 <configuration>
1237 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1238 <arguments>run build</arguments>
sebdet101193d2019-09-05 18:25:59 +02001239 </configuration>
1240 </execution>
1241 <execution>
1242 <id>npm_publish</id>
1243 <goals>
1244 <goal>npm</goal>
1245 </goals>
1246 <phase>deploy</phase>
1247 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001248 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
sebdetdd107682019-11-13 13:13:07 +01001249 <arguments>publish</arguments>
sebdet101193d2019-09-05 18:25:59 +02001250 </configuration>
1251 </execution>
1252 </executions>
1253 </plugin>
sebdet1b6a4282019-11-05 13:44:53 +01001254 <plugin>
1255 <groupId>org.apache.maven.plugins</groupId>
1256 <artifactId>maven-compiler-plugin</artifactId>
1257 <version>3.8.1</version>
1258 <configuration>
sebdete17bc1b2019-11-18 17:57:32 +01001259 <source>11</source>
1260 <target>11</target>
sebdet1b6a4282019-11-05 13:44:53 +01001261 </configuration>
1262 </plugin>
sebdetd07b6502019-11-08 13:49:44 +01001263 <plugin>
1264 <groupId>org.sonarsource.scanner.maven</groupId>
1265 <artifactId>sonar-maven-plugin</artifactId>
1266 <version>3.7.0.1746</version>
1267 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001268 </plugins>
1269 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001270</project>