blob: f8a43d3f11b327cad52da679155af431f4f1943f [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>
ChrisCe407cea2020-10-30 16:44:46 +010012 <version>1.8.0-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>
ys969316a9fce2020-01-19 13:50:02 +020081 <groupId>org.openecomp.ecompsdkos</groupId>
82 <artifactId>epsdk-fw</artifactId>
83 </exclusion>
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020084
ys969316a9fce2020-01-19 13:50:02 +020085 <exclusion>
86 <groupId>org.onap.sdc.common</groupId>
87 <artifactId>onap-common-lib</artifactId>
88 </exclusion>
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020089
ys969316a9fce2020-01-19 13:50:02 +020090 <exclusion>
91 <groupId>com.att.nsa</groupId>
92 <artifactId>cambriaClient</artifactId>
93 </exclusion>
94 <exclusion>
95 <groupId>com.att.nsa</groupId>
96 <artifactId>dmaapClient</artifactId>
97 </exclusion>
98 <exclusion>
99 <artifactId>slf4j-log4j12</artifactId>
100 <groupId>org.slf4j</groupId>
101 </exclusion>
102
103 </exclusions>
104
105 <scope>compile</scope>
106 </dependency>
107
108 <dependency>
109 <groupId>org.onap.portal.sdk</groupId>
110 <artifactId>epsdk-fw</artifactId>
111 <version>${ecomp.version}</version>
112 <scope>compile</scope>
113 <exclusions>
114 <exclusion>
115 <groupId>com.att.nsa</groupId>
116 <artifactId>cambriaClient</artifactId>
117 </exclusion>
118 <exclusion>
119 <groupId>com.att.nsa</groupId>
120 <artifactId>dmaapClient</artifactId>
121 </exclusion>
122 <exclusion>
123 <artifactId>slf4j-log4j12</artifactId>
124 <groupId>org.slf4j</groupId>
125 </exclusion>
sebdeta9fffd22020-10-08 13:28:36 +0200126 <exclusion>
127 <artifactId>log4j</artifactId>
128 <groupId>log4j</groupId>
129 </exclusion>
ys969316a9fce2020-01-19 13:50:02 +0200130 </exclusions>
131 </dependency>
132
133
134 <!-- ASDC dependencies end -->
135 <dependency>
136 <groupId>org.eclipse.jetty</groupId>
137 <artifactId>jetty-server</artifactId>
138 <version>${jetty.version}</version>
139 <scope>compile</scope>
140 </dependency>
141
142 <dependency>
143 <groupId>org.eclipse.jetty</groupId>
144 <artifactId>jetty-util</artifactId>
145 <version>${jetty.version}</version>
146 <scope>compile</scope>
147 </dependency>
148
149 <!-- listen to file changes -->
150 <dependency>
151 <groupId>org.apache.commons</groupId>
152 <artifactId>commons-jci-core</artifactId>
153 <version>${commons-jci-core.version}</version>
154 <scope>compile</scope>
155 </dependency>
156
157 <dependency>
158 <groupId>commons-cli</groupId>
159 <artifactId>commons-cli</artifactId>
160 <version>1.4</version>
161 </dependency>
162
163 <dependency>
164 <groupId>org.eclipse.jetty</groupId>
165 <artifactId>jetty-servlet</artifactId>
166 <version>${jetty.version}</version>
167 <scope>compile</scope>
168 </dependency>
169
170 <dependency>
171 <groupId>org.glassfish.jersey.core</groupId>
172 <artifactId>jersey-server</artifactId>
173 <version>${jersey-bom.version}</version>
174 <scope>compile</scope>
175 </dependency>
176
177 <dependency>
178 <groupId>org.glassfish.jersey.containers</groupId>
179 <artifactId>jersey-container-servlet-core</artifactId>
180 <version>${jersey-bom.version}</version>
181 <scope>compile</scope>
182 </dependency>
183
184 <dependency>
185 <groupId>org.glassfish.jersey.containers</groupId>
186 <artifactId>jersey-container-jetty-http</artifactId>
187 <version>${jersey-bom.version}</version>
188 <scope>compile</scope>
189 </dependency>
190
191 <dependency>
192 <groupId>org.glassfish.jersey.media</groupId>
193 <artifactId>jersey-media-moxy</artifactId>
194 <version>${jersey-bom.version}</version>
195 <scope>compile</scope>
196 </dependency>
197
198 <dependency>
199 <groupId>org.glassfish.jersey.media</groupId>
200 <artifactId>jersey-media-multipart</artifactId>
201 <version>${jersey-bom.version}</version>
202 <scope>compile</scope>
203 </dependency>
204
205 <!-- slf4j + logback -->
206 <dependency>
207 <groupId>org.slf4j</groupId>
208 <artifactId>slf4j-api</artifactId>
209 <version>${slf4j-api.version}</version>
210 <scope>compile</scope>
211 </dependency>
212
213 <dependency>
214 <groupId>ch.qos.logback</groupId>
215 <artifactId>logback-classic</artifactId>
216 <version>${logback.version}</version>
217 <scope>compile</scope>
218 </dependency>
219
220 <dependency>
221 <groupId>ch.qos.logback</groupId>
222 <artifactId>logback-core</artifactId>
223 <version>${logback.version}</version>
224 <scope>compile</scope>
225 </dependency>
226
227 <!-- groovy -->
228 <dependency>
229 <groupId>org.codehaus.groovy</groupId>
230 <artifactId>groovy</artifactId>
231 <scope>compile</scope>
232 </dependency>
233
234 <dependency>
235 <groupId>org.apache.commons</groupId>
236 <artifactId>commons-configuration2</artifactId>
237 <version>${commons-configuration}</version>
238 </dependency>
239
240 <dependency>
241 <groupId>org.janusgraph</groupId>
242 <artifactId>janusgraph-core</artifactId>
243 <version>${janusgraph.version}</version>
244 <scope>compile</scope>
245 <exclusions>
246 <exclusion>
247 <groupId>org.json</groupId>
248 <artifactId>json</artifactId>
249 </exclusion>
250 <exclusion>
251 <groupId>org.slf4j</groupId>
252 <artifactId>slf4j-log4j12</artifactId>
253 </exclusion>
254 <exclusion>
255 <artifactId>commons-collections</artifactId>
256 <groupId>commons-collections</groupId>
257 </exclusion>
258 <exclusion>
259 <artifactId>groovy</artifactId>
260 <groupId>org.codehaus.groovy</groupId>
261 </exclusion>
262 <exclusion>
263 <groupId>org.apache.thrift</groupId>
264 <artifactId>libthrift</artifactId>
265 </exclusion>
266 </exclusions>
267 </dependency>
268
269 <dependency>
270 <groupId>com.googlecode.json-simple</groupId>
271 <artifactId>json-simple</artifactId>
272 <version>${json-simple.version}</version>
273 <scope>compile</scope>
274 </dependency>
275
276 <dependency>
277 <groupId>org.janusgraph</groupId>
278 <artifactId>janusgraph-cassandra</artifactId>
279 <version>${janusgraph.version}</version>
280 <scope>compile</scope>
281 <exclusions>
282 <exclusion>
283 <groupId>org.slf4j</groupId>
284 <artifactId>slf4j-log4j12</artifactId>
285 </exclusion>
286 </exclusions>
287 </dependency>
288
289 <dependency>
290 <groupId>commons-logging</groupId>
291 <artifactId>commons-logging</artifactId>
292 <version>${commons-logging}</version>
293 <scope>compile</scope>
294 </dependency>
295
296 <dependency>
297 <groupId>commons-codec</groupId>
298 <artifactId>commons-codec</artifactId>
299 <version>${commons-codec}</version>
300 <scope>compile</scope>
301 </dependency>
302
303 <dependency>
304 <groupId>com.fasterxml.jackson.core</groupId>
305 <artifactId>jackson-databind</artifactId>
306 <version>${jackson.version}</version>
vasrazca685bb2020-06-11 17:05:29 +0100307 <exclusions>
308 <exclusion>
309 <groupId>com.fasterxml.jackson.core</groupId>
310 <artifactId>jackson-core</artifactId>
311 </exclusion>
312 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200313 </dependency>
314
315 <!-- Explicitly specified in order to override older version included by epsdk-fw -->
316 <dependency>
317 <groupId>com.fasterxml.jackson.core</groupId>
318 <artifactId>jackson-annotations</artifactId>
319 <version>${jackson-annotations.version}</version>
320 </dependency>
321
322 <dependency>
323 <groupId>com.google.code.gson</groupId>
324 <artifactId>gson</artifactId>
325 <version>${gson.version}</version>
326 <scope>compile</scope>
327 </dependency>
328
329 <dependency>
330 <groupId>org.apache.httpcomponents</groupId>
331 <artifactId>httpclient</artifactId>
332 <version>${httpclient.version}</version>
333 <scope>compile</scope>
334 </dependency>
335
336 <dependency>
337 <groupId>org.apache.httpcomponents</groupId>
338 <artifactId>httpcore</artifactId>
339 <version>${httpcore.version}</version>
340 <scope>compile</scope>
341 </dependency>
342
343 <!-- Spring 4 dependencies -->
344 <dependency>
345 <groupId>org.springframework</groupId>
346 <artifactId>spring-core</artifactId>
347 <version>${spring.version}</version>
348 <scope>compile</scope>
349 </dependency>
350
351 <dependency>
352 <groupId>org.springframework</groupId>
353 <artifactId>spring-context</artifactId>
354 <version>${spring.version}</version>
355 <scope>compile</scope>
356 </dependency>
357
358 <dependency>
359 <groupId>org.springframework</groupId>
360 <artifactId>spring-expression</artifactId>
361 <version>${spring.version}</version>
362 <scope>compile</scope>
363 </dependency>
364
365 <dependency>
366 <groupId>org.springframework</groupId>
367 <artifactId>spring-beans</artifactId>
368 <version>${spring.version}</version>
369 <scope>compile</scope>
370 </dependency>
371
372 <dependency>
373 <groupId>org.springframework</groupId>
374 <artifactId>spring-aop</artifactId>
375 <version>${spring.version}</version>
376 <scope>compile</scope>
377 </dependency>
378
379 <!-- Spring 4 dependencies end -->
380 <!-- JavaConfig need this library -->
381 <dependency>
382 <groupId>cglib</groupId>
383 <artifactId>cglib</artifactId>
384 <version>3.2.4</version>
385 <scope>compile</scope>
386 </dependency>
387
388 <dependency>
389 <groupId>org.yaml</groupId>
390 <artifactId>snakeyaml</artifactId>
391 <version>${snakeyaml.version}</version>
392 <scope>compile</scope>
393 </dependency>
394
395 <dependency>
396 <groupId>org.functionaljava</groupId>
397 <artifactId>functionaljava</artifactId>
398 <version>${functionaljava.version}</version>
399 <scope>compile</scope>
400 </dependency>
401
402 <dependency>
ys969316a9fce2020-01-19 13:50:02 +0200403 <groupId>com.fasterxml.jackson.dataformat</groupId>
404 <artifactId>jackson-dataformat-yaml</artifactId>
405 <version>${jackson.version}</version>
vasrazca685bb2020-06-11 17:05:29 +0100406 <exclusions>
407 <exclusion>
408 <groupId>com.fasterxml.jackson.core</groupId>
409 <artifactId>jackson-core</artifactId>
410 </exclusion>
411 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200412 </dependency>
413
414 <!-- CASSANDRA -->
415 <dependency>
416 <groupId>com.datastax.cassandra</groupId>
417 <artifactId>cassandra-driver-core</artifactId>
418 <version>${cassandra.driver.version}</version>
419 <scope>compile</scope>
420 </dependency>
421
422 <dependency>
423 <groupId>com.datastax.cassandra</groupId>
424 <artifactId>cassandra-driver-mapping</artifactId>
425 <version>${cassandra.driver.version}</version>
426 <scope>compile</scope>
427 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200428
429 <!-- CASSANDRA END -->
430
431 <!-- OPEN CSV -->
432 <dependency>
433 <groupId>com.opencsv</groupId>
434 <artifactId>opencsv</artifactId>
435 <version>4.0</version>
436 <scope>compile</scope>
437 </dependency>
438
439 <dependency>
440 <groupId>org.apache.poi</groupId>
441 <artifactId>poi</artifactId>
442 <version>${apache-poi.version}</version>
443 </dependency>
444
445 <dependency>
446 <groupId>org.jdom</groupId>
447 <artifactId>jdom</artifactId>
448 <version>2.0.2</version>
449 <scope>compile</scope>
450 </dependency>
451
452 <!-- Temporary, till building the populate task which adding all components
453 to cache. We will use Serialization Utils. -->
454 <dependency>
455 <groupId>de.ruedigermoeller</groupId>
456 <artifactId>fst</artifactId>
457 <version>2.47</version>
vasrazca685bb2020-06-11 17:05:29 +0100458 <exclusions>
459 <exclusion>
460 <groupId>com.fasterxml.jackson.core</groupId>
461 <artifactId>jackson-core</artifactId>
462 </exclusion>
463 </exclusions>
ys969316a9fce2020-01-19 13:50:02 +0200464 </dependency>
465
466 <!-- testing -->
467 <dependency>
468 <groupId>org.hamcrest</groupId>
469 <artifactId>hamcrest-all</artifactId>
470 <version>${hamcrest-all.version}</version>
471 <scope>test</scope>
472 </dependency>
473
474 <dependency>
Baumel, Dvir (db384r)3e879322020-03-23 16:21:05 +0200475 <groupId>org.junit.jupiter</groupId>
476 <artifactId>junit-jupiter</artifactId>
477 <version>${junitJupiter.version}</version>
478 <scope>test</scope>
479 </dependency>
480
481 <dependency>
482 <groupId>org.mockito</groupId>
483 <artifactId>mockito-junit-jupiter</artifactId>
484 <version>${mockitoJupiter.version}</version>
485 <scope>test</scope>
486 </dependency>
487
488 <dependency>
ys969316a9fce2020-01-19 13:50:02 +0200489 <groupId>org.testng</groupId>
490 <artifactId>testng</artifactId>
491 <version>${testng.version}</version>
492 <scope>test</scope>
493 </dependency>
vasraze3e2db12020-06-11 12:57:25 +0100494 <dependency>
495 <groupId>com.github.testng-team</groupId>
496 <artifactId>testng-junit5</artifactId>
497 <version>0.0.1</version>
498 <scope>test</scope>
vasraz77097d02020-06-28 19:55:01 +0100499 <exclusions>
500 <exclusion>
501 <groupId>org.junit.platform</groupId>
502 <artifactId>junit-platform-engine</artifactId>
503 </exclusion>
504 </exclusions>
vasraze3e2db12020-06-11 12:57:25 +0100505 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200506
507 <dependency>
ys969316a9fce2020-01-19 13:50:02 +0200508 <groupId>org.assertj</groupId>
509 <artifactId>assertj-core</artifactId>
510 <scope>test</scope>
511 </dependency>
512
513 <dependency>
514 <groupId>com.google.code.bean-matchers</groupId>
515 <artifactId>bean-matchers</artifactId>
516 <version>${bean-matchers.version}</version>
517 <scope>test</scope>
518 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200519 <!-- testing end -->
520
521 <dependency>
522 <groupId>io.netty</groupId>
523 <artifactId>netty-all</artifactId>
524 </dependency>
525
526 <dependency>
527 <groupId>io.netty</groupId>
528 <artifactId>netty-handler</artifactId>
529 </dependency>
ys969316a9fce2020-01-19 13:50:02 +0200530 </dependencies>
531
532 <build>
533 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
534 <plugins>
535 <plugin>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-deploy-plugin</artifactId>
538 <configuration>
539 <skip>true</skip>
540 </configuration>
541 </plugin>
542
543 <plugin>
544 <groupId>org.apache.maven.plugins</groupId>
545 <artifactId>maven-assembly-plugin</artifactId>
546 <executions>
547 <execution>
548 <configuration>
549 <finalName>sdctool</finalName>
550 <appendAssemblyId>false</appendAssemblyId>
551 <descriptors>
552 <descriptor>${project.basedir}/tarball.xml</descriptor>
553 </descriptors>
554 </configuration>
555 <id>assemble-file</id>
556 <phase>verify</phase>
557 <goals>
558 <goal>single</goal>
559 </goals>
560 </execution>
561 </executions>
562 </plugin>
563 <plugin>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-shade-plugin</artifactId>
566 <executions>
567 <execution>
568 <phase>package</phase>
569 <goals>
570 <goal>shade</goal>
571 </goals>
572 <configuration>
573 <filters>
574 <filter>
575 <artifact>org.openecomp.sdc:*</artifact>
576 <excludes>
577 <exclude>**/elasticsearch.yml</exclude>
578 </excludes>
579 </filter>
580 <filter>
581 <artifact>*:*</artifact>
582 <excludes>
583 <exclude>META-INF/*.SF</exclude>
584 <exclude>META-INF/*.DSA</exclude>
585 <exclude>META-INF/*.RSA</exclude>
586 </excludes>
587 </filter>
588 </filters>
589 <transformers>
590 <transformer
591 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
592 </transformers>
593 </configuration>
594 </execution>
595 </executions>
596 </plugin>
597 <plugin>
598 <groupId>ru.yaal.maven</groupId>
599 <artifactId>write-text-files-maven-plugin</artifactId>
600 <configuration>
601 <charset>UTF-8</charset>
602 <files>
603 <file>
604 <path>
605 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
606 </path>
607 <lines>
andre.schmid8f967e42020-01-22 14:49:32 +0000608 <line>
609 normal['version']="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
ys969316a9fce2020-01-19 13:50:02 +0200610 </line>
611 </lines>
612 </file>
613 </files>
614 </configuration>
615 <executions>
616 <execution>
617 <id>write-text-files</id>
618 <phase>prepare-package</phase>
619 <goals>
620 <goal>write-text-files</goal>
621 </goals>
622 </execution>
623 </executions>
624 </plugin>
625 <plugin>
626 <groupId>org.apache.maven.plugins</groupId>
627 <artifactId>maven-resources-plugin</artifactId>
628 <executions>
629 <execution>
630 <id>copy-tosca-folder</id>
631 <!-- here the phase you need -->
632 <phase>compile</phase>
633 <goals>
634 <goal>copy-resources</goal>
635 </goals>
636 <configuration>
637 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
638 <resources>
639 <resource>
640 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
641 </directory>
642 <filtering>true</filtering>
643 </resource>
644 </resources>
645 </configuration>
646 </execution>
647 </executions>
648 </plugin>
649 <plugin>
650 <groupId>com.github.sylvainlaurent.maven</groupId>
651 <artifactId>yaml-json-validator-maven-plugin</artifactId>
652 <executions>
653 <execution>
654 <id>validate</id>
655 <phase>validate</phase>
656 <goals>
657 <goal>validate</goal>
658 </goals>
659 <configuration>
660 <validationSets>
661 <validationSet>
662 <includes>
663 <include>src/main/resources/**/*.y*ml</include>
664 <include>src/test/resources/**/*.y*ml</include>
665 </includes>
666 </validationSet>
667 <validationSet>
668 <includes>
669 <include>src/main/resources/**/*.json</include>
670 <include>src/test/resources/**/*.json</include>
671 </includes>
672 <excludes>
673 <exclude>src/test/resources/graphError.json</exclude>
674 </excludes>
675 </validationSet>
676 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200677 <skip>${skipYamlJsonValidator}</skip>
ys969316a9fce2020-01-19 13:50:02 +0200678 </configuration>
679 </execution>
680 </executions>
681 </plugin>
682 </plugins>
683 </build>
684 <profiles>
685 <profile>
686 <id>docker</id>
687 <activation>
688 <activeByDefault>false</activeByDefault>
689 </activation>
690 <build>
691 <plugins>
692 <plugin>
693 <groupId>org.apache.maven.plugins</groupId>
694 <artifactId>maven-resources-plugin</artifactId>
695 <executions>
696 <execution>
697 <id>copy-sdctool</id>
698 <phase>verify</phase>
699 <goals>
700 <goal>copy-resources</goal>
701 </goals>
702 <configuration>
703 <outputDirectory>
704 ${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default
705 </outputDirectory>
706 <resources>
707 <resource>
708 <directory>${project.parent.basedir}/asdctool/target</directory>
709 <includes>
710 <include>sdctool.tar</include>
711 </includes>
712 </resource>
713 </resources>
714 </configuration>
715 </execution>
716 </executions>
717 </plugin>
718 <plugin>
719 <groupId>io.fabric8</groupId>
720 <artifactId>docker-maven-plugin</artifactId>
721 <configuration>
sebdet591810d2020-09-17 15:07:23 +0200722 <apiVersion>${docker.api.version}</apiVersion>
ys969316a9fce2020-01-19 13:50:02 +0200723 <registry>nexus3.onap.org:10001</registry>
724 <authConfig>
725 <pull>
726 <username>docker</username>
727 <password>docker</password>
728 </pull>
729 </authConfig>
730 <images>
731 <!-- Build cassandra-init image -->
732 <image>
733 <name>onap/sdc-cassandra-init</name>
734 <alias>sdc-cassandra-init</alias>
735 <build>
736 <cleanup>try</cleanup>
737 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
738 <tags>
sebdetb988cb62020-09-25 15:48:10 +0200739 <tag>latest</tag>
ys969316a9fce2020-01-19 13:50:02 +0200740 <tag>
741 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
742 </tag>
sebdetb988cb62020-09-25 15:48:10 +0200743 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
ys969316a9fce2020-01-19 13:50:02 +0200744 </tags>
745 </build>
746 </image>
747 </images>
748 </configuration>
749 <executions>
750 <execution>
751 <id>clean-images</id>
752 <phase>pre-clean</phase>
753 <goals>
754 <goal>remove</goal>
755 </goals>
756 <configuration>
757 <removeAll>true</removeAll>
758 <image>onap/sdc-cassandra-init</image>
759 </configuration>
760 </execution>
761
762 <execution>
763 <id>generate-images</id>
764 <phase>install</phase>
765 <goals>
766 <goal>build</goal>
767 </goals>
768 </execution>
769
770 <execution>
771 <id>push-images</id>
772 <phase>deploy</phase>
773 <goals>
774 <goal>push</goal>
775 </goals>
776 <configuration>
777 <image>onap/sdc-cassandra-init</image>
778 </configuration>
779 </execution>
780 </executions>
781 </plugin>
782 </plugins>
783 </build>
784 </profile>
785 </profiles>
k.kazak8d526072019-05-29 14:50:05 +0200786</project>