blob: 2c419bce9940769b68c256ecd299cc085f588f1c [file] [log] [blame]
ys969316a9fce2020-01-19 13:50:02 +02001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
Michael Lando451a3402017-02-19 10:28:42 +02005
ys969316a9fce2020-01-19 13:50:02 +02006 <artifactId>asdctool</artifactId>
7 <packaging>jar</packaging>
Michael Lando451a3402017-02-19 10:28:42 +02008
ys969316a9fce2020-01-19 13:50:02 +02009 <parent>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>sdc-main</artifactId>
Joanna Jeremicz1affa572020-11-30 11:35:07 +010012 <version>1.8.1-SNAPSHOT</version>
ys969316a9fce2020-01-19 13:50:02 +020013 </parent>
Michael Lando451a3402017-02-19 10:28:42 +020014
ys969316a9fce2020-01-19 13:50:02 +020015 <dependencies>
Tomasz Golabekaa18a952019-06-07 09:28:23 +020016 <dependency>
ys969316a9fce2020-01-19 13:50:02 +020017 <groupId>com.google.guava</groupId>
18 <artifactId>guava</artifactId>
19 <version>${guava.version}</version>
20 <scope>compile</scope>
21 </dependency>
Tomasz Golabekaa18a952019-06-07 09:28:23 +020022
ys969316a9fce2020-01-19 13:50:02 +020023 <!-- ASDC dependencies -->
24 <dependency>
25 <groupId>org.openecomp.sdc.be</groupId>
26 <artifactId>common-be</artifactId>
27 <version>${project.version}</version>
28 <scope>compile</scope>
29 </dependency>
30 <dependency>
31 <groupId>org.openecomp.sdc</groupId>
32 <artifactId>common-app-api</artifactId>
33 <version>${project.version}</version>
34 <scope>compile</scope>
35 </dependency>
vasrazca685bb2020-06-11 17:05:29 +010036 <dependency>
37 <groupId>com.fasterxml.jackson.core</groupId>
38 <artifactId>jackson-core</artifactId>
39 <version>${jackson.version}</version>
40 </dependency>
Tomasz Golabek5c55e232019-08-22 15:03:50 +020041
ys969316a9fce2020-01-19 13:50:02 +020042 <dependency>
43 <groupId>org.openecomp.sdc.be</groupId>
44 <artifactId>catalog-dao</artifactId>
45 <version>${project.version}</version>
vasrazca685bb2020-06-11 17:05:29 +010046 <exclusions>
47 <exclusion>
48 <groupId>com.fasterxml.jackson.core</groupId>
49 <artifactId>jackson-core</artifactId>
50 </exclusion>
51 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +020052 </dependency>
Tomasz Golabekaa18a952019-06-07 09:28:23 +020053
ys969316a9fce2020-01-19 13:50:02 +020054 <dependency>
55 <groupId>org.openecomp.sdc.be</groupId>
56 <artifactId>catalog-model</artifactId>
57 <version>${project.version}</version>
vasrazca685bb2020-06-11 17:05:29 +010058 <exclusions>
59 <exclusion>
60 <groupId>com.fasterxml.jackson.core</groupId>
61 <artifactId>jackson-core</artifactId>
62 </exclusion>
63 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +020064 </dependency>
Yuli Shlosberg79e36272018-10-02 14:45:26 +030065
Yuli Shlosberg79e36272018-10-02 14:45:26 +030066
ys969316a9fce2020-01-19 13:50:02 +020067 <dependency>
68 <groupId>org.openecomp.sdc</groupId>
69 <artifactId>catalog-be</artifactId>
70 <version>${project.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030071
ys969316a9fce2020-01-19 13:50:02 +020072 <!-- Comment Out in order to debug in eclipse -->
73 <classifier>classes</classifier>
Michael Lando451a3402017-02-19 10:28:42 +020074
ys969316a9fce2020-01-19 13:50:02 +020075 <exclusions>
76 <exclusion>
vasrazca685bb2020-06-11 17:05:29 +010077 <groupId>com.fasterxml.jackson.core</groupId>
78 <artifactId>jackson-core</artifactId>
79 </exclusion>
80 <exclusion>
vasraz086406a2021-02-22 09:50:07 +000081 <groupId>org.eclipse.jetty</groupId>
82 <artifactId>jetty-http</artifactId>
83 </exclusion>
84 <exclusion>
ys969316a9fce2020-01-19 13:50:02 +020085 <groupId>org.openecomp.ecompsdkos</groupId>
86 <artifactId>epsdk-fw</artifactId>
87 </exclusion>
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020088
ys969316a9fce2020-01-19 13:50:02 +020089 <exclusion>
90 <groupId>org.onap.sdc.common</groupId>
91 <artifactId>onap-common-lib</artifactId>
92 </exclusion>
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020093
ys969316a9fce2020-01-19 13:50:02 +020094 <exclusion>
95 <groupId>com.att.nsa</groupId>
96 <artifactId>cambriaClient</artifactId>
97 </exclusion>
98 <exclusion>
99 <groupId>com.att.nsa</groupId>
100 <artifactId>dmaapClient</artifactId>
101 </exclusion>
102 <exclusion>
103 <artifactId>slf4j-log4j12</artifactId>
104 <groupId>org.slf4j</groupId>
105 </exclusion>
106
107 </exclusions>
108
109 <scope>compile</scope>
110 </dependency>
111
112 <dependency>
113 <groupId>org.onap.portal.sdk</groupId>
114 <artifactId>epsdk-fw</artifactId>
115 <version>${ecomp.version}</version>
116 <scope>compile</scope>
117 <exclusions>
118 <exclusion>
119 <groupId>com.att.nsa</groupId>
120 <artifactId>cambriaClient</artifactId>
121 </exclusion>
122 <exclusion>
123 <groupId>com.att.nsa</groupId>
124 <artifactId>dmaapClient</artifactId>
125 </exclusion>
126 <exclusion>
127 <artifactId>slf4j-log4j12</artifactId>
128 <groupId>org.slf4j</groupId>
129 </exclusion>
sebdeta9fffd22020-10-08 13:28:36 +0200130 <exclusion>
131 <artifactId>log4j</artifactId>
132 <groupId>log4j</groupId>
133 </exclusion>
ys969316a9fce2020-01-19 13:50:02 +0200134 </exclusions>
135 </dependency>
136
137
138 <!-- ASDC dependencies end -->
139 <dependency>
140 <groupId>org.eclipse.jetty</groupId>
141 <artifactId>jetty-server</artifactId>
142 <version>${jetty.version}</version>
143 <scope>compile</scope>
vasraz086406a2021-02-22 09:50:07 +0000144 <exclusions>
145 <exclusion>
146 <groupId>org.eclipse.jetty</groupId>
147 <artifactId>jetty-http</artifactId>
148 </exclusion>
149 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200150 </dependency>
151
152 <dependency>
153 <groupId>org.eclipse.jetty</groupId>
154 <artifactId>jetty-util</artifactId>
155 <version>${jetty.version}</version>
156 <scope>compile</scope>
157 </dependency>
158
159 <!-- listen to file changes -->
160 <dependency>
161 <groupId>org.apache.commons</groupId>
162 <artifactId>commons-jci-core</artifactId>
163 <version>${commons-jci-core.version}</version>
164 <scope>compile</scope>
165 </dependency>
166
167 <dependency>
168 <groupId>commons-cli</groupId>
169 <artifactId>commons-cli</artifactId>
170 <version>1.4</version>
171 </dependency>
172
173 <dependency>
174 <groupId>org.eclipse.jetty</groupId>
175 <artifactId>jetty-servlet</artifactId>
176 <version>${jetty.version}</version>
177 <scope>compile</scope>
vasraz086406a2021-02-22 09:50:07 +0000178 <exclusions>
179 <exclusion>
180 <groupId>org.eclipse.jetty</groupId>
181 <artifactId>jetty-server</artifactId>
182 </exclusion>
183 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200184 </dependency>
185
186 <dependency>
187 <groupId>org.glassfish.jersey.core</groupId>
188 <artifactId>jersey-server</artifactId>
189 <version>${jersey-bom.version}</version>
190 <scope>compile</scope>
191 </dependency>
192
193 <dependency>
194 <groupId>org.glassfish.jersey.containers</groupId>
195 <artifactId>jersey-container-servlet-core</artifactId>
196 <version>${jersey-bom.version}</version>
197 <scope>compile</scope>
198 </dependency>
199
200 <dependency>
201 <groupId>org.glassfish.jersey.containers</groupId>
202 <artifactId>jersey-container-jetty-http</artifactId>
203 <version>${jersey-bom.version}</version>
204 <scope>compile</scope>
vasraz086406a2021-02-22 09:50:07 +0000205 <exclusions>
206 <exclusion>
207 <groupId>org.eclipse.jetty</groupId>
208 <artifactId>jetty-continuation</artifactId>
209 </exclusion>
210 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200211 </dependency>
212
213 <dependency>
214 <groupId>org.glassfish.jersey.media</groupId>
215 <artifactId>jersey-media-moxy</artifactId>
216 <version>${jersey-bom.version}</version>
217 <scope>compile</scope>
218 </dependency>
219
220 <dependency>
221 <groupId>org.glassfish.jersey.media</groupId>
222 <artifactId>jersey-media-multipart</artifactId>
223 <version>${jersey-bom.version}</version>
224 <scope>compile</scope>
225 </dependency>
226
227 <!-- slf4j + logback -->
228 <dependency>
229 <groupId>org.slf4j</groupId>
230 <artifactId>slf4j-api</artifactId>
231 <version>${slf4j-api.version}</version>
232 <scope>compile</scope>
233 </dependency>
234
235 <dependency>
236 <groupId>ch.qos.logback</groupId>
237 <artifactId>logback-classic</artifactId>
238 <version>${logback.version}</version>
239 <scope>compile</scope>
240 </dependency>
241
242 <dependency>
243 <groupId>ch.qos.logback</groupId>
244 <artifactId>logback-core</artifactId>
245 <version>${logback.version}</version>
246 <scope>compile</scope>
247 </dependency>
248
249 <!-- groovy -->
250 <dependency>
251 <groupId>org.codehaus.groovy</groupId>
252 <artifactId>groovy</artifactId>
253 <scope>compile</scope>
254 </dependency>
255
256 <dependency>
257 <groupId>org.apache.commons</groupId>
258 <artifactId>commons-configuration2</artifactId>
259 <version>${commons-configuration}</version>
260 </dependency>
261
262 <dependency>
263 <groupId>org.janusgraph</groupId>
264 <artifactId>janusgraph-core</artifactId>
265 <version>${janusgraph.version}</version>
266 <scope>compile</scope>
267 <exclusions>
268 <exclusion>
vasraz086406a2021-02-22 09:50:07 +0000269 <artifactId>gremlin-groovy</artifactId>
270 <groupId>org.apache.tinkerpop</groupId>
271 </exclusion>
272 <exclusion>
ys969316a9fce2020-01-19 13:50:02 +0200273 <groupId>org.json</groupId>
274 <artifactId>json</artifactId>
275 </exclusion>
276 <exclusion>
277 <groupId>org.slf4j</groupId>
278 <artifactId>slf4j-log4j12</artifactId>
279 </exclusion>
280 <exclusion>
281 <artifactId>commons-collections</artifactId>
282 <groupId>commons-collections</groupId>
283 </exclusion>
284 <exclusion>
285 <artifactId>groovy</artifactId>
286 <groupId>org.codehaus.groovy</groupId>
287 </exclusion>
288 <exclusion>
289 <groupId>org.apache.thrift</groupId>
290 <artifactId>libthrift</artifactId>
291 </exclusion>
292 </exclusions>
293 </dependency>
294
295 <dependency>
296 <groupId>com.googlecode.json-simple</groupId>
297 <artifactId>json-simple</artifactId>
298 <version>${json-simple.version}</version>
299 <scope>compile</scope>
300 </dependency>
301
302 <dependency>
303 <groupId>org.janusgraph</groupId>
304 <artifactId>janusgraph-cassandra</artifactId>
305 <version>${janusgraph.version}</version>
306 <scope>compile</scope>
307 <exclusions>
308 <exclusion>
309 <groupId>org.slf4j</groupId>
310 <artifactId>slf4j-log4j12</artifactId>
311 </exclusion>
312 </exclusions>
313 </dependency>
314
315 <dependency>
316 <groupId>commons-logging</groupId>
317 <artifactId>commons-logging</artifactId>
318 <version>${commons-logging}</version>
319 <scope>compile</scope>
320 </dependency>
321
322 <dependency>
323 <groupId>commons-codec</groupId>
324 <artifactId>commons-codec</artifactId>
325 <version>${commons-codec}</version>
326 <scope>compile</scope>
327 </dependency>
328
329 <dependency>
330 <groupId>com.fasterxml.jackson.core</groupId>
331 <artifactId>jackson-databind</artifactId>
332 <version>${jackson.version}</version>
vasrazca685bb2020-06-11 17:05:29 +0100333 <exclusions>
334 <exclusion>
335 <groupId>com.fasterxml.jackson.core</groupId>
336 <artifactId>jackson-core</artifactId>
337 </exclusion>
338 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200339 </dependency>
340
341 <!-- Explicitly specified in order to override older version included by epsdk-fw -->
342 <dependency>
343 <groupId>com.fasterxml.jackson.core</groupId>
344 <artifactId>jackson-annotations</artifactId>
345 <version>${jackson-annotations.version}</version>
346 </dependency>
347
348 <dependency>
349 <groupId>com.google.code.gson</groupId>
350 <artifactId>gson</artifactId>
351 <version>${gson.version}</version>
352 <scope>compile</scope>
353 </dependency>
354
355 <dependency>
356 <groupId>org.apache.httpcomponents</groupId>
357 <artifactId>httpclient</artifactId>
358 <version>${httpclient.version}</version>
359 <scope>compile</scope>
360 </dependency>
361
362 <dependency>
363 <groupId>org.apache.httpcomponents</groupId>
364 <artifactId>httpcore</artifactId>
365 <version>${httpcore.version}</version>
366 <scope>compile</scope>
367 </dependency>
368
369 <!-- Spring 4 dependencies -->
370 <dependency>
371 <groupId>org.springframework</groupId>
372 <artifactId>spring-core</artifactId>
373 <version>${spring.version}</version>
374 <scope>compile</scope>
375 </dependency>
376
377 <dependency>
378 <groupId>org.springframework</groupId>
379 <artifactId>spring-context</artifactId>
380 <version>${spring.version}</version>
381 <scope>compile</scope>
382 </dependency>
383
384 <dependency>
385 <groupId>org.springframework</groupId>
386 <artifactId>spring-expression</artifactId>
387 <version>${spring.version}</version>
388 <scope>compile</scope>
389 </dependency>
390
391 <dependency>
392 <groupId>org.springframework</groupId>
393 <artifactId>spring-beans</artifactId>
394 <version>${spring.version}</version>
395 <scope>compile</scope>
396 </dependency>
397
398 <dependency>
399 <groupId>org.springframework</groupId>
400 <artifactId>spring-aop</artifactId>
401 <version>${spring.version}</version>
402 <scope>compile</scope>
403 </dependency>
404
405 <!-- Spring 4 dependencies end -->
406 <!-- JavaConfig need this library -->
407 <dependency>
408 <groupId>cglib</groupId>
409 <artifactId>cglib</artifactId>
410 <version>3.2.4</version>
411 <scope>compile</scope>
412 </dependency>
413
414 <dependency>
415 <groupId>org.yaml</groupId>
416 <artifactId>snakeyaml</artifactId>
417 <version>${snakeyaml.version}</version>
418 <scope>compile</scope>
419 </dependency>
420
421 <dependency>
422 <groupId>org.functionaljava</groupId>
423 <artifactId>functionaljava</artifactId>
424 <version>${functionaljava.version}</version>
425 <scope>compile</scope>
426 </dependency>
427
428 <dependency>
ys969316a9fce2020-01-19 13:50:02 +0200429 <groupId>com.fasterxml.jackson.dataformat</groupId>
430 <artifactId>jackson-dataformat-yaml</artifactId>
431 <version>${jackson.version}</version>
vasrazca685bb2020-06-11 17:05:29 +0100432 <exclusions>
433 <exclusion>
434 <groupId>com.fasterxml.jackson.core</groupId>
435 <artifactId>jackson-core</artifactId>
436 </exclusion>
437 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200438 </dependency>
439
440 <!-- CASSANDRA -->
441 <dependency>
442 <groupId>com.datastax.cassandra</groupId>
443 <artifactId>cassandra-driver-core</artifactId>
444 <version>${cassandra.driver.version}</version>
445 <scope>compile</scope>
446 </dependency>
447
448 <dependency>
449 <groupId>com.datastax.cassandra</groupId>
450 <artifactId>cassandra-driver-mapping</artifactId>
451 <version>${cassandra.driver.version}</version>
452 <scope>compile</scope>
453 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200454
455 <!-- CASSANDRA END -->
456
457 <!-- OPEN CSV -->
458 <dependency>
459 <groupId>com.opencsv</groupId>
460 <artifactId>opencsv</artifactId>
461 <version>4.0</version>
462 <scope>compile</scope>
463 </dependency>
464
465 <dependency>
466 <groupId>org.apache.poi</groupId>
467 <artifactId>poi</artifactId>
468 <version>${apache-poi.version}</version>
469 </dependency>
470
471 <dependency>
472 <groupId>org.jdom</groupId>
473 <artifactId>jdom</artifactId>
474 <version>2.0.2</version>
475 <scope>compile</scope>
476 </dependency>
477
478 <!-- Temporary, till building the populate task which adding all components
479 to cache. We will use Serialization Utils. -->
480 <dependency>
481 <groupId>de.ruedigermoeller</groupId>
482 <artifactId>fst</artifactId>
483 <version>2.47</version>
vasrazca685bb2020-06-11 17:05:29 +0100484 <exclusions>
485 <exclusion>
486 <groupId>com.fasterxml.jackson.core</groupId>
487 <artifactId>jackson-core</artifactId>
488 </exclusion>
489 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200490 </dependency>
491
492 <!-- testing -->
493 <dependency>
494 <groupId>org.hamcrest</groupId>
495 <artifactId>hamcrest-all</artifactId>
496 <version>${hamcrest-all.version}</version>
497 <scope>test</scope>
498 </dependency>
499
500 <dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200501 <groupId>org.junit.jupiter</groupId>
502 <artifactId>junit-jupiter</artifactId>
503 <version>${junitJupiter.version}</version>
504 <scope>test</scope>
505 </dependency>
506
507 <dependency>
508 <groupId>org.mockito</groupId>
509 <artifactId>mockito-junit-jupiter</artifactId>
510 <version>${mockitoJupiter.version}</version>
511 <scope>test</scope>
512 </dependency>
513
514 <dependency>
ys969316a9fce2020-01-19 13:50:02 +0200515 <groupId>org.testng</groupId>
516 <artifactId>testng</artifactId>
517 <version>${testng.version}</version>
518 <scope>test</scope>
519 </dependency>
vasraze3e2db12020-06-11 12:57:25 +0100520 <dependency>
521 <groupId>com.github.testng-team</groupId>
522 <artifactId>testng-junit5</artifactId>
523 <version>0.0.1</version>
524 <scope>test</scope>
vasraz77097d02020-06-28 19:55:01 +0100525 <exclusions>
526 <exclusion>
527 <groupId>org.junit.platform</groupId>
528 <artifactId>junit-platform-engine</artifactId>
529 </exclusion>
530 </exclusions>
vasraze3e2db12020-06-11 12:57:25 +0100531 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200532
533 <dependency>
ys969316a9fce2020-01-19 13:50:02 +0200534 <groupId>org.assertj</groupId>
535 <artifactId>assertj-core</artifactId>
536 <scope>test</scope>
537 </dependency>
538
539 <dependency>
540 <groupId>com.google.code.bean-matchers</groupId>
541 <artifactId>bean-matchers</artifactId>
542 <version>${bean-matchers.version}</version>
543 <scope>test</scope>
544 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200545 <!-- testing end -->
546
547 <dependency>
548 <groupId>io.netty</groupId>
549 <artifactId>netty-all</artifactId>
550 </dependency>
551
552 <dependency>
553 <groupId>io.netty</groupId>
554 <artifactId>netty-handler</artifactId>
555 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200556 </dependencies>
557
558 <build>
559 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
560 <plugins>
561 <plugin>
562 <groupId>org.apache.maven.plugins</groupId>
563 <artifactId>maven-deploy-plugin</artifactId>
564 <configuration>
565 <skip>true</skip>
566 </configuration>
567 </plugin>
568
569 <plugin>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-assembly-plugin</artifactId>
572 <executions>
573 <execution>
574 <configuration>
575 <finalName>sdctool</finalName>
576 <appendAssemblyId>false</appendAssemblyId>
577 <descriptors>
578 <descriptor>${project.basedir}/tarball.xml</descriptor>
579 </descriptors>
580 </configuration>
581 <id>assemble-file</id>
582 <phase>verify</phase>
583 <goals>
584 <goal>single</goal>
585 </goals>
586 </execution>
587 </executions>
588 </plugin>
589 <plugin>
590 <groupId>org.apache.maven.plugins</groupId>
591 <artifactId>maven-shade-plugin</artifactId>
592 <executions>
593 <execution>
594 <phase>package</phase>
595 <goals>
596 <goal>shade</goal>
597 </goals>
598 <configuration>
599 <filters>
600 <filter>
601 <artifact>org.openecomp.sdc:*</artifact>
602 <excludes>
603 <exclude>**/elasticsearch.yml</exclude>
604 </excludes>
605 </filter>
606 <filter>
607 <artifact>*:*</artifact>
608 <excludes>
609 <exclude>META-INF/*.SF</exclude>
610 <exclude>META-INF/*.DSA</exclude>
611 <exclude>META-INF/*.RSA</exclude>
612 </excludes>
613 </filter>
614 </filters>
615 <transformers>
616 <transformer
617 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
618 </transformers>
619 </configuration>
620 </execution>
621 </executions>
622 </plugin>
623 <plugin>
624 <groupId>ru.yaal.maven</groupId>
625 <artifactId>write-text-files-maven-plugin</artifactId>
626 <configuration>
627 <charset>UTF-8</charset>
628 <files>
629 <file>
630 <path>
631 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
632 </path>
633 <lines>
andre.schmid8f967e42020-01-22 14:49:32 +0000634 <line>
635 normal['version']="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
ys969316a9fce2020-01-19 13:50:02 +0200636 </line>
637 </lines>
638 </file>
639 </files>
640 </configuration>
641 <executions>
642 <execution>
643 <id>write-text-files</id>
644 <phase>prepare-package</phase>
645 <goals>
646 <goal>write-text-files</goal>
647 </goals>
648 </execution>
649 </executions>
650 </plugin>
651 <plugin>
652 <groupId>org.apache.maven.plugins</groupId>
653 <artifactId>maven-resources-plugin</artifactId>
654 <executions>
655 <execution>
656 <id>copy-tosca-folder</id>
657 <!-- here the phase you need -->
658 <phase>compile</phase>
659 <goals>
660 <goal>copy-resources</goal>
661 </goals>
662 <configuration>
663 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
664 <resources>
665 <resource>
666 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
667 </directory>
668 <filtering>true</filtering>
669 </resource>
670 </resources>
671 </configuration>
672 </execution>
673 </executions>
674 </plugin>
675 <plugin>
676 <groupId>com.github.sylvainlaurent.maven</groupId>
677 <artifactId>yaml-json-validator-maven-plugin</artifactId>
678 <executions>
679 <execution>
680 <id>validate</id>
681 <phase>validate</phase>
682 <goals>
683 <goal>validate</goal>
684 </goals>
685 <configuration>
686 <validationSets>
687 <validationSet>
688 <includes>
689 <include>src/main/resources/**/*.y*ml</include>
690 <include>src/test/resources/**/*.y*ml</include>
691 </includes>
692 </validationSet>
693 <validationSet>
694 <includes>
695 <include>src/main/resources/**/*.json</include>
696 <include>src/test/resources/**/*.json</include>
697 </includes>
698 <excludes>
699 <exclude>src/test/resources/graphError.json</exclude>
700 </excludes>
701 </validationSet>
702 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200703 <skip>${skipYamlJsonValidator}</skip>
ys969316a9fce2020-01-19 13:50:02 +0200704 </configuration>
705 </execution>
706 </executions>
707 </plugin>
708 </plugins>
709 </build>
710 <profiles>
711 <profile>
712 <id>docker</id>
713 <activation>
714 <activeByDefault>false</activeByDefault>
715 </activation>
716 <build>
717 <plugins>
718 <plugin>
719 <groupId>org.apache.maven.plugins</groupId>
720 <artifactId>maven-resources-plugin</artifactId>
721 <executions>
722 <execution>
723 <id>copy-sdctool</id>
724 <phase>verify</phase>
725 <goals>
726 <goal>copy-resources</goal>
727 </goals>
728 <configuration>
729 <outputDirectory>
730 ${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
731 </outputDirectory>
732 <resources>
733 <resource>
734 <directory>${project.parent.basedir}/asdctool/target</directory>
735 <includes>
736 <include>sdctool.tar</include>
737 </includes>
738 </resource>
739 </resources>
740 </configuration>
741 </execution>
742 </executions>
743 </plugin>
744 <plugin>
745 <groupId>io.fabric8</groupId>
746 <artifactId>docker-maven-plugin</artifactId>
747 <configuration>
sebdet591810d2020-09-17 15:07:23 +0200748 <apiVersion>${docker.api.version}</apiVersion>
ys969316a9fce2020-01-19 13:50:02 +0200749 <registry>nexus3.onap.org:10001</registry>
750 <authConfig>
751 <pull>
752 <username>docker</username>
753 <password>docker</password>
754 </pull>
755 </authConfig>
756 <images>
757 <!-- Build cassandra-init image -->
758 <image>
759 <name>onap/sdc-cassandra-init</name>
760 <alias>sdc-cassandra-init</alias>
761 <build>
762 <cleanup>try</cleanup>
763 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
764 <tags>
sebdetb988cb62020-09-25 15:48:10 +0200765 <tag>latest</tag>
ys969316a9fce2020-01-19 13:50:02 +0200766 <tag>
767 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
768 </tag>
sebdetb988cb62020-09-25 15:48:10 +0200769 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
ys969316a9fce2020-01-19 13:50:02 +0200770 </tags>
771 </build>
772 </image>
773 </images>
774 </configuration>
775 <executions>
776 <execution>
777 <id>clean-images</id>
778 <phase>pre-clean</phase>
779 <goals>
780 <goal>remove</goal>
781 </goals>
782 <configuration>
783 <removeAll>true</removeAll>
784 <image>onap/sdc-cassandra-init</image>
785 </configuration>
786 </execution>
787
788 <execution>
789 <id>generate-images</id>
790 <phase>install</phase>
791 <goals>
792 <goal>build</goal>
793 </goals>
794 </execution>
795
796 <execution>
797 <id>push-images</id>
798 <phase>deploy</phase>
799 <goals>
800 <goal>push</goal>
801 </goals>
802 <configuration>
803 <image>onap/sdc-cassandra-init</image>
804 </configuration>
805 </execution>
806 </executions>
807 </plugin>
808 </plugins>
809 </build>
810 </profile>
811 </profiles>
k.kazak8d526072019-05-29 14:50:05 +0200812</project>