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.3.0-SNAPSHOT</version>
18 <!--JSON and YAML Parsing-->
20 <groupId>com.fasterxml.jackson.dataformat</groupId>
21 <artifactId>jackson-dataformat-yaml</artifactId>
22 <version>${jackson.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>org.openecomp.sdc</groupId>
35 <artifactId>security-utils</artifactId>
36 <version>${project.version}</version>
37 <scope>compile</scope>
40 <!-- Swagger Dependencies Start -->
42 <groupId>io.swagger</groupId>
43 <artifactId>swagger-jersey2-jaxrs</artifactId>
44 <scope>compile</scope>
45 <version>1.5.15</version>
47 <!-- Swagger Dependencies End -->
50 <groupId>org.openecomp.sdc</groupId>
51 <artifactId>common-app-api</artifactId>
52 <version>${project.version}</version>
53 <scope>compile</scope>
57 <groupId>org.openecomp.sdc.be</groupId>
58 <artifactId>common-be</artifactId>
59 <version>${project.version}</version>
60 <scope>compile</scope>
63 <groupId>org.openecomp.sdc.be</groupId>
64 <artifactId>catalog-dao</artifactId>
65 <version>${project.version}</version>
66 <scope>compile</scope>
70 <groupId>org.openecomp.sdc.be</groupId>
71 <artifactId>catalog-model</artifactId>
72 <version>${project.version}</version>
73 <scope>compile</scope>
77 <groupId>ch.qos.logback</groupId>
78 <artifactId>logback-classic</artifactId>
79 <version>${logback.version}</version>
80 <scope>compile</scope>
85 <groupId>org.yaml</groupId>
86 <artifactId>snakeyaml</artifactId>
87 <version>${snakeyaml.version}</version>
88 <scope>compile</scope>
91 <!-- File changes listener -->
93 <groupId>org.apache.commons</groupId>
94 <artifactId>commons-jci-core</artifactId>
95 <version>${commons-jci-core.version}</version>
96 <scope>compile</scope>
101 <groupId>com.google.code.gson</groupId>
102 <artifactId>gson</artifactId>
103 <version>${gson.version}</version>
104 <scope>compile</scope>
109 <groupId>org.glassfish.jersey.media</groupId>
110 <artifactId>jersey-media-json-jackson</artifactId>
111 <version>${jersey-bom.version}</version>
112 <scope>compile</scope>
116 <groupId>org.glassfish.jersey.containers</groupId>
117 <artifactId>jersey-container-servlet-core</artifactId>
118 <version>${jersey-bom.version}</version>
119 <scope>compile</scope>
123 <groupId>org.glassfish.jersey.media</groupId>
124 <artifactId>jersey-media-multipart</artifactId>
125 <version>${jersey-bom.version}</version>
126 <scope>compile</scope>
129 <groupId>org.glassfish.jersey.ext</groupId>
130 <artifactId>jersey-spring4</artifactId>
131 <version>${jersey-bom.version}</version>
134 <groupId>org.springframework</groupId>
135 <artifactId>spring-web</artifactId>
138 <groupId>org.springframework</groupId>
139 <artifactId>spring-beans</artifactId>
142 <groupId>org.springframework</groupId>
143 <artifactId>spring-core</artifactId>
146 <groupId>org.springframework</groupId>
147 <artifactId>spring-aop</artifactId>
149 <!-- Transitive dependency of spring-bridge -->
151 <groupId>org.springframework</groupId>
152 <artifactId>spring-context</artifactId>
158 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
159 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
161 <groupId>org.glassfish.hk2.external</groupId>
162 <artifactId>asm-all-repackaged</artifactId>
166 <groupId>org.glassfish.jersey.ext</groupId>
167 <artifactId>jersey-bean-validation</artifactId>
172 <groupId>org.apache.httpcomponents</groupId>
173 <artifactId>httpclient</artifactId>
174 <version>${httpclient.version}</version>
175 <scope>compile</scope>
179 <groupId>org.apache.httpcomponents</groupId>
180 <artifactId>httpcore</artifactId>
181 <version>${httpcore.version}</version>
182 <scope>compile</scope>
186 <groupId>commons-logging</groupId>
187 <artifactId>commons-logging</artifactId>
188 <version>${commons-logging}</version>
189 <scope>compile</scope>
193 <groupId>commons-codec</groupId>
194 <artifactId>commons-codec</artifactId>
195 <version>${commons-codec}</version>
196 <scope>compile</scope>
198 <!-- http client END -->
201 <groupId>javax.servlet</groupId>
202 <artifactId>javax.servlet-api</artifactId>
203 <version>${servlet-api.version}</version>
204 <scope>provided</scope>
208 <groupId>org.eclipse.jgit</groupId>
209 <artifactId>org.eclipse.jgit</artifactId>
210 <version>3.4.1.201406201815-r</version>
213 <!-- spring - used by A4C -->
215 <groupId>org.springframework</groupId>
216 <artifactId>spring-core</artifactId>
217 <version>${spring.version}</version>
218 <scope>compile</scope>
222 <groupId>org.springframework</groupId>
223 <artifactId>spring-context</artifactId>
224 <version>${spring.version}</version>
225 <scope>compile</scope>
229 <groupId>org.springframework</groupId>
230 <artifactId>spring-web</artifactId>
231 <version>${spring.version}</version>
232 <scope>compile</scope>
236 <groupId>org.springframework</groupId>
237 <artifactId>spring-webmvc</artifactId>
238 <version>${spring.version}</version>
239 <scope>compile</scope>
243 <groupId>org.springframework</groupId>
244 <artifactId>spring-aop</artifactId>
245 <version>${spring.version}</version>
246 <scope>compile</scope>
250 <groupId>org.springframework</groupId>
251 <artifactId>spring-beans</artifactId>
252 <version>${spring.version}</version>
253 <scope>compile</scope>
257 <groupId>org.springframework</groupId>
258 <artifactId>spring-expression</artifactId>
259 <version>${spring.version}</version>
260 <scope>compile</scope>
264 <groupId>org.codehaus.groovy</groupId>
265 <artifactId>groovy</artifactId>
266 <scope>compile</scope>
270 <groupId>org.codehaus.janino</groupId>
271 <artifactId>janino</artifactId>
272 <version>${janino.version}</version>
273 <scope>compile</scope>
277 <groupId>org.codehaus.janino</groupId>
278 <artifactId>commons-compiler</artifactId>
279 <version>${janino.version}</version>
280 <scope>compile</scope>
284 <groupId>com.google.guava</groupId>
285 <artifactId>guava</artifactId>
286 <version>${guava.version}</version>
287 <scope>compile</scope>
292 <groupId>com.thinkaurelius.titan</groupId>
293 <artifactId>titan-core</artifactId>
294 <version>${titan.version}</version>
295 <scope>compile</scope>
298 <groupId>org.json</groupId>
299 <artifactId>json</artifactId>
302 <artifactId>slf4j-log4j12</artifactId>
303 <groupId>org.slf4j</groupId>
306 <artifactId>commons-collections</artifactId>
307 <groupId>commons-collections</groupId>
313 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
314 <artifactId>sdc-titan-cassandra</artifactId>
315 <version>${sdc.titan.version}</version>
316 <scope>compile</scope>
319 <groupId>org.slf4j</groupId>
320 <artifactId>slf4j-log4j12</artifactId>
323 <groupId>io.netty</groupId>
324 <artifactId>netty-all</artifactId>
330 <groupId>org.apache.commons</groupId>
331 <artifactId>commons-lang3</artifactId>
332 <version>${lang3.version}</version>
333 <scope>compile</scope>
338 <groupId>com.googlecode.json-simple</groupId>
339 <artifactId>json-simple</artifactId>
340 <version>${json-simple.version}</version>
341 <scope>compile</scope>
346 <groupId>org.elasticsearch</groupId>
347 <artifactId>elasticsearch</artifactId>
348 <version>${elastic-search.version}</version>
349 <scope>compile</scope>
352 <!-- functional java -->
354 <groupId>org.functionaljava</groupId>
355 <artifactId>functionaljava</artifactId>
356 <version>${functionaljava.version}</version>
357 <scope>compile</scope>
362 <groupId>com.jcabi</groupId>
363 <artifactId>jcabi-aspects</artifactId>
364 <version>${jcabi.version}</version>
365 <scope>compile</scope>
369 <groupId>org.aspectj</groupId>
370 <artifactId>aspectjrt</artifactId>
371 <version>${aspectjrt.version}</version>
372 <scope>compile</scope>
376 <!-- CAMBRIA CLIENT for U-EB -->
378 <groupId>com.att.nsa</groupId>
379 <artifactId>cambriaClient</artifactId>
380 <version>1.2.1-oss</version>
381 <scope>compile</scope>
384 <groupId>com.att.nsa</groupId>
385 <artifactId>saClientLibrary</artifactId>
391 <groupId>org.json</groupId>
392 <artifactId>json</artifactId>
393 <version>20131018</version>
394 <scope>compile</scope>
397 <groupId>org.apache.tinkerpop</groupId>
398 <artifactId>tinkergraph-gremlin</artifactId>
399 <version>3.0.1-incubating</version>
400 <scope>compile</scope>
404 <groupId>org.apache.tinkerpop</groupId>
405 <artifactId>gremlin-groovy</artifactId>
406 <version>3.0.1-incubating</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>
418 <groupId>com.datastax.cassandra</groupId>
419 <artifactId>cassandra-driver-mapping</artifactId>
420 <version>${cassandra.driver.version}</version>
421 <scope>compile</scope>
423 <!-- CASSANDRA END -->
425 <!-- Inserted for ECOMP Portal Integration -->
427 <groupId>org.openecomp.ecompsdkos</groupId>
428 <artifactId>epsdk-fw</artifactId>
429 <version>${ecomp.version}</version>
430 <scope>compile</scope>
433 <groupId>com.att.nsa</groupId>
434 <artifactId>cambriaClient</artifactId>
437 <artifactId>slf4j-log4j12</artifactId>
438 <groupId>org.slf4j</groupId>
445 <groupId>org.eclipse.jetty</groupId>
446 <artifactId>jetty-proxy</artifactId>
447 <version>${jetty.version}</version>
448 <scope>compile</scope>
452 <groupId>org.eclipse.jetty</groupId>
453 <artifactId>jetty-servlets</artifactId>
454 <version>${jetty.version}</version>
455 <scope>compile</scope>
457 <!-- System metrics -->
459 <groupId>org.fusesource</groupId>
460 <artifactId>sigar</artifactId>
461 <version>${sigar.version}</version>
462 <scope>compile</scope>
465 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
466 <artifactId>dmaapClient</artifactId>
467 <version>1.1.3</version>
468 <scope>compile</scope>
471 <groupId>com.att.aft</groupId>
472 <artifactId>dme2</artifactId>
477 <groupId>com.att.aft</groupId>
478 <artifactId>dme2</artifactId>
479 <version>3.1.200-oss</version>
483 <groupId>javax.jms</groupId>
484 <artifactId>jms</artifactId>
485 <version>1.1</version>
486 <scope>provided</scope>
491 <groupId>org.assertj</groupId>
492 <artifactId>assertj-core</artifactId>
497 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
498 <artifactId>jersey-test-framework-provider-bundle</artifactId>
499 <version>${jersey-bom.version}</version>
505 <groupId>org.glassfish.jersey.core</groupId>
506 <artifactId>jersey-client</artifactId>
507 <version>${jersey-bom.version}</version>
511 <groupId>com.github.tomakehurst</groupId>
512 <artifactId>wiremock-standalone</artifactId>
517 <groupId>org.eclipse.jetty</groupId>
518 <artifactId>jetty-servlet</artifactId>
519 <version>${jetty.version}</version>
524 <groupId>org.eclipse.jetty</groupId>
525 <artifactId>jetty-webapp</artifactId>
526 <version>${jetty.version}</version>
531 <groupId>junit</groupId>
532 <artifactId>junit</artifactId>
533 <version>${junit.version}</version>
538 <groupId>org.mockito</groupId>
539 <artifactId>mockito-core</artifactId>
544 <groupId>org.springframework</groupId>
545 <artifactId>spring-test</artifactId>
546 <version>${spring.version}</version>
551 <groupId>org.springframework</groupId>
552 <artifactId>spring-tx</artifactId>
553 <version>${spring.version}</version>
557 <groupId>io.cucumber</groupId>
558 <artifactId>cucumber-java</artifactId>
563 <groupId>io.cucumber</groupId>
564 <artifactId>cucumber-junit</artifactId>
569 <groupId>org.jmockit</groupId>
570 <artifactId>jmockit</artifactId>
571 <version>${jmockit.version}</version>
576 <groupId>com.google.code.bean-matchers</groupId>
577 <artifactId>bean-matchers</artifactId>
578 <version>0.11</version>
583 <groupId>org.codehaus.groovy</groupId>
584 <artifactId>groovy</artifactId>
585 <version>2.4.8</version>
589 <groupId>io.netty</groupId>
590 <artifactId>netty-handler</artifactId>
596 <finalName>${project.artifactId}-${project.version}</finalName>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-war-plugin</artifactId>
603 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
604 WEB-INF/classes/elasticsearch.yml,
605 WEB-INF/classes/portal.properties
609 <SDC-Version>${project.version}</SDC-Version>
612 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
613 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
619 <directory>src/main/resources</directory>
620 <directory>src/main/resources/swagger</directory>
623 <attachClasses>true</attachClasses>
627 <groupId>com.github.sylvainlaurent.maven</groupId>
628 <artifactId>yaml-json-validator-maven-plugin</artifactId>
632 <phase>validate</phase>
634 <goal>validate</goal>
640 <include>src/main/resources/**/*.y*ml</include>
641 <include>src/test/resources/**/*.y*ml</include>
646 <include>src/main/resources/**/*.json</include>
647 <include>src/test/resources/**/*.json</include>
656 <groupId>com.jcabi</groupId>
657 <artifactId>jcabi-maven-plugin</artifactId>
658 <version>${jcabi.maven.plugin.version}</version>
668 <groupId>org.apache.maven.plugins</groupId>
669 <artifactId>maven-assembly-plugin</artifactId>
673 <phase>package</phase>
678 <finalName>normatives</finalName>
679 <appendAssemblyId>false</appendAssemblyId>
681 <descriptor>${project.basedir}/normatives.xml</descriptor>
688 <groupId>org.apache.maven.plugins</groupId>
689 <artifactId>maven-clean-plugin</artifactId>
692 <id>clean.sdc.backend.folder</id>
699 <!-- static configuration files -->
702 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
704 <followSymlinks>false</followSymlinks>
706 <include>Artifact-Generator.properties</include>
707 <include>error-configuration.yaml</include>
708 <include>ecomp-error-configuration.yaml</include>
709 <include>logback.xml</include>
714 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
715 <followSymlinks>false</followSymlinks>
717 <include>*.war</include>
722 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
724 <followSymlinks>false</followSymlinks>
726 <include>normatives.tar.gz</include>
736 <id>clean-static-files</id>
745 <directory>${project.parent.basedir}/asdctool/tosca</directory>
746 <followSymlinks>false</followSymlinks>
754 <groupId>org.apache.maven.plugins</groupId>
755 <artifactId>maven-resources-plugin</artifactId>
758 <id>copy-static-configuration-files</id>
759 <phase>verify</phase>
761 <goal>copy-resources</goal>
765 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
769 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
772 <include>Artifact-Generator.properties</include>
773 <include>error-configuration.yaml</include>
774 <include>ecomp-error-configuration.yaml</include>
775 <include>logback.xml</include>
782 <id>copy-tosca-folder</id>
783 <!-- here the phase you need -->
784 <phase>install</phase>
786 <goal>copy-resources</goal>
789 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
792 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
794 <filtering>true</filtering>
805 <!--This plugin's configuration is used to store Eclipse m2e settings
806 only. It has no influence on the Maven build itself. -->
808 <groupId>org.eclipse.m2e</groupId>
809 <artifactId>lifecycle-mapping</artifactId>
810 <version>1.0.0</version>
812 <lifecycleMappingMetadata>
815 <pluginExecutionFilter>
816 <groupId>com.googlecode.maven-download-plugin</groupId>
817 <artifactId>download-maven-plugin</artifactId>
818 <versionRange>[1.2.1,)</versionRange>
822 </pluginExecutionFilter>
829 <pluginExecutionFilter>
830 <groupId>com.jcabi</groupId>
831 <artifactId>jcabi-maven-plugin</artifactId>
832 <versionRange>[0.0,)</versionRange>
836 </pluginExecutionFilter>
843 </lifecycleMappingMetadata>
848 <!-- Swagger Plugins End -->
853 <id>docker-staging</id>
855 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
856 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
863 <activeByDefault>false</activeByDefault>
868 <groupId>org.apache.maven.plugins</groupId>
869 <artifactId>maven-resources-plugin</artifactId>
872 <id>copy-resources-apidocs</id>
873 <phase>verify</phase>
875 <goal>copy-resources</goal>
878 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
882 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
885 <include>api-docs.war</include>
893 <id>copy-resources-be</id>
894 <phase>verify</phase>
896 <goal>copy-resources</goal>
899 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
902 <directory>${project.parent.basedir}/catalog-be/target</directory>
904 <include>catalog-be-${project.version}.war</include>
909 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
912 <include>onboarding-be-${project.version}.war</include>
919 <id>copy-normatives</id>
920 <phase>verify</phase>
922 <goal>copy-resources</goal>
926 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
930 <directory>${project.parent.basedir}/catalog-be/target</directory>
932 <include>normatives.tar.gz</include>
941 <groupId>io.fabric8</groupId>
942 <artifactId>docker-maven-plugin</artifactId>
944 <apiVersion>1.23</apiVersion>
945 <registry>nexus3.onap.org:10001</registry>
948 <username>docker</username>
949 <password>docker</password>
954 <!-- Build backend image -->
956 <name>onap/sdc-backend</name>
957 <alias>sdc-backend</alias>
959 <cleanup>try</cleanup>
960 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
962 <tag>${docker.tag}</tag>
964 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
969 <!-- Build backend-init image -->
971 <name>onap/sdc-backend-init</name>
972 <alias>sdc-backend-init</alias>
974 <cleanup>try</cleanup>
975 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
977 <tag>${docker.tag}</tag>
979 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
988 <id>clean-images</id>
989 <phase>pre-clean</phase>
994 <removeAll>true</removeAll>
995 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1000 <id>generate-images</id>
1001 <phase>install</phase>
1008 <id>push-images</id>
1009 <phase>deploy</phase>
1014 <image>onap/sdc-backend,onap/sdc-backend-init</image>