1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
6 <artifactId>catalog-be</artifactId>
7 <packaging>war</packaging>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>sdc-main</artifactId>
12 <version>1.5.1-SNAPSHOT</version>
16 <java-hamcrest.version>2.0.0.0</java-hamcrest.version>
17 <swagger.version>2.0.8</swagger.version>
21 <!--JSON and YAML Parsing-->
23 <groupId>com.fasterxml.jackson.dataformat</groupId>
24 <artifactId>jackson-dataformat-yaml</artifactId>
25 <version>${jackson.version}</version>
26 <scope>compile</scope>
30 <groupId>com.fasterxml.jackson.core</groupId>
31 <artifactId>jackson-databind</artifactId>
32 <version>${jackson.version}</version>
33 <scope>compile</scope>
37 <groupId>org.openecomp.sdc</groupId>
38 <artifactId>security-utils</artifactId>
39 <version>${project.version}</version>
40 <scope>compile</scope>
44 <groupId>org.onap.sdc.common</groupId>
45 <artifactId>onap-generic-artifact-browser-service</artifactId>
46 <version>${project.version}</version>
47 <scope>compile</scope>
50 <!-- Swagger Dependencies Start -->
52 <groupId>io.swagger.core.v3</groupId>
53 <artifactId>swagger-annotations</artifactId>
54 <version>${swagger.version}</version>
56 <!-- Swagger Dependencies End -->
59 <groupId>org.openecomp.sdc</groupId>
60 <artifactId>common-app-api</artifactId>
61 <version>${project.version}</version>
62 <scope>compile</scope>
66 <groupId>org.openecomp.sdc.be</groupId>
67 <artifactId>common-be</artifactId>
68 <version>${project.version}</version>
69 <scope>compile</scope>
72 <groupId>org.openecomp.sdc.be</groupId>
73 <artifactId>catalog-dao</artifactId>
74 <version>${project.version}</version>
75 <scope>compile</scope>
79 <groupId>org.openecomp.sdc.be</groupId>
80 <artifactId>catalog-model</artifactId>
81 <version>${project.version}</version>
82 <scope>compile</scope>
86 <groupId>ch.qos.logback</groupId>
87 <artifactId>logback-classic</artifactId>
88 <version>${logback.version}</version>
89 <scope>compile</scope>
94 <groupId>org.yaml</groupId>
95 <artifactId>snakeyaml</artifactId>
96 <version>${snakeyaml.version}</version>
97 <scope>compile</scope>
100 <!-- File changes listener -->
102 <groupId>org.apache.commons</groupId>
103 <artifactId>commons-jci-core</artifactId>
104 <version>${commons-jci-core.version}</version>
105 <scope>compile</scope>
110 <groupId>com.google.code.gson</groupId>
111 <artifactId>gson</artifactId>
112 <version>${gson.version}</version>
113 <scope>compile</scope>
118 <groupId>org.glassfish.jersey.media</groupId>
119 <artifactId>jersey-media-json-jackson</artifactId>
120 <version>${jersey-bom.version}</version>
121 <scope>compile</scope>
125 <groupId>org.glassfish.jersey.containers</groupId>
126 <artifactId>jersey-container-servlet-core</artifactId>
127 <version>${jersey-bom.version}</version>
128 <scope>compile</scope>
132 <groupId>org.glassfish.jersey.media</groupId>
133 <artifactId>jersey-media-multipart</artifactId>
134 <version>${jersey-bom.version}</version>
135 <scope>compile</scope>
138 <groupId>org.glassfish.jersey.ext</groupId>
139 <artifactId>jersey-spring4</artifactId>
140 <version>${jersey-bom.version}</version>
143 <groupId>org.springframework</groupId>
144 <artifactId>spring-web</artifactId>
147 <groupId>org.springframework</groupId>
148 <artifactId>spring-beans</artifactId>
151 <groupId>org.springframework</groupId>
152 <artifactId>spring-core</artifactId>
155 <groupId>org.springframework</groupId>
156 <artifactId>spring-aop</artifactId>
158 <!-- Transitive dependency of spring-bridge -->
160 <groupId>org.springframework</groupId>
161 <artifactId>spring-context</artifactId>
167 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
168 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
170 <groupId>org.glassfish.hk2.external</groupId>
171 <artifactId>asm-all-repackaged</artifactId>
175 <groupId>org.glassfish.jersey.ext</groupId>
176 <artifactId>jersey-bean-validation</artifactId>
181 <groupId>org.apache.httpcomponents</groupId>
182 <artifactId>httpclient</artifactId>
183 <version>${httpclient.version}</version>
184 <scope>compile</scope>
188 <groupId>org.apache.httpcomponents</groupId>
189 <artifactId>httpcore</artifactId>
190 <version>${httpcore.version}</version>
191 <scope>compile</scope>
195 <groupId>commons-logging</groupId>
196 <artifactId>commons-logging</artifactId>
197 <version>${commons-logging}</version>
198 <scope>compile</scope>
202 <groupId>commons-codec</groupId>
203 <artifactId>commons-codec</artifactId>
204 <version>${commons-codec}</version>
205 <scope>compile</scope>
207 <!-- http client END -->
210 <groupId>javax.servlet</groupId>
211 <artifactId>javax.servlet-api</artifactId>
212 <version>${servlet-api.version}</version>
213 <scope>provided</scope>
217 <groupId>org.eclipse.jgit</groupId>
218 <artifactId>org.eclipse.jgit</artifactId>
219 <version>3.4.1.201406201815-r</version>
222 <!-- spring - used by A4C -->
224 <groupId>org.springframework</groupId>
225 <artifactId>spring-core</artifactId>
226 <version>${spring.version}</version>
227 <scope>compile</scope>
231 <groupId>org.springframework</groupId>
232 <artifactId>spring-context</artifactId>
233 <version>${spring.version}</version>
234 <scope>compile</scope>
238 <groupId>org.springframework</groupId>
239 <artifactId>spring-web</artifactId>
240 <version>${spring.version}</version>
241 <scope>compile</scope>
245 <groupId>org.springframework</groupId>
246 <artifactId>spring-webmvc</artifactId>
247 <version>${spring.version}</version>
248 <scope>compile</scope>
252 <groupId>org.springframework</groupId>
253 <artifactId>spring-aop</artifactId>
254 <version>${spring.version}</version>
255 <scope>compile</scope>
259 <groupId>org.springframework</groupId>
260 <artifactId>spring-beans</artifactId>
261 <version>${spring.version}</version>
262 <scope>compile</scope>
266 <groupId>org.springframework</groupId>
267 <artifactId>spring-expression</artifactId>
268 <version>${spring.version}</version>
269 <scope>compile</scope>
273 <groupId>org.codehaus.janino</groupId>
274 <artifactId>janino</artifactId>
275 <version>${janino.version}</version>
276 <scope>compile</scope>
280 <groupId>org.codehaus.janino</groupId>
281 <artifactId>commons-compiler</artifactId>
282 <version>${janino.version}</version>
283 <scope>compile</scope>
287 <groupId>com.google.guava</groupId>
288 <artifactId>guava</artifactId>
289 <version>${guava.version}</version>
290 <scope>compile</scope>
294 <groupId>org.janusgraph</groupId>
295 <artifactId>janusgraph-core</artifactId>
296 <version>${janusgraph.version}</version>
297 <scope>compile</scope>
300 <groupId>org.json</groupId>
301 <artifactId>json</artifactId>
304 <artifactId>slf4j-log4j12</artifactId>
305 <groupId>org.slf4j</groupId>
308 <artifactId>commons-collections</artifactId>
309 <groupId>commons-collections</groupId>
312 <groupId>org.apache.thrift</groupId>
313 <artifactId>libthrift</artifactId>
319 <groupId>org.janusgraph</groupId>
320 <artifactId>janusgraph-cassandra</artifactId>
321 <version>${janusgraph.version}</version>
322 <scope>compile</scope>
325 <groupId>org.slf4j</groupId>
326 <artifactId>slf4j-log4j12</artifactId>
329 <groupId>io.netty</groupId>
330 <artifactId>netty-all</artifactId>
336 <groupId>org.apache.commons</groupId>
337 <artifactId>commons-lang3</artifactId>
338 <version>${lang3.version}</version>
339 <scope>compile</scope>
343 <groupId>com.googlecode.json-simple</groupId>
344 <artifactId>json-simple</artifactId>
345 <version>${json-simple.version}</version>
346 <scope>compile</scope>
351 <groupId>org.elasticsearch</groupId>
352 <artifactId>elasticsearch</artifactId>
353 <version>${elastic-search.version}</version>
354 <scope>compile</scope>
357 <!-- functional java -->
359 <groupId>org.functionaljava</groupId>
360 <artifactId>functionaljava</artifactId>
361 <version>${functionaljava.version}</version>
362 <scope>compile</scope>
367 <groupId>com.jcabi</groupId>
368 <artifactId>jcabi-aspects</artifactId>
369 <version>${jcabi.version}</version>
370 <scope>compile</scope>
374 <groupId>org.aspectj</groupId>
375 <artifactId>aspectjrt</artifactId>
376 <version>${aspectjrt.version}</version>
377 <scope>compile</scope>
381 <!-- CAMBRIA CLIENT for U-EB -->
383 <groupId>com.att.nsa</groupId>
384 <artifactId>cambriaClient</artifactId>
385 <version>1.2.1-oss</version>
386 <scope>compile</scope>
389 <groupId>com.att.nsa</groupId>
390 <artifactId>saClientLibrary</artifactId>
396 <groupId>org.json</groupId>
397 <artifactId>json</artifactId>
398 <version>20131018</version>
399 <scope>compile</scope>
404 <groupId>com.datastax.cassandra</groupId>
405 <artifactId>cassandra-driver-core</artifactId>
406 <version>${cassandra.driver.version}</version>
407 <scope>compile</scope>
410 <groupId>com.datastax.cassandra</groupId>
411 <artifactId>cassandra-driver-mapping</artifactId>
412 <version>${cassandra.driver.version}</version>
413 <scope>compile</scope>
416 <groupId>org.apache.thrift</groupId>
417 <artifactId>libthrift</artifactId>
418 <version>${libthrift.version}</version>
420 <!-- CASSANDRA END -->
422 <!-- Inserted for ECOMP Portal Integration -->
424 <groupId>org.onap.portal.sdk</groupId>
425 <artifactId>epsdk-fw</artifactId>
426 <version>${ecomp.version}</version>
427 <scope>compile</scope>
430 <groupId>com.att.nsa</groupId>
431 <artifactId>cambriaClient</artifactId>
434 <artifactId>slf4j-log4j12</artifactId>
435 <groupId>org.slf4j</groupId>
442 <groupId>org.eclipse.jetty</groupId>
443 <artifactId>jetty-proxy</artifactId>
444 <version>${jetty.version}</version>
445 <scope>compile</scope>
449 <groupId>org.eclipse.jetty</groupId>
450 <artifactId>jetty-servlets</artifactId>
451 <version>${jetty.version}</version>
452 <scope>compile</scope>
454 <!-- System metrics -->
456 <groupId>org.fusesource</groupId>
457 <artifactId>sigar</artifactId>
458 <version>${sigar.version}</version>
459 <scope>compile</scope>
462 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
463 <artifactId>dmaapClient</artifactId>
464 <version>1.1.3</version>
465 <scope>compile</scope>
468 <groupId>com.att.aft</groupId>
469 <artifactId>dme2</artifactId>
474 <groupId>com.att.aft</groupId>
475 <artifactId>dme2</artifactId>
476 <version>3.1.200-oss</version>
480 <groupId>javax.jms</groupId>
481 <artifactId>jms</artifactId>
482 <version>1.1</version>
483 <scope>provided</scope>
488 <groupId>org.assertj</groupId>
489 <artifactId>assertj-core</artifactId>
494 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
495 <artifactId>jersey-test-framework-provider-bundle</artifactId>
496 <version>${jersey-bom.version}</version>
502 <groupId>org.glassfish.jersey.core</groupId>
503 <artifactId>jersey-client</artifactId>
504 <version>${jersey-bom.version}</version>
508 <groupId>com.github.tomakehurst</groupId>
509 <artifactId>wiremock-standalone</artifactId>
514 <groupId>org.eclipse.jetty</groupId>
515 <artifactId>jetty-webapp</artifactId>
516 <version>${jetty.version}</version>
521 <groupId>junit</groupId>
522 <artifactId>junit</artifactId>
523 <version>${junit.version}</version>
528 <groupId>org.mockito</groupId>
529 <artifactId>mockito-core</artifactId>
534 <groupId>org.springframework</groupId>
535 <artifactId>spring-test</artifactId>
536 <version>${spring.version}</version>
541 <groupId>org.springframework</groupId>
542 <artifactId>spring-tx</artifactId>
543 <version>${spring.version}</version>
547 <groupId>io.cucumber</groupId>
548 <artifactId>cucumber-java</artifactId>
553 <groupId>io.cucumber</groupId>
554 <artifactId>cucumber-junit</artifactId>
559 <groupId>org.jmockit</groupId>
560 <artifactId>jmockit</artifactId>
561 <version>${jmockit.version}</version>
566 <groupId>com.google.code.bean-matchers</groupId>
567 <artifactId>bean-matchers</artifactId>
568 <version>0.11</version>
573 <groupId>org.hamcrest</groupId>
574 <artifactId>java-hamcrest</artifactId>
575 <version>${java-hamcrest.version}</version>
580 <groupId>org.codehaus.groovy</groupId>
581 <artifactId>groovy</artifactId>
582 <version>2.4.8</version>
586 <groupId>io.netty</groupId>
587 <artifactId>netty-handler</artifactId>
590 <groupId>org.onap.sdc.common</groupId>
591 <artifactId>onap-tosca-datatype</artifactId>
592 <version>${project.version}</version>
595 <groupId>org.apache.commons</groupId>
596 <artifactId>commons-collections4</artifactId>
597 <version>${commons.collections.version}</version>
600 <groupId>org.codehaus.jackson</groupId>
601 <artifactId>jackson-mapper-asl</artifactId>
602 <version>${jackson.mapper.version}</version>
608 <finalName>${project.artifactId}-${project.version}</finalName>
612 <groupId>org.apache.maven.plugins</groupId>
613 <artifactId>maven-war-plugin</artifactId>
615 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
616 WEB-INF/classes/elasticsearch.yml,
617 WEB-INF/classes/portal.properties
621 <SDC-Version>${project.version}</SDC-Version>
624 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
625 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
631 <directory>src/main/resources</directory>
632 <directory>src/main/resources/swagger</directory>
635 <attachClasses>true</attachClasses>
639 <groupId>com.github.sylvainlaurent.maven</groupId>
640 <artifactId>yaml-json-validator-maven-plugin</artifactId>
644 <phase>validate</phase>
646 <goal>validate</goal>
652 <include>src/main/resources/**/*.y*ml</include>
653 <include>src/test/resources/**/*.y*ml</include>
658 <include>src/main/resources/**/*.json</include>
659 <include>src/test/resources/**/*.json</include>
668 <groupId>com.jcabi</groupId>
669 <artifactId>jcabi-maven-plugin</artifactId>
670 <version>${jcabi.maven.plugin.version}</version>
680 <groupId>org.apache.maven.plugins</groupId>
681 <artifactId>maven-assembly-plugin</artifactId>
685 <phase>package</phase>
690 <finalName>normatives</finalName>
691 <appendAssemblyId>false</appendAssemblyId>
693 <descriptor>${project.basedir}/normatives.xml</descriptor>
700 <groupId>org.apache.maven.plugins</groupId>
701 <artifactId>maven-clean-plugin</artifactId>
704 <id>clean.sdc.backend.folder</id>
711 <!-- static configuration files -->
714 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
716 <followSymlinks>false</followSymlinks>
718 <include>error-configuration.yaml</include>
719 <include>ecomp-error-configuration.yaml</include>
720 <include>logback.xml</include>
725 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
726 <followSymlinks>false</followSymlinks>
728 <include>*.war</include>
733 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
735 <followSymlinks>false</followSymlinks>
737 <include>normatives.tar.gz</include>
747 <id>clean-static-files</id>
756 <directory>${project.parent.basedir}/asdctool/tosca</directory>
757 <followSymlinks>false</followSymlinks>
765 <groupId>org.apache.maven.plugins</groupId>
766 <artifactId>maven-resources-plugin</artifactId>
769 <id>copy-static-configuration-files</id>
770 <phase>verify</phase>
772 <goal>copy-resources</goal>
776 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
780 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
783 <include>error-configuration.yaml</include>
784 <include>ecomp-error-configuration.yaml</include>
785 <include>logback.xml</include>
792 <id>copy-tosca-folder</id>
793 <!-- here the phase you need -->
794 <phase>install</phase>
796 <goal>copy-resources</goal>
799 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
802 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
804 <filtering>true</filtering>
812 <groupId>com.github.kongchen</groupId>
813 <artifactId>swagger-maven-plugin</artifactId>
814 <version>3.1.0</version>
818 <springmvc>false</springmvc>
819 <schemes>http</schemes>
820 <basePath>/sdc</basePath>
822 io.swagger.jaxrs.json;org.openecomp.sdc.be.externalapi.servlet;org.openecomp.sdc.be.distribution.servlet;org.openecomp.normative.api
825 <title>External Rest API</title>
826 <version>v1.0</version>
827 <description>External Rest API Documentation</description>
829 http://www.github.com/kongchen/swagger-maven-plugin
832 <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath>
833 <outputPath>${basedir}/target/generated/swagger-ui/api.html</outputPath>
834 <swaggerDirectory>${basedir}/target/generated/swagger-ui
836 <swaggerApiReader>io.swagger.jaxrs.config.DefaultJaxrsConfig</swaggerApiReader>
842 <phase>compile</phase>
844 <goal>generate</goal>
853 <!--This plugin's configuration is used to store Eclipse m2e settings
854 only. It has no influence on the Maven build itself. -->
856 <groupId>org.eclipse.m2e</groupId>
857 <artifactId>lifecycle-mapping</artifactId>
858 <version>1.0.0</version>
860 <lifecycleMappingMetadata>
863 <pluginExecutionFilter>
864 <groupId>com.googlecode.maven-download-plugin</groupId>
865 <artifactId>download-maven-plugin</artifactId>
866 <versionRange>[1.2.1,)</versionRange>
870 </pluginExecutionFilter>
877 <pluginExecutionFilter>
878 <groupId>com.jcabi</groupId>
879 <artifactId>jcabi-maven-plugin</artifactId>
880 <versionRange>[0.0,)</versionRange>
884 </pluginExecutionFilter>
891 </lifecycleMappingMetadata>
896 <!-- Swagger Plugins End -->
901 <id>docker-staging</id>
903 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
904 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
911 <activeByDefault>false</activeByDefault>
916 <groupId>org.apache.maven.plugins</groupId>
917 <artifactId>maven-resources-plugin</artifactId>
920 <id>copy-resources-apidocs</id>
921 <phase>verify</phase>
923 <goal>copy-resources</goal>
926 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
930 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
933 <include>api-docs.war</include>
941 <id>copy-resources-be</id>
942 <phase>verify</phase>
944 <goal>copy-resources</goal>
947 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
950 <directory>${project.parent.basedir}/catalog-be/target</directory>
952 <include>catalog-be-${project.version}.war</include>
957 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
960 <include>onboarding-be-${project.version}.war</include>
967 <id>copy-normatives</id>
968 <phase>verify</phase>
970 <goal>copy-resources</goal>
974 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
978 <directory>${project.parent.basedir}/catalog-be/target</directory>
980 <include>normatives.tar.gz</include>
989 <groupId>io.fabric8</groupId>
990 <artifactId>docker-maven-plugin</artifactId>
992 <apiVersion>1.23</apiVersion>
993 <registry>nexus3.onap.org:10001</registry>
996 <username>docker</username>
997 <password>docker</password>
1002 <!-- Build backend image -->
1004 <name>onap/sdc-backend</name>
1005 <alias>sdc-backend</alias>
1007 <cleanup>try</cleanup>
1008 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1010 <tag>${docker.tag}</tag>
1012 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1017 <!-- Build backend-init image -->
1019 <name>onap/sdc-backend-init</name>
1020 <alias>sdc-backend-init</alias>
1022 <cleanup>try</cleanup>
1023 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1025 <tag>${docker.tag}</tag>
1027 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1036 <id>clean-images</id>
1037 <phase>pre-clean</phase>
1042 <removeAll>true</removeAll>
1043 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1048 <id>generate-images</id>
1049 <phase>install</phase>
1056 <id>push-images</id>
1057 <phase>deploy</phase>
1062 <image>onap/sdc-backend,onap/sdc-backend-init</image>