blob: cc6e528fdd55016dd8ddf1fc7b79595480670a2f [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>
29 <version>4.1.1-SNAPSHOT</version>
30 <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>
36 <version>2.0.0</version>
37 </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)
42
43 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)
56
57 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>
78 <maven.compiler.source>1.8</maven.compiler.source>
79 <maven.compiler.target>1.8</maven.compiler.target>
80 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
81 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070082
sebdet101193d2019-09-05 18:25:59 +020083 <eelf.core.version>1.0.0</eelf.core.version>
84 <camel.version>2.24.0</camel.version>
85 <springboot.version>2.1.5.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070086
sebdet101193d2019-09-05 18:25:59 +020087 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
88 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
89 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
90 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
91 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
92 <sonar.projectVersion>${project.version}</sonar.projectVersion>
93 <!-- Enable language to disable javascript analysis -->
94 <!-- <sonar.language>java</sonar.language> -->
95 <!-- Parameters for Javascript coverage -->
96 <sonar.sources>src/main,${project.build.directory}/${ui.react.src}</sonar.sources>
97 <sonar.javascript.lcov.reportPaths>${project.build.directory}/${ui.react.src}/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +010098
sebdet101193d2019-09-05 18:25:59 +020099 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
ChrisC5e9feb22017-06-21 02:38:57 -0700100
sebdet101193d2019-09-05 18:25:59 +0200101 <docker.push.registry>localhost:5000</docker.push.registry>
102 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
103 <docker.skip.build>true</docker.skip.build>
104 <docker.skip.push>true</docker.skip.push>
105 <docker.skip.tag>true</docker.skip.tag>
106 <skip.staging.artifacts>false</skip.staging.artifacts>
107 <python.http.proxy.param />
108 <tomcat.version>9.0.20</tomcat.version>
109 <ui.react.src>ui-react</ui.react.src>
110 <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
111 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -0700112
sebdet101193d2019-09-05 18:25:59 +0200113 <profiles>
114 <profile>
115 <id>without-test</id>
116 <activation>
117 <property>
118 <name>maven.test.skip</name>
119 <value>true</value>
120 </property>
121 </activation>
122 <properties>
123 <docker.skip.run>true</docker.skip.run>
124 <docker.skip>true</docker.skip>
125 </properties>
126 </profile>
127 <profile>
128 <id>without-IT-only</id>
129 <activation>
130 <property>
131 <name>skipITs</name>
132 <value>true</value>
133 </property>
134 </activation>
135 <properties>
136 <docker.skip.run>true</docker.skip.run>
137 <docker.skip>true</docker.skip>
138 </properties>
139 </profile>
140 <profile>
141 <id>without-IT-only2</id>
142 <activation>
143 <property>
144 <name>skipTests</name>
145 <value>true</value>
146 </property>
147 </activation>
148 <properties>
149 <docker.skip.run>true</docker.skip.run>
150 <docker.skip>true</docker.skip>
151 </properties>
152 </profile>
153 <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>
264 </dependency>
265 <dependency>
266 <groupId>org.apache.xmlgraphics</groupId>
267 <artifactId>batik-svg-dom</artifactId>
268 <version>1.11</version>
269 </dependency>
270 <dependency>
271 <groupId>org.apache.xmlgraphics</groupId>
272 <artifactId>batik-transcoder</artifactId>
273 <version>1.11</version>
274 </dependency>
275 <dependency>
276 <groupId>com.att.eelf</groupId>
277 <artifactId>eelf-core</artifactId>
278 <version>${eelf.core.version}</version>
279 </dependency>
280 <dependency>
281 <groupId>org.codehaus.janino</groupId>
282 <artifactId>janino</artifactId>
283 <version>3.0.8</version>
284 </dependency>
285 <dependency>
286 <groupId>org.apache.tomcat.embed</groupId>
287 <artifactId>tomcat-embed-core</artifactId>
288 <version>${tomcat.version}</version>
289 </dependency>
290 <dependency>
291 <groupId>org.apache.tomcat.embed</groupId>
292 <artifactId>tomcat-embed-el</artifactId>
293 <version>${tomcat.version}</version>
294 </dependency>
295 <dependency>
296 <groupId>org.apache.tomcat.embed</groupId>
297 <artifactId>tomcat-embed-websocket</artifactId>
298 <version>${tomcat.version}</version>
299 </dependency>
300 <dependency>
301 <groupId>org.apache.tomcat</groupId>
302 <artifactId>tomcat-annotations-api</artifactId>
303 <version>${tomcat.version}</version>
304 </dependency>
305 <!-- For CAMEL -->
306 <dependency>
307 <groupId>org.apache.camel</groupId>
308 <artifactId>camel-http4-starter</artifactId>
309 </dependency>
310 <dependency>
311 <groupId>org.apache.camel</groupId>
312 <artifactId>camel-spring-boot-starter</artifactId>
313 </dependency>
314 <dependency>
315 <groupId>org.apache.camel</groupId>
316 <artifactId>camel-jaxb-starter</artifactId>
317 </dependency>
318 <dependency>
319 <groupId>org.apache.camel</groupId>
320 <artifactId>camel-servlet-starter</artifactId>
321 </dependency>
322 <dependency>
323 <groupId>org.apache.camel</groupId>
324 <artifactId>camel-gson-starter</artifactId>
325 </dependency>
326 <dependency>
327 <groupId>org.apache.camel</groupId>
328 <artifactId>camel-swagger-java-starter</artifactId>
329 <exclusions>
330 <exclusion>
331 <groupId>javax.ws.rs</groupId>
332 <artifactId>jsr311-api</artifactId>
333 </exclusion>
334 <exclusion>
335 <groupId>org.slf4j</groupId>
336 <artifactId>slf4j-ext</artifactId>
337 </exclusion>
338 <exclusion>
339 <groupId>com.fasterxml.jackson.core</groupId>
340 <artifactId>jackson-databind</artifactId>
341 </exclusion>
342 </exclusions>
343 </dependency>
344 <dependency>
345 <groupId>javax.xml.bind</groupId>
346 <artifactId>jaxb-api</artifactId>
347 <version>2.3.0</version>
348 </dependency>
349 <dependency>
350 <groupId>org.glassfish.jersey.core</groupId>
351 <artifactId>jersey-common</artifactId>
352 <version>2.27</version>
353 </dependency>
354 <!-- Spring famework -->
355 <dependency>
356 <groupId>org.springframework.boot</groupId>
357 <artifactId>spring-boot-starter-web</artifactId>
358 <exclusions>
359 <exclusion>
360 <groupId>org.springframework.boot</groupId>
361 <artifactId>spring-boot-starter-json</artifactId>
362 </exclusion>
363 </exclusions>
364 </dependency>
365 <dependency>
366 <groupId>org.springframework.boot</groupId>
367 <artifactId>spring-boot-starter-tomcat</artifactId>
368 </dependency>
369 <dependency>
370 <groupId>org.springframework</groupId>
371 <artifactId>spring-jdbc</artifactId>
372 </dependency>
373 <dependency>
374 <groupId>org.springframework.boot</groupId>
375 <artifactId>spring-boot-starter-security</artifactId>
376 </dependency>
377 <dependency>
378 <groupId>org.springframework.boot</groupId>
379 <artifactId>spring-boot-autoconfigure</artifactId>
380 </dependency>
381 <dependency>
382 <groupId>org.springframework.boot</groupId>
383 <artifactId>spring-boot-starter-test</artifactId>
384 <scope>test</scope>
385 <exclusions>
386 <exclusion>
387 <groupId>com.vaadin.external.google</groupId>
388 <artifactId>android-json</artifactId>
389 </exclusion>
390 </exclusions>
391 </dependency>
392 <dependency>
393 <groupId>org.springframework.boot</groupId>
394 <artifactId>spring-boot-starter-data-jpa</artifactId>
395 </dependency>
396 <!-- Others dependencies -->
397 <dependency>
398 <groupId>org.onap.aaf.authz</groupId>
399 <artifactId>aaf-cadi-aaf</artifactId>
400 <version>2.1.10</version>
401 <exclusions>
402 <exclusion>
403 <groupId>javax.servlet</groupId>
404 <artifactId>servlet-api</artifactId>
405 </exclusion>
406 </exclusions>
407 </dependency>
408 <dependency>
409 <groupId>ch.qos.logback</groupId>
410 <artifactId>logback-core</artifactId>
411 <version>1.2.3</version>
412 </dependency>
413 <dependency>
414 <groupId>ch.qos.logback</groupId>
415 <artifactId>logback-classic</artifactId>
416 <version>1.2.3</version>
417 </dependency>
418 <dependency>
419 <groupId>commons-dbcp</groupId>
420 <artifactId>commons-dbcp</artifactId>
421 <version>1.4</version>
422 </dependency>
423 <dependency>
424 <groupId>commons-io</groupId>
425 <artifactId>commons-io</artifactId>
426 <version>2.6</version>
427 </dependency>
428 <dependency>
429 <groupId>com.googlecode.json-simple</groupId>
430 <artifactId>json-simple</artifactId>
431 <version>1.1.1</version>
432 </dependency>
433 <dependency>
434 <groupId>org.apache.commons</groupId>
435 <artifactId>commons-vfs2</artifactId>
436 <version>2.2</version>
437 </dependency>
438 <dependency>
439 <groupId>joda-time</groupId>
440 <artifactId>joda-time</artifactId>
441 </dependency>
442 <dependency>
443 <groupId>org.slf4j</groupId>
444 <artifactId>slf4j-api</artifactId>
445 </dependency>
446 <dependency>
447 <groupId>javax.ws.rs</groupId>
448 <artifactId>javax.ws.rs-api</artifactId>
449 <version>2.0</version>
450 </dependency>
451 <dependency>
452 <groupId>junit</groupId>
453 <artifactId>junit</artifactId>
454 </dependency>
455 <dependency>
456 <groupId>javax.transaction</groupId>
457 <artifactId>jta</artifactId>
458 <version>1.1</version>
459 </dependency>
460 <dependency>
461 <groupId>javax.persistence</groupId>
462 <artifactId>persistence-api</artifactId>
463 <version>1.0.2</version>
464 </dependency>
465 <dependency>
466 <groupId>org.onap.policy.engine</groupId>
467 <artifactId>PolicyEngineAPI</artifactId>
468 <version>1.3.3</version>
469 <exclusions>
470 <exclusion>
471 <groupId>com.google.guava</groupId>
472 <artifactId>guava</artifactId>
473 </exclusion>
474 <exclusion>
475 <artifactId>log4j</artifactId>
476 <groupId>log4j</groupId>
477 </exclusion>
478 <exclusion>
479 <groupId>org.slf4j</groupId>
480 <artifactId>slf4j-log4j12</artifactId>
481 </exclusion>
482 <exclusion>
483 <artifactId>apache-log4j-extras</artifactId>
484 <groupId>log4j</groupId>
485 </exclusion>
486 <exclusion>
487 <groupId>mysql</groupId>
488 <artifactId>mysql-connector-java</artifactId>
489 </exclusion>
490 <exclusion>
491 <groupId>commons-io</groupId>
492 <artifactId>commons-io</artifactId>
493 </exclusion>
494 <exclusion>
495 <artifactId>grizzly-http-server</artifactId>
496 <groupId>org.glassfish.grizzly</groupId>
497 </exclusion>
498 <exclusion>
499 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
500 <artifactId>dmaapClient</artifactId>
501 </exclusion>
502 <exclusion>
503 <groupId>org.onap.policy.common</groupId>
504 <artifactId>integrity-monitor</artifactId>
505 </exclusion>
506 <exclusion>
507 <groupId>org.onap.policy.common</groupId>
508 <artifactId>integrity-audit</artifactId>
509 </exclusion>
510 <exclusion>
511 <groupId>com.fasterxml.jackson.core</groupId>
512 <artifactId>jackson-databind</artifactId>
513 </exclusion>
514 <exclusion>
515 <groupId>org.onap.aaf.cadi</groupId>
516 <artifactId>cadi-aaf</artifactId>
517 </exclusion>
518 <exclusion>
519 <groupId>javax.jms</groupId>
520 <artifactId>jms</artifactId>
521 </exclusion>
522 <exclusion>
523 <groupId>commons-fileupload</groupId>
524 <artifactId>commons-fileupload</artifactId>
525 </exclusion>
526 <exclusion>
527 <groupId>com.att.research.xacml</groupId>
528 <artifactId>xacml</artifactId>
529 </exclusion>
530 </exclusions>
531 </dependency>
532 <dependency>
533 <groupId>org.onap.policy.common</groupId>
534 <artifactId>ONAP-Logging</artifactId>
535 <version>1.2.3</version>
536 <exclusions>
537 <exclusion>
538 <artifactId>log4j</artifactId>
539 <groupId>log4j</groupId>
540 </exclusion>
541 <exclusion>
542 <groupId>org.slf4j</groupId>
543 <artifactId>slf4j-log4j12</artifactId>
544 </exclusion>
545 <exclusion>
546 <artifactId>apache-log4j-extras</artifactId>
547 <groupId>log4j</groupId>
548 </exclusion>
549 </exclusions>
550 </dependency>
551 <dependency>
552 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
553 <artifactId>policy-yaml</artifactId>
554 <version>1.2.3</version>
555 <exclusions>
556 <exclusion>
557 <artifactId>log4j</artifactId>
558 <groupId>log4j</groupId>
559 </exclusion>
560 <exclusion>
561 <groupId>org.slf4j</groupId>
562 <artifactId>slf4j-log4j12</artifactId>
563 </exclusion>
564 <exclusion>
565 <artifactId>apache-log4j-extras</artifactId>
566 <groupId>log4j</groupId>
567 </exclusion>
568 </exclusions>
569 </dependency>
570 <dependency>
571 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
572 <artifactId>sdc</artifactId>
573 <version>1.2.3</version>
574 <exclusions>
575 <exclusion>
576 <artifactId>log4j</artifactId>
577 <groupId>log4j</groupId>
578 </exclusion>
579 <exclusion>
580 <groupId>org.slf4j</groupId>
581 <artifactId>slf4j-log4j12</artifactId>
582 </exclusion>
583 <exclusion>
584 <artifactId>apache-log4j-extras</artifactId>
585 <groupId>log4j</groupId>
586 </exclusion>
587 </exclusions>
588 </dependency>
589 <dependency>
590 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
591 <artifactId>aai</artifactId>
592 <version>1.2.3</version>
593 <exclusions>
594 <exclusion>
595 <artifactId>log4j</artifactId>
596 <groupId>log4j</groupId>
597 </exclusion>
598 <exclusion>
599 <groupId>org.slf4j</groupId>
600 <artifactId>slf4j-log4j12</artifactId>
601 </exclusion>
602 <exclusion>
603 <artifactId>apache-log4j-extras</artifactId>
604 <groupId>log4j</groupId>
605 </exclusion>
606 </exclusions>
607 </dependency>
608 <dependency>
609 <groupId>org.apache.commons</groupId>
610 <artifactId>commons-csv</artifactId>
611 <version>1.3</version>
612 </dependency>
613 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
614 <dependency>
615 <groupId>org.codehaus.plexus</groupId>
616 <artifactId>plexus-utils</artifactId>
617 <version>3.0.24</version>
618 </dependency>
619 <dependency>
620 <groupId>org.jboss.spec.javax.ws.rs</groupId>
621 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
622 <version>1.0.1.Final</version>
623 </dependency>
624 <dependency>
625 <groupId>com.google.guava</groupId>
626 <artifactId>guava</artifactId>
627 <version>27.0-jre</version>
628 </dependency>
629 <!-- Remove the MYSQL connector and replace it by Mariadb -->
630 <dependency>
631 <groupId>org.mariadb.jdbc</groupId>
632 <artifactId>mariadb-java-client</artifactId>
633 <version>2.2.1</version>
634 </dependency>
635 <!-- For SDC Controller -->
636 <dependency>
637 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
638 <artifactId>sdc-distribution-client</artifactId>
639 <version>1.3.0</version>
640 </dependency>
641 <dependency>
642 <groupId>org.onap.sdc.sdc-tosca</groupId>
643 <artifactId>sdc-tosca</artifactId>
644 <version>1.5.1</version>
645 </dependency>
646 <!-- TESTING -->
647 <dependency>
648 <groupId>org.assertj</groupId>
649 <artifactId>assertj-core</artifactId>
650 <version>3.10.0</version>
651 <scope>test</scope>
652 </dependency>
653 <dependency>
654 <groupId>org.mockito</groupId>
655 <artifactId>mockito-core</artifactId>
656 <version>1.10.19</version>
657 <scope>test</scope>
658 </dependency>
659 </dependencies>
660
661 <build>
662 <finalName>clamp</finalName>
663
664 <testResources>
665 <testResource>
666 <directory>src/test/resources</directory>
667 <excludes>
668 <exclude>**/*.jks</exclude>
669 <exclude>**/*.csar</exclude>
670 </excludes>
671 <filtering>true</filtering>
672 </testResource>
673 <testResource>
674 <directory>src/test/resources/https</directory>
675 <includes>
676 <include>**.jks</include>
677 </includes>
678 <filtering>false</filtering>
679 <targetPath>https</targetPath>
680 </testResource>
681 <testResource>
682 <directory>src/test/resources/example/sdc</directory>
683 <includes>
684 <include>**.csar</include>
685 </includes>
686 <filtering>false</filtering>
687 <targetPath>example/sdc</targetPath>
688 </testResource>
689 </testResources>
690 <resources>
691 <!-- For AAF folder maven should not try to filter Keystores/Truststores ... Otherwise
692 they will be broken and unreadable -->
693 <resource>
694 <directory>src/main/resources</directory>
695 <filtering>true</filtering>
696 <excludes>
697 <exclude>clds/aaf/**</exclude>
698 </excludes>
699 </resource>
700 <resource>
701 <directory>src/main/resources</directory>
702 <filtering>false</filtering>
703 <includes>
704 <include>clds/aaf/**</include>
705 </includes>
706 </resource>
707 <resource>
708 <directory>${ui.react.src}</directory>
709 <includes>
710 <include>src/**</include>
711 <include>public/**</include>
712 <include>package.json</include>
713 <include>package-lock.json</include>
714 </includes>
715 <filtering>true</filtering>
716 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
717 </resource>
718 </resources>
719
720 <plugins>
721 <plugin>
722 <groupId>de.jpdigital</groupId>
723 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
724 <version>2.2.0</version>
725 <dependencies>
726 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200727 <groupId>javax.xml.bind</groupId>
728 <artifactId>jaxb-api</artifactId>
729 <version>2.3.0</version>
sebdet101193d2019-09-05 18:25:59 +0200730 </dependency>
731 </dependencies>
732 <executions>
733 <execution>
734 <phase>process-classes</phase>
735 <goals>
736 <goal>gen-ddl</goal>
737 </goals>
sebdete4422002018-10-16 17:47:54 +0200738 <configuration>
sebdet101193d2019-09-05 18:25:59 +0200739 <packages>
740 <param>org.onap.clamp.dao.model</param>
741 </packages>
742 <dialects>
743 <param>MARIADB53</param>
744 </dialects>
745 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
746 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
747 <!-- <createDropStatements>true</createDropStatements> -->
748 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdete4422002018-10-16 17:47:54 +0200749 </configuration>
sebdet101193d2019-09-05 18:25:59 +0200750 </execution>
751 </executions>
752
753 </plugin>
754 <!-- Read the swagger.json file and the definition from SwaggerConfig.java; generate
755 a list of .adoc files containing the APIs info in more structured way -->
756 <plugin>
757 <groupId>io.github.swagger2markup</groupId>
758 <artifactId>swagger2markup-maven-plugin</artifactId>
759 <version>1.3.3</version>
760 <dependencies>
761 <dependency>
762 <groupId>io.github.swagger2markup</groupId>
763 <artifactId>swagger2markup-import-files-ext</artifactId>
764 <version>1.3.3</version>
765 </dependency>
766 <dependency>
767 <groupId>io.github.swagger2markup</groupId>
768 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
769 <version>1.3.3</version>
770 </dependency>
771 </dependencies>
772 <configuration>
773 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
774 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
775 <config>
776 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
777 </config>
778 </configuration>
779 <executions>
780 <execution>
781 <phase>post-integration-test</phase>
782 <goals>
783 <goal>convertSwagger2markup</goal>
784 </goals>
785 </execution>
786 </executions>
787 </plugin>
788
789 <!-- Run the generated asciidoc through Asciidoctor to generate other documentation
790 types, such as PDFs or HTML5 -->
791 <plugin>
792 <groupId>org.asciidoctor</groupId>
793 <artifactId>asciidoctor-maven-plugin</artifactId>
794 <version>1.5.7.1</version>
795 <dependencies>
796 <dependency>
797 <groupId>org.asciidoctor</groupId>
798 <artifactId>asciidoctorj-pdf</artifactId>
799 <version>1.5.0-alpha.10.1</version>
800 </dependency>
801 </dependencies>
802 <configuration>
803 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
804 <sourceDocumentName>swagger.adoc</sourceDocumentName>
805 <attributes>
806 <doctype>book</doctype>
807 <toc>left</toc>
808 <toclevels>3</toclevels>
809 <numbered />
810 <hardbreaks />
811 <sectlinks />
812 <sectanchors />
813 <generated>${project.build.directory}/asciidoc/generated</generated>
814 </attributes>
815 </configuration>
816
817 <executions>
818 <execution>
819 <id>output-html</id>
820 <phase>post-integration-test</phase>
821 <goals>
822 <goal>process-asciidoc</goal>
823 </goals>
824 <configuration>
825 <backend>html5</backend>
826 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
827 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
828 </configuration>
829 </execution>
830 <execution>
831 <id>output-pdf</id>
832 <phase>post-integration-test</phase>
833 <goals>
834 <goal>process-asciidoc</goal>
835 </goals>
836 <configuration>
837 <backend>pdf</backend>
838 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
839 </configuration>
840 </execution>
841 </executions>
842 </plugin>
843 <plugin>
844 <groupId>org.codehaus.groovy.maven</groupId>
845 <artifactId>gmaven-plugin</artifactId>
846 <version>1.0</version>
847 <executions>
848 <execution>
849 <phase>validate</phase>
850 <goals>
851 <goal>execute</goal>
852 </goals>
853 <configuration>
854 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
855 </configuration>
856 </execution>
857 </executions>
858 </plugin>
859 <plugin>
860 <groupId>org.apache.maven.plugins</groupId>
861 <artifactId>maven-jar-plugin</artifactId>
862 <version>3.0.2</version>
863 <executions>
864 <execution>
865 <id>jar-with-only-classes</id>
866 <phase>package</phase>
867 <goals>
868 <goal>jar</goal>
869 </goals>
870 <configuration>
871 <classifier>classes</classifier>
872 <includes>
873 <include>org/**</include>
874 </includes>
875 </configuration>
876 </execution>
877 </executions>
878 </plugin>
879 <plugin>
880 <groupId>org.codehaus.mojo</groupId>
881 <artifactId>build-helper-maven-plugin</artifactId>
882 <version>3.0.0</version>
883 <executions>
884 <execution>
885 <goals>
886 <goal>attach-artifact</goal>
887 </goals>
888 <phase>package</phase>
889 <configuration>
890 <artifacts>
891 <artifact>
892 <file>${project.build.directory}/clamp-classes.jar</file>
893 <type>jar</type>
894 <classifier>classes</classifier>
895 </artifact>
896 </artifacts>
897 </configuration>
898 </execution>
899 <execution>
900 <id>reserve-port-for-tests</id>
901 <phase>process-resources</phase>
902 <goals>
903 <goal>reserve-network-port</goal>
904 </goals>
905 <configuration>
906 <portNames>
907 <portName>docker.mariadb.port.host</portName>
908 <portName>docker.http-cache.port.host</portName>
909 <portName>clamp.it.tests.http-redirected</portName>
910 <portName>clamp.it.tests.https</portName>
911 <portName>clamp.it.tests.http</portName>
912 </portNames>
913 </configuration>
914 </execution>
915 </executions>
916 </plugin>
917
918 <plugin>
919 <groupId>org.springframework.boot</groupId>
920 <artifactId>spring-boot-maven-plugin</artifactId>
921 <!-- Temporary fix -->
922 <version>1.5.13.RELEASE</version>
923 <!-- <version>${springboot.version}</version> -->
924 <executions>
925 <execution>
926 <goals>
927 <goal>repackage</goal>
928 </goals>
929 <phase>package</phase>
930 </execution>
931 </executions>
932 </plugin>
933 <plugin>
934 <groupId>org.apache.maven.plugins</groupId>
935 <artifactId>maven-surefire-plugin</artifactId>
936 <version>2.22.1</version>
937 <configuration>
938 <forkCount>1C</forkCount>
939 <reuseForks>true</reuseForks>
940 <useSystemClassLoader>false</useSystemClassLoader>
941 <argLine>${surefireArgLine}</argLine>
942 </configuration>
943 </plugin>
944
945 <plugin>
946 <groupId>org.apache.maven.plugins</groupId>
947 <artifactId>maven-failsafe-plugin</artifactId>
948 <version>2.22.1</version>
949 <executions>
950 <execution>
951 <id>integration-tests</id>
952 <goals>
953 <goal>integration-test</goal>
954 <goal>verify</goal>
955 </goals>
956 <configuration>
957 <additionalClasspathElements>
958 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
959 </additionalClasspathElements>
960 <includes>
961 <include>**/*ItCase.java</include>
962 </includes>
963 <forkCount>1</forkCount>
964 <reuseForks>true</reuseForks>
965 <useSystemClassLoader>false</useSystemClassLoader>
966 <argLine>${failsafeArgLine}</argLine>
967 </configuration>
968 </execution>
969 </executions>
970
971 </plugin>
972 <plugin>
973 <groupId>io.fabric8</groupId>
974 <artifactId>docker-maven-plugin</artifactId>
975 <version>0.27.2</version>
976 <dependencies>
977 <dependency>
978 <groupId>org.apache.httpcomponents</groupId>
979 <artifactId>httpclient</artifactId>
980 <version>4.5.5</version>
981 </dependency>
982 </dependencies>
983 <configuration>
984 <verbose>true</verbose>
985 <apiVersion>1.35</apiVersion>
986 <images>
987 <image>
988 <name>library/mariadb:10.3.12</name>
989 <alias>mariadb</alias>
990 <run>
991 <env>
992 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
993 </env>
994 <hostname>mariadb</hostname>
995 <volumes>
996 <bind>
997 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
998 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
999 </bind>
1000 </volumes>
1001 <wait>
1002 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
1003 <time>600000</time>
1004 </wait>
1005 <ports>
1006 <port>${docker.mariadb.port.host}:3306</port>
1007 </ports>
1008 </run>
1009 </image>
1010 <image>
1011 <name>library/python:2-slim</name>
1012 <alias>python</alias>
1013 <run>
1014 <hostname>python</hostname>
1015 <volumes>
1016 <bind>
1017 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
1018 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
1019 </bind>
1020 </volumes>
1021 <wait>
1022 <tcp>
1023 <ports>
1024 <port>8080</port>
1025 </ports>
1026 <mode>direct</mode>
1027 </tcp>
1028 <time>120000</time>
1029 </wait>
1030 <ports>
1031 <port>${docker.http-cache.port.host}:8080</port>
1032 </ports>
1033 <workingDir>/usr/src/http-cache-app</workingDir>
1034 <cmd>
1035 <shell>./start_http_cache.sh ${python.http.proxy.param}
1036 --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
1037 </cmd>
1038 </run>
1039 </image>
1040 <image>
1041 <name>onap/clamp-backend</name>
1042 <alias>onap-clamp-backend</alias>
1043 <run>
1044 <skip>true</skip>
1045 </run>
1046 <build>
1047 <cleanup>true</cleanup>
1048 <tags>
1049 <tag>latest</tag>
1050 <tag>${project.docker.latesttagtimestamp.version}</tag>
1051 <tag>${project.docker.latesttag.version}</tag>
1052 </tags>
1053 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1054 default -->
1055 <dockerFile>backend/Dockerfile</dockerFile>
1056 <assembly>
1057 <descriptor>backend/backend-files.xml</descriptor>
1058 <name>onap-clamp-backend</name>
1059 </assembly>
1060 </build>
1061 </image>
1062 <image>
1063 <name>onap/clamp-frontend</name>
1064 <alias>onap-clamp-frontend</alias>
1065 <run>
1066 <skip>true</skip>
1067 </run>
1068 <build>
1069 <cleanup>true</cleanup>
1070 <tags>
1071 <tag>latest</tag>
1072 <tag>${project.docker.latesttagtimestamp.version}</tag>
1073 <tag>${project.docker.latesttag.version}</tag>
1074 </tags>
1075 <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
1076 default -->
1077 <dockerFile>frontend/Dockerfile</dockerFile>
1078 <assembly>
1079 <descriptor>frontend/frontend-files.xml</descriptor>
1080 <name>onap-clamp-frontend</name>
1081 </assembly>
1082 </build>
1083 </image>
1084 <image>
1085 <name>onap/clamp-dashboard-elasticsearch</name>
1086 <alias>onap-clamp-dashboard-elasticsearch</alias>
1087 <run>
1088 <skip>true</skip>
1089 </run>
1090 <build>
1091 <cleanup>true</cleanup>
1092 <tags>
1093 <tag>latest</tag>
1094 <tag>${project.docker.latesttagtimestamp.version}</tag>
1095 <tag>${project.docker.latesttag.version}</tag>
1096 </tags>
1097 <dockerFile>elasticsearch/Dockerfile</dockerFile>
1098 </build>
1099 </image>
1100 <image>
1101 <name>onap/clamp-dashboard-logstash</name>
1102 <alias>onap-clamp-dashboard-logstash</alias>
1103 <run>
1104 <skip>true</skip>
1105 </run>
1106 <build>
1107 <cleanup>true</cleanup>
1108 <tags>
1109 <tag>latest</tag>
1110 <tag>${project.docker.latesttagtimestamp.version}</tag>
1111 <tag>${project.docker.latesttag.version}</tag>
1112 </tags>
1113 <dockerFile>logstash/Dockerfile</dockerFile>
1114 </build>
1115 </image>
1116 <image>
1117 <name>onap/clamp-dashboard-kibana</name>
1118 <alias>onap-clamp-dashboard-kibana</alias>
1119 <run>
1120 <skip>true</skip>
1121 </run>
1122 <build>
1123 <cleanup>true</cleanup>
1124 <tags>
1125 <tag>latest</tag>
1126 <tag>${project.docker.latesttagtimestamp.version}</tag>
1127 <tag>${project.docker.latesttag.version}</tag>
1128 </tags>
1129 <dockerFile>kibana/Dockerfile</dockerFile>
1130 </build>
1131 </image>
1132 </images>
1133 </configuration>
1134
1135 <executions>
1136 <execution>
1137 <id>generate-images</id>
1138 <phase>install</phase>
1139 <goals>
1140 <goal>build</goal>
1141 </goals>
1142 </execution>
1143 <execution>
1144 <id>push-images</id>
1145 <phase>deploy</phase>
1146 <goals>
1147 <goal>push</goal>
1148 </goals>
1149 </execution>
1150 <execution>
1151 <id>docker-start-for-it</id>
1152 <phase>pre-integration-test</phase>
1153 <goals>
1154 <goal>start</goal>
1155 </goals>
1156 </execution>
1157 <execution>
1158 <id>docker-stop-for-it</id>
1159 <phase>post-integration-test</phase>
1160 <goals>
1161 <goal>stop</goal>
1162 </goals>
1163 </execution>
1164 </executions>
1165 </plugin>
1166
1167 <plugin>
1168 <groupId>org.jacoco</groupId>
1169 <artifactId>jacoco-maven-plugin</artifactId>
1170 <version>0.8.2</version>
1171 <configuration>
1172 <dumpOnExit>true</dumpOnExit>
1173 <append>true</append>
1174 <includes>
1175 <include>org.onap.clamp.*</include>
1176 </includes>
1177 </configuration>
1178 <executions>
1179 <execution>
1180 <id>pre-unit-test</id>
1181 <goals>
1182 <goal>prepare-agent</goal>
1183 </goals>
1184 <configuration>
1185 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1186 <propertyName>surefireArgLine</propertyName>
1187 <!-- <append>true</append> -->
1188 </configuration>
1189 </execution>
1190 <execution>
1191 <id>pre-integration-test</id>
1192 <phase>pre-integration-test</phase>
1193 <goals>
1194 <goal>prepare-agent</goal>
1195 </goals>
1196 <configuration>
1197 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1198 <propertyName>failsafeArgLine</propertyName>
1199 <!-- <append>true</append> -->
1200 </configuration>
1201 </execution>
1202 <execution>
1203 <goals>
1204 <goal>merge</goal>
1205 </goals>
1206 <phase>post-integration-test</phase>
1207 <configuration>
1208 <fileSets>
1209 <fileSet
1210 implementation="org.apache.maven.shared.model.fileset.FileSet">
1211 <directory>${project.build.directory}/coverage-reports</directory>
1212 <includes>
1213 <include>*.exec</include>
1214 </includes>
1215 </fileSet>
1216 </fileSets>
1217 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1218 </configuration>
1219 </execution>
1220 </executions>
1221 </plugin>
1222
1223 <!-- This plugin will be useful when we will have multi-modules project -->
1224 <plugin>
1225 <groupId>org.codehaus.mojo</groupId>
1226 <artifactId>versions-maven-plugin</artifactId>
1227 <version>1.3.1</version>
1228 </plugin>
1229
1230 <plugin>
1231 <groupId>com.github.eirslett</groupId>
1232 <artifactId>frontend-maven-plugin</artifactId>
1233 <version>1.8.0</version>
1234 <configuration>
1235 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
1236 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
1237 </configuration>
1238 <executions>
1239 <execution>
1240 <id>install_node_and_npm</id>
1241 <goals>
1242 <goal>install-node-and-npm</goal>
1243 </goals>
1244 <phase>generate-sources</phase>
1245 <configuration>
1246 <nodeVersion>v12.10.0</nodeVersion>
1247 <npmVersion>6.10.3</npmVersion>
1248 </configuration>
1249 </execution>
1250 <execution>
1251 <id>npm_install</id>
1252 <goals>
1253 <goal>npm</goal>
1254 </goals>
1255 <phase>compile</phase>
1256 <configuration>
1257 <arguments>install</arguments>
1258 </configuration>
1259 </execution>
1260 <execution>
1261 <id>npm_test</id>
1262 <goals>
1263 <goal>npm</goal>
1264 </goals>
1265 <phase>test</phase>
1266 <configuration>
1267 <arguments>run-script test:coverage</arguments>
1268 </configuration>
1269 </execution>
1270 <execution>
1271 <id>npm_publish</id>
1272 <goals>
1273 <goal>npm</goal>
1274 </goals>
1275 <phase>deploy</phase>
1276 <configuration>
1277 <skip>true</skip>
1278 <arguments>publish --registry ${npm.publish.url}</arguments>
1279 </configuration>
1280 </execution>
1281 </executions>
1282 </plugin>
1283 </plugins>
1284 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001285</project>