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>
18 <swagger.jaxrs.version>1.5.22</swagger.jaxrs.version>
22 <!--JSON and YAML Parsing-->
24 <groupId>com.fasterxml.jackson.dataformat</groupId>
25 <artifactId>jackson-dataformat-yaml</artifactId>
26 <version>${jackson.version}</version>
27 <scope>compile</scope>
31 <groupId>com.fasterxml.jackson.core</groupId>
32 <artifactId>jackson-databind</artifactId>
33 <version>${jackson.version}</version>
34 <scope>compile</scope>
38 <groupId>org.openecomp.sdc</groupId>
39 <artifactId>security-utils</artifactId>
40 <version>${project.version}</version>
41 <scope>compile</scope>
45 <groupId>org.onap.sdc.common</groupId>
46 <artifactId>onap-generic-artifact-browser-service</artifactId>
47 <version>${project.version}</version>
48 <scope>compile</scope>
51 <!-- Swagger Dependencies Start -->
53 <groupId>io.swagger.core.v3</groupId>
54 <artifactId>swagger-annotations</artifactId>
55 <version>${swagger.version}</version>
58 <groupId>io.swagger</groupId>
59 <artifactId>swagger-jersey2-jaxrs</artifactId>
60 <version>${swagger.jaxrs.version}</version>
62 <!-- Swagger Dependencies End -->
65 <groupId>org.openecomp.sdc</groupId>
66 <artifactId>common-app-api</artifactId>
67 <version>${project.version}</version>
68 <scope>compile</scope>
72 <groupId>org.openecomp.sdc.be</groupId>
73 <artifactId>common-be</artifactId>
74 <version>${project.version}</version>
75 <scope>compile</scope>
78 <groupId>org.openecomp.sdc.be</groupId>
79 <artifactId>catalog-dao</artifactId>
80 <version>${project.version}</version>
81 <scope>compile</scope>
85 <groupId>org.openecomp.sdc.be</groupId>
86 <artifactId>catalog-model</artifactId>
87 <version>${project.version}</version>
88 <scope>compile</scope>
92 <groupId>ch.qos.logback</groupId>
93 <artifactId>logback-classic</artifactId>
94 <version>${logback.version}</version>
95 <scope>compile</scope>
100 <groupId>org.yaml</groupId>
101 <artifactId>snakeyaml</artifactId>
102 <version>${snakeyaml.version}</version>
103 <scope>compile</scope>
106 <!-- File changes listener -->
108 <groupId>org.apache.commons</groupId>
109 <artifactId>commons-jci-core</artifactId>
110 <version>${commons-jci-core.version}</version>
111 <scope>compile</scope>
116 <groupId>com.google.code.gson</groupId>
117 <artifactId>gson</artifactId>
118 <version>${gson.version}</version>
119 <scope>compile</scope>
124 <groupId>org.glassfish.jersey.media</groupId>
125 <artifactId>jersey-media-json-jackson</artifactId>
126 <version>${jersey-bom.version}</version>
127 <scope>compile</scope>
131 <groupId>org.glassfish.jersey.containers</groupId>
132 <artifactId>jersey-container-servlet-core</artifactId>
133 <version>${jersey-bom.version}</version>
134 <scope>compile</scope>
138 <groupId>org.glassfish.jersey.media</groupId>
139 <artifactId>jersey-media-multipart</artifactId>
140 <version>${jersey-bom.version}</version>
141 <scope>compile</scope>
144 <groupId>org.glassfish.jersey.ext</groupId>
145 <artifactId>jersey-spring4</artifactId>
146 <version>${jersey-bom.version}</version>
149 <groupId>org.springframework</groupId>
150 <artifactId>spring-web</artifactId>
153 <groupId>org.springframework</groupId>
154 <artifactId>spring-beans</artifactId>
157 <groupId>org.springframework</groupId>
158 <artifactId>spring-core</artifactId>
161 <groupId>org.springframework</groupId>
162 <artifactId>spring-aop</artifactId>
164 <!-- Transitive dependency of spring-bridge -->
166 <groupId>org.springframework</groupId>
167 <artifactId>spring-context</artifactId>
173 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
174 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
176 <groupId>org.glassfish.hk2.external</groupId>
177 <artifactId>asm-all-repackaged</artifactId>
181 <groupId>org.glassfish.jersey.ext</groupId>
182 <artifactId>jersey-bean-validation</artifactId>
187 <groupId>org.apache.httpcomponents</groupId>
188 <artifactId>httpclient</artifactId>
189 <version>${httpclient.version}</version>
190 <scope>compile</scope>
194 <groupId>org.apache.httpcomponents</groupId>
195 <artifactId>httpcore</artifactId>
196 <version>${httpcore.version}</version>
197 <scope>compile</scope>
201 <groupId>commons-logging</groupId>
202 <artifactId>commons-logging</artifactId>
203 <version>${commons-logging}</version>
204 <scope>compile</scope>
208 <groupId>commons-codec</groupId>
209 <artifactId>commons-codec</artifactId>
210 <version>${commons-codec}</version>
211 <scope>compile</scope>
213 <!-- http client END -->
216 <groupId>javax.servlet</groupId>
217 <artifactId>javax.servlet-api</artifactId>
218 <version>${servlet-api.version}</version>
219 <scope>provided</scope>
223 <groupId>org.eclipse.jgit</groupId>
224 <artifactId>org.eclipse.jgit</artifactId>
225 <version>3.4.1.201406201815-r</version>
228 <!-- spring - used by A4C -->
230 <groupId>org.springframework</groupId>
231 <artifactId>spring-core</artifactId>
232 <version>${spring.version}</version>
233 <scope>compile</scope>
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-context</artifactId>
239 <version>${spring.version}</version>
240 <scope>compile</scope>
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-web</artifactId>
246 <version>${spring.version}</version>
247 <scope>compile</scope>
251 <groupId>org.springframework</groupId>
252 <artifactId>spring-webmvc</artifactId>
253 <version>${spring.version}</version>
254 <scope>compile</scope>
258 <groupId>org.springframework</groupId>
259 <artifactId>spring-aop</artifactId>
260 <version>${spring.version}</version>
261 <scope>compile</scope>
265 <groupId>org.springframework</groupId>
266 <artifactId>spring-beans</artifactId>
267 <version>${spring.version}</version>
268 <scope>compile</scope>
272 <groupId>org.springframework</groupId>
273 <artifactId>spring-expression</artifactId>
274 <version>${spring.version}</version>
275 <scope>compile</scope>
279 <groupId>org.codehaus.janino</groupId>
280 <artifactId>janino</artifactId>
281 <version>${janino.version}</version>
282 <scope>compile</scope>
286 <groupId>org.codehaus.janino</groupId>
287 <artifactId>commons-compiler</artifactId>
288 <version>${janino.version}</version>
289 <scope>compile</scope>
293 <groupId>com.google.guava</groupId>
294 <artifactId>guava</artifactId>
295 <version>${guava.version}</version>
296 <scope>compile</scope>
300 <groupId>org.janusgraph</groupId>
301 <artifactId>janusgraph-core</artifactId>
302 <version>${janusgraph.version}</version>
303 <scope>compile</scope>
306 <groupId>org.json</groupId>
307 <artifactId>json</artifactId>
310 <artifactId>slf4j-log4j12</artifactId>
311 <groupId>org.slf4j</groupId>
314 <artifactId>commons-collections</artifactId>
315 <groupId>commons-collections</groupId>
318 <groupId>org.apache.thrift</groupId>
319 <artifactId>libthrift</artifactId>
325 <groupId>org.janusgraph</groupId>
326 <artifactId>janusgraph-cassandra</artifactId>
327 <version>${janusgraph.version}</version>
328 <scope>compile</scope>
331 <groupId>org.slf4j</groupId>
332 <artifactId>slf4j-log4j12</artifactId>
335 <groupId>io.netty</groupId>
336 <artifactId>netty-all</artifactId>
342 <groupId>org.apache.commons</groupId>
343 <artifactId>commons-lang3</artifactId>
344 <version>${lang3.version}</version>
345 <scope>compile</scope>
349 <groupId>com.googlecode.json-simple</groupId>
350 <artifactId>json-simple</artifactId>
351 <version>${json-simple.version}</version>
352 <scope>compile</scope>
357 <groupId>org.elasticsearch</groupId>
358 <artifactId>elasticsearch</artifactId>
359 <version>${elastic-search.version}</version>
360 <scope>compile</scope>
363 <!-- functional java -->
365 <groupId>org.functionaljava</groupId>
366 <artifactId>functionaljava</artifactId>
367 <version>${functionaljava.version}</version>
368 <scope>compile</scope>
373 <groupId>com.jcabi</groupId>
374 <artifactId>jcabi-aspects</artifactId>
375 <version>${jcabi.version}</version>
376 <scope>compile</scope>
380 <groupId>org.aspectj</groupId>
381 <artifactId>aspectjrt</artifactId>
382 <version>${aspectjrt.version}</version>
383 <scope>compile</scope>
387 <!-- CAMBRIA CLIENT for U-EB -->
389 <groupId>com.att.nsa</groupId>
390 <artifactId>cambriaClient</artifactId>
391 <version>1.2.1-oss</version>
392 <scope>compile</scope>
395 <groupId>com.att.nsa</groupId>
396 <artifactId>saClientLibrary</artifactId>
402 <groupId>org.json</groupId>
403 <artifactId>json</artifactId>
404 <version>20131018</version>
405 <scope>compile</scope>
410 <groupId>com.datastax.cassandra</groupId>
411 <artifactId>cassandra-driver-core</artifactId>
412 <version>${cassandra.driver.version}</version>
413 <scope>compile</scope>
416 <groupId>com.datastax.cassandra</groupId>
417 <artifactId>cassandra-driver-mapping</artifactId>
418 <version>${cassandra.driver.version}</version>
419 <scope>compile</scope>
422 <groupId>org.apache.thrift</groupId>
423 <artifactId>libthrift</artifactId>
424 <version>${libthrift.version}</version>
426 <!-- CASSANDRA END -->
428 <!-- Inserted for ECOMP Portal Integration -->
430 <groupId>org.onap.portal.sdk</groupId>
431 <artifactId>epsdk-fw</artifactId>
432 <version>${ecomp.version}</version>
433 <scope>compile</scope>
436 <groupId>com.att.nsa</groupId>
437 <artifactId>cambriaClient</artifactId>
440 <artifactId>slf4j-log4j12</artifactId>
441 <groupId>org.slf4j</groupId>
448 <groupId>org.eclipse.jetty</groupId>
449 <artifactId>jetty-proxy</artifactId>
450 <version>${jetty.version}</version>
451 <scope>compile</scope>
455 <groupId>org.eclipse.jetty</groupId>
456 <artifactId>jetty-servlets</artifactId>
457 <version>${jetty.version}</version>
458 <scope>compile</scope>
460 <!-- System metrics -->
462 <groupId>org.fusesource</groupId>
463 <artifactId>sigar</artifactId>
464 <version>${sigar.version}</version>
465 <scope>compile</scope>
468 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
469 <artifactId>dmaapClient</artifactId>
470 <version>1.1.3</version>
471 <scope>compile</scope>
474 <groupId>com.att.aft</groupId>
475 <artifactId>dme2</artifactId>
480 <groupId>com.att.aft</groupId>
481 <artifactId>dme2</artifactId>
482 <version>3.1.200-oss</version>
486 <groupId>javax.jms</groupId>
487 <artifactId>jms</artifactId>
488 <version>1.1</version>
489 <scope>provided</scope>
494 <groupId>org.assertj</groupId>
495 <artifactId>assertj-core</artifactId>
500 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
501 <artifactId>jersey-test-framework-provider-bundle</artifactId>
502 <version>${jersey-bom.version}</version>
508 <groupId>org.glassfish.jersey.core</groupId>
509 <artifactId>jersey-client</artifactId>
510 <version>${jersey-bom.version}</version>
514 <groupId>com.github.tomakehurst</groupId>
515 <artifactId>wiremock-standalone</artifactId>
520 <groupId>org.eclipse.jetty</groupId>
521 <artifactId>jetty-webapp</artifactId>
522 <version>${jetty.version}</version>
527 <groupId>junit</groupId>
528 <artifactId>junit</artifactId>
529 <version>${junit.version}</version>
534 <groupId>org.mockito</groupId>
535 <artifactId>mockito-core</artifactId>
540 <groupId>org.springframework</groupId>
541 <artifactId>spring-test</artifactId>
542 <version>${spring.version}</version>
547 <groupId>org.springframework</groupId>
548 <artifactId>spring-tx</artifactId>
549 <version>${spring.version}</version>
553 <groupId>io.cucumber</groupId>
554 <artifactId>cucumber-java</artifactId>
559 <groupId>io.cucumber</groupId>
560 <artifactId>cucumber-junit</artifactId>
565 <groupId>org.jmockit</groupId>
566 <artifactId>jmockit</artifactId>
567 <version>${jmockit.version}</version>
572 <groupId>com.google.code.bean-matchers</groupId>
573 <artifactId>bean-matchers</artifactId>
574 <version>0.11</version>
579 <groupId>org.hamcrest</groupId>
580 <artifactId>java-hamcrest</artifactId>
581 <version>${java-hamcrest.version}</version>
586 <groupId>org.codehaus.groovy</groupId>
587 <artifactId>groovy</artifactId>
588 <version>2.4.8</version>
592 <groupId>io.netty</groupId>
593 <artifactId>netty-handler</artifactId>
596 <groupId>org.onap.sdc.common</groupId>
597 <artifactId>onap-tosca-datatype</artifactId>
598 <version>${project.version}</version>
601 <groupId>org.apache.commons</groupId>
602 <artifactId>commons-collections4</artifactId>
603 <version>${commons.collections.version}</version>
606 <groupId>org.codehaus.jackson</groupId>
607 <artifactId>jackson-mapper-asl</artifactId>
608 <version>${jackson.mapper.version}</version>
614 <finalName>${project.artifactId}-${project.version}</finalName>
618 <groupId>org.apache.maven.plugins</groupId>
619 <artifactId>maven-war-plugin</artifactId>
621 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
622 WEB-INF/classes/elasticsearch.yml,
623 WEB-INF/classes/portal.properties
627 <SDC-Version>${project.version}</SDC-Version>
630 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
631 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
637 <directory>src/main/resources</directory>
638 <directory>src/main/resources/swagger</directory>
641 <attachClasses>true</attachClasses>
645 <groupId>com.github.sylvainlaurent.maven</groupId>
646 <artifactId>yaml-json-validator-maven-plugin</artifactId>
650 <phase>validate</phase>
652 <goal>validate</goal>
658 <include>src/main/resources/**/*.y*ml</include>
659 <include>src/test/resources/**/*.y*ml</include>
664 <include>src/main/resources/**/*.json</include>
665 <include>src/test/resources/**/*.json</include>
674 <groupId>com.jcabi</groupId>
675 <artifactId>jcabi-maven-plugin</artifactId>
676 <version>${jcabi.maven.plugin.version}</version>
686 <groupId>org.apache.maven.plugins</groupId>
687 <artifactId>maven-assembly-plugin</artifactId>
691 <phase>package</phase>
696 <finalName>normatives</finalName>
697 <appendAssemblyId>false</appendAssemblyId>
699 <descriptor>${project.basedir}/normatives.xml</descriptor>
706 <groupId>org.apache.maven.plugins</groupId>
707 <artifactId>maven-clean-plugin</artifactId>
710 <id>clean.sdc.backend.folder</id>
717 <!-- static configuration files -->
720 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
722 <followSymlinks>false</followSymlinks>
724 <include>error-configuration.yaml</include>
725 <include>ecomp-error-configuration.yaml</include>
726 <include>logback.xml</include>
731 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
732 <followSymlinks>false</followSymlinks>
734 <include>*.war</include>
739 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
741 <followSymlinks>false</followSymlinks>
743 <include>normatives.tar.gz</include>
753 <id>clean-static-files</id>
762 <directory>${project.parent.basedir}/asdctool/tosca</directory>
763 <followSymlinks>false</followSymlinks>
771 <groupId>org.apache.maven.plugins</groupId>
772 <artifactId>maven-resources-plugin</artifactId>
775 <id>copy-static-configuration-files</id>
776 <phase>verify</phase>
778 <goal>copy-resources</goal>
782 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
786 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
789 <include>error-configuration.yaml</include>
790 <include>ecomp-error-configuration.yaml</include>
791 <include>logback.xml</include>
798 <id>copy-tosca-folder</id>
799 <!-- here the phase you need -->
800 <phase>install</phase>
802 <goal>copy-resources</goal>
805 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
808 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
810 <filtering>true</filtering>
818 <groupId>com.github.kongchen</groupId>
819 <artifactId>swagger-maven-plugin</artifactId>
820 <version>3.1.0</version>
824 <springmvc>false</springmvc>
825 <schemes>http</schemes>
826 <basePath>/sdc</basePath>
828 io.swagger.jaxrs.json;org.openecomp.sdc.be.externalapi.servlet;org.openecomp.sdc.be.distribution.servlet;org.openecomp.normative.api
831 <title>External Rest API</title>
832 <version>v1.0</version>
833 <description>External Rest API Documentation</description>
835 http://www.github.com/kongchen/swagger-maven-plugin
838 <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath>
839 <outputPath>${basedir}/target/generated/swagger-ui/api.html</outputPath>
840 <swaggerDirectory>${basedir}/target/generated/swagger-ui
842 <swaggerApiReader>io.swagger.jaxrs.config.DefaultJaxrsConfig</swaggerApiReader>
848 <phase>compile</phase>
850 <goal>generate</goal>
859 <!--This plugin's configuration is used to store Eclipse m2e settings
860 only. It has no influence on the Maven build itself. -->
862 <groupId>org.eclipse.m2e</groupId>
863 <artifactId>lifecycle-mapping</artifactId>
864 <version>1.0.0</version>
866 <lifecycleMappingMetadata>
869 <pluginExecutionFilter>
870 <groupId>com.googlecode.maven-download-plugin</groupId>
871 <artifactId>download-maven-plugin</artifactId>
872 <versionRange>[1.2.1,)</versionRange>
876 </pluginExecutionFilter>
883 <pluginExecutionFilter>
884 <groupId>com.jcabi</groupId>
885 <artifactId>jcabi-maven-plugin</artifactId>
886 <versionRange>[0.0,)</versionRange>
890 </pluginExecutionFilter>
897 </lifecycleMappingMetadata>
902 <!-- Swagger Plugins End -->
907 <id>docker-staging</id>
909 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
910 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
917 <activeByDefault>false</activeByDefault>
922 <groupId>org.apache.maven.plugins</groupId>
923 <artifactId>maven-resources-plugin</artifactId>
926 <id>copy-resources-apidocs</id>
927 <phase>verify</phase>
929 <goal>copy-resources</goal>
932 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
936 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
939 <include>api-docs.war</include>
947 <id>copy-resources-be</id>
948 <phase>verify</phase>
950 <goal>copy-resources</goal>
953 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
956 <directory>${project.parent.basedir}/catalog-be/target</directory>
958 <include>catalog-be-${project.version}.war</include>
963 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
966 <include>onboarding-be-${project.version}.war</include>
973 <id>copy-normatives</id>
974 <phase>verify</phase>
976 <goal>copy-resources</goal>
980 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
984 <directory>${project.parent.basedir}/catalog-be/target</directory>
986 <include>normatives.tar.gz</include>
995 <groupId>io.fabric8</groupId>
996 <artifactId>docker-maven-plugin</artifactId>
998 <apiVersion>1.23</apiVersion>
999 <registry>nexus3.onap.org:10001</registry>
1002 <username>docker</username>
1003 <password>docker</password>
1008 <!-- Build backend image -->
1010 <name>onap/sdc-backend</name>
1011 <alias>sdc-backend</alias>
1013 <cleanup>try</cleanup>
1014 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1016 <tag>${docker.tag}</tag>
1018 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1023 <!-- Build backend-init image -->
1025 <name>onap/sdc-backend-init</name>
1026 <alias>sdc-backend-init</alias>
1028 <cleanup>try</cleanup>
1029 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1031 <tag>${docker.tag}</tag>
1033 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1042 <id>clean-images</id>
1043 <phase>pre-clean</phase>
1048 <removeAll>true</removeAll>
1049 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1054 <id>generate-images</id>
1055 <phase>install</phase>
1062 <id>push-images</id>
1063 <phase>deploy</phase>
1068 <image>onap/sdc-backend,onap/sdc-backend-init</image>