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.4.0-SNAPSHOT</version>
15 <java-hamcrest.version>2.0.0.0</java-hamcrest.version>
19 <!--JSON and YAML Parsing-->
21 <groupId>com.fasterxml.jackson.dataformat</groupId>
22 <artifactId>jackson-dataformat-yaml</artifactId>
23 <version>${jackson.version}</version>
24 <scope>compile</scope>
28 <groupId>com.fasterxml.jackson.core</groupId>
29 <artifactId>jackson-databind</artifactId>
30 <version>${jackson.version}</version>
31 <scope>compile</scope>
35 <groupId>org.openecomp.sdc</groupId>
36 <artifactId>security-utils</artifactId>
37 <version>${project.version}</version>
38 <scope>compile</scope>
41 <groupId>org.onap.sdc.common</groupId>
42 <artifactId>onap-tosca-datatype</artifactId>
43 <version>${project.version}</version>
44 <scope>compile</scope>
48 <groupId>org.onap.sdc.common</groupId>
49 <artifactId>onap-generic-artifact-browser-service</artifactId>
50 <version>${project.version}</version>
51 <scope>compile</scope>
54 <!-- Swagger Dependencies Start -->
56 <groupId>io.swagger</groupId>
57 <artifactId>swagger-jersey2-jaxrs</artifactId>
58 <scope>compile</scope>
59 <version>1.5.15</version>
61 <!-- Swagger Dependencies End -->
64 <groupId>org.openecomp.sdc</groupId>
65 <artifactId>common-app-api</artifactId>
66 <version>${project.version}</version>
67 <scope>compile</scope>
71 <groupId>org.openecomp.sdc.be</groupId>
72 <artifactId>common-be</artifactId>
73 <version>${project.version}</version>
74 <scope>compile</scope>
77 <groupId>org.openecomp.sdc.be</groupId>
78 <artifactId>catalog-dao</artifactId>
79 <version>${project.version}</version>
80 <scope>compile</scope>
84 <groupId>org.openecomp.sdc.be</groupId>
85 <artifactId>catalog-model</artifactId>
86 <version>${project.version}</version>
87 <scope>compile</scope>
91 <groupId>ch.qos.logback</groupId>
92 <artifactId>logback-classic</artifactId>
93 <version>${logback.version}</version>
94 <scope>compile</scope>
99 <groupId>org.yaml</groupId>
100 <artifactId>snakeyaml</artifactId>
101 <version>${snakeyaml.version}</version>
102 <scope>compile</scope>
105 <!-- File changes listener -->
107 <groupId>org.apache.commons</groupId>
108 <artifactId>commons-jci-core</artifactId>
109 <version>${commons-jci-core.version}</version>
110 <scope>compile</scope>
115 <groupId>com.google.code.gson</groupId>
116 <artifactId>gson</artifactId>
117 <version>${gson.version}</version>
118 <scope>compile</scope>
123 <groupId>org.glassfish.jersey.media</groupId>
124 <artifactId>jersey-media-json-jackson</artifactId>
125 <version>${jersey-bom.version}</version>
126 <scope>compile</scope>
130 <groupId>org.glassfish.jersey.containers</groupId>
131 <artifactId>jersey-container-servlet-core</artifactId>
132 <version>${jersey-bom.version}</version>
133 <scope>compile</scope>
137 <groupId>org.glassfish.jersey.media</groupId>
138 <artifactId>jersey-media-multipart</artifactId>
139 <version>${jersey-bom.version}</version>
140 <scope>compile</scope>
143 <groupId>org.glassfish.jersey.ext</groupId>
144 <artifactId>jersey-spring4</artifactId>
145 <version>${jersey-bom.version}</version>
148 <groupId>org.springframework</groupId>
149 <artifactId>spring-web</artifactId>
152 <groupId>org.springframework</groupId>
153 <artifactId>spring-beans</artifactId>
156 <groupId>org.springframework</groupId>
157 <artifactId>spring-core</artifactId>
160 <groupId>org.springframework</groupId>
161 <artifactId>spring-aop</artifactId>
163 <!-- Transitive dependency of spring-bridge -->
165 <groupId>org.springframework</groupId>
166 <artifactId>spring-context</artifactId>
172 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
173 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
175 <groupId>org.glassfish.hk2.external</groupId>
176 <artifactId>asm-all-repackaged</artifactId>
180 <groupId>org.glassfish.jersey.ext</groupId>
181 <artifactId>jersey-bean-validation</artifactId>
186 <groupId>org.apache.httpcomponents</groupId>
187 <artifactId>httpclient</artifactId>
188 <version>${httpclient.version}</version>
189 <scope>compile</scope>
193 <groupId>org.apache.httpcomponents</groupId>
194 <artifactId>httpcore</artifactId>
195 <version>${httpcore.version}</version>
196 <scope>compile</scope>
200 <groupId>commons-logging</groupId>
201 <artifactId>commons-logging</artifactId>
202 <version>${commons-logging}</version>
203 <scope>compile</scope>
207 <groupId>commons-codec</groupId>
208 <artifactId>commons-codec</artifactId>
209 <version>${commons-codec}</version>
210 <scope>compile</scope>
212 <!-- http client END -->
215 <groupId>javax.servlet</groupId>
216 <artifactId>javax.servlet-api</artifactId>
217 <version>${servlet-api.version}</version>
218 <scope>provided</scope>
222 <groupId>org.eclipse.jgit</groupId>
223 <artifactId>org.eclipse.jgit</artifactId>
224 <version>3.4.1.201406201815-r</version>
227 <!-- spring - used by A4C -->
229 <groupId>org.springframework</groupId>
230 <artifactId>spring-core</artifactId>
231 <version>${spring.version}</version>
232 <scope>compile</scope>
236 <groupId>org.springframework</groupId>
237 <artifactId>spring-context</artifactId>
238 <version>${spring.version}</version>
239 <scope>compile</scope>
243 <groupId>org.springframework</groupId>
244 <artifactId>spring-web</artifactId>
245 <version>${spring.version}</version>
246 <scope>compile</scope>
250 <groupId>org.springframework</groupId>
251 <artifactId>spring-webmvc</artifactId>
252 <version>${spring.version}</version>
253 <scope>compile</scope>
257 <groupId>org.springframework</groupId>
258 <artifactId>spring-aop</artifactId>
259 <version>${spring.version}</version>
260 <scope>compile</scope>
264 <groupId>org.springframework</groupId>
265 <artifactId>spring-beans</artifactId>
266 <version>${spring.version}</version>
267 <scope>compile</scope>
271 <groupId>org.springframework</groupId>
272 <artifactId>spring-expression</artifactId>
273 <version>${spring.version}</version>
274 <scope>compile</scope>
278 <groupId>org.codehaus.groovy</groupId>
279 <artifactId>groovy</artifactId>
280 <scope>compile</scope>
284 <groupId>org.codehaus.janino</groupId>
285 <artifactId>janino</artifactId>
286 <version>${janino.version}</version>
287 <scope>compile</scope>
291 <groupId>org.codehaus.janino</groupId>
292 <artifactId>commons-compiler</artifactId>
293 <version>${janino.version}</version>
294 <scope>compile</scope>
298 <groupId>com.google.guava</groupId>
299 <artifactId>guava</artifactId>
300 <version>${guava.version}</version>
301 <scope>compile</scope>
306 <groupId>com.thinkaurelius.titan</groupId>
307 <artifactId>titan-core</artifactId>
308 <version>${titan.version}</version>
309 <scope>compile</scope>
312 <groupId>org.json</groupId>
313 <artifactId>json</artifactId>
316 <artifactId>slf4j-log4j12</artifactId>
317 <groupId>org.slf4j</groupId>
320 <artifactId>commons-collections</artifactId>
321 <groupId>commons-collections</groupId>
327 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
328 <artifactId>sdc-titan-cassandra</artifactId>
329 <version>${sdc.titan.version}</version>
330 <scope>compile</scope>
333 <groupId>org.slf4j</groupId>
334 <artifactId>slf4j-log4j12</artifactId>
337 <groupId>io.netty</groupId>
338 <artifactId>netty-all</artifactId>
344 <groupId>org.apache.commons</groupId>
345 <artifactId>commons-lang3</artifactId>
346 <version>${lang3.version}</version>
347 <scope>compile</scope>
352 <groupId>com.googlecode.json-simple</groupId>
353 <artifactId>json-simple</artifactId>
354 <version>${json-simple.version}</version>
355 <scope>compile</scope>
360 <groupId>org.elasticsearch</groupId>
361 <artifactId>elasticsearch</artifactId>
362 <version>${elastic-search.version}</version>
363 <scope>compile</scope>
366 <!-- functional java -->
368 <groupId>org.functionaljava</groupId>
369 <artifactId>functionaljava</artifactId>
370 <version>${functionaljava.version}</version>
371 <scope>compile</scope>
376 <groupId>com.jcabi</groupId>
377 <artifactId>jcabi-aspects</artifactId>
378 <version>${jcabi.version}</version>
379 <scope>compile</scope>
383 <groupId>org.aspectj</groupId>
384 <artifactId>aspectjrt</artifactId>
385 <version>${aspectjrt.version}</version>
386 <scope>compile</scope>
390 <!-- CAMBRIA CLIENT for U-EB -->
392 <groupId>com.att.nsa</groupId>
393 <artifactId>cambriaClient</artifactId>
394 <version>1.2.1-oss</version>
395 <scope>compile</scope>
398 <groupId>com.att.nsa</groupId>
399 <artifactId>saClientLibrary</artifactId>
405 <groupId>org.json</groupId>
406 <artifactId>json</artifactId>
407 <version>20131018</version>
408 <scope>compile</scope>
411 <groupId>org.apache.tinkerpop</groupId>
412 <artifactId>tinkergraph-gremlin</artifactId>
413 <version>3.0.1-incubating</version>
414 <scope>compile</scope>
418 <groupId>org.apache.tinkerpop</groupId>
419 <artifactId>gremlin-groovy</artifactId>
420 <version>3.0.1-incubating</version>
421 <scope>compile</scope>
424 <artifactId>groovy</artifactId>
425 <groupId>org.codehaus.groovy</groupId>
432 <groupId>com.datastax.cassandra</groupId>
433 <artifactId>cassandra-driver-core</artifactId>
434 <version>${cassandra.driver.version}</version>
435 <scope>compile</scope>
438 <groupId>com.datastax.cassandra</groupId>
439 <artifactId>cassandra-driver-mapping</artifactId>
440 <version>${cassandra.driver.version}</version>
441 <scope>compile</scope>
443 <!-- CASSANDRA END -->
445 <!-- Inserted for ECOMP Portal Integration -->
447 <groupId>org.onap.portal.sdk</groupId>
448 <artifactId>epsdk-fw</artifactId>
449 <version>${ecomp.version}</version>
450 <scope>compile</scope>
453 <groupId>com.att.nsa</groupId>
454 <artifactId>cambriaClient</artifactId>
457 <artifactId>slf4j-log4j12</artifactId>
458 <groupId>org.slf4j</groupId>
465 <groupId>org.eclipse.jetty</groupId>
466 <artifactId>jetty-proxy</artifactId>
467 <version>${jetty.version}</version>
468 <scope>compile</scope>
472 <groupId>org.eclipse.jetty</groupId>
473 <artifactId>jetty-servlets</artifactId>
474 <version>${jetty.version}</version>
475 <scope>compile</scope>
477 <!-- System metrics -->
479 <groupId>org.fusesource</groupId>
480 <artifactId>sigar</artifactId>
481 <version>${sigar.version}</version>
482 <scope>compile</scope>
485 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
486 <artifactId>dmaapClient</artifactId>
487 <version>1.1.3</version>
488 <scope>compile</scope>
491 <groupId>com.att.aft</groupId>
492 <artifactId>dme2</artifactId>
497 <groupId>com.att.aft</groupId>
498 <artifactId>dme2</artifactId>
499 <version>3.1.200-oss</version>
503 <groupId>javax.jms</groupId>
504 <artifactId>jms</artifactId>
505 <version>1.1</version>
506 <scope>provided</scope>
511 <groupId>org.assertj</groupId>
512 <artifactId>assertj-core</artifactId>
517 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
518 <artifactId>jersey-test-framework-provider-bundle</artifactId>
519 <version>${jersey-bom.version}</version>
525 <groupId>org.glassfish.jersey.core</groupId>
526 <artifactId>jersey-client</artifactId>
527 <version>${jersey-bom.version}</version>
531 <groupId>com.github.tomakehurst</groupId>
532 <artifactId>wiremock-standalone</artifactId>
537 <groupId>org.eclipse.jetty</groupId>
538 <artifactId>jetty-webapp</artifactId>
539 <version>${jetty.version}</version>
544 <groupId>junit</groupId>
545 <artifactId>junit</artifactId>
546 <version>${junit.version}</version>
551 <groupId>org.mockito</groupId>
552 <artifactId>mockito-core</artifactId>
557 <groupId>org.springframework</groupId>
558 <artifactId>spring-test</artifactId>
559 <version>${spring.version}</version>
564 <groupId>org.springframework</groupId>
565 <artifactId>spring-tx</artifactId>
566 <version>${spring.version}</version>
570 <groupId>io.cucumber</groupId>
571 <artifactId>cucumber-java</artifactId>
576 <groupId>io.cucumber</groupId>
577 <artifactId>cucumber-junit</artifactId>
582 <groupId>org.jmockit</groupId>
583 <artifactId>jmockit</artifactId>
584 <version>${jmockit.version}</version>
589 <groupId>com.google.code.bean-matchers</groupId>
590 <artifactId>bean-matchers</artifactId>
591 <version>0.11</version>
596 <groupId>org.hamcrest</groupId>
597 <artifactId>java-hamcrest</artifactId>
598 <version>${java-hamcrest.version}</version>
603 <groupId>org.codehaus.groovy</groupId>
604 <artifactId>groovy</artifactId>
605 <version>2.4.8</version>
609 <groupId>io.netty</groupId>
610 <artifactId>netty-handler</artifactId>
613 <groupId>org.onap.sdc.common</groupId>
614 <artifactId>onap-tosca-datatype</artifactId>
615 <version>${project.version}</version>
618 <groupId>org.apache.commons</groupId>
619 <artifactId>commons-collections4</artifactId>
620 <version>${commons.collections.version}</version>
623 <groupId>org.codehaus.jackson</groupId>
624 <artifactId>jackson-mapper-asl</artifactId>
625 <version>${jackson.mapper.version}</version>
631 <finalName>${project.artifactId}-${project.version}</finalName>
635 <groupId>org.apache.maven.plugins</groupId>
636 <artifactId>maven-war-plugin</artifactId>
638 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
639 WEB-INF/classes/elasticsearch.yml,
640 WEB-INF/classes/portal.properties
644 <SDC-Version>${project.version}</SDC-Version>
647 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
648 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
654 <directory>src/main/resources</directory>
655 <directory>src/main/resources/swagger</directory>
658 <attachClasses>true</attachClasses>
662 <groupId>com.github.sylvainlaurent.maven</groupId>
663 <artifactId>yaml-json-validator-maven-plugin</artifactId>
667 <phase>validate</phase>
669 <goal>validate</goal>
675 <include>src/main/resources/**/*.y*ml</include>
676 <include>src/test/resources/**/*.y*ml</include>
681 <include>src/main/resources/**/*.json</include>
682 <include>src/test/resources/**/*.json</include>
691 <groupId>com.jcabi</groupId>
692 <artifactId>jcabi-maven-plugin</artifactId>
693 <version>${jcabi.maven.plugin.version}</version>
703 <groupId>org.apache.maven.plugins</groupId>
704 <artifactId>maven-assembly-plugin</artifactId>
708 <phase>package</phase>
713 <finalName>normatives</finalName>
714 <appendAssemblyId>false</appendAssemblyId>
716 <descriptor>${project.basedir}/normatives.xml</descriptor>
723 <groupId>org.apache.maven.plugins</groupId>
724 <artifactId>maven-clean-plugin</artifactId>
727 <id>clean.sdc.backend.folder</id>
734 <!-- static configuration files -->
737 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
739 <followSymlinks>false</followSymlinks>
741 <include>error-configuration.yaml</include>
742 <include>ecomp-error-configuration.yaml</include>
743 <include>logback.xml</include>
748 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
749 <followSymlinks>false</followSymlinks>
751 <include>*.war</include>
756 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
758 <followSymlinks>false</followSymlinks>
760 <include>normatives.tar.gz</include>
770 <id>clean-static-files</id>
779 <directory>${project.parent.basedir}/asdctool/tosca</directory>
780 <followSymlinks>false</followSymlinks>
788 <groupId>org.apache.maven.plugins</groupId>
789 <artifactId>maven-resources-plugin</artifactId>
792 <id>copy-static-configuration-files</id>
793 <phase>verify</phase>
795 <goal>copy-resources</goal>
799 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
803 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
806 <include>error-configuration.yaml</include>
807 <include>ecomp-error-configuration.yaml</include>
808 <include>logback.xml</include>
815 <id>copy-tosca-folder</id>
816 <!-- here the phase you need -->
817 <phase>install</phase>
819 <goal>copy-resources</goal>
822 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
825 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
827 <filtering>true</filtering>
838 <!--This plugin's configuration is used to store Eclipse m2e settings
839 only. It has no influence on the Maven build itself. -->
841 <groupId>org.eclipse.m2e</groupId>
842 <artifactId>lifecycle-mapping</artifactId>
843 <version>1.0.0</version>
845 <lifecycleMappingMetadata>
848 <pluginExecutionFilter>
849 <groupId>com.googlecode.maven-download-plugin</groupId>
850 <artifactId>download-maven-plugin</artifactId>
851 <versionRange>[1.2.1,)</versionRange>
855 </pluginExecutionFilter>
862 <pluginExecutionFilter>
863 <groupId>com.jcabi</groupId>
864 <artifactId>jcabi-maven-plugin</artifactId>
865 <versionRange>[0.0,)</versionRange>
869 </pluginExecutionFilter>
876 </lifecycleMappingMetadata>
881 <!-- Swagger Plugins End -->
886 <id>docker-staging</id>
888 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
889 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
896 <activeByDefault>false</activeByDefault>
901 <groupId>org.apache.maven.plugins</groupId>
902 <artifactId>maven-resources-plugin</artifactId>
905 <id>copy-resources-apidocs</id>
906 <phase>verify</phase>
908 <goal>copy-resources</goal>
911 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
915 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
918 <include>api-docs.war</include>
926 <id>copy-resources-be</id>
927 <phase>verify</phase>
929 <goal>copy-resources</goal>
932 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
935 <directory>${project.parent.basedir}/catalog-be/target</directory>
937 <include>catalog-be-${project.version}.war</include>
942 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
945 <include>onboarding-be-${project.version}.war</include>
952 <id>copy-normatives</id>
953 <phase>verify</phase>
955 <goal>copy-resources</goal>
959 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
963 <directory>${project.parent.basedir}/catalog-be/target</directory>
965 <include>normatives.tar.gz</include>
974 <groupId>io.fabric8</groupId>
975 <artifactId>docker-maven-plugin</artifactId>
977 <apiVersion>1.23</apiVersion>
978 <registry>nexus3.onap.org:10001</registry>
981 <username>docker</username>
982 <password>docker</password>
987 <!-- Build backend image -->
989 <name>onap/sdc-backend</name>
990 <alias>sdc-backend</alias>
992 <cleanup>try</cleanup>
993 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
995 <tag>${docker.tag}</tag>
997 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1002 <!-- Build backend-init image -->
1004 <name>onap/sdc-backend-init</name>
1005 <alias>sdc-backend-init</alias>
1007 <cleanup>try</cleanup>
1008 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1010 <tag>${docker.tag}</tag>
1012 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1021 <id>clean-images</id>
1022 <phase>pre-clean</phase>
1027 <removeAll>true</removeAll>
1028 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1033 <id>generate-images</id>
1034 <phase>install</phase>
1041 <id>push-images</id>
1042 <phase>deploy</phase>
1047 <image>onap/sdc-backend,onap/sdc-backend-init</image>