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