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.1-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>
323 <groupId>org.apache.thrift</groupId>
324 <artifactId>libthrift</artifactId>
330 <groupId>org.janusgraph</groupId>
331 <artifactId>janusgraph-cassandra</artifactId>
332 <version>${janusgraph.version}</version>
333 <scope>compile</scope>
336 <groupId>org.slf4j</groupId>
337 <artifactId>slf4j-log4j12</artifactId>
340 <groupId>io.netty</groupId>
341 <artifactId>netty-all</artifactId>
347 <groupId>org.apache.commons</groupId>
348 <artifactId>commons-lang3</artifactId>
349 <version>${lang3.version}</version>
350 <scope>compile</scope>
354 <groupId>com.googlecode.json-simple</groupId>
355 <artifactId>json-simple</artifactId>
356 <version>${json-simple.version}</version>
357 <scope>compile</scope>
362 <groupId>org.elasticsearch</groupId>
363 <artifactId>elasticsearch</artifactId>
364 <version>${elastic-search.version}</version>
365 <scope>compile</scope>
368 <!-- functional java -->
370 <groupId>org.functionaljava</groupId>
371 <artifactId>functionaljava</artifactId>
372 <version>${functionaljava.version}</version>
373 <scope>compile</scope>
378 <groupId>com.jcabi</groupId>
379 <artifactId>jcabi-aspects</artifactId>
380 <version>${jcabi.version}</version>
381 <scope>compile</scope>
385 <groupId>org.aspectj</groupId>
386 <artifactId>aspectjrt</artifactId>
387 <version>${aspectjrt.version}</version>
388 <scope>compile</scope>
392 <!-- CAMBRIA CLIENT for U-EB -->
394 <groupId>com.att.nsa</groupId>
395 <artifactId>cambriaClient</artifactId>
396 <version>1.2.1-oss</version>
397 <scope>compile</scope>
400 <groupId>com.att.nsa</groupId>
401 <artifactId>saClientLibrary</artifactId>
407 <groupId>org.json</groupId>
408 <artifactId>json</artifactId>
409 <version>20131018</version>
410 <scope>compile</scope>
415 <groupId>com.datastax.cassandra</groupId>
416 <artifactId>cassandra-driver-core</artifactId>
417 <version>${cassandra.driver.version}</version>
418 <scope>compile</scope>
421 <groupId>com.datastax.cassandra</groupId>
422 <artifactId>cassandra-driver-mapping</artifactId>
423 <version>${cassandra.driver.version}</version>
424 <scope>compile</scope>
427 <groupId>org.apache.thrift</groupId>
428 <artifactId>libthrift</artifactId>
429 <version>${libthrift.version}</version>
431 <!-- CASSANDRA END -->
433 <!-- Inserted for ECOMP Portal Integration -->
435 <groupId>org.onap.portal.sdk</groupId>
436 <artifactId>epsdk-fw</artifactId>
437 <version>${ecomp.version}</version>
438 <scope>compile</scope>
441 <groupId>com.att.nsa</groupId>
442 <artifactId>cambriaClient</artifactId>
445 <artifactId>slf4j-log4j12</artifactId>
446 <groupId>org.slf4j</groupId>
453 <groupId>org.eclipse.jetty</groupId>
454 <artifactId>jetty-proxy</artifactId>
455 <version>${jetty.version}</version>
456 <scope>compile</scope>
460 <groupId>org.eclipse.jetty</groupId>
461 <artifactId>jetty-servlets</artifactId>
462 <version>${jetty.version}</version>
463 <scope>compile</scope>
465 <!-- System metrics -->
467 <groupId>org.fusesource</groupId>
468 <artifactId>sigar</artifactId>
469 <version>${sigar.version}</version>
470 <scope>compile</scope>
473 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
474 <artifactId>dmaapClient</artifactId>
475 <version>1.1.3</version>
476 <scope>compile</scope>
479 <groupId>com.att.aft</groupId>
480 <artifactId>dme2</artifactId>
485 <groupId>com.att.aft</groupId>
486 <artifactId>dme2</artifactId>
487 <version>3.1.200-oss</version>
491 <groupId>javax.jms</groupId>
492 <artifactId>jms</artifactId>
493 <version>1.1</version>
494 <scope>provided</scope>
499 <groupId>org.assertj</groupId>
500 <artifactId>assertj-core</artifactId>
505 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
506 <artifactId>jersey-test-framework-provider-bundle</artifactId>
507 <version>${jersey-bom.version}</version>
513 <groupId>org.glassfish.jersey.core</groupId>
514 <artifactId>jersey-client</artifactId>
515 <version>${jersey-bom.version}</version>
519 <groupId>com.github.tomakehurst</groupId>
520 <artifactId>wiremock-standalone</artifactId>
525 <groupId>org.eclipse.jetty</groupId>
526 <artifactId>jetty-webapp</artifactId>
527 <version>${jetty.version}</version>
532 <groupId>junit</groupId>
533 <artifactId>junit</artifactId>
534 <version>${junit.version}</version>
539 <groupId>org.mockito</groupId>
540 <artifactId>mockito-core</artifactId>
545 <groupId>org.springframework</groupId>
546 <artifactId>spring-test</artifactId>
547 <version>${spring.version}</version>
552 <groupId>org.springframework</groupId>
553 <artifactId>spring-tx</artifactId>
554 <version>${spring.version}</version>
558 <groupId>io.cucumber</groupId>
559 <artifactId>cucumber-java</artifactId>
564 <groupId>io.cucumber</groupId>
565 <artifactId>cucumber-junit</artifactId>
570 <groupId>org.jmockit</groupId>
571 <artifactId>jmockit</artifactId>
572 <version>${jmockit.version}</version>
577 <groupId>com.google.code.bean-matchers</groupId>
578 <artifactId>bean-matchers</artifactId>
579 <version>0.11</version>
584 <groupId>org.hamcrest</groupId>
585 <artifactId>java-hamcrest</artifactId>
586 <version>${java-hamcrest.version}</version>
591 <groupId>org.codehaus.groovy</groupId>
592 <artifactId>groovy</artifactId>
593 <version>2.4.8</version>
597 <groupId>io.netty</groupId>
598 <artifactId>netty-handler</artifactId>
601 <groupId>org.onap.sdc.common</groupId>
602 <artifactId>onap-tosca-datatype</artifactId>
603 <version>${project.version}</version>
606 <groupId>org.apache.commons</groupId>
607 <artifactId>commons-collections4</artifactId>
608 <version>${commons.collections.version}</version>
611 <groupId>org.codehaus.jackson</groupId>
612 <artifactId>jackson-mapper-asl</artifactId>
613 <version>${jackson.mapper.version}</version>
616 <groupId>org.apache.commons</groupId>
617 <artifactId>commons-collections4</artifactId>
618 <version>${commons.collections.version}</version>
624 <finalName>${project.artifactId}-${project.version}</finalName>
628 <groupId>org.apache.maven.plugins</groupId>
629 <artifactId>maven-war-plugin</artifactId>
631 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
632 WEB-INF/classes/elasticsearch.yml,
633 WEB-INF/classes/portal.properties
637 <SDC-Version>${project.version}</SDC-Version>
640 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
641 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
647 <directory>src/main/resources</directory>
648 <directory>src/main/resources/swagger</directory>
651 <attachClasses>true</attachClasses>
655 <groupId>com.github.sylvainlaurent.maven</groupId>
656 <artifactId>yaml-json-validator-maven-plugin</artifactId>
660 <phase>validate</phase>
662 <goal>validate</goal>
668 <include>src/main/resources/**/*.y*ml</include>
669 <include>src/test/resources/**/*.y*ml</include>
674 <include>src/main/resources/**/*.json</include>
675 <include>src/test/resources/**/*.json</include>
684 <groupId>com.jcabi</groupId>
685 <artifactId>jcabi-maven-plugin</artifactId>
686 <version>${jcabi.maven.plugin.version}</version>
696 <groupId>org.apache.maven.plugins</groupId>
697 <artifactId>maven-assembly-plugin</artifactId>
701 <phase>package</phase>
706 <finalName>normatives</finalName>
707 <appendAssemblyId>false</appendAssemblyId>
709 <descriptor>${project.basedir}/normatives.xml</descriptor>
716 <groupId>org.apache.maven.plugins</groupId>
717 <artifactId>maven-clean-plugin</artifactId>
720 <id>clean.sdc.backend.folder</id>
727 <!-- static configuration files -->
730 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
732 <followSymlinks>false</followSymlinks>
734 <include>error-configuration.yaml</include>
735 <include>ecomp-error-configuration.yaml</include>
736 <include>logback.xml</include>
741 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
742 <followSymlinks>false</followSymlinks>
744 <include>*.war</include>
749 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
751 <followSymlinks>false</followSymlinks>
753 <include>normatives.tar.gz</include>
763 <id>clean-static-files</id>
772 <directory>${project.parent.basedir}/asdctool/tosca</directory>
773 <followSymlinks>false</followSymlinks>
781 <groupId>org.apache.maven.plugins</groupId>
782 <artifactId>maven-resources-plugin</artifactId>
785 <id>copy-static-configuration-files</id>
786 <phase>verify</phase>
788 <goal>copy-resources</goal>
792 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
796 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
799 <include>error-configuration.yaml</include>
800 <include>ecomp-error-configuration.yaml</include>
801 <include>logback.xml</include>
808 <id>copy-tosca-folder</id>
809 <!-- here the phase you need -->
810 <phase>install</phase>
812 <goal>copy-resources</goal>
815 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
818 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
820 <filtering>true</filtering>
828 <groupId>com.github.kongchen</groupId>
829 <artifactId>swagger-maven-plugin</artifactId>
830 <version>3.1.0</version>
834 <springmvc>false</springmvc>
835 <schemes>http</schemes>
836 <basePath>/sdc</basePath>
837 <locations>io.swagger.jaxrs.json;org.openecomp.sdc.be.externalapi.servlet;org.openecomp.sdc.be.distribution.servlet;org.openecomp.normative.api</locations>
839 <title>External Rest API</title>
840 <version>v1.0</version>
841 <description>External Rest API Documentation</description>
843 http://www.github.com/kongchen/swagger-maven-plugin
846 <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath>
847 <outputPath>${basedir}/target/generated/swagger-ui/api.html</outputPath>
848 <swaggerDirectory>${basedir}/target/generated/swagger-ui
850 <swaggerApiReader>io.swagger.jaxrs.config.DefaultJaxrsConfig</swaggerApiReader>
856 <phase>compile</phase>
858 <goal>generate</goal>
867 <!--This plugin's configuration is used to store Eclipse m2e settings
868 only. It has no influence on the Maven build itself. -->
870 <groupId>org.eclipse.m2e</groupId>
871 <artifactId>lifecycle-mapping</artifactId>
872 <version>1.0.0</version>
874 <lifecycleMappingMetadata>
877 <pluginExecutionFilter>
878 <groupId>com.googlecode.maven-download-plugin</groupId>
879 <artifactId>download-maven-plugin</artifactId>
880 <versionRange>[1.2.1,)</versionRange>
884 </pluginExecutionFilter>
891 <pluginExecutionFilter>
892 <groupId>com.jcabi</groupId>
893 <artifactId>jcabi-maven-plugin</artifactId>
894 <versionRange>[0.0,)</versionRange>
898 </pluginExecutionFilter>
905 </lifecycleMappingMetadata>
910 <!-- Swagger Plugins End -->
915 <id>docker-staging</id>
917 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
918 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
925 <activeByDefault>false</activeByDefault>
930 <groupId>org.apache.maven.plugins</groupId>
931 <artifactId>maven-resources-plugin</artifactId>
934 <id>copy-resources-apidocs</id>
935 <phase>verify</phase>
937 <goal>copy-resources</goal>
940 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
944 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
947 <include>api-docs.war</include>
955 <id>copy-resources-be</id>
956 <phase>verify</phase>
958 <goal>copy-resources</goal>
961 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
964 <directory>${project.parent.basedir}/catalog-be/target</directory>
966 <include>catalog-be-${project.version}.war</include>
971 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
974 <include>onboarding-be-${project.version}.war</include>
981 <id>copy-normatives</id>
982 <phase>verify</phase>
984 <goal>copy-resources</goal>
988 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
992 <directory>${project.parent.basedir}/catalog-be/target</directory>
994 <include>normatives.tar.gz</include>
1003 <groupId>io.fabric8</groupId>
1004 <artifactId>docker-maven-plugin</artifactId>
1006 <apiVersion>1.23</apiVersion>
1007 <registry>nexus3.onap.org:10001</registry>
1010 <username>docker</username>
1011 <password>docker</password>
1016 <!-- Build backend image -->
1018 <name>onap/sdc-backend</name>
1019 <alias>sdc-backend</alias>
1021 <cleanup>try</cleanup>
1022 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1024 <tag>${docker.tag}</tag>
1026 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1031 <!-- Build backend-init image -->
1033 <name>onap/sdc-backend-init</name>
1034 <alias>sdc-backend-init</alias>
1036 <cleanup>try</cleanup>
1037 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1039 <tag>${docker.tag}</tag>
1041 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1050 <id>clean-images</id>
1051 <phase>pre-clean</phase>
1056 <removeAll>true</removeAll>
1057 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1062 <id>generate-images</id>
1063 <phase>install</phase>
1070 <id>push-images</id>
1071 <phase>deploy</phase>
1076 <image>onap/sdc-backend,onap/sdc-backend-init</image>