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.4.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-common-lib</artifactId>
72 <groupId>com.att.nsa</groupId>
73 <artifactId>cambriaClient</artifactId>
76 <groupId>com.att.nsa</groupId>
77 <artifactId>dmaapClient</artifactId>
80 <artifactId>slf4j-log4j12</artifactId>
81 <groupId>org.slf4j</groupId>
86 <scope>compile</scope>
90 <groupId>org.onap.portal.sdk</groupId>
91 <artifactId>epsdk-fw</artifactId>
92 <version>${ecomp.version}</version>
93 <scope>compile</scope>
96 <groupId>com.att.nsa</groupId>
97 <artifactId>cambriaClient</artifactId>
100 <groupId>com.att.nsa</groupId>
101 <artifactId>dmaapClient</artifactId>
104 <artifactId>slf4j-log4j12</artifactId>
105 <groupId>org.slf4j</groupId>
112 <!-- ASDC dependencies end -->
114 <groupId>org.eclipse.jetty</groupId>
115 <artifactId>jetty-server</artifactId>
116 <version>${jetty.version}</version>
117 <scope>compile</scope>
121 <groupId>org.eclipse.jetty</groupId>
122 <artifactId>jetty-util</artifactId>
123 <version>${jetty.version}</version>
124 <scope>compile</scope>
127 <!-- listen to file changes -->
129 <groupId>org.apache.commons</groupId>
130 <artifactId>commons-jci-core</artifactId>
131 <version>${commons-jci-core.version}</version>
132 <scope>compile</scope>
136 <groupId>commons-cli</groupId>
137 <artifactId>commons-cli</artifactId>
138 <version>1.4</version>
142 <groupId>org.eclipse.jetty</groupId>
143 <artifactId>jetty-servlet</artifactId>
144 <version>${jetty.version}</version>
145 <scope>compile</scope>
149 <groupId>org.glassfish.jersey.core</groupId>
150 <artifactId>jersey-server</artifactId>
151 <version>${jersey-bom.version}</version>
152 <scope>compile</scope>
156 <groupId>org.glassfish.jersey.containers</groupId>
157 <artifactId>jersey-container-servlet-core</artifactId>
158 <version>${jersey-bom.version}</version>
159 <scope>compile</scope>
163 <groupId>org.glassfish.jersey.containers</groupId>
164 <artifactId>jersey-container-jetty-http</artifactId>
165 <version>${jersey-bom.version}</version>
166 <scope>compile</scope>
170 <groupId>org.glassfish.jersey.media</groupId>
171 <artifactId>jersey-media-moxy</artifactId>
172 <version>${jersey-bom.version}</version>
173 <scope>compile</scope>
177 <groupId>org.glassfish.jersey.media</groupId>
178 <artifactId>jersey-media-multipart</artifactId>
179 <version>2.14</version>
180 <scope>compile</scope>
183 <!-- slf4j + logback -->
185 <groupId>org.slf4j</groupId>
186 <artifactId>slf4j-api</artifactId>
187 <version>${slf4j-api.version}</version>
188 <scope>compile</scope>
192 <groupId>ch.qos.logback</groupId>
193 <artifactId>logback-classic</artifactId>
194 <version>${logback.version}</version>
195 <scope>compile</scope>
199 <groupId>ch.qos.logback</groupId>
200 <artifactId>logback-core</artifactId>
201 <version>${logback.version}</version>
202 <scope>compile</scope>
207 <groupId>org.codehaus.groovy</groupId>
208 <artifactId>groovy</artifactId>
209 <scope>compile</scope>
213 <groupId>commons-configuration</groupId>
214 <artifactId>commons-configuration</artifactId>
215 <version>1.6</version>
216 <scope>compile</scope>
219 <artifactId>commons-collections</artifactId>
220 <groupId>commons-collections</groupId>
227 <groupId>com.thinkaurelius.titan</groupId>
228 <artifactId>titan-core</artifactId>
229 <version>${titan.version}</version>
230 <scope>compile</scope>
233 <groupId>org.json</groupId>
234 <artifactId>json</artifactId>
237 <groupId>org.slf4j</groupId>
238 <artifactId>slf4j-log4j12</artifactId>
241 <artifactId>commons-collections</artifactId>
242 <groupId>commons-collections</groupId>
248 <groupId>com.googlecode.json-simple</groupId>
249 <artifactId>json-simple</artifactId>
250 <version>${json-simple.version}</version>
251 <scope>compile</scope>
255 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
256 <artifactId>sdc-titan-cassandra</artifactId>
257 <version>${sdc.titan.version}</version>
258 <scope>compile</scope>
261 <groupId>org.slf4j</groupId>
262 <artifactId>slf4j-log4j12</artifactId>
268 <groupId>org.apache.tinkerpop</groupId>
269 <artifactId>tinkergraph-gremlin</artifactId>
270 <version>3.0.1-incubating</version>
271 <scope>compile</scope>
275 <groupId>org.apache.tinkerpop</groupId>
276 <artifactId>gremlin-groovy</artifactId>
277 <version>3.0.1-incubating</version>
278 <scope>compile</scope>
281 <artifactId>groovy</artifactId>
282 <groupId>org.codehaus.groovy</groupId>
289 <groupId>commons-logging</groupId>
290 <artifactId>commons-logging</artifactId>
291 <version>${commons-logging}</version>
292 <scope>compile</scope>
296 <groupId>commons-codec</groupId>
297 <artifactId>commons-codec</artifactId>
298 <version>${commons-codec}</version>
299 <scope>compile</scope>
303 <groupId>com.fasterxml.jackson.core</groupId>
304 <artifactId>jackson-databind</artifactId>
305 <version>${jackson.version}</version>
306 <scope>compile</scope>
309 <!-- Explicitly specified in order to override older version included by epsdk-fw -->
311 <groupId>com.fasterxml.jackson.core</groupId>
312 <artifactId>jackson-annotations</artifactId>
313 <version>${jackson-annotations.version}</version>
317 <groupId>com.google.code.gson</groupId>
318 <artifactId>gson</artifactId>
319 <version>${gson.version}</version>
320 <scope>compile</scope>
324 <groupId>org.apache.httpcomponents</groupId>
325 <artifactId>httpclient</artifactId>
326 <version>${httpclient.version}</version>
327 <scope>compile</scope>
331 <groupId>org.apache.httpcomponents</groupId>
332 <artifactId>httpcore</artifactId>
333 <version>${httpcore.version}</version>
334 <scope>compile</scope>
337 <!-- Spring 4 dependencies -->
339 <groupId>org.springframework</groupId>
340 <artifactId>spring-core</artifactId>
341 <version>${spring.version}</version>
342 <scope>compile</scope>
346 <groupId>org.springframework</groupId>
347 <artifactId>spring-context</artifactId>
348 <version>${spring.version}</version>
349 <scope>compile</scope>
353 <groupId>org.springframework</groupId>
354 <artifactId>spring-expression</artifactId>
355 <version>${spring.version}</version>
356 <scope>compile</scope>
360 <groupId>org.springframework</groupId>
361 <artifactId>spring-beans</artifactId>
362 <version>${spring.version}</version>
363 <scope>compile</scope>
367 <groupId>org.springframework</groupId>
368 <artifactId>spring-aop</artifactId>
369 <version>${spring.version}</version>
370 <scope>compile</scope>
373 <!-- Spring 4 dependencies end -->
374 <!-- JavaConfig need this library -->
376 <groupId>cglib</groupId>
377 <artifactId>cglib</artifactId>
378 <version>3.2.4</version>
379 <scope>compile</scope>
383 <groupId>org.yaml</groupId>
384 <artifactId>snakeyaml</artifactId>
385 <version>${snakeyaml.version}</version>
386 <scope>compile</scope>
390 <groupId>org.functionaljava</groupId>
391 <artifactId>functionaljava</artifactId>
392 <version>${functionaljava.version}</version>
393 <scope>compile</scope>
397 <groupId>org.elasticsearch</groupId>
398 <artifactId>elasticsearch</artifactId>
399 <version>${elastic-search.version}</version>
400 <scope>compile</scope>
404 <groupId>com.fasterxml.jackson.dataformat</groupId>
405 <artifactId>jackson-dataformat-yaml</artifactId>
406 <version>${jackson.version}</version>
407 <scope>compile</scope>
412 <groupId>com.datastax.cassandra</groupId>
413 <artifactId>cassandra-driver-core</artifactId>
414 <version>${cassandra.driver.version}</version>
415 <scope>compile</scope>
419 <groupId>com.datastax.cassandra</groupId>
420 <artifactId>cassandra-driver-mapping</artifactId>
421 <version>${cassandra.driver.version}</version>
422 <scope>compile</scope>
425 <!-- CASSANDRA END -->
429 <groupId>com.opencsv</groupId>
430 <artifactId>opencsv</artifactId>
431 <version>4.0</version>
432 <scope>compile</scope>
436 <groupId>org.apache.poi</groupId>
437 <artifactId>com.springsource.org.apache.poi</artifactId>
438 <version>3.9.0.FINAL</version>
439 <scope>compile</scope>
443 <groupId>org.jdom</groupId>
444 <artifactId>jdom</artifactId>
445 <version>2.0.2</version>
446 <scope>compile</scope>
449 <!-- Temporary, till building the populate task which adding all components
450 to cache. We will use Serialization Utils. -->
452 <groupId>de.ruedigermoeller</groupId>
453 <artifactId>fst</artifactId>
454 <version>2.47</version>
455 <scope>compile</scope>
460 <groupId>junit</groupId>
461 <artifactId>junit</artifactId>
462 <version>${junit.version}</version>
467 <groupId>org.testng</groupId>
468 <artifactId>testng</artifactId>
469 <version>${testng.version}</version>
474 <groupId>org.mockito</groupId>
475 <artifactId>mockito-core</artifactId>
480 <groupId>org.assertj</groupId>
481 <artifactId>assertj-core</artifactId>
487 <groupId>io.netty</groupId>
488 <artifactId>netty-all</artifactId>
492 <groupId>io.netty</groupId>
493 <artifactId>netty-handler</artifactId>
498 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
501 <groupId>org.apache.maven.plugins</groupId>
502 <artifactId>maven-clean-plugin</artifactId>
505 <id>clean-static-files</id>
514 <directory>${project.parent.basedir}/asdctool/tosca</directory>
515 <followSymlinks>false</followSymlinks>
518 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
519 <followSymlinks>false</followSymlinks>
521 <include>**/default.rb</include>
525 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default/tools</directory>
526 <followSymlinks>false</followSymlinks>
529 <directory>${project.basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</directory>
530 <followSymlinks>false</followSymlinks>
532 <include>**/sdctool.tar</include>
542 <groupId>org.apache.maven.plugins</groupId>
543 <artifactId>maven-deploy-plugin</artifactId>
550 <groupId>org.apache.maven.plugins</groupId>
551 <artifactId>maven-assembly-plugin</artifactId>
555 <finalName>sdctool</finalName>
556 <appendAssemblyId>false</appendAssemblyId>
558 <descriptor>${project.basedir}/tarball.xml</descriptor>
561 <id>assemble-file</id>
562 <phase>verify</phase>
571 <groupId>org.apache.maven.plugins</groupId>
572 <artifactId>maven-shade-plugin</artifactId>
575 <phase>package</phase>
582 <artifact>org.openecomp.sdc:*</artifact>
584 <exclude>**/elasticsearch.yml</exclude>
588 <artifact>*:*</artifact>
590 <exclude>META-INF/*.SF</exclude>
591 <exclude>META-INF/*.DSA</exclude>
592 <exclude>META-INF/*.RSA</exclude>
597 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
604 <groupId>ru.yaal.maven</groupId>
605 <artifactId>write-text-files-maven-plugin</artifactId>
607 <charset>UTF-8</charset>
611 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
614 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
621 <id>write-text-files</id>
622 <phase>prepare-package</phase>
624 <goal>write-text-files</goal>
630 <groupId>org.apache.maven.plugins</groupId>
631 <artifactId>maven-resources-plugin</artifactId>
634 <id>copy-tosca-folder</id>
635 <!-- here the phase you need -->
636 <phase>compile</phase>
638 <goal>copy-resources</goal>
641 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
644 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
645 <filtering>true</filtering>
653 <groupId>com.github.sylvainlaurent.maven</groupId>
654 <artifactId>yaml-json-validator-maven-plugin</artifactId>
658 <phase>validate</phase>
660 <goal>validate</goal>
666 <include>src/main/resources/**/*.y*ml</include>
667 <include>src/test/resources/**/*.y*ml</include>
672 <include>src/main/resources/**/*.json</include>
673 <include>src/test/resources/**/*.json</include>
687 <activeByDefault>false</activeByDefault>
692 <groupId>org.apache.maven.plugins</groupId>
693 <artifactId>maven-resources-plugin</artifactId>
696 <id>copy-sdctool</id>
697 <phase>verify</phase>
699 <goal>copy-resources</goal>
702 <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
705 <directory>${project.parent.basedir}/asdctool/target</directory>
707 <include>sdctool.tar</include>
716 <groupId>io.fabric8</groupId>
717 <artifactId>docker-maven-plugin</artifactId>
719 <apiVersion>1.23</apiVersion>
720 <registry>nexus3.onap.org:10001</registry>
723 <username>docker</username>
724 <password>docker</password>
728 <!-- Build cassandra-init image -->
730 <name>onap/sdc-cassandra-init</name>
731 <alias>sdc-cassandra-init</alias>
733 <cleanup>try</cleanup>
734 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
736 <tag>${docker.tag}</tag>
737 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
745 <id>clean-images</id>
746 <phase>pre-clean</phase>
751 <removeAll>true</removeAll>
752 <image>onap/sdc-cassandra-init</image>
757 <id>generate-images</id>
758 <phase>install</phase>
766 <phase>deploy</phase>
771 <image>onap/sdc-cassandra-init</image>