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.5.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>org.apache.commons</groupId>
214 <artifactId>commons-configuration2</artifactId>
215 <version>${commons-configuration}</version>
219 <groupId>org.janusgraph</groupId>
220 <artifactId>janusgraph-core</artifactId>
221 <version>${janusgraph.version}</version>
222 <scope>compile</scope>
225 <groupId>org.json</groupId>
226 <artifactId>json</artifactId>
229 <groupId>org.slf4j</groupId>
230 <artifactId>slf4j-log4j12</artifactId>
233 <artifactId>commons-collections</artifactId>
234 <groupId>commons-collections</groupId>
237 <artifactId>groovy</artifactId>
238 <groupId>org.codehaus.groovy</groupId>
244 <groupId>com.googlecode.json-simple</groupId>
245 <artifactId>json-simple</artifactId>
246 <version>${json-simple.version}</version>
247 <scope>compile</scope>
251 <groupId>org.janusgraph</groupId>
252 <artifactId>janusgraph-cassandra</artifactId>
253 <version>${janusgraph.version}</version>
254 <scope>compile</scope>
257 <groupId>org.slf4j</groupId>
258 <artifactId>slf4j-log4j12</artifactId>
264 <groupId>commons-logging</groupId>
265 <artifactId>commons-logging</artifactId>
266 <version>${commons-logging}</version>
267 <scope>compile</scope>
271 <groupId>commons-codec</groupId>
272 <artifactId>commons-codec</artifactId>
273 <version>${commons-codec}</version>
274 <scope>compile</scope>
278 <groupId>com.fasterxml.jackson.core</groupId>
279 <artifactId>jackson-databind</artifactId>
280 <version>${jackson.version}</version>
281 <scope>compile</scope>
284 <!-- Explicitly specified in order to override older version included by epsdk-fw -->
286 <groupId>com.fasterxml.jackson.core</groupId>
287 <artifactId>jackson-annotations</artifactId>
288 <version>${jackson-annotations.version}</version>
292 <groupId>com.google.code.gson</groupId>
293 <artifactId>gson</artifactId>
294 <version>${gson.version}</version>
295 <scope>compile</scope>
299 <groupId>org.apache.httpcomponents</groupId>
300 <artifactId>httpclient</artifactId>
301 <version>${httpclient.version}</version>
302 <scope>compile</scope>
306 <groupId>org.apache.httpcomponents</groupId>
307 <artifactId>httpcore</artifactId>
308 <version>${httpcore.version}</version>
309 <scope>compile</scope>
312 <!-- Spring 4 dependencies -->
314 <groupId>org.springframework</groupId>
315 <artifactId>spring-core</artifactId>
316 <version>${spring.version}</version>
317 <scope>compile</scope>
321 <groupId>org.springframework</groupId>
322 <artifactId>spring-context</artifactId>
323 <version>${spring.version}</version>
324 <scope>compile</scope>
328 <groupId>org.springframework</groupId>
329 <artifactId>spring-expression</artifactId>
330 <version>${spring.version}</version>
331 <scope>compile</scope>
335 <groupId>org.springframework</groupId>
336 <artifactId>spring-beans</artifactId>
337 <version>${spring.version}</version>
338 <scope>compile</scope>
342 <groupId>org.springframework</groupId>
343 <artifactId>spring-aop</artifactId>
344 <version>${spring.version}</version>
345 <scope>compile</scope>
348 <!-- Spring 4 dependencies end -->
349 <!-- JavaConfig need this library -->
351 <groupId>cglib</groupId>
352 <artifactId>cglib</artifactId>
353 <version>3.2.4</version>
354 <scope>compile</scope>
358 <groupId>org.yaml</groupId>
359 <artifactId>snakeyaml</artifactId>
360 <version>${snakeyaml.version}</version>
361 <scope>compile</scope>
365 <groupId>org.functionaljava</groupId>
366 <artifactId>functionaljava</artifactId>
367 <version>${functionaljava.version}</version>
368 <scope>compile</scope>
372 <groupId>org.elasticsearch</groupId>
373 <artifactId>elasticsearch</artifactId>
374 <version>${elastic-search.version}</version>
375 <scope>compile</scope>
379 <groupId>com.fasterxml.jackson.dataformat</groupId>
380 <artifactId>jackson-dataformat-yaml</artifactId>
381 <version>${jackson.version}</version>
382 <scope>compile</scope>
387 <groupId>com.datastax.cassandra</groupId>
388 <artifactId>cassandra-driver-core</artifactId>
389 <version>${cassandra.driver.version}</version>
390 <scope>compile</scope>
394 <groupId>com.datastax.cassandra</groupId>
395 <artifactId>cassandra-driver-mapping</artifactId>
396 <version>${cassandra.driver.version}</version>
397 <scope>compile</scope>
400 <!-- CASSANDRA END -->
404 <groupId>com.opencsv</groupId>
405 <artifactId>opencsv</artifactId>
406 <version>4.0</version>
407 <scope>compile</scope>
411 <groupId>org.apache.poi</groupId>
412 <artifactId>com.springsource.org.apache.poi</artifactId>
413 <version>3.9.0.FINAL</version>
414 <scope>compile</scope>
418 <groupId>org.jdom</groupId>
419 <artifactId>jdom</artifactId>
420 <version>2.0.2</version>
421 <scope>compile</scope>
424 <!-- Temporary, till building the populate task which adding all components
425 to cache. We will use Serialization Utils. -->
427 <groupId>de.ruedigermoeller</groupId>
428 <artifactId>fst</artifactId>
429 <version>2.47</version>
430 <scope>compile</scope>
435 <groupId>org.hamcrest</groupId>
436 <artifactId>hamcrest-all</artifactId>
437 <version>${hamcrest-all.version}</version>
442 <groupId>junit</groupId>
443 <artifactId>junit</artifactId>
444 <version>${junit.version}</version>
449 <groupId>org.testng</groupId>
450 <artifactId>testng</artifactId>
451 <version>${testng.version}</version>
456 <groupId>org.mockito</groupId>
457 <artifactId>mockito-core</artifactId>
462 <groupId>org.assertj</groupId>
463 <artifactId>assertj-core</artifactId>
469 <groupId>io.netty</groupId>
470 <artifactId>netty-all</artifactId>
474 <groupId>io.netty</groupId>
475 <artifactId>netty-handler</artifactId>
480 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
483 <groupId>org.apache.maven.plugins</groupId>
484 <artifactId>maven-deploy-plugin</artifactId>
491 <groupId>org.apache.maven.plugins</groupId>
492 <artifactId>maven-assembly-plugin</artifactId>
496 <finalName>sdctool</finalName>
497 <appendAssemblyId>false</appendAssemblyId>
499 <descriptor>${project.basedir}/tarball.xml</descriptor>
502 <id>assemble-file</id>
503 <phase>verify</phase>
511 <groupId>org.apache.maven.plugins</groupId>
512 <artifactId>maven-shade-plugin</artifactId>
515 <phase>package</phase>
522 <artifact>org.openecomp.sdc:*</artifact>
524 <exclude>**/elasticsearch.yml</exclude>
528 <artifact>*:*</artifact>
530 <exclude>META-INF/*.SF</exclude>
531 <exclude>META-INF/*.DSA</exclude>
532 <exclude>META-INF/*.RSA</exclude>
537 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
544 <groupId>ru.yaal.maven</groupId>
545 <artifactId>write-text-files-maven-plugin</artifactId>
547 <charset>UTF-8</charset>
551 ${project.basedir}\sdc-cassandra-init\chef-repo\cookbooks\cassandra-actions\attributes\version.rb
554 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
561 <id>write-text-files</id>
562 <phase>prepare-package</phase>
564 <goal>write-text-files</goal>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-resources-plugin</artifactId>
574 <id>copy-tosca-folder</id>
575 <!-- here the phase you need -->
576 <phase>compile</phase>
578 <goal>copy-resources</goal>
581 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
584 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
585 <filtering>true</filtering>
593 <groupId>com.github.sylvainlaurent.maven</groupId>
594 <artifactId>yaml-json-validator-maven-plugin</artifactId>
598 <phase>validate</phase>
600 <goal>validate</goal>
606 <include>src/main/resources/**/*.y*ml</include>
607 <include>src/test/resources/**/*.y*ml</include>
612 <include>src/main/resources/**/*.json</include>
613 <include>src/test/resources/**/*.json</include>
616 <exclude>src/test/resources/graphError.json</exclude>
630 <activeByDefault>false</activeByDefault>
635 <groupId>org.apache.maven.plugins</groupId>
636 <artifactId>maven-resources-plugin</artifactId>
639 <id>copy-sdctool</id>
640 <phase>verify</phase>
642 <goal>copy-resources</goal>
645 <outputDirectory>${basedir}/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/files/default</outputDirectory>
648 <directory>${project.parent.basedir}/asdctool/target</directory>
650 <include>sdctool.tar</include>
659 <groupId>io.fabric8</groupId>
660 <artifactId>docker-maven-plugin</artifactId>
662 <apiVersion>1.23</apiVersion>
663 <registry>nexus3.onap.org:10001</registry>
666 <username>docker</username>
667 <password>docker</password>
671 <!-- Build cassandra-init image -->
673 <name>onap/sdc-cassandra-init</name>
674 <alias>sdc-cassandra-init</alias>
676 <cleanup>try</cleanup>
677 <dockerFileDir>${project.basedir}/sdc-cassandra-init</dockerFileDir>
679 <tag>${docker.tag}</tag>
680 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
688 <id>clean-images</id>
689 <phase>pre-clean</phase>
694 <removeAll>true</removeAll>
695 <image>onap/sdc-cassandra-init</image>
700 <id>generate-images</id>
701 <phase>install</phase>
709 <phase>deploy</phase>
714 <image>onap/sdc-cassandra-init</image>