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.2.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.openecomp.sdc.common</groupId>
68 <artifactId>openecomp-sdc-artifact-generator-api</artifactId>
72 <groupId>org.openecomp.sdc.common</groupId>
73 <artifactId>openecomp-sdc-artifact-generator-core</artifactId>
77 <groupId>org.openecomp.sdc.common</groupId>
78 <artifactId>openecomp-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>
121 <!--Artifact Generator-->
123 <groupId>org.openecomp.sdc.common</groupId>
124 <artifactId>openecomp-sdc-artifact-generator-api</artifactId>
125 <version>${artifact-generator-api.version}</version>
126 <scope>compile</scope>
129 <groupId>junit</groupId>
130 <artifactId>junit</artifactId>
136 <groupId>org.openecomp.sdc.common</groupId>
137 <artifactId>openecomp-sdc-artifact-generator-core</artifactId>
138 <version>${artifact-generator-core.version}</version>
139 <scope>compile</scope>
142 <groupId>junit</groupId>
143 <artifactId>junit</artifactId>
149 <groupId>org.openecomp.sdc.common</groupId>
150 <artifactId>openecomp-common-lib</artifactId>
151 <version>${dox-common-lib.version}</version>
155 <groupId>junit</groupId>
156 <artifactId>junit</artifactId>
162 <!-- ASDC dependencies end -->
164 <groupId>org.eclipse.jetty</groupId>
165 <artifactId>jetty-server</artifactId>
166 <version>9.2.10.v20150310</version>
167 <scope>compile</scope>
170 <!-- listen to file changes -->
172 <groupId>org.apache.commons</groupId>
173 <artifactId>commons-jci-core</artifactId>
174 <version>${commons-jci-core.version}</version>
175 <scope>compile</scope>
179 <groupId>commons-cli</groupId>
180 <artifactId>commons-cli</artifactId>
181 <version>1.4</version>
185 <groupId>org.eclipse.jetty</groupId>
186 <artifactId>jetty-servlet</artifactId>
187 <version>${jetty.version}</version>
188 <scope>compile</scope>
192 <groupId>org.glassfish.jersey.core</groupId>
193 <artifactId>jersey-server</artifactId>
194 <version>${jersey-bom.version}</version>
195 <scope>compile</scope>
199 <groupId>org.glassfish.jersey.containers</groupId>
200 <artifactId>jersey-container-servlet-core</artifactId>
201 <version>${jersey-bom.version}</version>
202 <scope>compile</scope>
206 <groupId>org.glassfish.jersey.containers</groupId>
207 <artifactId>jersey-container-jetty-http</artifactId>
208 <version>${jersey-bom.version}</version>
209 <scope>compile</scope>
213 <groupId>org.glassfish.jersey.media</groupId>
214 <artifactId>jersey-media-moxy</artifactId>
215 <version>${jersey-bom.version}</version>
216 <scope>compile</scope>
220 <groupId>org.glassfish.jersey.media</groupId>
221 <artifactId>jersey-media-multipart</artifactId>
222 <version>2.14</version>
223 <scope>compile</scope>
226 <!-- slf4j + logback -->
228 <groupId>org.slf4j</groupId>
229 <artifactId>slf4j-api</artifactId>
230 <version>${slf4j-api.version}</version>
231 <scope>compile</scope>
235 <groupId>ch.qos.logback</groupId>
236 <artifactId>logback-classic</artifactId>
237 <version>${logback.version}</version>
238 <scope>compile</scope>
242 <groupId>ch.qos.logback</groupId>
243 <artifactId>logback-core</artifactId>
244 <version>${logback.version}</version>
245 <scope>compile</scope>
250 <groupId>org.codehaus.groovy</groupId>
251 <artifactId>groovy-all</artifactId>
252 <version>${groovy.version}</version>
253 <scope>compile</scope>
257 <groupId>commons-configuration</groupId>
258 <artifactId>commons-configuration</artifactId>
259 <version>1.6</version>
260 <scope>compile</scope>
265 <groupId>com.thinkaurelius.titan</groupId>
266 <artifactId>titan-core</artifactId>
267 <version>${titan.version}</version>
268 <scope>compile</scope>
271 <groupId>org.json</groupId>
272 <artifactId>json</artifactId>
275 <groupId>org.slf4j</groupId>
276 <artifactId>slf4j-log4j12</artifactId>
282 <groupId>com.googlecode.json-simple</groupId>
283 <artifactId>json-simple</artifactId>
284 <version>${json-simple.version}</version>
285 <scope>compile</scope>
289 <groupId>org.openecomp.sdc.sdc-titan-cassandra</groupId>
290 <artifactId>sdc-titan-cassandra</artifactId>
291 <version>${titan.version}</version>
292 <scope>compile</scope>
295 <groupId>org.slf4j</groupId>
296 <artifactId>slf4j-log4j12</artifactId>
302 <groupId>org.apache.tinkerpop</groupId>
303 <artifactId>tinkergraph-gremlin</artifactId>
304 <version>3.0.1-incubating</version>
305 <scope>compile</scope>
309 <groupId>org.apache.tinkerpop</groupId>
310 <artifactId>gremlin-groovy</artifactId>
311 <version>3.0.1-incubating</version>
312 <scope>compile</scope>
316 <groupId>com.tinkerpop.blueprints</groupId>
317 <artifactId>blueprints-sail-graph</artifactId>
318 <version>2.5.0</version>
319 <optional>true</optional>
320 <scope>compile</scope>
323 <groupId>org.slf4j</groupId>
324 <artifactId>slf4j-log4j12</artifactId>
330 <groupId>com.tinkerpop.blueprints</groupId>
331 <artifactId>blueprints-graph-sail</artifactId>
332 <version>2.5.0</version>
333 <optional>true</optional>
334 <scope>compile</scope>
337 <groupId>org.slf4j</groupId>
338 <artifactId>slf4j-log4j12</artifactId>
345 <groupId>commons-logging</groupId>
346 <artifactId>commons-logging</artifactId>
347 <version>${commons-logging}</version>
348 <scope>compile</scope>
352 <groupId>commons-codec</groupId>
353 <artifactId>commons-codec</artifactId>
354 <version>${commons-codec}</version>
355 <scope>compile</scope>
358 <groupId>com.fasterxml.jackson.core</groupId>
359 <artifactId>jackson-core</artifactId>
360 <version>${jackson.version}</version>
361 <scope>compile</scope>
365 <groupId>com.fasterxml.jackson.core</groupId>
366 <artifactId>jackson-databind</artifactId>
367 <version>${jackson.version}</version>
368 <scope>compile</scope>
372 <groupId>com.fasterxml.jackson.core</groupId>
373 <artifactId>jackson-annotations</artifactId>
374 <version>${jackson.annotations.version}</version>
375 <scope>compile</scope>
379 <groupId>com.google.code.gson</groupId>
380 <artifactId>gson</artifactId>
381 <version>${gson.version}</version>
382 <scope>compile</scope>
386 <groupId>org.apache.httpcomponents</groupId>
387 <artifactId>httpclient</artifactId>
388 <version>${httpclient.version}</version>
389 <scope>compile</scope>
393 <groupId>org.apache.httpcomponents</groupId>
394 <artifactId>httpcore</artifactId>
395 <version>${httpcore.version}</version>
396 <scope>compile</scope>
399 <!-- Spring 4 dependencies -->
401 <groupId>org.springframework</groupId>
402 <artifactId>spring-core</artifactId>
403 <version>${spring.version}</version>
404 <scope>compile</scope>
408 <groupId>org.springframework</groupId>
409 <artifactId>spring-context</artifactId>
410 <version>${spring.version}</version>
411 <scope>compile</scope>
415 <groupId>org.springframework</groupId>
416 <artifactId>spring-expression</artifactId>
417 <version>${spring.version}</version>
418 <scope>compile</scope>
422 <groupId>org.springframework</groupId>
423 <artifactId>spring-beans</artifactId>
424 <version>${spring.version}</version>
425 <!--<version>4.0.7.RELEASE</version>-->
426 <scope>compile</scope>
430 <groupId>org.springframework</groupId>
431 <artifactId>spring-aop</artifactId>
432 <version>${spring.version}</version>
433 <scope>compile</scope>
436 <!-- Spring 4 dependencies end -->
437 <!-- JavaConfig need this library -->
439 <groupId>cglib</groupId>
440 <artifactId>cglib</artifactId>
441 <version>3.2.4</version>
442 <scope>compile</scope>
446 <groupId>org.yaml</groupId>
447 <artifactId>snakeyaml</artifactId>
448 <version>${snakeyaml.version}</version>
449 <scope>compile</scope>
453 <groupId>org.functionaljava</groupId>
454 <artifactId>functionaljava</artifactId>
455 <version>${functionaljava.version}</version>
456 <scope>compile</scope>
460 <groupId>org.elasticsearch</groupId>
461 <artifactId>elasticsearch</artifactId>
462 <version>${elastic-search.version}</version>
463 <scope>compile</scope>
467 <groupId>com.fasterxml.jackson.dataformat</groupId>
468 <artifactId>jackson-dataformat-yaml</artifactId>
469 <version>${jackson.version}</version>
470 <scope>compile</scope>
474 <groupId>org.elasticsearch.plugin</groupId>
475 <artifactId>shield</artifactId>
476 <version>${elastic-search.version}</version>
477 <scope>compile</scope>
482 <groupId>com.datastax.cassandra</groupId>
483 <artifactId>cassandra-driver-core</artifactId>
484 <version>${cassandra.driver.version}</version>
485 <scope>compile</scope>
489 <groupId>com.datastax.cassandra</groupId>
490 <artifactId>cassandra-driver-mapping</artifactId>
491 <version>${cassandra.driver.version}</version>
492 <scope>compile</scope>
495 <!-- CASSANDRA END -->
499 <groupId>com.opencsv</groupId>
500 <artifactId>opencsv</artifactId>
501 <version>4.0</version>
502 <scope>compile</scope>
506 <groupId>org.apache.poi</groupId>
507 <artifactId>com.springsource.org.apache.poi</artifactId>
508 <version>3.9.0.FINAL</version>
509 <scope>compile</scope>
513 <groupId>org.jdom</groupId>
514 <artifactId>jdom</artifactId>
515 <version>2.0.2</version>
516 <scope>compile</scope>
519 <!-- Temporary, till building the populate task which adding all components
520 to cache. We will use Serialization Utils. -->
522 <groupId>de.ruedigermoeller</groupId>
523 <artifactId>fst</artifactId>
524 <version>2.47</version>
525 <scope>compile</scope>
530 <groupId>junit</groupId>
531 <artifactId>junit</artifactId>
532 <version>${junit.version}</version>
537 <groupId>org.testng</groupId>
538 <artifactId>testng</artifactId>
539 <version>${testng.version}</version>
544 <groupId>org.mockito</groupId>
545 <artifactId>mockito-core</artifactId>
553 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
557 <groupId>org.apache.maven.plugins</groupId>
558 <artifactId>maven-deploy-plugin</artifactId>
559 <version>2.7</version>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-assembly-plugin</artifactId>
571 <finalName>sdctool</finalName>
572 <appendAssemblyId>false</appendAssemblyId>
573 <descriptor>${project.basedir}/tarball.xml</descriptor>
575 <id>assemble-file</id>
576 <phase>verify</phase>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-shade-plugin</artifactId>
587 <version>3.1.0</version>
590 <phase>package</phase>
597 <artifact>org.openecomp.sdc:*</artifact>
599 <exclude>**/elasticsearch.yml</exclude>
603 <artifact>*:*</artifact>
605 <exclude>META-INF/*.SF</exclude>
606 <exclude>META-INF/*.DSA</exclude>
607 <exclude>META-INF/*.RSA</exclude>
612 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
620 <artifactId>maven-clean-plugin</artifactId>
621 <version>3.0.0</version>
624 <id>clean-static-files</id>
633 <directory>${project.parent.basedir}/asdctool/tosca</directory>
634 <followSymlinks>false</followSymlinks>
637 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
638 <followSymlinks>false</followSymlinks>
640 <include>**/default.rb</include>
644 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default/tools</directory>
645 <followSymlinks>false</followSymlinks>
648 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
649 <followSymlinks>false</followSymlinks>
651 <include>**/sdctool.tar</include>
660 <groupId>ru.yaal.maven</groupId>
661 <artifactId>write-text-files-maven-plugin</artifactId>
662 <version>1.1</version>
664 <charset>UTF-8</charset>
668 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
671 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
678 <id>write-text-files</id>
679 <phase>prepare-package</phase>
681 <goal>write-text-files</goal>
687 <groupId>org.apache.maven.plugins</groupId>
688 <artifactId>maven-resources-plugin</artifactId>
689 <version>3.0.2</version>
693 <id>copy-tosca-folder</id>
694 <!-- here the phase you need -->
695 <phase>compile</phase>
697 <goal>copy-resources</goal>
700 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
703 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
704 <filtering>true</filtering>
716 <id>docker-staging</id>
718 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
719 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
725 <activeByDefault>false</activeByDefault>
730 <artifactId>maven-resources-plugin</artifactId>
731 <version>3.0.2</version>
734 <id>copy-dox-files</id>
735 <phase>verify</phase>
737 <goal>copy-resources</goal>
740 <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
743 <directory>${project.parent.basedir}/openecomp-be</directory>
745 <include>tools/build/**</include>
749 <directory>${project.parent.basedir}/openecomp-be</directory>
751 <include>tools/install/**</include>
758 <id>copy-sdctool</id>
759 <phase>verify</phase>
761 <goal>copy-resources</goal>
764 <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
767 <directory>${project.parent.basedir}/asdctool/target</directory>
769 <include>sdctool.tar</include>
778 <groupId>io.fabric8</groupId>
779 <artifactId>docker-maven-plugin</artifactId>
780 <version>${fabric8.version}</version>
783 <verbose>true</verbose>
784 <apiVersion>1.23</apiVersion>
785 <registry>nexus3.onap.org:10001</registry>
788 <username>docker</username>
789 <password>docker</password>
793 <!-- Build cassandra-init image -->
795 <name>onap/sdc-cassandra-init</name>
796 <alias>sdc-cassandra-init</alias>
798 <cleanup>try</cleanup>
799 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
801 <tag>${docker.tag}</tag>
802 <tag>${docker.latest.tag}</tag>
803 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
811 <id>clean-images</id>
812 <phase>pre-clean</phase>
817 <removeAll>true</removeAll>
818 <image>onap/sdc-cassandra-init</image>
823 <id>generate-images</id>
824 <phase>install</phase>
832 <phase>deploy</phase>
837 <image>onap/sdc-cassandra-init</image>