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.5.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>
305 <groupId>org.janusgraph</groupId>
306 <artifactId>janusgraph-core</artifactId>
307 <version>${janusgraph.version}</version>
308 <scope>compile</scope>
311 <groupId>org.json</groupId>
312 <artifactId>json</artifactId>
315 <artifactId>slf4j-log4j12</artifactId>
316 <groupId>org.slf4j</groupId>
319 <artifactId>commons-collections</artifactId>
320 <groupId>commons-collections</groupId>
326 <groupId>org.janusgraph</groupId>
327 <artifactId>janusgraph-cassandra</artifactId>
328 <version>${janusgraph.version}</version>
329 <scope>compile</scope>
332 <groupId>org.slf4j</groupId>
333 <artifactId>slf4j-log4j12</artifactId>
336 <groupId>io.netty</groupId>
337 <artifactId>netty-all</artifactId>
343 <groupId>org.apache.commons</groupId>
344 <artifactId>commons-lang3</artifactId>
345 <version>${lang3.version}</version>
346 <scope>compile</scope>
350 <groupId>com.googlecode.json-simple</groupId>
351 <artifactId>json-simple</artifactId>
352 <version>${json-simple.version}</version>
353 <scope>compile</scope>
358 <groupId>org.elasticsearch</groupId>
359 <artifactId>elasticsearch</artifactId>
360 <version>${elastic-search.version}</version>
361 <scope>compile</scope>
364 <!-- functional java -->
366 <groupId>org.functionaljava</groupId>
367 <artifactId>functionaljava</artifactId>
368 <version>${functionaljava.version}</version>
369 <scope>compile</scope>
374 <groupId>com.jcabi</groupId>
375 <artifactId>jcabi-aspects</artifactId>
376 <version>${jcabi.version}</version>
377 <scope>compile</scope>
381 <groupId>org.aspectj</groupId>
382 <artifactId>aspectjrt</artifactId>
383 <version>${aspectjrt.version}</version>
384 <scope>compile</scope>
388 <!-- CAMBRIA CLIENT for U-EB -->
390 <groupId>com.att.nsa</groupId>
391 <artifactId>cambriaClient</artifactId>
392 <version>1.2.1-oss</version>
393 <scope>compile</scope>
396 <groupId>com.att.nsa</groupId>
397 <artifactId>saClientLibrary</artifactId>
403 <groupId>org.json</groupId>
404 <artifactId>json</artifactId>
405 <version>20131018</version>
406 <scope>compile</scope>
411 <groupId>com.datastax.cassandra</groupId>
412 <artifactId>cassandra-driver-core</artifactId>
413 <version>${cassandra.driver.version}</version>
414 <scope>compile</scope>
417 <groupId>com.datastax.cassandra</groupId>
418 <artifactId>cassandra-driver-mapping</artifactId>
419 <version>${cassandra.driver.version}</version>
420 <scope>compile</scope>
422 <!-- CASSANDRA END -->
424 <!-- Inserted for ECOMP Portal Integration -->
426 <groupId>org.onap.portal.sdk</groupId>
427 <artifactId>epsdk-fw</artifactId>
428 <version>${ecomp.version}</version>
429 <scope>compile</scope>
432 <groupId>com.att.nsa</groupId>
433 <artifactId>cambriaClient</artifactId>
436 <artifactId>slf4j-log4j12</artifactId>
437 <groupId>org.slf4j</groupId>
444 <groupId>org.eclipse.jetty</groupId>
445 <artifactId>jetty-proxy</artifactId>
446 <version>${jetty.version}</version>
447 <scope>compile</scope>
451 <groupId>org.eclipse.jetty</groupId>
452 <artifactId>jetty-servlets</artifactId>
453 <version>${jetty.version}</version>
454 <scope>compile</scope>
456 <!-- System metrics -->
458 <groupId>org.fusesource</groupId>
459 <artifactId>sigar</artifactId>
460 <version>${sigar.version}</version>
461 <scope>compile</scope>
464 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
465 <artifactId>dmaapClient</artifactId>
466 <version>1.1.3</version>
467 <scope>compile</scope>
470 <groupId>com.att.aft</groupId>
471 <artifactId>dme2</artifactId>
476 <groupId>com.att.aft</groupId>
477 <artifactId>dme2</artifactId>
478 <version>3.1.200-oss</version>
482 <groupId>javax.jms</groupId>
483 <artifactId>jms</artifactId>
484 <version>1.1</version>
485 <scope>provided</scope>
490 <groupId>org.assertj</groupId>
491 <artifactId>assertj-core</artifactId>
496 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
497 <artifactId>jersey-test-framework-provider-bundle</artifactId>
498 <version>${jersey-bom.version}</version>
504 <groupId>org.glassfish.jersey.core</groupId>
505 <artifactId>jersey-client</artifactId>
506 <version>${jersey-bom.version}</version>
510 <groupId>com.github.tomakehurst</groupId>
511 <artifactId>wiremock-standalone</artifactId>
516 <groupId>org.eclipse.jetty</groupId>
517 <artifactId>jetty-webapp</artifactId>
518 <version>${jetty.version}</version>
523 <groupId>junit</groupId>
524 <artifactId>junit</artifactId>
525 <version>${junit.version}</version>
530 <groupId>org.mockito</groupId>
531 <artifactId>mockito-core</artifactId>
536 <groupId>org.springframework</groupId>
537 <artifactId>spring-test</artifactId>
538 <version>${spring.version}</version>
543 <groupId>org.springframework</groupId>
544 <artifactId>spring-tx</artifactId>
545 <version>${spring.version}</version>
549 <groupId>io.cucumber</groupId>
550 <artifactId>cucumber-java</artifactId>
555 <groupId>io.cucumber</groupId>
556 <artifactId>cucumber-junit</artifactId>
561 <groupId>org.jmockit</groupId>
562 <artifactId>jmockit</artifactId>
563 <version>${jmockit.version}</version>
568 <groupId>com.google.code.bean-matchers</groupId>
569 <artifactId>bean-matchers</artifactId>
570 <version>0.11</version>
575 <groupId>org.hamcrest</groupId>
576 <artifactId>java-hamcrest</artifactId>
577 <version>${java-hamcrest.version}</version>
582 <groupId>org.codehaus.groovy</groupId>
583 <artifactId>groovy</artifactId>
584 <version>2.4.8</version>
588 <groupId>io.netty</groupId>
589 <artifactId>netty-handler</artifactId>
592 <groupId>org.onap.sdc.common</groupId>
593 <artifactId>onap-tosca-datatype</artifactId>
594 <version>${project.version}</version>
597 <groupId>org.apache.commons</groupId>
598 <artifactId>commons-collections4</artifactId>
599 <version>${commons.collections.version}</version>
602 <groupId>org.codehaus.jackson</groupId>
603 <artifactId>jackson-mapper-asl</artifactId>
604 <version>${jackson.mapper.version}</version>
607 <groupId>org.apache.commons</groupId>
608 <artifactId>commons-collections4</artifactId>
609 <version>${commons.collections.version}</version>
615 <finalName>${project.artifactId}-${project.version}</finalName>
619 <groupId>org.apache.maven.plugins</groupId>
620 <artifactId>maven-war-plugin</artifactId>
622 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
623 WEB-INF/classes/elasticsearch.yml,
624 WEB-INF/classes/portal.properties
628 <SDC-Version>${project.version}</SDC-Version>
631 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
632 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
638 <directory>src/main/resources</directory>
639 <directory>src/main/resources/swagger</directory>
642 <attachClasses>true</attachClasses>
646 <groupId>com.github.sylvainlaurent.maven</groupId>
647 <artifactId>yaml-json-validator-maven-plugin</artifactId>
651 <phase>validate</phase>
653 <goal>validate</goal>
659 <include>src/main/resources/**/*.y*ml</include>
660 <include>src/test/resources/**/*.y*ml</include>
665 <include>src/main/resources/**/*.json</include>
666 <include>src/test/resources/**/*.json</include>
675 <groupId>com.jcabi</groupId>
676 <artifactId>jcabi-maven-plugin</artifactId>
677 <version>${jcabi.maven.plugin.version}</version>
687 <groupId>org.apache.maven.plugins</groupId>
688 <artifactId>maven-assembly-plugin</artifactId>
692 <phase>package</phase>
697 <finalName>normatives</finalName>
698 <appendAssemblyId>false</appendAssemblyId>
700 <descriptor>${project.basedir}/normatives.xml</descriptor>
707 <groupId>org.apache.maven.plugins</groupId>
708 <artifactId>maven-clean-plugin</artifactId>
711 <id>clean.sdc.backend.folder</id>
718 <!-- static configuration files -->
721 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
723 <followSymlinks>false</followSymlinks>
725 <include>error-configuration.yaml</include>
726 <include>ecomp-error-configuration.yaml</include>
727 <include>logback.xml</include>
732 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
733 <followSymlinks>false</followSymlinks>
735 <include>*.war</include>
740 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
742 <followSymlinks>false</followSymlinks>
744 <include>normatives.tar.gz</include>
754 <id>clean-static-files</id>
763 <directory>${project.parent.basedir}/asdctool/tosca</directory>
764 <followSymlinks>false</followSymlinks>
772 <groupId>org.apache.maven.plugins</groupId>
773 <artifactId>maven-resources-plugin</artifactId>
776 <id>copy-static-configuration-files</id>
777 <phase>verify</phase>
779 <goal>copy-resources</goal>
783 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
787 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
790 <include>error-configuration.yaml</include>
791 <include>ecomp-error-configuration.yaml</include>
792 <include>logback.xml</include>
799 <id>copy-tosca-folder</id>
800 <!-- here the phase you need -->
801 <phase>install</phase>
803 <goal>copy-resources</goal>
806 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
809 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
811 <filtering>true</filtering>
822 <!--This plugin's configuration is used to store Eclipse m2e settings
823 only. It has no influence on the Maven build itself. -->
825 <groupId>org.eclipse.m2e</groupId>
826 <artifactId>lifecycle-mapping</artifactId>
827 <version>1.0.0</version>
829 <lifecycleMappingMetadata>
832 <pluginExecutionFilter>
833 <groupId>com.googlecode.maven-download-plugin</groupId>
834 <artifactId>download-maven-plugin</artifactId>
835 <versionRange>[1.2.1,)</versionRange>
839 </pluginExecutionFilter>
846 <pluginExecutionFilter>
847 <groupId>com.jcabi</groupId>
848 <artifactId>jcabi-maven-plugin</artifactId>
849 <versionRange>[0.0,)</versionRange>
853 </pluginExecutionFilter>
860 </lifecycleMappingMetadata>
865 <!-- Swagger Plugins End -->
870 <id>docker-staging</id>
872 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
873 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
880 <activeByDefault>false</activeByDefault>
885 <groupId>org.apache.maven.plugins</groupId>
886 <artifactId>maven-resources-plugin</artifactId>
889 <id>copy-resources-apidocs</id>
890 <phase>verify</phase>
892 <goal>copy-resources</goal>
895 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
899 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
902 <include>api-docs.war</include>
910 <id>copy-resources-be</id>
911 <phase>verify</phase>
913 <goal>copy-resources</goal>
916 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
919 <directory>${project.parent.basedir}/catalog-be/target</directory>
921 <include>catalog-be-${project.version}.war</include>
926 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
929 <include>onboarding-be-${project.version}.war</include>
936 <id>copy-normatives</id>
937 <phase>verify</phase>
939 <goal>copy-resources</goal>
943 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
947 <directory>${project.parent.basedir}/catalog-be/target</directory>
949 <include>normatives.tar.gz</include>
958 <groupId>io.fabric8</groupId>
959 <artifactId>docker-maven-plugin</artifactId>
961 <apiVersion>1.23</apiVersion>
962 <registry>nexus3.onap.org:10001</registry>
965 <username>docker</username>
966 <password>docker</password>
971 <!-- Build backend image -->
973 <name>onap/sdc-backend</name>
974 <alias>sdc-backend</alias>
976 <cleanup>try</cleanup>
977 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
979 <tag>${docker.tag}</tag>
981 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
986 <!-- Build backend-init image -->
988 <name>onap/sdc-backend-init</name>
989 <alias>sdc-backend-init</alias>
991 <cleanup>try</cleanup>
992 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
994 <tag>${docker.tag}</tag>
996 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1005 <id>clean-images</id>
1006 <phase>pre-clean</phase>
1011 <removeAll>true</removeAll>
1012 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1017 <id>generate-images</id>
1018 <phase>install</phase>
1025 <id>push-images</id>
1026 <phase>deploy</phase>
1031 <image>onap/sdc-backend,onap/sdc-backend-init</image>