1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <artifactId>asdctool</artifactId>
6 <packaging>jar</packaging>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>sdc-main</artifactId>
11 <version>1.3.0-SNAPSHOT</version>
17 <groupId>com.google.guava</groupId>
18 <artifactId>guava</artifactId>
19 <version>${guava.version}</version>
20 <scope>compile</scope>
23 <!-- ASDC dependencies -->
25 <groupId>org.openecomp.sdc.be</groupId>
26 <artifactId>common-be</artifactId>
27 <version>${project.version}</version>
28 <scope>compile</scope>
31 <groupId>org.openecomp.sdc</groupId>
32 <artifactId>common-app-api</artifactId>
33 <version>${project.version}</version>
34 <scope>compile</scope>
38 <groupId>org.openecomp.sdc.be</groupId>
39 <artifactId>catalog-dao</artifactId>
40 <version>${project.version}</version>
41 <scope>compile</scope>
45 <groupId>org.openecomp.sdc.be</groupId>
46 <artifactId>catalog-model</artifactId>
47 <version>${project.version}</version>
48 <scope>compile</scope>
53 <groupId>org.openecomp.sdc</groupId>
54 <artifactId>catalog-be</artifactId>
55 <version>${project.version}</version>
57 <!-- Comment Out in order to debug in eclipse -->
58 <classifier>classes</classifier>
62 <groupId>org.openecomp.ecompsdkos</groupId>
63 <artifactId>epsdk-fw</artifactId>
67 <groupId>org.onap.sdc.common</groupId>
68 <artifactId>onap-sdc-artifact-generator-api</artifactId>
72 <groupId>org.onap.sdc.common</groupId>
73 <artifactId>onap-sdc-artifact-generator-core</artifactId>
77 <groupId>org.onap.sdc.common</groupId>
78 <artifactId>onap-common-lib</artifactId>
82 <groupId>com.att.nsa</groupId>
83 <artifactId>cambriaClient</artifactId>
86 <groupId>com.att.nsa</groupId>
87 <artifactId>dmaapClient</artifactId>
90 <artifactId>slf4j-log4j12</artifactId>
91 <groupId>org.slf4j</groupId>
96 <scope>compile</scope>
100 <groupId>org.openecomp.ecompsdkos</groupId>
101 <artifactId>epsdk-fw</artifactId>
102 <version>${ecomp.version}</version>
103 <scope>compile</scope>
106 <groupId>com.att.nsa</groupId>
107 <artifactId>cambriaClient</artifactId>
110 <groupId>com.att.nsa</groupId>
111 <artifactId>dmaapClient</artifactId>
114 <artifactId>slf4j-log4j12</artifactId>
115 <groupId>org.slf4j</groupId>
122 <!-- ASDC dependencies end -->
124 <groupId>org.eclipse.jetty</groupId>
125 <artifactId>jetty-server</artifactId>
126 <version>${jetty.version}</version>
127 <scope>compile</scope>
130 <!-- listen to file changes -->
132 <groupId>org.apache.commons</groupId>
133 <artifactId>commons-jci-core</artifactId>
134 <version>${commons-jci-core.version}</version>
135 <scope>compile</scope>
139 <groupId>commons-cli</groupId>
140 <artifactId>commons-cli</artifactId>
141 <version>1.4</version>
145 <groupId>org.eclipse.jetty</groupId>
146 <artifactId>jetty-servlet</artifactId>
147 <version>${jetty.version}</version>
148 <scope>compile</scope>
152 <groupId>org.glassfish.jersey.core</groupId>
153 <artifactId>jersey-server</artifactId>
154 <version>${jersey-bom.version}</version>
155 <scope>compile</scope>
159 <groupId>org.glassfish.jersey.containers</groupId>
160 <artifactId>jersey-container-servlet-core</artifactId>
161 <version>${jersey-bom.version}</version>
162 <scope>compile</scope>
166 <groupId>org.glassfish.jersey.containers</groupId>
167 <artifactId>jersey-container-jetty-http</artifactId>
168 <version>${jersey-bom.version}</version>
169 <scope>compile</scope>
173 <groupId>org.glassfish.jersey.media</groupId>
174 <artifactId>jersey-media-moxy</artifactId>
175 <version>${jersey-bom.version}</version>
176 <scope>compile</scope>
180 <groupId>org.glassfish.jersey.media</groupId>
181 <artifactId>jersey-media-multipart</artifactId>
182 <version>2.14</version>
183 <scope>compile</scope>
186 <!-- slf4j + logback -->
188 <groupId>org.slf4j</groupId>
189 <artifactId>slf4j-api</artifactId>
190 <version>${slf4j-api.version}</version>
191 <scope>compile</scope>
195 <groupId>ch.qos.logback</groupId>
196 <artifactId>logback-classic</artifactId>
197 <version>${logback.version}</version>
198 <scope>compile</scope>
202 <groupId>ch.qos.logback</groupId>
203 <artifactId>logback-core</artifactId>
204 <version>${logback.version}</version>
205 <scope>compile</scope>
210 <groupId>org.codehaus.groovy</groupId>
211 <artifactId>groovy</artifactId>
212 <scope>compile</scope>
216 <groupId>commons-configuration</groupId>
217 <artifactId>commons-configuration</artifactId>
218 <version>1.6</version>
219 <scope>compile</scope>
222 <artifactId>commons-collections</artifactId>
223 <groupId>commons-collections</groupId>
230 <groupId>com.thinkaurelius.titan</groupId>
231 <artifactId>titan-core</artifactId>
232 <version>${titan.version}</version>
233 <scope>compile</scope>
236 <groupId>org.json</groupId>
237 <artifactId>json</artifactId>
240 <groupId>org.slf4j</groupId>
241 <artifactId>slf4j-log4j12</artifactId>
244 <artifactId>commons-collections</artifactId>
245 <groupId>commons-collections</groupId>
251 <groupId>com.googlecode.json-simple</groupId>
252 <artifactId>json-simple</artifactId>
253 <version>${json-simple.version}</version>
254 <scope>compile</scope>
258 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
259 <artifactId>sdc-titan-cassandra</artifactId>
260 <version>${sdc.titan.version}</version>
261 <scope>compile</scope>
264 <groupId>org.slf4j</groupId>
265 <artifactId>slf4j-log4j12</artifactId>
271 <groupId>org.apache.tinkerpop</groupId>
272 <artifactId>tinkergraph-gremlin</artifactId>
273 <version>3.0.1-incubating</version>
274 <scope>compile</scope>
278 <groupId>org.apache.tinkerpop</groupId>
279 <artifactId>gremlin-groovy</artifactId>
280 <version>3.0.1-incubating</version>
281 <scope>compile</scope>
285 <groupId>com.tinkerpop.blueprints</groupId>
286 <artifactId>blueprints-sail-graph</artifactId>
287 <version>2.5.0</version>
288 <optional>true</optional>
289 <scope>compile</scope>
292 <groupId>org.slf4j</groupId>
293 <artifactId>slf4j-log4j12</artifactId>
299 <groupId>com.tinkerpop.blueprints</groupId>
300 <artifactId>blueprints-graph-sail</artifactId>
301 <version>2.5.0</version>
302 <optional>true</optional>
303 <scope>compile</scope>
306 <groupId>org.slf4j</groupId>
307 <artifactId>slf4j-log4j12</artifactId>
314 <groupId>commons-logging</groupId>
315 <artifactId>commons-logging</artifactId>
316 <version>${commons-logging}</version>
317 <scope>compile</scope>
321 <groupId>commons-codec</groupId>
322 <artifactId>commons-codec</artifactId>
323 <version>${commons-codec}</version>
324 <scope>compile</scope>
328 <groupId>com.fasterxml.jackson.core</groupId>
329 <artifactId>jackson-databind</artifactId>
330 <version>${jackson.version}</version>
331 <scope>compile</scope>
334 <!-- Explicitly specified in order to override older version included by epsdk-fw -->
336 <groupId>com.fasterxml.jackson.core</groupId>
337 <artifactId>jackson-annotations</artifactId>
338 <version>${jackson-annotations.version}</version>
342 <groupId>com.google.code.gson</groupId>
343 <artifactId>gson</artifactId>
344 <version>${gson.version}</version>
345 <scope>compile</scope>
349 <groupId>org.apache.httpcomponents</groupId>
350 <artifactId>httpclient</artifactId>
351 <version>${httpclient.version}</version>
352 <scope>compile</scope>
356 <groupId>org.apache.httpcomponents</groupId>
357 <artifactId>httpcore</artifactId>
358 <version>${httpcore.version}</version>
359 <scope>compile</scope>
362 <!-- Spring 4 dependencies -->
364 <groupId>org.springframework</groupId>
365 <artifactId>spring-core</artifactId>
366 <version>${spring.version}</version>
367 <scope>compile</scope>
371 <groupId>org.springframework</groupId>
372 <artifactId>spring-context</artifactId>
373 <version>${spring.version}</version>
374 <scope>compile</scope>
378 <groupId>org.springframework</groupId>
379 <artifactId>spring-expression</artifactId>
380 <version>${spring.version}</version>
381 <scope>compile</scope>
385 <groupId>org.springframework</groupId>
386 <artifactId>spring-beans</artifactId>
387 <version>${spring.version}</version>
388 <!--<version>4.0.7.RELEASE</version>-->
389 <scope>compile</scope>
393 <groupId>org.springframework</groupId>
394 <artifactId>spring-aop</artifactId>
395 <version>${spring.version}</version>
396 <scope>compile</scope>
399 <!-- Spring 4 dependencies end -->
400 <!-- JavaConfig need this library -->
402 <groupId>cglib</groupId>
403 <artifactId>cglib</artifactId>
404 <version>3.2.4</version>
405 <scope>compile</scope>
409 <groupId>org.yaml</groupId>
410 <artifactId>snakeyaml</artifactId>
411 <version>${snakeyaml.version}</version>
412 <scope>compile</scope>
416 <groupId>org.functionaljava</groupId>
417 <artifactId>functionaljava</artifactId>
418 <version>${functionaljava.version}</version>
419 <scope>compile</scope>
423 <groupId>org.elasticsearch</groupId>
424 <artifactId>elasticsearch</artifactId>
425 <version>${elastic-search.version}</version>
426 <scope>compile</scope>
430 <groupId>com.fasterxml.jackson.dataformat</groupId>
431 <artifactId>jackson-dataformat-yaml</artifactId>
432 <version>${jackson.version}</version>
433 <scope>compile</scope>
438 <groupId>com.datastax.cassandra</groupId>
439 <artifactId>cassandra-driver-core</artifactId>
440 <version>${cassandra.driver.version}</version>
441 <scope>compile</scope>
445 <groupId>com.datastax.cassandra</groupId>
446 <artifactId>cassandra-driver-mapping</artifactId>
447 <version>${cassandra.driver.version}</version>
448 <scope>compile</scope>
451 <!-- CASSANDRA END -->
455 <groupId>com.opencsv</groupId>
456 <artifactId>opencsv</artifactId>
457 <version>4.0</version>
458 <scope>compile</scope>
462 <groupId>org.apache.poi</groupId>
463 <artifactId>com.springsource.org.apache.poi</artifactId>
464 <version>3.9.0.FINAL</version>
465 <scope>compile</scope>
469 <groupId>org.jdom</groupId>
470 <artifactId>jdom</artifactId>
471 <version>2.0.2</version>
472 <scope>compile</scope>
475 <!-- Temporary, till building the populate task which adding all components
476 to cache. We will use Serialization Utils. -->
478 <groupId>de.ruedigermoeller</groupId>
479 <artifactId>fst</artifactId>
480 <version>2.47</version>
481 <scope>compile</scope>
486 <groupId>junit</groupId>
487 <artifactId>junit</artifactId>
488 <version>${junit.version}</version>
493 <groupId>org.testng</groupId>
494 <artifactId>testng</artifactId>
495 <version>${testng.version}</version>
500 <groupId>org.mockito</groupId>
501 <artifactId>mockito-core</artifactId>
506 <groupId>org.assertj</groupId>
507 <artifactId>assertj-core</artifactId>
514 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
517 <groupId>org.apache.maven.plugins</groupId>
518 <artifactId>maven-clean-plugin</artifactId>
521 <id>clean-static-files</id>
530 <directory>${project.parent.basedir}/asdctool/tosca</directory>
531 <followSymlinks>false</followSymlinks>
534 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
535 <followSymlinks>false</followSymlinks>
537 <include>**/default.rb</include>
541 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default/tools</directory>
542 <followSymlinks>false</followSymlinks>
545 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
546 <followSymlinks>false</followSymlinks>
548 <include>**/sdctool.tar</include>
558 <groupId>org.apache.maven.plugins</groupId>
559 <artifactId>maven-deploy-plugin</artifactId>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-assembly-plugin</artifactId>
571 <finalName>sdctool</finalName>
572 <appendAssemblyId>false</appendAssemblyId>
574 <descriptor>${project.basedir}/tarball.xml</descriptor>
577 <id>assemble-file</id>
578 <phase>verify</phase>
587 <groupId>org.apache.maven.plugins</groupId>
588 <artifactId>maven-shade-plugin</artifactId>
591 <phase>package</phase>
598 <artifact>org.openecomp.sdc:*</artifact>
600 <exclude>**/elasticsearch.yml</exclude>
604 <artifact>*:*</artifact>
606 <exclude>META-INF/*.SF</exclude>
607 <exclude>META-INF/*.DSA</exclude>
608 <exclude>META-INF/*.RSA</exclude>
613 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
620 <groupId>ru.yaal.maven</groupId>
621 <artifactId>write-text-files-maven-plugin</artifactId>
623 <charset>UTF-8</charset>
627 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
630 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
637 <id>write-text-files</id>
638 <phase>prepare-package</phase>
640 <goal>write-text-files</goal>
646 <groupId>org.apache.maven.plugins</groupId>
647 <artifactId>maven-resources-plugin</artifactId>
650 <id>copy-tosca-folder</id>
651 <!-- here the phase you need -->
652 <phase>compile</phase>
654 <goal>copy-resources</goal>
657 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
660 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
661 <filtering>true</filtering>
669 <groupId>com.github.sylvainlaurent.maven</groupId>
670 <artifactId>yaml-json-validator-maven-plugin</artifactId>
674 <phase>validate</phase>
676 <goal>validate</goal>
682 <include>src/main/resources/**/*.y*ml</include>
683 <include>src/test/resources/**/*.y*ml</include>
688 <include>src/main/resources/**/*.json</include>
689 <include>src/test/resources/**/*.json</include>
703 <activeByDefault>false</activeByDefault>
708 <groupId>org.apache.maven.plugins</groupId>
709 <artifactId>maven-resources-plugin</artifactId>
712 <id>copy-sdctool</id>
713 <phase>verify</phase>
715 <goal>copy-resources</goal>
718 <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
721 <directory>${project.parent.basedir}/asdctool/target</directory>
723 <include>sdctool.tar</include>
732 <groupId>io.fabric8</groupId>
733 <artifactId>docker-maven-plugin</artifactId>
735 <apiVersion>1.23</apiVersion>
736 <registry>nexus3.onap.org:10001</registry>
739 <username>docker</username>
740 <password>docker</password>
744 <!-- Build cassandra-init image -->
746 <name>onap/sdc-cassandra-init</name>
747 <alias>sdc-cassandra-init</alias>
749 <cleanup>try</cleanup>
750 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
752 <tag>${docker.tag}</tag>
753 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
761 <id>clean-images</id>
762 <phase>pre-clean</phase>
767 <removeAll>true</removeAll>
768 <image>onap/sdc-cassandra-init</image>
773 <id>generate-images</id>
774 <phase>install</phase>
782 <phase>deploy</phase>
787 <image>onap/sdc-cassandra-init</image>