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>catalog-be</artifactId>
6 <packaging>war</packaging>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>sdc-main</artifactId>
11 <version>1.2.0-SNAPSHOT</version>
18 <!--JSON and YAML Parsing-->
20 <groupId>com.fasterxml.jackson.dataformat</groupId>
21 <artifactId>jackson-dataformat-yaml</artifactId>
22 <version>${jackson.yaml.version}</version>
23 <scope>compile</scope>
27 <groupId>com.fasterxml.jackson.core</groupId>
28 <artifactId>jackson-databind</artifactId>
29 <version>${jackson.version}</version>
30 <scope>compile</scope>
34 <groupId>com.fasterxml.jackson.core</groupId>
35 <artifactId>jackson-core</artifactId>
36 <version>${jackson.version}</version>
37 <scope>compile</scope>
41 <groupId>com.fasterxml.jackson.core</groupId>
42 <artifactId>jackson-annotations</artifactId>
43 <version>${jackson.annotations.version}</version>
44 <scope>compile</scope>
48 <groupId>org.glassfish.jersey.media</groupId>
49 <artifactId>jersey-media-multipart</artifactId>
50 <version>${jersey-bom.version}</version>
51 <scope>compile</scope>
55 <groupId>org.openecomp.sdc</groupId>
56 <artifactId>security-utils</artifactId>
57 <version>${project.version}</version>
58 <scope>compile</scope>
62 <groupId>com.tinkerpop.blueprints</groupId>
63 <artifactId>blueprints-sail-graph</artifactId>
64 <version>2.5.0</version>
65 <optional>true</optional>
68 <groupId>org.slf4j</groupId>
69 <artifactId>slf4j-log4j12</artifactId>
75 <groupId>com.tinkerpop.blueprints</groupId>
76 <artifactId>blueprints-graph-sail</artifactId>
77 <version>2.5.0</version>
78 <optional>true</optional>
81 <!-- Swagger Dependencies Start -->
83 <groupId>io.swagger</groupId>
84 <artifactId>swagger-jersey2-jaxrs</artifactId>
85 <scope>compile</scope>
86 <version>1.5.15</version>
88 <!-- Swagger Dependencies End -->
91 <groupId>org.openecomp.sdc</groupId>
92 <artifactId>common-app-api</artifactId>
93 <version>${project.version}</version>
94 <scope>compile</scope>
98 <groupId>org.openecomp.sdc.be</groupId>
99 <artifactId>common-be</artifactId>
100 <version>${project.version}</version>
101 <scope>compile</scope>
104 <groupId>org.openecomp.sdc.be</groupId>
105 <artifactId>catalog-dao</artifactId>
106 <version>${project.version}</version>
107 <scope>compile</scope>
111 <groupId>org.openecomp.sdc.be</groupId>
112 <artifactId>catalog-model</artifactId>
113 <version>${project.version}</version>
114 <scope>compile</scope>
118 <groupId>ch.qos.logback</groupId>
119 <artifactId>logback-classic</artifactId>
120 <version>${logback.version}</version>
121 <scope>compile</scope>
126 <groupId>org.yaml</groupId>
127 <artifactId>snakeyaml</artifactId>
128 <version>${snakeyaml.version}</version>
129 <scope>compile</scope>
132 <!-- File changes listener -->
134 <groupId>org.apache.commons</groupId>
135 <artifactId>commons-jci-core</artifactId>
136 <version>${commons-jci-core.version}</version>
137 <scope>compile</scope>
142 <groupId>com.google.code.gson</groupId>
143 <artifactId>gson</artifactId>
144 <version>${gson.version}</version>
145 <scope>compile</scope>
150 <groupId>org.glassfish.jersey.media</groupId>
151 <artifactId>jersey-media-json-jackson</artifactId>
152 <version>${jersey-bom.version}</version>
153 <scope>compile</scope>
157 <groupId>org.glassfish.jersey.containers</groupId>
158 <artifactId>jersey-container-servlet-core</artifactId>
159 <version>${jersey-bom.version}</version>
160 <scope>compile</scope>
164 <groupId>org.glassfish.jersey.ext</groupId>
165 <artifactId>jersey-spring4</artifactId>
166 <version>${jersey-bom.version}</version>
169 <groupId>org.springframework</groupId>
170 <artifactId>spring-web</artifactId>
173 <groupId>org.springframework</groupId>
174 <artifactId>spring-beans</artifactId>
177 <groupId>org.springframework</groupId>
178 <artifactId>spring-core</artifactId>
181 <groupId>org.springframework</groupId>
182 <artifactId>spring-aop</artifactId>
184 <!-- Transitive dependency of spring-bridge -->
186 <groupId>org.springframework</groupId>
187 <artifactId>spring-context</artifactId>
193 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
194 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
196 <groupId>org.glassfish.hk2.external</groupId>
197 <artifactId>asm-all-repackaged</artifactId>
201 <groupId>org.glassfish.jersey.ext</groupId>
202 <artifactId>jersey-bean-validation</artifactId>
207 <groupId>org.apache.httpcomponents</groupId>
208 <artifactId>httpclient</artifactId>
209 <version>${httpclient.version}</version>
210 <scope>compile</scope>
214 <groupId>org.apache.httpcomponents</groupId>
215 <artifactId>httpcore</artifactId>
216 <version>${httpcore.version}</version>
217 <scope>compile</scope>
221 <groupId>commons-logging</groupId>
222 <artifactId>commons-logging</artifactId>
223 <version>${commons-logging}</version>
224 <scope>compile</scope>
228 <groupId>commons-codec</groupId>
229 <artifactId>commons-codec</artifactId>
230 <version>${commons-codec}</version>
231 <scope>compile</scope>
233 <!-- http client END -->
236 <groupId>javax.servlet</groupId>
237 <artifactId>servlet-api</artifactId>
238 <version>${servlet-api.version}</version>
239 <scope>provided</scope>
243 <groupId>org.eclipse.jgit</groupId>
244 <artifactId>org.eclipse.jgit</artifactId>
245 <version>3.4.1.201406201815-r</version>
248 <!-- spring - used by A4C -->
250 <groupId>org.springframework</groupId>
251 <artifactId>spring-core</artifactId>
252 <version>${spring.version}</version>
253 <scope>compile</scope>
257 <groupId>org.springframework</groupId>
258 <artifactId>spring-context</artifactId>
259 <version>${spring.version}</version>
260 <scope>compile</scope>
264 <groupId>org.springframework</groupId>
265 <artifactId>spring-web</artifactId>
266 <version>${spring.version}</version>
267 <scope>compile</scope>
271 <groupId>org.springframework</groupId>
272 <artifactId>spring-webmvc</artifactId>
273 <version>${spring.version}</version>
274 <scope>compile</scope>
278 <groupId>org.springframework</groupId>
279 <artifactId>spring-aop</artifactId>
280 <version>${spring.version}</version>
281 <scope>compile</scope>
285 <groupId>org.springframework</groupId>
286 <artifactId>spring-beans</artifactId>
287 <version>${spring.version}</version>
288 <scope>compile</scope>
292 <groupId>org.springframework</groupId>
293 <artifactId>spring-expression</artifactId>
294 <version>${spring.version}</version>
295 <scope>compile</scope>
299 <groupId>org.codehaus.groovy</groupId>
300 <artifactId>groovy-all</artifactId>
301 <version>${groovy.version}</version>
302 <scope>compile</scope>
306 <groupId>org.codehaus.janino</groupId>
307 <artifactId>janino</artifactId>
308 <version>${janino.version}</version>
309 <scope>compile</scope>
313 <groupId>org.codehaus.janino</groupId>
314 <artifactId>commons-compiler</artifactId>
315 <version>${janino.version}</version>
316 <scope>compile</scope>
320 <groupId>com.google.guava</groupId>
321 <artifactId>guava</artifactId>
322 <version>${guava.version}</version>
323 <scope>compile</scope>
328 <groupId>com.thinkaurelius.titan</groupId>
329 <artifactId>titan-core</artifactId>
330 <version>${titan.version}</version>
331 <scope>compile</scope>
334 <groupId>org.json</groupId>
335 <artifactId>json</artifactId>
338 <artifactId>slf4j-log4j12</artifactId>
339 <groupId>org.slf4j</groupId>
345 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
346 <artifactId>sdc-titan-cassandra</artifactId>
347 <version>${sdc.titan.version}</version>
348 <scope>compile</scope>
351 <groupId>org.slf4j</groupId>
352 <artifactId>slf4j-log4j12</artifactId>
355 <groupId>io.netty</groupId>
356 <artifactId>netty-all</artifactId>
362 <groupId>org.apache.commons</groupId>
363 <artifactId>commons-lang3</artifactId>
364 <version>${lang3.version}</version>
365 <scope>compile</scope>
370 <groupId>com.googlecode.json-simple</groupId>
371 <artifactId>json-simple</artifactId>
372 <version>${json-simple.version}</version>
373 <scope>compile</scope>
378 <groupId>org.elasticsearch</groupId>
379 <artifactId>elasticsearch</artifactId>
380 <version>${elastic-search.version}</version>
381 <scope>compile</scope>
385 <groupId>org.elasticsearch.plugin</groupId>
386 <artifactId>shield</artifactId>
387 <version>${elastic-search.version}</version>
388 <scope>compile</scope>
390 <!-- functional java -->
392 <groupId>org.functionaljava</groupId>
393 <artifactId>functionaljava</artifactId>
394 <version>${functionaljava.version}</version>
395 <scope>compile</scope>
400 <groupId>com.jcabi</groupId>
401 <artifactId>jcabi-aspects</artifactId>
402 <version>${jcabi.version}</version>
403 <scope>compile</scope>
407 <groupId>org.aspectj</groupId>
408 <artifactId>aspectjrt</artifactId>
409 <version>${aspectjrt.version}</version>
410 <scope>compile</scope>
415 <!-- CAMBRIA CLIENT for U-EB -->
417 <groupId>com.att.nsa</groupId>
418 <artifactId>cambriaClient</artifactId>
419 <version>1.2.1-oss</version>
420 <scope>compile</scope>
423 <groupId>com.att.nsa</groupId>
424 <artifactId>saClientLibrary</artifactId>
430 <groupId>org.json</groupId>
431 <artifactId>json</artifactId>
432 <version>20131018</version>
433 <scope>compile</scope>
436 <groupId>org.apache.tinkerpop</groupId>
437 <artifactId>tinkergraph-gremlin</artifactId>
438 <version>3.0.1-incubating</version>
439 <scope>compile</scope>
443 <groupId>org.apache.tinkerpop</groupId>
444 <artifactId>gremlin-groovy</artifactId>
445 <version>3.0.1-incubating</version>
446 <scope>compile</scope>
451 <groupId>com.datastax.cassandra</groupId>
452 <artifactId>cassandra-driver-core</artifactId>
453 <version>${cassandra.driver.version}</version>
454 <scope>compile</scope>
457 <groupId>com.datastax.cassandra</groupId>
458 <artifactId>cassandra-driver-mapping</artifactId>
459 <version>${cassandra.driver.version}</version>
460 <scope>compile</scope>
462 <!-- CASSANDRA END -->
464 <!-- Inserted for ECOMP Portal Integration -->
466 <groupId>org.openecomp.ecompsdkos</groupId>
467 <artifactId>epsdk-fw</artifactId>
468 <version>${ecomp.version}</version>
469 <scope>compile</scope>
472 <groupId>com.att.nsa</groupId>
473 <artifactId>cambriaClient</artifactId>
476 <artifactId>slf4j-log4j12</artifactId>
477 <groupId>org.slf4j</groupId>
482 <!--Artifact Generator-->
484 <groupId>org.onap.sdc.common</groupId>
485 <artifactId>onap-sdc-artifact-generator-api</artifactId>
486 <version>${artifact-generator-api.version}</version>
487 <scope>compile</scope>
490 <groupId>junit</groupId>
491 <artifactId>junit</artifactId>
497 <groupId>org.onap.sdc.common</groupId>
498 <artifactId>onap-sdc-artifact-generator-core</artifactId>
499 <version>${artifact-generator-core.version}</version>
500 <scope>compile</scope>
503 <groupId>junit</groupId>
504 <artifactId>junit</artifactId>
510 <groupId>org.onap.sdc.common</groupId>
511 <artifactId>onap-common-lib</artifactId>
512 <version>${dox-common-lib.version}</version>
516 <groupId>junit</groupId>
517 <artifactId>junit</artifactId>
524 <groupId>org.eclipse.jetty</groupId>
525 <artifactId>jetty-proxy</artifactId>
526 <version>${jetty.version}</version>
527 <scope>compile</scope>
531 <groupId>org.eclipse.jetty</groupId>
532 <artifactId>jetty-servlets</artifactId>
533 <version>${jetty.version}</version>
534 <scope>compile</scope>
536 <!-- System metrics -->
538 <groupId>org.fusesource</groupId>
539 <artifactId>sigar</artifactId>
540 <version>${sigar.version}</version>
541 <scope>compile</scope>
545 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
546 <artifactId>dmaapClient</artifactId>
547 <version>1.1.3</version>
548 <scope>compile</scope>
551 <groupId>com.att.aft</groupId>
552 <artifactId>dme2</artifactId>
557 <groupId>com.att.aft</groupId>
558 <artifactId>dme2</artifactId>
559 <version>3.1.200-oss</version>
563 <groupId>javax.jms</groupId>
564 <artifactId>jms</artifactId>
565 <version>1.1</version>
566 <scope>provided</scope>
570 <groupId>javax.servlet</groupId>
571 <artifactId>javax.servlet-api</artifactId>
572 <version>3.1.0</version>
573 <scope>provided</scope>
578 <groupId>org.assertj</groupId>
579 <artifactId>assertj-core</artifactId>
584 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
585 <artifactId>jersey-test-framework-provider-bundle</artifactId>
586 <version>${jersey-bom.version}</version>
592 <!--<groupId>org.glassfish.jersey.test-framework.providers</groupId>-->
593 <!--<artifactId>jersey-test-framework-provider-inmemory</artifactId>-->
594 <!--<version>${jersey-bom.version}</version>-->
595 <!--<scope>test</scope>-->
599 <groupId>org.glassfish.jersey.core</groupId>
600 <artifactId>jersey-client</artifactId>
601 <version>${jersey-bom.version}</version>
602 <!--<scope>test</scope>-->
606 <groupId>com.github.tomakehurst</groupId>
607 <artifactId>wiremock</artifactId>
612 <groupId>org.eclipse.jetty</groupId>
613 <artifactId>jetty-servlet</artifactId>
614 <version>${jetty.version}</version>
619 <groupId>org.eclipse.jetty</groupId>
620 <artifactId>jetty-webapp</artifactId>
621 <version>${jetty.version}</version>
626 <groupId>junit</groupId>
627 <artifactId>junit</artifactId>
628 <version>${junit.version}</version>
633 <groupId>org.mockito</groupId>
634 <artifactId>mockito-core</artifactId>
639 <groupId>org.springframework</groupId>
640 <artifactId>spring-test</artifactId>
641 <version>${spring.version}</version>
646 <groupId>org.springframework</groupId>
647 <artifactId>spring-tx</artifactId>
648 <version>${spring.version}</version>
653 <groupId>io.cucumber</groupId>
654 <artifactId>cucumber-java</artifactId>
659 <groupId>io.cucumber</groupId>
660 <artifactId>cucumber-junit</artifactId>
665 <groupId>org.jmockit</groupId>
666 <artifactId>jmockit</artifactId>
667 <version>${jmockit.version}</version>
675 <finalName>${project.artifactId}-${project.version}</finalName>
679 <groupId>org.apache.maven.plugins</groupId>
680 <artifactId>maven-war-plugin</artifactId>
681 <version>2.6</version>
683 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
684 WEB-INF/classes/elasticsearch.yml,
685 WEB-INF/classes/portal.properties
689 <SDC-Version>${project.version}</SDC-Version>
692 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
693 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
699 <directory>src/main/resources</directory>
700 <directory>src/main/resources/swagger</directory>
703 <attachClasses>true</attachClasses>
708 <groupId>org.apache.maven.plugins</groupId>
709 <artifactId>maven-dependency-plugin</artifactId>
712 <id>copy-dependencies</id>
713 <phase>package</phase>
715 <goal>copy-dependencies</goal>
718 <includeScope>compile</includeScope>
725 <groupId>com.jcabi</groupId>
726 <artifactId>jcabi-maven-plugin</artifactId>
727 <version>${jcabi.plugin.version}</version>
738 <artifactId>maven-resources-plugin</artifactId>
739 <version>2.6</version>
742 <id>copy-tosca-folder</id>
743 <!-- here the phase you need -->
744 <phase>install</phase>
746 <goal>copy-resources</goal>
749 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
752 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
753 <filtering>true</filtering>
762 <groupId>org.apache.maven.plugins</groupId>
763 <artifactId>maven-assembly-plugin</artifactId>
767 <phase>package</phase>
772 <finalName>normatives</finalName>
773 <appendAssemblyId>false</appendAssemblyId>
775 <descriptor>${project.basedir}/normatives.xml</descriptor>
782 <artifactId>maven-clean-plugin</artifactId>
783 <version>3.0.0</version>
786 <id>clean.sdc.backend.folder</id>
793 <!-- static configuration files -->
796 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
798 <followSymlinks>false</followSymlinks>
800 <include>Artifact-Generator.properties</include>
801 <include>error-configuration.yaml</include>
802 <include>ecomp-error-configuration.yaml</include>
803 <include>logback.xml</include>
808 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
809 <followSymlinks>false</followSymlinks>
811 <include>*.war</include>
816 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
818 <followSymlinks>false</followSymlinks>
820 <include>normatives.tar.gz</include>
830 <id>clean-static-files</id>
839 <directory>${project.parent.basedir}/asdctool/tosca</directory>
840 <followSymlinks>false</followSymlinks>
852 <!--This plugin's configuration is used to store Eclipse m2e settings
853 only. It has no influence on the Maven build itself. -->
855 <groupId>org.eclipse.m2e</groupId>
856 <artifactId>lifecycle-mapping</artifactId>
857 <version>1.0.0</version>
859 <lifecycleMappingMetadata>
862 <pluginExecutionFilter>
863 <groupId>com.googlecode.maven-download-plugin</groupId>
864 <artifactId>download-maven-plugin</artifactId>
865 <versionRange>[1.2.1,)</versionRange>
869 </pluginExecutionFilter>
876 <pluginExecutionFilter>
877 <groupId>com.jcabi</groupId>
878 <artifactId>jcabi-maven-plugin</artifactId>
879 <versionRange>[0.0,)</versionRange>
883 </pluginExecutionFilter>
890 </lifecycleMappingMetadata>
894 <groupId>org.apache.maven.plugins</groupId>
895 <artifactId>maven-deploy-plugin</artifactId>
896 <version>2.7</version>
903 <!-- Swagger Plugins End -->
908 <id>docker-staging</id>
910 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
911 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
918 <activeByDefault>false</activeByDefault>
923 <artifactId>maven-resources-plugin</artifactId>
924 <version>3.0.2</version>
927 <id>copy-resources-apidocs</id>
928 <phase>verify</phase>
930 <goal>copy-resources</goal>
933 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
937 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
940 <include>api-docs.war</include>
948 <id>copy-static-configuration-files</id>
949 <phase>verify</phase>
951 <goal>copy-resources</goal>
954 <outputDirectory>${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory>
957 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory>
959 <include>Artifact-Generator.properties</include>
960 <include>error-configuration.yaml</include>
961 <include>ecomp-error-configuration.yaml</include>
962 <include>logback.xml</include>
970 <id>copy-resources-be</id>
971 <phase>verify</phase>
973 <goal>copy-resources</goal>
976 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
979 <directory>${project.parent.basedir}/catalog-be/target</directory>
981 <include>catalog-be-${project.version}.war</include>
986 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
989 <include>onboarding-be-${project.version}.war</include>
996 <id>copy-normatives</id>
997 <phase>verify</phase>
999 <goal>copy-resources</goal>
1002 <outputDirectory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default</outputDirectory>
1005 <directory>${project.parent.basedir}/catalog-be/target</directory>
1007 <include>normatives.tar.gz</include>
1016 <groupId>io.fabric8</groupId>
1017 <artifactId>docker-maven-plugin</artifactId>
1018 <version>${fabric8.version}</version>
1021 <verbose>true</verbose>
1022 <apiVersion>1.23</apiVersion>
1023 <registry>nexus3.onap.org:10001</registry>
1026 <username>docker</username>
1027 <password>docker</password>
1032 <!-- Build backend image -->
1034 <name>onap/sdc-backend</name>
1035 <alias>sdc-backend</alias>
1037 <cleanup>try</cleanup>
1038 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1040 <tag>${docker.tag}</tag>
1041 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
1045 <!-- Build backend-init image -->
1047 <name>onap/sdc-backend-init</name>
1048 <alias>sdc-backend-init</alias>
1050 <cleanup>try</cleanup>
1051 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1053 <tag>${docker.tag}</tag>
1054 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
1062 <id>clean-images</id>
1063 <phase>pre-clean</phase>
1068 <removeAll>true</removeAll>
1069 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1074 <id>generate-images</id>
1075 <phase>install</phase>
1082 <id>push-images</id>
1083 <phase>deploy</phase>
1088 <image>onap/sdc-backend,onap/sdc-backend-init</image>