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.onap.portal.sdk</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>
131 <groupId>org.eclipse.jetty</groupId>
132 <artifactId>jetty-util</artifactId>
133 <version>${jetty.version}</version>
134 <scope>compile</scope>
137 <!-- listen to file changes -->
139 <groupId>org.apache.commons</groupId>
140 <artifactId>commons-jci-core</artifactId>
141 <version>${commons-jci-core.version}</version>
142 <scope>compile</scope>
146 <groupId>commons-cli</groupId>
147 <artifactId>commons-cli</artifactId>
148 <version>1.4</version>
152 <groupId>org.eclipse.jetty</groupId>
153 <artifactId>jetty-servlet</artifactId>
154 <version>${jetty.version}</version>
155 <scope>compile</scope>
159 <groupId>org.glassfish.jersey.core</groupId>
160 <artifactId>jersey-server</artifactId>
161 <version>${jersey-bom.version}</version>
162 <scope>compile</scope>
166 <groupId>org.glassfish.jersey.containers</groupId>
167 <artifactId>jersey-container-servlet-core</artifactId>
168 <version>${jersey-bom.version}</version>
169 <scope>compile</scope>
173 <groupId>org.glassfish.jersey.containers</groupId>
174 <artifactId>jersey-container-jetty-http</artifactId>
175 <version>${jersey-bom.version}</version>
176 <scope>compile</scope>
180 <groupId>org.glassfish.jersey.media</groupId>
181 <artifactId>jersey-media-moxy</artifactId>
182 <version>${jersey-bom.version}</version>
183 <scope>compile</scope>
187 <groupId>org.glassfish.jersey.media</groupId>
188 <artifactId>jersey-media-multipart</artifactId>
189 <version>2.14</version>
190 <scope>compile</scope>
193 <!-- slf4j + logback -->
195 <groupId>org.slf4j</groupId>
196 <artifactId>slf4j-api</artifactId>
197 <version>${slf4j-api.version}</version>
198 <scope>compile</scope>
202 <groupId>ch.qos.logback</groupId>
203 <artifactId>logback-classic</artifactId>
204 <version>${logback.version}</version>
205 <scope>compile</scope>
209 <groupId>ch.qos.logback</groupId>
210 <artifactId>logback-core</artifactId>
211 <version>${logback.version}</version>
212 <scope>compile</scope>
217 <groupId>org.codehaus.groovy</groupId>
218 <artifactId>groovy</artifactId>
219 <scope>compile</scope>
223 <groupId>commons-configuration</groupId>
224 <artifactId>commons-configuration</artifactId>
225 <version>1.6</version>
226 <scope>compile</scope>
229 <artifactId>commons-collections</artifactId>
230 <groupId>commons-collections</groupId>
237 <groupId>com.thinkaurelius.titan</groupId>
238 <artifactId>titan-core</artifactId>
239 <version>${titan.version}</version>
240 <scope>compile</scope>
243 <groupId>org.json</groupId>
244 <artifactId>json</artifactId>
247 <groupId>org.slf4j</groupId>
248 <artifactId>slf4j-log4j12</artifactId>
251 <artifactId>commons-collections</artifactId>
252 <groupId>commons-collections</groupId>
258 <groupId>com.googlecode.json-simple</groupId>
259 <artifactId>json-simple</artifactId>
260 <version>${json-simple.version}</version>
261 <scope>compile</scope>
265 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
266 <artifactId>sdc-titan-cassandra</artifactId>
267 <version>${sdc.titan.version}</version>
268 <scope>compile</scope>
271 <groupId>org.slf4j</groupId>
272 <artifactId>slf4j-log4j12</artifactId>
278 <groupId>org.apache.tinkerpop</groupId>
279 <artifactId>tinkergraph-gremlin</artifactId>
280 <version>3.0.1-incubating</version>
281 <scope>compile</scope>
285 <groupId>org.apache.tinkerpop</groupId>
286 <artifactId>gremlin-groovy</artifactId>
287 <version>3.0.1-incubating</version>
288 <scope>compile</scope>
291 <artifactId>groovy</artifactId>
292 <groupId>org.codehaus.groovy</groupId>
299 <groupId>commons-logging</groupId>
300 <artifactId>commons-logging</artifactId>
301 <version>${commons-logging}</version>
302 <scope>compile</scope>
306 <groupId>commons-codec</groupId>
307 <artifactId>commons-codec</artifactId>
308 <version>${commons-codec}</version>
309 <scope>compile</scope>
313 <groupId>com.fasterxml.jackson.core</groupId>
314 <artifactId>jackson-databind</artifactId>
315 <version>${jackson.version}</version>
316 <scope>compile</scope>
319 <!-- Explicitly specified in order to override older version included by epsdk-fw -->
321 <groupId>com.fasterxml.jackson.core</groupId>
322 <artifactId>jackson-annotations</artifactId>
323 <version>${jackson-annotations.version}</version>
327 <groupId>com.google.code.gson</groupId>
328 <artifactId>gson</artifactId>
329 <version>${gson.version}</version>
330 <scope>compile</scope>
334 <groupId>org.apache.httpcomponents</groupId>
335 <artifactId>httpclient</artifactId>
336 <version>${httpclient.version}</version>
337 <scope>compile</scope>
341 <groupId>org.apache.httpcomponents</groupId>
342 <artifactId>httpcore</artifactId>
343 <version>${httpcore.version}</version>
344 <scope>compile</scope>
347 <!-- Spring 4 dependencies -->
349 <groupId>org.springframework</groupId>
350 <artifactId>spring-core</artifactId>
351 <version>${spring.version}</version>
352 <scope>compile</scope>
356 <groupId>org.springframework</groupId>
357 <artifactId>spring-context</artifactId>
358 <version>${spring.version}</version>
359 <scope>compile</scope>
363 <groupId>org.springframework</groupId>
364 <artifactId>spring-expression</artifactId>
365 <version>${spring.version}</version>
366 <scope>compile</scope>
370 <groupId>org.springframework</groupId>
371 <artifactId>spring-beans</artifactId>
372 <version>${spring.version}</version>
373 <scope>compile</scope>
377 <groupId>org.springframework</groupId>
378 <artifactId>spring-aop</artifactId>
379 <version>${spring.version}</version>
380 <scope>compile</scope>
383 <!-- Spring 4 dependencies end -->
384 <!-- JavaConfig need this library -->
386 <groupId>cglib</groupId>
387 <artifactId>cglib</artifactId>
388 <version>3.2.4</version>
389 <scope>compile</scope>
393 <groupId>org.yaml</groupId>
394 <artifactId>snakeyaml</artifactId>
395 <version>${snakeyaml.version}</version>
396 <scope>compile</scope>
400 <groupId>org.functionaljava</groupId>
401 <artifactId>functionaljava</artifactId>
402 <version>${functionaljava.version}</version>
403 <scope>compile</scope>
407 <groupId>org.elasticsearch</groupId>
408 <artifactId>elasticsearch</artifactId>
409 <version>${elastic-search.version}</version>
410 <scope>compile</scope>
414 <groupId>com.fasterxml.jackson.dataformat</groupId>
415 <artifactId>jackson-dataformat-yaml</artifactId>
416 <version>${jackson.version}</version>
417 <scope>compile</scope>
422 <groupId>com.datastax.cassandra</groupId>
423 <artifactId>cassandra-driver-core</artifactId>
424 <version>${cassandra.driver.version}</version>
425 <scope>compile</scope>
429 <groupId>com.datastax.cassandra</groupId>
430 <artifactId>cassandra-driver-mapping</artifactId>
431 <version>${cassandra.driver.version}</version>
432 <scope>compile</scope>
435 <!-- CASSANDRA END -->
439 <groupId>com.opencsv</groupId>
440 <artifactId>opencsv</artifactId>
441 <version>4.0</version>
442 <scope>compile</scope>
446 <groupId>org.apache.poi</groupId>
447 <artifactId>com.springsource.org.apache.poi</artifactId>
448 <version>3.9.0.FINAL</version>
449 <scope>compile</scope>
453 <groupId>org.jdom</groupId>
454 <artifactId>jdom</artifactId>
455 <version>2.0.2</version>
456 <scope>compile</scope>
459 <!-- Temporary, till building the populate task which adding all components
460 to cache. We will use Serialization Utils. -->
462 <groupId>de.ruedigermoeller</groupId>
463 <artifactId>fst</artifactId>
464 <version>2.47</version>
465 <scope>compile</scope>
470 <groupId>junit</groupId>
471 <artifactId>junit</artifactId>
472 <version>${junit.version}</version>
477 <groupId>org.testng</groupId>
478 <artifactId>testng</artifactId>
479 <version>${testng.version}</version>
484 <groupId>org.mockito</groupId>
485 <artifactId>mockito-core</artifactId>
490 <groupId>org.assertj</groupId>
491 <artifactId>assertj-core</artifactId>
497 <groupId>io.netty</groupId>
498 <artifactId>netty-all</artifactId>
502 <groupId>io.netty</groupId>
503 <artifactId>netty-handler</artifactId>
508 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
511 <groupId>org.apache.maven.plugins</groupId>
512 <artifactId>maven-clean-plugin</artifactId>
515 <id>clean-static-files</id>
524 <directory>${project.parent.basedir}/asdctool/tosca</directory>
525 <followSymlinks>false</followSymlinks>
528 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
529 <followSymlinks>false</followSymlinks>
531 <include>**/default.rb</include>
535 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default/tools</directory>
536 <followSymlinks>false</followSymlinks>
539 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
540 <followSymlinks>false</followSymlinks>
542 <include>**/sdctool.tar</include>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-deploy-plugin</artifactId>
560 <groupId>org.apache.maven.plugins</groupId>
561 <artifactId>maven-assembly-plugin</artifactId>
565 <finalName>sdctool</finalName>
566 <appendAssemblyId>false</appendAssemblyId>
568 <descriptor>${project.basedir}/tarball.xml</descriptor>
571 <id>assemble-file</id>
572 <phase>verify</phase>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-shade-plugin</artifactId>
585 <phase>package</phase>
592 <artifact>org.openecomp.sdc:*</artifact>
594 <exclude>**/elasticsearch.yml</exclude>
598 <artifact>*:*</artifact>
600 <exclude>META-INF/*.SF</exclude>
601 <exclude>META-INF/*.DSA</exclude>
602 <exclude>META-INF/*.RSA</exclude>
607 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
614 <groupId>ru.yaal.maven</groupId>
615 <artifactId>write-text-files-maven-plugin</artifactId>
617 <charset>UTF-8</charset>
621 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
624 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
631 <id>write-text-files</id>
632 <phase>prepare-package</phase>
634 <goal>write-text-files</goal>
640 <groupId>org.apache.maven.plugins</groupId>
641 <artifactId>maven-resources-plugin</artifactId>
644 <id>copy-tosca-folder</id>
645 <!-- here the phase you need -->
646 <phase>compile</phase>
648 <goal>copy-resources</goal>
651 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
654 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
655 <filtering>true</filtering>
663 <groupId>com.github.sylvainlaurent.maven</groupId>
664 <artifactId>yaml-json-validator-maven-plugin</artifactId>
668 <phase>validate</phase>
670 <goal>validate</goal>
676 <include>src/main/resources/**/*.y*ml</include>
677 <include>src/test/resources/**/*.y*ml</include>
682 <include>src/main/resources/**/*.json</include>
683 <include>src/test/resources/**/*.json</include>
697 <activeByDefault>false</activeByDefault>
702 <groupId>org.apache.maven.plugins</groupId>
703 <artifactId>maven-resources-plugin</artifactId>
706 <id>copy-sdctool</id>
707 <phase>verify</phase>
709 <goal>copy-resources</goal>
712 <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
715 <directory>${project.parent.basedir}/asdctool/target</directory>
717 <include>sdctool.tar</include>
726 <groupId>io.fabric8</groupId>
727 <artifactId>docker-maven-plugin</artifactId>
729 <apiVersion>1.23</apiVersion>
730 <registry>nexus3.onap.org:10001</registry>
733 <username>docker</username>
734 <password>docker</password>
738 <!-- Build cassandra-init image -->
740 <name>onap/sdc-cassandra-init</name>
741 <alias>sdc-cassandra-init</alias>
743 <cleanup>try</cleanup>
744 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
746 <tag>${docker.tag}</tag>
747 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
755 <id>clean-images</id>
756 <phase>pre-clean</phase>
761 <removeAll>true</removeAll>
762 <image>onap/sdc-cassandra-init</image>
767 <id>generate-images</id>
768 <phase>install</phase>
776 <phase>deploy</phase>
781 <image>onap/sdc-cassandra-init</image>