blob: 0757734ea43fd80d676bfd417f8fb7b23c416490 [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>
sebdet0c297962020-05-04 16:43:42 +020029 <version>5.1.0-SNAPSHOT</version>
sebdet101193d2019-09-05 18:25:59 +020030 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
sebdeta5243a42019-06-13 13:48:04 +020032
sebdet101193d2019-09-05 18:25:59 +020033 <parent>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
sebdet715f0ac2019-11-07 15:03:18 +010036 <version>2.1.0</version>
sebdet101193d2019-09-05 18:25:59 +020037 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070038
sebdet101193d2019-09-05 18:25:59 +020039 <description>
40 This is the MAVEN project that builds everything for ONAP CLAMP.
41 Docker engine is normally requires to perfom all possible tasks (including integration tests)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050042
sebdet101193d2019-09-05 18:25:59 +020043 It can build:
44 - The ONAP CLAMP JAR that contains CLAMP back-end code.
45 - The DOCKER images for:
46 * CLAMP backend (Java Spring)
47 * CLAMP frontend (Javscript React)
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070048
sebdet101193d2019-09-05 18:25:59 +020049 It can test:
50 - The CLAMP backend, JAVA unit testing
51 - The CLAMP backend, JAVA integration tests (with Spring + docker mariadb database + docker policy/dcae emulator written in python)
52 - The CLAMP frontend, Javascrip tests (NodeJS(NPM) + JEST + Enzyme fro React)
Ted Humphrey01e5fde2020-01-27 18:57:39 -050053
sebdet101193d2019-09-05 18:25:59 +020054 The test coverage for dev's can be found after a "clean install" build in:
55 - Clamp backend: target/jacoco-dev.exec (unit tests + integration tests merged)
56 or separately target/coverage-reports/jacoco.exec and target/coverage-reports/jacoco-it.exec
57 - Clamp frontend: target/ui-react/coverage
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070058
sebdet101193d2019-09-05 18:25:59 +020059 Useful mvn commands:
60 - mvn clean install: Build Clamp backend JAR + unit tests + integration tests + NPM tests (+coverage for all)
61 - mvn clean install -DskipITs=true: Build Clamp backend JAR + unit tests + NPM tests (+coverage for all), it does not require a DOCKER engine
62 - mvn clean install -DskipTests -P docker: Build Clamp backend JAR + all docker images
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070063
sebdet101193d2019-09-05 18:25:59 +020064 To start CLAMP (Build it before):
65 - Use docker-compose file in ./extra/docker/clamp/docker-compose.yml
66 - Use the script located in ./extra/bin/start-backend.sh + start-frontend.sh
67 - Use your IDE to use the Jar or start NVM/NPM
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070068
sebdet101193d2019-09-05 18:25:59 +020069 </description>
ChrisCae04cf32018-02-05 05:21:59 -080070
sebdet101193d2019-09-05 18:25:59 +020071 <properties>
72 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
73 <clamp.project.version>${project.version}</clamp.project.version>
74 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
sebdet101193d2019-09-05 18:25:59 +020075 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
76 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070077
sebdet101193d2019-09-05 18:25:59 +020078 <eelf.core.version>1.0.0</eelf.core.version>
sebdet32bfb482020-07-31 18:25:34 +020079 <camel.version>2.25.2</camel.version>
80 <springboot.version>2.2.9.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 />
sebdetbc919702020-08-03 15:14:02 +0200102 <tomcat.version>9.0.37</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>
sebdet101193d2019-09-05 18:25:59 +0200258 <groupId>com.att.eelf</groupId>
259 <artifactId>eelf-core</artifactId>
260 <version>${eelf.core.version}</version>
sebdet1b6a4282019-11-05 13:44:53 +0100261 <exclusions>
262 <exclusion>
263 <groupId>org.powermock</groupId>
264 <artifactId>powermock-module-junit4</artifactId>
265 </exclusion>
266 <exclusion>
267 <groupId>org.powermock</groupId>
268 <artifactId>powermock-api-mockito</artifactId>
269 </exclusion>
270 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200271 </dependency>
272 <dependency>
273 <groupId>org.codehaus.janino</groupId>
274 <artifactId>janino</artifactId>
275 <version>3.0.8</version>
276 </dependency>
277 <dependency>
278 <groupId>org.apache.tomcat.embed</groupId>
279 <artifactId>tomcat-embed-core</artifactId>
280 <version>${tomcat.version}</version>
281 </dependency>
282 <dependency>
283 <groupId>org.apache.tomcat.embed</groupId>
284 <artifactId>tomcat-embed-el</artifactId>
285 <version>${tomcat.version}</version>
286 </dependency>
287 <dependency>
288 <groupId>org.apache.tomcat.embed</groupId>
289 <artifactId>tomcat-embed-websocket</artifactId>
290 <version>${tomcat.version}</version>
291 </dependency>
292 <dependency>
293 <groupId>org.apache.tomcat</groupId>
294 <artifactId>tomcat-annotations-api</artifactId>
295 <version>${tomcat.version}</version>
296 </dependency>
297 <!-- For CAMEL -->
298 <dependency>
299 <groupId>org.apache.camel</groupId>
300 <artifactId>camel-http4-starter</artifactId>
301 </dependency>
302 <dependency>
303 <groupId>org.apache.camel</groupId>
304 <artifactId>camel-spring-boot-starter</artifactId>
305 </dependency>
306 <dependency>
307 <groupId>org.apache.camel</groupId>
308 <artifactId>camel-jaxb-starter</artifactId>
309 </dependency>
310 <dependency>
311 <groupId>org.apache.camel</groupId>
312 <artifactId>camel-servlet-starter</artifactId>
313 </dependency>
314 <dependency>
315 <groupId>org.apache.camel</groupId>
316 <artifactId>camel-gson-starter</artifactId>
317 </dependency>
318 <dependency>
319 <groupId>org.apache.camel</groupId>
320 <artifactId>camel-swagger-java-starter</artifactId>
321 <exclusions>
322 <exclusion>
323 <groupId>javax.ws.rs</groupId>
324 <artifactId>jsr311-api</artifactId>
325 </exclusion>
326 <exclusion>
327 <groupId>org.slf4j</groupId>
328 <artifactId>slf4j-ext</artifactId>
329 </exclusion>
sebdet101193d2019-09-05 18:25:59 +0200330 </exclusions>
331 </dependency>
332 <dependency>
sebdet1ccb7072020-03-27 10:40:14 -0700333 <groupId>javax.xml.ws</groupId>
334 <artifactId>jaxws-api</artifactId>
335 <version>2.3.1</version>
336 </dependency>
337 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200338 <groupId>javax.xml.bind</groupId>
339 <artifactId>jaxb-api</artifactId>
340 <version>2.3.0</version>
341 </dependency>
342 <dependency>
343 <groupId>org.glassfish.jersey.core</groupId>
344 <artifactId>jersey-common</artifactId>
345 <version>2.27</version>
346 </dependency>
347 <!-- Spring famework -->
348 <dependency>
349 <groupId>org.springframework.boot</groupId>
350 <artifactId>spring-boot-starter-web</artifactId>
351 <exclusions>
352 <exclusion>
353 <groupId>org.springframework.boot</groupId>
354 <artifactId>spring-boot-starter-json</artifactId>
355 </exclusion>
356 </exclusions>
357 </dependency>
358 <dependency>
359 <groupId>org.springframework.boot</groupId>
360 <artifactId>spring-boot-starter-tomcat</artifactId>
361 </dependency>
362 <dependency>
363 <groupId>org.springframework</groupId>
364 <artifactId>spring-jdbc</artifactId>
365 </dependency>
366 <dependency>
367 <groupId>org.springframework.boot</groupId>
368 <artifactId>spring-boot-starter-security</artifactId>
369 </dependency>
370 <dependency>
371 <groupId>org.springframework.boot</groupId>
372 <artifactId>spring-boot-autoconfigure</artifactId>
373 </dependency>
374 <dependency>
375 <groupId>org.springframework.boot</groupId>
376 <artifactId>spring-boot-starter-test</artifactId>
377 <scope>test</scope>
378 <exclusions>
379 <exclusion>
380 <groupId>com.vaadin.external.google</groupId>
381 <artifactId>android-json</artifactId>
382 </exclusion>
383 </exclusions>
384 </dependency>
385 <dependency>
386 <groupId>org.springframework.boot</groupId>
387 <artifactId>spring-boot-starter-data-jpa</artifactId>
388 </dependency>
389 <!-- Others dependencies -->
390 <dependency>
391 <groupId>org.onap.aaf.authz</groupId>
392 <artifactId>aaf-cadi-aaf</artifactId>
sebdetdcc4bdc2019-10-15 14:04:00 +0200393 <version>2.1.15</version>
sebdet101193d2019-09-05 18:25:59 +0200394 <exclusions>
395 <exclusion>
396 <groupId>javax.servlet</groupId>
397 <artifactId>servlet-api</artifactId>
398 </exclusion>
JulienBead6ab002020-03-23 17:37:33 +0100399 <exclusion>
400 <groupId>log4j</groupId>
401 <artifactId>log4j</artifactId>
402 </exclusion>
sebdet101193d2019-09-05 18:25:59 +0200403 </exclusions>
404 </dependency>
405 <dependency>
406 <groupId>ch.qos.logback</groupId>
407 <artifactId>logback-core</artifactId>
408 <version>1.2.3</version>
409 </dependency>
410 <dependency>
411 <groupId>ch.qos.logback</groupId>
412 <artifactId>logback-classic</artifactId>
413 <version>1.2.3</version>
414 </dependency>
415 <dependency>
416 <groupId>commons-dbcp</groupId>
417 <artifactId>commons-dbcp</artifactId>
418 <version>1.4</version>
419 </dependency>
420 <dependency>
421 <groupId>commons-io</groupId>
422 <artifactId>commons-io</artifactId>
423 <version>2.6</version>
424 </dependency>
425 <dependency>
426 <groupId>com.googlecode.json-simple</groupId>
427 <artifactId>json-simple</artifactId>
428 <version>1.1.1</version>
429 </dependency>
430 <dependency>
431 <groupId>org.apache.commons</groupId>
432 <artifactId>commons-vfs2</artifactId>
433 <version>2.2</version>
434 </dependency>
435 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200436 <groupId>org.slf4j</groupId>
437 <artifactId>slf4j-api</artifactId>
438 </dependency>
439 <dependency>
440 <groupId>javax.ws.rs</groupId>
441 <artifactId>javax.ws.rs-api</artifactId>
442 <version>2.0</version>
443 </dependency>
444 <dependency>
445 <groupId>junit</groupId>
446 <artifactId>junit</artifactId>
447 </dependency>
448 <dependency>
449 <groupId>javax.transaction</groupId>
450 <artifactId>jta</artifactId>
451 <version>1.1</version>
452 </dependency>
453 <dependency>
454 <groupId>javax.persistence</groupId>
455 <artifactId>persistence-api</artifactId>
456 <version>1.0.2</version>
457 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200458 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
459 <dependency>
sebdet5ad6a2f2020-04-27 18:26:28 +0200460 <groupId>org.springframework.security</groupId>
461 <artifactId>spring-security-web</artifactId>
462 <version>5.2.3.RELEASE</version>
463 </dependency>
464 <dependency>
sebdet101193d2019-09-05 18:25:59 +0200465 <groupId>org.codehaus.plexus</groupId>
466 <artifactId>plexus-utils</artifactId>
467 <version>3.0.24</version>
468 </dependency>
469 <dependency>
470 <groupId>org.jboss.spec.javax.ws.rs</groupId>
471 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
472 <version>1.0.1.Final</version>
473 </dependency>
474 <dependency>
475 <groupId>com.google.guava</groupId>
476 <artifactId>guava</artifactId>
477 <version>27.0-jre</version>
478 </dependency>
sebdet5ec88e42020-08-03 15:25:07 +0200479
sebdet101193d2019-09-05 18:25:59 +0200480 <!-- Remove the MYSQL connector and replace it by Mariadb -->
481 <dependency>
482 <groupId>org.mariadb.jdbc</groupId>
483 <artifactId>mariadb-java-client</artifactId>
484 <version>2.2.1</version>
485 </dependency>
486 <!-- For SDC Controller -->
487 <dependency>
488 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
489 <artifactId>sdc-distribution-client</artifactId>
490 <version>1.3.0</version>
491 </dependency>
492 <dependency>
493 <groupId>org.onap.sdc.sdc-tosca</groupId>
494 <artifactId>sdc-tosca</artifactId>
495 <version>1.5.1</version>
sebdet32bfb482020-07-31 18:25:34 +0200496 <exclusions>
497 <exclusion>
498 <groupId>com.fasterxml.jackson.core</groupId>
499 <artifactId>jackson-databind</artifactId>
500 </exclusion>
501 </exclusions>
sebdet101193d2019-09-05 18:25:59 +0200502 </dependency>
sebdet3ed8d432020-03-24 15:49:19 -0700503 <dependency>
504 <groupId>org.yaml</groupId>
505 <artifactId>snakeyaml</artifactId>
506 <version>1.26</version>
507 </dependency>
sebdet3b017732020-04-20 15:30:45 +0200508 <dependency>
509 <groupId>org.dom4j</groupId>
510 <artifactId>dom4j</artifactId>
511 <version>2.1.3</version>
512 </dependency>
513
sebdet101193d2019-09-05 18:25:59 +0200514 <!-- TESTING -->
515 <dependency>
516 <groupId>org.assertj</groupId>
517 <artifactId>assertj-core</artifactId>
518 <version>3.10.0</version>
519 <scope>test</scope>
520 </dependency>
521 <dependency>
522 <groupId>org.mockito</groupId>
523 <artifactId>mockito-core</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100524 <version>2.28.2</version>
525 <scope>test</scope>
526 </dependency>
527 <dependency>
528 <groupId>org.powermock</groupId>
529 <artifactId>powermock-api-mockito2</artifactId>
530 <version>2.0.4</version>
531 <scope>test</scope>
532 </dependency>
533 <dependency>
534 <groupId>org.powermock</groupId>
535 <artifactId>powermock-module-junit4</artifactId>
536 <version>2.0.4</version>
sebdet101193d2019-09-05 18:25:59 +0200537 <scope>test</scope>
538 </dependency>
JulienBe09da64a2020-05-14 17:40:52 +0200539 <dependency>
540 <groupId>com.github.docker-java</groupId>
541 <artifactId>docker-java-core</artifactId>
542 <version>3.2.1</version>
543 <scope>test</scope>
sebdet32bfb482020-07-31 18:25:34 +0200544 <exclusions>
545 <exclusion>
546 <groupId>com.fasterxml.jackson.core</groupId>
547 <artifactId>jackson-databind</artifactId>
548 </exclusion>
549 </exclusions>
JulienBe09da64a2020-05-14 17:40:52 +0200550 </dependency>
551 <dependency>
552 <groupId>com.github.docker-java</groupId>
553 <artifactId>docker-java</artifactId>
554 <version>3.2.1</version>
555 <scope>test</scope>
556 </dependency>
sebdet101193d2019-09-05 18:25:59 +0200557 </dependencies>
558
559 <build>
560 <finalName>clamp</finalName>
561
562 <testResources>
563 <testResource>
sebdet29e3cd12020-02-13 05:49:21 -0800564 <directory>src/main/resources</directory>
565 <filtering>true</filtering>
566 <excludes>
567 <exclude>clds/aaf/**</exclude>
568 </excludes>
569 </testResource>
570 <testResource>
571 <directory>src/main/resources</directory>
572 <filtering>false</filtering>
573 <includes>
574 <include>clds/aaf/**</include>
575 </includes>
576 </testResource>
577 <testResource>
sebdet101193d2019-09-05 18:25:59 +0200578 <directory>src/test/resources</directory>
579 <excludes>
580 <exclude>**/*.jks</exclude>
581 <exclude>**/*.csar</exclude>
582 </excludes>
583 <filtering>true</filtering>
584 </testResource>
585 <testResource>
586 <directory>src/test/resources/https</directory>
587 <includes>
588 <include>**.jks</include>
589 </includes>
590 <filtering>false</filtering>
591 <targetPath>https</targetPath>
592 </testResource>
593 <testResource>
594 <directory>src/test/resources/example/sdc</directory>
595 <includes>
596 <include>**.csar</include>
597 </includes>
598 <filtering>false</filtering>
599 <targetPath>example/sdc</targetPath>
600 </testResource>
601 </testResources>
602 <resources>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500603 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
sebdet101193d2019-09-05 18:25:59 +0200604 they will be broken and unreadable -->
605 <resource>
606 <directory>src/main/resources</directory>
607 <filtering>true</filtering>
608 <excludes>
609 <exclude>clds/aaf/**</exclude>
610 </excludes>
611 </resource>
612 <resource>
613 <directory>src/main/resources</directory>
614 <filtering>false</filtering>
615 <includes>
616 <include>clds/aaf/**</include>
617 </includes>
618 </resource>
619 <resource>
620 <directory>${ui.react.src}</directory>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500621 <excludes>
622 <exclude>node_modules</exclude>
623 </excludes>
sebdet101193d2019-09-05 18:25:59 +0200624 <includes>
625 <include>src/**</include>
626 <include>public/**</include>
627 <include>package.json</include>
628 <include>package-lock.json</include>
629 </includes>
630 <filtering>true</filtering>
631 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
632 </resource>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500633 <resource>
634 <directory>${ui.react.src}</directory>
635 <includes>
636 <include>src/**</include>
637 </includes>
638 <excludes>
639 <exclude>**/__snapshots__/**</exclude>
640 <exclude>**/**.test.js</exclude>
641 </excludes>
642 <filtering>true</filtering>
643 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
644 </resource>
645 <resource>
646 <directory>${ui.react.lib.src}</directory>
647 <includes>
648 <include>**</include>
649 </includes>
650 <excludes>
651 <exclude>node_modules/**</exclude>
652 <exclude>package-lock.json</exclude>
653 </excludes>
654 <filtering>true</filtering>
655 <targetPath>${project.build.directory}/${ui.react.lib.src}</targetPath>
656 </resource>
sebdet101193d2019-09-05 18:25:59 +0200657 </resources>
658
659 <plugins>
660 <plugin>
nrpandya82561262019-11-21 11:51:18 -0600661 <groupId>de.jpdigital</groupId>
662 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
663 <version>2.2.0</version>
sebdet101193d2019-09-05 18:25:59 +0200664 <dependencies>
665 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200666 <groupId>javax.xml.bind</groupId>
667 <artifactId>jaxb-api</artifactId>
668 <version>2.3.0</version>
sebdet101193d2019-09-05 18:25:59 +0200669 </dependency>
670 </dependencies>
671 <executions>
672 <execution>
673 <phase>process-classes</phase>
674 <goals>
675 <goal>gen-ddl</goal>
676 </goals>
sebdete4422002018-10-16 17:47:54 +0200677 <configuration>
sebdet101193d2019-09-05 18:25:59 +0200678 <packages>
nrpandya82561262019-11-21 11:51:18 -0600679 <param>org.onap.clamp</param>
sebdet101193d2019-09-05 18:25:59 +0200680 </packages>
681 <dialects>
682 <param>MARIADB53</param>
683 </dialects>
684 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
685 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
686 <!-- <createDropStatements>true</createDropStatements> -->
687 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdete4422002018-10-16 17:47:54 +0200688 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200689 </execution>
690 </executions>
691
692 </plugin>
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500693 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
sebdet101193d2019-09-05 18:25:59 +0200694 a list of .adoc files containing the APIs info in more structured way -->
695 <plugin>
696 <groupId>io.github.swagger2markup</groupId>
697 <artifactId>swagger2markup-maven-plugin</artifactId>
698 <version>1.3.3</version>
699 <dependencies>
700 <dependency>
701 <groupId>io.github.swagger2markup</groupId>
702 <artifactId>swagger2markup-import-files-ext</artifactId>
703 <version>1.3.3</version>
704 </dependency>
705 <dependency>
706 <groupId>io.github.swagger2markup</groupId>
707 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
708 <version>1.3.3</version>
709 </dependency>
710 </dependencies>
711 <configuration>
712 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
713 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
714 <config>
715 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
716 </config>
717 </configuration>
718 <executions>
719 <execution>
720 <phase>post-integration-test</phase>
721 <goals>
722 <goal>convertSwagger2markup</goal>
723 </goals>
724 </execution>
725 </executions>
726 </plugin>
727
Ted Humphrey01e5fde2020-01-27 18:57:39 -0500728 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
sebdet101193d2019-09-05 18:25:59 +0200729 types, such as PDFs or HTML5 -->
730 <plugin>
731 <groupId>org.asciidoctor</groupId>
732 <artifactId>asciidoctor-maven-plugin</artifactId>
733 <version>1.5.7.1</version>
734 <dependencies>
735 <dependency>
736 <groupId>org.asciidoctor</groupId>
737 <artifactId>asciidoctorj-pdf</artifactId>
738 <version>1.5.0-alpha.10.1</version>
739 </dependency>
740 </dependencies>
741 <configuration>
742 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
743 <sourceDocumentName>swagger.adoc</sourceDocumentName>
744 <attributes>
745 <doctype>book</doctype>
746 <toc>left</toc>
747 <toclevels>3</toclevels>
748 <numbered />
749 <hardbreaks />
750 <sectlinks />
751 <sectanchors />
752 <generated>${project.build.directory}/asciidoc/generated</generated>
753 </attributes>
754 </configuration>
755
756 <executions>
757 <execution>
758 <id>output-html</id>
759 <phase>post-integration-test</phase>
760 <goals>
761 <goal>process-asciidoc</goal>
762 </goals>
763 <configuration>
764 <backend>html5</backend>
765 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
766 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
767 </configuration>
768 </execution>
769 <execution>
770 <id>output-pdf</id>
771 <phase>post-integration-test</phase>
772 <goals>
773 <goal>process-asciidoc</goal>
774 </goals>
775 <configuration>
776 <backend>pdf</backend>
777 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
778 </configuration>
779 </execution>
780 </executions>
781 </plugin>
782 <plugin>
783 <groupId>org.codehaus.groovy.maven</groupId>
784 <artifactId>gmaven-plugin</artifactId>
785 <version>1.0</version>
786 <executions>
787 <execution>
sebdet7a739a52020-03-25 09:11:54 -0700788 <id>docker-tags</id>
sebdet101193d2019-09-05 18:25:59 +0200789 <phase>validate</phase>
790 <goals>
791 <goal>execute</goal>
792 </goals>
793 <configuration>
794 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
795 </configuration>
796 </execution>
sebdetc6622c42019-11-05 18:28:05 +0100797 <execution>
sebdet7a739a52020-03-25 09:11:54 -0700798 <id>npm-repos-selection</id>
sebdetc6622c42019-11-05 18:28:05 +0100799 <phase>validate</phase>
800 <goals>
801 <goal>execute</goal>
802 </goals>
803 <configuration>
804 <source>${project.basedir}/src/main/script/SelectNpmRepo.groovy</source>
805 </configuration>
806 </execution>
807 </executions>
808 </plugin>
809 <plugin>
sebdet101193d2019-09-05 18:25:59 +0200810 <groupId>org.apache.maven.plugins</groupId>
811 <artifactId>maven-jar-plugin</artifactId>
812 <version>3.0.2</version>
813 <executions>
814 <execution>
815 <id>jar-with-only-classes</id>
816 <phase>package</phase>
817 <goals>
818 <goal>jar</goal>
819 </goals>
820 <configuration>
821 <classifier>classes</classifier>
822 <includes>
823 <include>org/**</include>
824 </includes>
825 </configuration>
826 </execution>
827 </executions>
828 </plugin>
829 <plugin>
830 <groupId>org.codehaus.mojo</groupId>
831 <artifactId>build-helper-maven-plugin</artifactId>
832 <version>3.0.0</version>
833 <executions>
834 <execution>
835 <goals>
836 <goal>attach-artifact</goal>
837 </goals>
838 <phase>package</phase>
839 <configuration>
840 <artifacts>
841 <artifact>
842 <file>${project.build.directory}/clamp-classes.jar</file>
843 <type>jar</type>
844 <classifier>classes</classifier>
845 </artifact>
846 </artifacts>
847 </configuration>
848 </execution>
849 <execution>
850 <id>reserve-port-for-tests</id>
851 <phase>process-resources</phase>
852 <goals>
853 <goal>reserve-network-port</goal>
854 </goals>
855 <configuration>
856 <portNames>
857 <portName>docker.mariadb.port.host</portName>
858 <portName>docker.http-cache.port.host</portName>
859 <portName>clamp.it.tests.http-redirected</portName>
JulienBe09da64a2020-05-14 17:40:52 +0200860 <portName>clamp.it.tests.robotframework.http</portName>
sebdet101193d2019-09-05 18:25:59 +0200861 <portName>clamp.it.tests.https</portName>
862 <portName>clamp.it.tests.http</portName>
863 </portNames>
864 </configuration>
865 </execution>
866 </executions>
867 </plugin>
868
869 <plugin>
870 <groupId>org.springframework.boot</groupId>
871 <artifactId>spring-boot-maven-plugin</artifactId>
sebdete65d4572020-03-24 08:51:20 -0700872 <version>${springboot.version}</version>
sebdet101193d2019-09-05 18:25:59 +0200873 <executions>
874 <execution>
875 <goals>
876 <goal>repackage</goal>
877 </goals>
878 <phase>package</phase>
879 </execution>
880 </executions>
881 </plugin>
882 <plugin>
883 <groupId>org.apache.maven.plugins</groupId>
884 <artifactId>maven-surefire-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100885 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200886 <configuration>
887 <forkCount>1C</forkCount>
888 <reuseForks>true</reuseForks>
889 <useSystemClassLoader>false</useSystemClassLoader>
890 <argLine>${surefireArgLine}</argLine>
891 </configuration>
892 </plugin>
893
894 <plugin>
895 <groupId>org.apache.maven.plugins</groupId>
896 <artifactId>maven-failsafe-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100897 <version>2.22.2</version>
sebdet101193d2019-09-05 18:25:59 +0200898 <executions>
899 <execution>
900 <id>integration-tests</id>
901 <goals>
902 <goal>integration-test</goal>
903 <goal>verify</goal>
904 </goals>
905 <configuration>
906 <additionalClasspathElements>
907 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
908 </additionalClasspathElements>
909 <includes>
910 <include>**/*ItCase.java</include>
911 </includes>
sebdetd6f44132020-07-27 17:49:18 +0200912 <forkCount>1</forkCount>
913 <reuseForks>true</reuseForks>
sebdet101193d2019-09-05 18:25:59 +0200914 <useSystemClassLoader>false</useSystemClassLoader>
915 <argLine>${failsafeArgLine}</argLine>
916 </configuration>
917 </execution>
918 </executions>
sebdet101193d2019-09-05 18:25:59 +0200919 </plugin>
920 <plugin>
921 <groupId>io.fabric8</groupId>
922 <artifactId>docker-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +0100923 <version>0.31.0</version>
sebdet101193d2019-09-05 18:25:59 +0200924 <dependencies>
925 <dependency>
926 <groupId>org.apache.httpcomponents</groupId>
927 <artifactId>httpclient</artifactId>
928 <version>4.5.5</version>
929 </dependency>
930 </dependencies>
931 <configuration>
932 <verbose>true</verbose>
933 <apiVersion>1.35</apiVersion>
934 <images>
935 <image>
sebdet32bfb482020-07-31 18:25:34 +0200936 <name>docker.io/mariadb:10.5.4</name>
sebdet101193d2019-09-05 18:25:59 +0200937 <alias>mariadb</alias>
938 <run>
939 <env>
940 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
941 </env>
942 <hostname>mariadb</hostname>
943 <volumes>
944 <bind>
sebdetfdfde212019-09-12 10:59:15 +0200945 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d:rw</volume>
sebdet101193d2019-09-05 18:25:59 +0200946 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
947 </bind>
948 </volumes>
949 <wait>
sebdet32bfb482020-07-31 18:25:34 +0200950 <log>socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
951 <time>300000</time>
sebdetfdfde212019-09-12 10:59:15 +0200952 <exec>
953 <preStop>/docker-entrypoint-initdb.d/dump/backup-data-only.sh</preStop>
954 </exec>
sebdet101193d2019-09-05 18:25:59 +0200955 </wait>
956 <ports>
957 <port>${docker.mariadb.port.host}:3306</port>
958 </ports>
sebdet1b6a4282019-11-05 13:44:53 +0100959 <network>
960 <mode>bridge</mode>
961 </network>
sebdet101193d2019-09-05 18:25:59 +0200962 </run>
963 </image>
964 <image>
sebdetd7698b32020-07-29 16:27:16 +0200965 <name>docker.io/python:2-slim</name>
sebdet101193d2019-09-05 18:25:59 +0200966 <alias>python</alias>
967 <run>
968 <hostname>python</hostname>
969 <volumes>
970 <bind>
971 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
972 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
973 </bind>
974 </volumes>
975 <wait>
976 <tcp>
977 <ports>
978 <port>8080</port>
979 </ports>
980 <mode>direct</mode>
981 </tcp>
982 <time>120000</time>
983 </wait>
984 <ports>
985 <port>${docker.http-cache.port.host}:8080</port>
986 </ports>
987 <workingDir>/usr/src/http-cache-app</workingDir>
988 <cmd>
989 <shell>./start_http_cache.sh ${python.http.proxy.param}
990 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
991 </cmd>
sebdet1b6a4282019-11-05 13:44:53 +0100992 <network>
993 <mode>bridge</mode>
994 </network>
sebdet101193d2019-09-05 18:25:59 +0200995 </run>
996 </image>
997 <image>
998 <name>onap/clamp-backend</name>
999 <alias>onap-clamp-backend</alias>
1000 <run>
1001 <skip>true</skip>
1002 </run>
1003 <build>
1004 <cleanup>true</cleanup>
1005 <tags>
1006 <tag>latest</tag>
1007 <tag>${project.docker.latesttagtimestamp.version}</tag>
1008 <tag>${project.docker.latesttag.version}</tag>
1009 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001010 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001011 default -->
1012 <dockerFile>backend/Dockerfile</dockerFile>
1013 <assembly>
1014 <descriptor>backend/backend-files.xml</descriptor>
1015 <name>onap-clamp-backend</name>
1016 </assembly>
1017 </build>
1018 </image>
1019 <image>
1020 <name>onap/clamp-frontend</name>
1021 <alias>onap-clamp-frontend</alias>
1022 <run>
1023 <skip>true</skip>
1024 </run>
1025 <build>
1026 <cleanup>true</cleanup>
1027 <tags>
1028 <tag>latest</tag>
1029 <tag>${project.docker.latesttagtimestamp.version}</tag>
1030 <tag>${project.docker.latesttag.version}</tag>
1031 </tags>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001032 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
sebdet101193d2019-09-05 18:25:59 +02001033 default -->
1034 <dockerFile>frontend/Dockerfile</dockerFile>
1035 <assembly>
1036 <descriptor>frontend/frontend-files.xml</descriptor>
1037 <name>onap-clamp-frontend</name>
1038 </assembly>
1039 </build>
1040 </image>
sebdet101193d2019-09-05 18:25:59 +02001041 </images>
1042 </configuration>
1043
1044 <executions>
1045 <execution>
1046 <id>generate-images</id>
1047 <phase>install</phase>
1048 <goals>
1049 <goal>build</goal>
1050 </goals>
1051 </execution>
1052 <execution>
1053 <id>push-images</id>
1054 <phase>deploy</phase>
1055 <goals>
1056 <goal>push</goal>
1057 </goals>
1058 </execution>
1059 <execution>
1060 <id>docker-start-for-it</id>
1061 <phase>pre-integration-test</phase>
1062 <goals>
1063 <goal>start</goal>
1064 </goals>
1065 </execution>
1066 <execution>
1067 <id>docker-stop-for-it</id>
1068 <phase>post-integration-test</phase>
1069 <goals>
1070 <goal>stop</goal>
1071 </goals>
1072 </execution>
1073 </executions>
1074 </plugin>
1075
1076 <plugin>
1077 <groupId>org.jacoco</groupId>
1078 <artifactId>jacoco-maven-plugin</artifactId>
sebdet1b6a4282019-11-05 13:44:53 +01001079 <version>0.8.5</version>
sebdet101193d2019-09-05 18:25:59 +02001080 <configuration>
1081 <dumpOnExit>true</dumpOnExit>
1082 <append>true</append>
1083 <includes>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001084 <include>org/onap/clamp/**</include>
sebdet101193d2019-09-05 18:25:59 +02001085 </includes>
1086 </configuration>
1087 <executions>
1088 <execution>
1089 <id>pre-unit-test</id>
1090 <goals>
1091 <goal>prepare-agent</goal>
1092 </goals>
1093 <configuration>
1094 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1095 <propertyName>surefireArgLine</propertyName>
1096 <!-- <append>true</append> -->
1097 </configuration>
1098 </execution>
1099 <execution>
1100 <id>pre-integration-test</id>
1101 <phase>pre-integration-test</phase>
1102 <goals>
1103 <goal>prepare-agent</goal>
1104 </goals>
1105 <configuration>
1106 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1107 <propertyName>failsafeArgLine</propertyName>
1108 <!-- <append>true</append> -->
1109 </configuration>
1110 </execution>
1111 <execution>
1112 <goals>
1113 <goal>merge</goal>
1114 </goals>
1115 <phase>post-integration-test</phase>
1116 <configuration>
1117 <fileSets>
1118 <fileSet
1119 implementation="org.apache.maven.shared.model.fileset.FileSet">
1120 <directory>${project.build.directory}/coverage-reports</directory>
1121 <includes>
1122 <include>*.exec</include>
1123 </includes>
1124 </fileSet>
1125 </fileSets>
sebdetf332e2e2020-01-24 13:49:49 +01001126 <destFile>${project.build.directory}/jacoco.exec</destFile>
sebdet101193d2019-09-05 18:25:59 +02001127 </configuration>
1128 </execution>
sebdet749c0f12020-01-23 13:35:34 +01001129 <execution>
sebdetf332e2e2020-01-24 13:49:49 +01001130 <id>report-xml</id>
sebdet749c0f12020-01-23 13:35:34 +01001131 <goals>
1132 <goal>report</goal>
1133 </goals>
sebdet749c0f12020-01-23 13:35:34 +01001134 <configuration>
ChrisC4c4c3fd2020-01-27 14:54:56 +01001135 <!-- Setting explicit path, so that we remember where it picks them up from -->
1136 <dataFile>${project.build.directory}/jacoco.exec</dataFile>
1137 <outputDirectory>${project.build.directory}/jacoco-html-xml-reports</outputDirectory>
sebdet749c0f12020-01-23 13:35:34 +01001138 </configuration>
1139 </execution>
sebdet101193d2019-09-05 18:25:59 +02001140 </executions>
1141 </plugin>
1142
1143 <!-- This plugin will be useful when we will have multi-modules project -->
1144 <plugin>
1145 <groupId>org.codehaus.mojo</groupId>
1146 <artifactId>versions-maven-plugin</artifactId>
1147 <version>1.3.1</version>
1148 </plugin>
1149
1150 <plugin>
1151 <groupId>com.github.eirslett</groupId>
1152 <artifactId>frontend-maven-plugin</artifactId>
1153 <version>1.8.0</version>
1154 <configuration>
1155 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
sebdet101193d2019-09-05 18:25:59 +02001156 </configuration>
1157 <executions>
1158 <execution>
1159 <id>install_node_and_npm</id>
1160 <goals>
1161 <goal>install-node-and-npm</goal>
1162 </goals>
1163 <phase>generate-sources</phase>
1164 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001165 <nodeVersion>v12.13.0</nodeVersion>
1166 <npmVersion>6.13.0</npmVersion>
sebdet101193d2019-09-05 18:25:59 +02001167 </configuration>
1168 </execution>
1169 <execution>
1170 <id>npm_install</id>
1171 <goals>
1172 <goal>npm</goal>
1173 </goals>
1174 <phase>compile</phase>
1175 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001176 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
sebdet996071f2019-10-25 13:25:57 +02001177 <arguments>install</arguments>
sebdet101193d2019-09-05 18:25:59 +02001178 </configuration>
1179 </execution>
1180 <execution>
1181 <id>npm_test</id>
1182 <goals>
1183 <goal>npm</goal>
1184 </goals>
1185 <phase>test</phase>
1186 <configuration>
sebdet2dd4e992020-03-04 15:47:39 -08001187 <skip>${maven.test.skip}</skip>
sebdet101193d2019-09-05 18:25:59 +02001188 <arguments>run-script test:coverage</arguments>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001189 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1190 </configuration>
1191 </execution>
1192 <execution>
1193 <id>npm_install_lib</id>
1194 <goals>
1195 <goal>npm</goal>
1196 </goals>
1197 <phase>deploy</phase>
1198 <configuration>
1199 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1200 <arguments>install</arguments>
1201 </configuration>
1202 </execution>
1203 <execution>
1204 <id>npm_build_lib</id>
1205 <goals>
1206 <goal>npm</goal>
1207 </goals>
1208 <phase>deploy</phase>
1209 <configuration>
1210 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
1211 <arguments>run build</arguments>
sebdet101193d2019-09-05 18:25:59 +02001212 </configuration>
1213 </execution>
1214 <execution>
1215 <id>npm_publish</id>
1216 <goals>
1217 <goal>npm</goal>
1218 </goals>
1219 <phase>deploy</phase>
1220 <configuration>
Ted Humphrey01e5fde2020-01-27 18:57:39 -05001221 <workingDirectory>${project.build.directory}/${ui.react.lib.src}</workingDirectory>
sebdetdd107682019-11-13 13:13:07 +01001222 <arguments>publish</arguments>
sebdet101193d2019-09-05 18:25:59 +02001223 </configuration>
1224 </execution>
1225 </executions>
1226 </plugin>
sebdet1b6a4282019-11-05 13:44:53 +01001227 <plugin>
1228 <groupId>org.apache.maven.plugins</groupId>
1229 <artifactId>maven-compiler-plugin</artifactId>
1230 <version>3.8.1</version>
1231 <configuration>
sebdete17bc1b2019-11-18 17:57:32 +01001232 <source>11</source>
1233 <target>11</target>
sebdet1b6a4282019-11-05 13:44:53 +01001234 </configuration>
1235 </plugin>
sebdetd07b6502019-11-08 13:49:44 +01001236 <plugin>
1237 <groupId>org.sonarsource.scanner.maven</groupId>
1238 <artifactId>sonar-maven-plugin</artifactId>
1239 <version>3.7.0.1746</version>
1240 </plugin>
Ted Humphreyfd8f0132020-06-02 09:39:30 -04001241 <plugin>
1242 <groupId>org.codehaus.mojo</groupId>
1243 <artifactId>exec-maven-plugin</artifactId>
1244 <version>1.3.2</version>
1245 <executions>
1246 <execution>
1247 <id>libIndexCheck</id>
1248 <phase>validate</phase>
1249 <goals>
1250 <goal>exec</goal>
1251 </goals>
1252 </execution>
1253 </executions>
1254 <configuration>
1255 <executable>bash</executable>
1256 <arguments>
1257 <argument>${project.basedir}/src/main/script/checkLibIndex.sh</argument>
1258 </arguments>
1259 </configuration>
1260 </plugin>
sebdet101193d2019-09-05 18:25:59 +02001261 </plugins>
1262 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001263</project>