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.6.0-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>common-be</artifactId>
80 <version>${project.version}</version>
85 <groupId>org.openecomp.sdc.be</groupId>
86 <artifactId>catalog-dao</artifactId>
87 <version>${project.version}</version>
88 <scope>compile</scope>
92 <groupId>org.openecomp.sdc.be</groupId>
93 <artifactId>catalog-model</artifactId>
94 <version>${project.version}</version>
95 <scope>compile</scope>
99 <groupId>ch.qos.logback</groupId>
100 <artifactId>logback-classic</artifactId>
101 <version>${logback.version}</version>
102 <scope>compile</scope>
107 <groupId>org.yaml</groupId>
108 <artifactId>snakeyaml</artifactId>
109 <version>${snakeyaml.version}</version>
110 <scope>compile</scope>
113 <!-- File changes listener -->
115 <groupId>org.apache.commons</groupId>
116 <artifactId>commons-jci-core</artifactId>
117 <version>${commons-jci-core.version}</version>
118 <scope>compile</scope>
123 <groupId>com.google.code.gson</groupId>
124 <artifactId>gson</artifactId>
125 <version>${gson.version}</version>
126 <scope>compile</scope>
131 <groupId>org.glassfish.jersey.media</groupId>
132 <artifactId>jersey-media-json-jackson</artifactId>
133 <version>${jersey-bom.version}</version>
134 <scope>compile</scope>
138 <groupId>org.glassfish.jersey.containers</groupId>
139 <artifactId>jersey-container-servlet-core</artifactId>
140 <version>${jersey-bom.version}</version>
141 <scope>compile</scope>
145 <groupId>org.glassfish.jersey.media</groupId>
146 <artifactId>jersey-media-multipart</artifactId>
147 <version>${jersey-bom.version}</version>
148 <scope>compile</scope>
151 <groupId>org.glassfish.jersey.ext</groupId>
152 <artifactId>jersey-spring4</artifactId>
153 <version>${jersey-bom.version}</version>
156 <groupId>org.springframework</groupId>
157 <artifactId>spring-web</artifactId>
160 <groupId>org.springframework</groupId>
161 <artifactId>spring-beans</artifactId>
164 <groupId>org.springframework</groupId>
165 <artifactId>spring-core</artifactId>
168 <groupId>org.springframework</groupId>
169 <artifactId>spring-aop</artifactId>
171 <!-- Transitive dependency of spring-bridge -->
173 <groupId>org.springframework</groupId>
174 <artifactId>spring-context</artifactId>
180 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
181 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
183 <groupId>org.glassfish.hk2.external</groupId>
184 <artifactId>asm-all-repackaged</artifactId>
188 <groupId>org.glassfish.jersey.ext</groupId>
189 <artifactId>jersey-bean-validation</artifactId>
194 <groupId>org.apache.httpcomponents</groupId>
195 <artifactId>httpclient</artifactId>
196 <version>${httpclient.version}</version>
197 <scope>compile</scope>
201 <groupId>org.apache.httpcomponents</groupId>
202 <artifactId>httpcore</artifactId>
203 <version>${httpcore.version}</version>
204 <scope>compile</scope>
208 <groupId>commons-logging</groupId>
209 <artifactId>commons-logging</artifactId>
210 <version>${commons-logging}</version>
211 <scope>compile</scope>
215 <groupId>commons-codec</groupId>
216 <artifactId>commons-codec</artifactId>
217 <version>${commons-codec}</version>
218 <scope>compile</scope>
220 <!-- http client END -->
223 <groupId>javax.servlet</groupId>
224 <artifactId>javax.servlet-api</artifactId>
225 <version>${servlet-api.version}</version>
226 <scope>provided</scope>
230 <groupId>org.eclipse.jgit</groupId>
231 <artifactId>org.eclipse.jgit</artifactId>
232 <version>3.4.1.201406201815-r</version>
235 <!-- spring - used by A4C -->
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-core</artifactId>
239 <version>${spring.version}</version>
240 <scope>compile</scope>
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-context</artifactId>
246 <version>${spring.version}</version>
247 <scope>compile</scope>
251 <groupId>org.springframework</groupId>
252 <artifactId>spring-web</artifactId>
253 <version>${spring.version}</version>
254 <scope>compile</scope>
258 <groupId>org.springframework</groupId>
259 <artifactId>spring-webmvc</artifactId>
260 <version>${spring.version}</version>
261 <scope>compile</scope>
265 <groupId>org.springframework</groupId>
266 <artifactId>spring-aop</artifactId>
267 <version>${spring.version}</version>
268 <scope>compile</scope>
272 <groupId>org.springframework</groupId>
273 <artifactId>spring-beans</artifactId>
274 <version>${spring.version}</version>
275 <scope>compile</scope>
279 <groupId>org.springframework</groupId>
280 <artifactId>spring-expression</artifactId>
281 <version>${spring.version}</version>
282 <scope>compile</scope>
286 <groupId>org.codehaus.janino</groupId>
287 <artifactId>janino</artifactId>
288 <version>${janino.version}</version>
289 <scope>compile</scope>
293 <groupId>org.codehaus.janino</groupId>
294 <artifactId>commons-compiler</artifactId>
295 <version>${janino.version}</version>
296 <scope>compile</scope>
300 <groupId>com.google.guava</groupId>
301 <artifactId>guava</artifactId>
302 <version>${guava.version}</version>
303 <scope>compile</scope>
307 <groupId>org.janusgraph</groupId>
308 <artifactId>janusgraph-core</artifactId>
309 <version>${janusgraph.version}</version>
310 <scope>compile</scope>
313 <groupId>org.json</groupId>
314 <artifactId>json</artifactId>
317 <artifactId>slf4j-log4j12</artifactId>
318 <groupId>org.slf4j</groupId>
321 <artifactId>commons-collections</artifactId>
322 <groupId>commons-collections</groupId>
325 <groupId>org.apache.thrift</groupId>
326 <artifactId>libthrift</artifactId>
332 <groupId>org.janusgraph</groupId>
333 <artifactId>janusgraph-cassandra</artifactId>
334 <version>${janusgraph.version}</version>
335 <scope>compile</scope>
338 <groupId>org.slf4j</groupId>
339 <artifactId>slf4j-log4j12</artifactId>
342 <groupId>io.netty</groupId>
343 <artifactId>netty-all</artifactId>
349 <groupId>org.apache.commons</groupId>
350 <artifactId>commons-lang3</artifactId>
351 <version>${lang3.version}</version>
352 <scope>compile</scope>
356 <groupId>com.googlecode.json-simple</groupId>
357 <artifactId>json-simple</artifactId>
358 <version>${json-simple.version}</version>
359 <scope>compile</scope>
364 <groupId>org.elasticsearch</groupId>
365 <artifactId>elasticsearch</artifactId>
366 <version>${elastic-search.version}</version>
367 <scope>compile</scope>
370 <!-- functional java -->
372 <groupId>org.functionaljava</groupId>
373 <artifactId>functionaljava</artifactId>
374 <version>${functionaljava.version}</version>
375 <scope>compile</scope>
380 <groupId>com.jcabi</groupId>
381 <artifactId>jcabi-aspects</artifactId>
382 <version>${jcabi.version}</version>
383 <scope>compile</scope>
387 <groupId>org.aspectj</groupId>
388 <artifactId>aspectjrt</artifactId>
389 <version>${aspectjrt.version}</version>
390 <scope>compile</scope>
394 <!-- CAMBRIA CLIENT for U-EB -->
396 <groupId>com.att.nsa</groupId>
397 <artifactId>cambriaClient</artifactId>
398 <version>1.2.1-oss</version>
399 <scope>compile</scope>
402 <groupId>com.att.nsa</groupId>
403 <artifactId>saClientLibrary</artifactId>
409 <groupId>org.json</groupId>
410 <artifactId>json</artifactId>
411 <version>20131018</version>
412 <scope>compile</scope>
417 <groupId>com.datastax.cassandra</groupId>
418 <artifactId>cassandra-driver-core</artifactId>
419 <version>${cassandra.driver.version}</version>
420 <scope>compile</scope>
423 <groupId>com.datastax.cassandra</groupId>
424 <artifactId>cassandra-driver-mapping</artifactId>
425 <version>${cassandra.driver.version}</version>
426 <scope>compile</scope>
429 <groupId>org.apache.thrift</groupId>
430 <artifactId>libthrift</artifactId>
431 <version>${libthrift.version}</version>
433 <!-- CASSANDRA END -->
435 <!-- Inserted for ECOMP Portal Integration -->
437 <groupId>org.onap.portal.sdk</groupId>
438 <artifactId>epsdk-fw</artifactId>
439 <version>${ecomp.version}</version>
440 <scope>compile</scope>
443 <groupId>com.att.nsa</groupId>
444 <artifactId>cambriaClient</artifactId>
447 <artifactId>slf4j-log4j12</artifactId>
448 <groupId>org.slf4j</groupId>
455 <groupId>org.eclipse.jetty</groupId>
456 <artifactId>jetty-proxy</artifactId>
457 <version>${jetty.version}</version>
458 <scope>compile</scope>
462 <groupId>org.eclipse.jetty</groupId>
463 <artifactId>jetty-servlets</artifactId>
464 <version>${jetty.version}</version>
465 <scope>compile</scope>
467 <!-- System metrics -->
469 <groupId>org.fusesource</groupId>
470 <artifactId>sigar</artifactId>
471 <version>${sigar.version}</version>
472 <scope>compile</scope>
475 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
476 <artifactId>dmaapClient</artifactId>
477 <version>1.1.3</version>
478 <scope>compile</scope>
481 <groupId>com.att.aft</groupId>
482 <artifactId>dme2</artifactId>
487 <groupId>com.att.aft</groupId>
488 <artifactId>dme2</artifactId>
489 <version>3.1.200-oss</version>
493 <groupId>javax.jms</groupId>
494 <artifactId>jms</artifactId>
495 <version>1.1</version>
496 <scope>provided</scope>
501 <groupId>org.assertj</groupId>
502 <artifactId>assertj-core</artifactId>
507 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
508 <artifactId>jersey-test-framework-provider-bundle</artifactId>
509 <version>${jersey-bom.version}</version>
515 <groupId>org.glassfish.jersey.core</groupId>
516 <artifactId>jersey-client</artifactId>
517 <version>${jersey-bom.version}</version>
521 <groupId>com.github.tomakehurst</groupId>
522 <artifactId>wiremock-standalone</artifactId>
527 <groupId>org.eclipse.jetty</groupId>
528 <artifactId>jetty-webapp</artifactId>
529 <version>${jetty.version}</version>
534 <groupId>junit</groupId>
535 <artifactId>junit</artifactId>
536 <version>${junit.version}</version>
541 <groupId>org.mockito</groupId>
542 <artifactId>mockito-core</artifactId>
547 <groupId>org.springframework</groupId>
548 <artifactId>spring-test</artifactId>
549 <version>${spring.version}</version>
554 <groupId>org.springframework</groupId>
555 <artifactId>spring-tx</artifactId>
556 <version>${spring.version}</version>
560 <groupId>io.cucumber</groupId>
561 <artifactId>cucumber-java</artifactId>
566 <groupId>io.cucumber</groupId>
567 <artifactId>cucumber-junit</artifactId>
572 <groupId>org.jmockit</groupId>
573 <artifactId>jmockit</artifactId>
574 <version>${jmockit.version}</version>
579 <groupId>com.google.code.bean-matchers</groupId>
580 <artifactId>bean-matchers</artifactId>
581 <version>0.11</version>
586 <groupId>org.hamcrest</groupId>
587 <artifactId>java-hamcrest</artifactId>
588 <version>${java-hamcrest.version}</version>
593 <groupId>org.codehaus.groovy</groupId>
594 <artifactId>groovy</artifactId>
595 <version>2.4.8</version>
599 <groupId>io.netty</groupId>
600 <artifactId>netty-handler</artifactId>
603 <groupId>org.onap.sdc.common</groupId>
604 <artifactId>onap-tosca-datatype</artifactId>
605 <version>${project.version}</version>
608 <groupId>org.apache.commons</groupId>
609 <artifactId>commons-collections4</artifactId>
610 <version>${commons.collections.version}</version>
613 <groupId>org.codehaus.jackson</groupId>
614 <artifactId>jackson-mapper-asl</artifactId>
615 <version>${jackson.mapper.version}</version>
621 <finalName>${project.artifactId}-${project.version}</finalName>
625 <groupId>org.apache.maven.plugins</groupId>
626 <artifactId>maven-war-plugin</artifactId>
628 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
629 WEB-INF/classes/elasticsearch.yml,
630 WEB-INF/classes/portal.properties
634 <SDC-Version>${project.version}</SDC-Version>
637 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
638 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
644 <directory>src/main/resources</directory>
645 <directory>src/main/resources/swagger</directory>
648 <attachClasses>true</attachClasses>
652 <groupId>com.github.sylvainlaurent.maven</groupId>
653 <artifactId>yaml-json-validator-maven-plugin</artifactId>
657 <phase>validate</phase>
659 <goal>validate</goal>
665 <include>src/main/resources/**/*.y*ml</include>
666 <include>src/test/resources/**/*.y*ml</include>
669 <exclude>src/test/resources/artifacts/pnfSoftwareInformation/**</exclude>
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>
838 io.swagger.jaxrs.json;org.openecomp.sdc.be.externalapi.servlet;org.openecomp.sdc.be.distribution.servlet;org.openecomp.normative.api
841 <title>External Rest API</title>
842 <version>v1.0</version>
843 <description>External Rest API Documentation</description>
845 http://www.github.com/kongchen/swagger-maven-plugin
848 <templatePath>${basedir}/templates/strapdown.html.hbs</templatePath>
849 <outputPath>${basedir}/target/generated/swagger-ui/api.html</outputPath>
850 <swaggerDirectory>${basedir}/target/generated/swagger-ui
852 <swaggerApiReader>io.swagger.jaxrs.config.DefaultJaxrsConfig</swaggerApiReader>
858 <phase>compile</phase>
860 <goal>generate</goal>
869 <!--This plugin's configuration is used to store Eclipse m2e settings
870 only. It has no influence on the Maven build itself. -->
872 <groupId>org.eclipse.m2e</groupId>
873 <artifactId>lifecycle-mapping</artifactId>
874 <version>1.0.0</version>
876 <lifecycleMappingMetadata>
879 <pluginExecutionFilter>
880 <groupId>com.googlecode.maven-download-plugin</groupId>
881 <artifactId>download-maven-plugin</artifactId>
882 <versionRange>[1.2.1,)</versionRange>
886 </pluginExecutionFilter>
893 <pluginExecutionFilter>
894 <groupId>com.jcabi</groupId>
895 <artifactId>jcabi-maven-plugin</artifactId>
896 <versionRange>[0.0,)</versionRange>
900 </pluginExecutionFilter>
907 </lifecycleMappingMetadata>
912 <!-- Swagger Plugins End -->
917 <id>docker-staging</id>
919 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
920 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
927 <activeByDefault>false</activeByDefault>
932 <groupId>org.apache.maven.plugins</groupId>
933 <artifactId>maven-resources-plugin</artifactId>
936 <id>copy-resources-apidocs</id>
937 <phase>verify</phase>
939 <goal>copy-resources</goal>
942 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
946 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
949 <include>api-docs.war</include>
957 <id>copy-resources-be</id>
958 <phase>verify</phase>
960 <goal>copy-resources</goal>
963 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
966 <directory>${project.parent.basedir}/catalog-be/target</directory>
968 <include>catalog-be-${project.version}.war</include>
973 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
976 <include>onboarding-be-${project.version}.war</include>
983 <id>copy-normatives</id>
984 <phase>verify</phase>
986 <goal>copy-resources</goal>
990 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
994 <directory>${project.parent.basedir}/catalog-be/target</directory>
996 <include>normatives.tar.gz</include>
1005 <groupId>io.fabric8</groupId>
1006 <artifactId>docker-maven-plugin</artifactId>
1008 <apiVersion>1.23</apiVersion>
1009 <registry>nexus3.onap.org:10001</registry>
1012 <username>docker</username>
1013 <password>docker</password>
1018 <!-- Build backend image -->
1020 <name>onap/sdc-backend</name>
1021 <alias>sdc-backend</alias>
1023 <cleanup>try</cleanup>
1024 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1026 <tag>${docker.tag}</tag>
1028 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1033 <!-- Build backend-init image -->
1035 <name>onap/sdc-backend-init</name>
1036 <alias>sdc-backend-init</alias>
1038 <cleanup>try</cleanup>
1039 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1041 <tag>${docker.tag}</tag>
1043 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1052 <id>clean-images</id>
1053 <phase>pre-clean</phase>
1058 <removeAll>true</removeAll>
1059 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1064 <id>generate-images</id>
1065 <phase>install</phase>
1072 <id>push-images</id>
1073 <phase>deploy</phase>
1078 <image>onap/sdc-backend,onap/sdc-backend-init</image>