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.2.0-SNAPSHOT</version>
15 <swagger-ui-version>2.1.0-M2</swagger-ui-version>
19 <!--JSON and YAML Parsing-->
21 <groupId>com.fasterxml.jackson.dataformat</groupId>
22 <artifactId>jackson-dataformat-yaml</artifactId>
23 <version>${jackson.yaml.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>com.fasterxml.jackson.core</groupId>
36 <artifactId>jackson-core</artifactId>
37 <version>${jackson.version}</version>
38 <scope>compile</scope>
42 <groupId>com.fasterxml.jackson.core</groupId>
43 <artifactId>jackson-annotations</artifactId>
44 <version>${jackson.annotations.version}</version>
45 <scope>compile</scope>
49 <groupId>org.glassfish.jersey.media</groupId>
50 <artifactId>jersey-media-multipart</artifactId>
51 <version>${jersey-bom.version}</version>
52 <scope>compile</scope>
56 <groupId>org.openecomp.sdc</groupId>
57 <artifactId>security-utils</artifactId>
58 <version>${project.version}</version>
59 <scope>compile</scope>
63 <groupId>com.tinkerpop.blueprints</groupId>
64 <artifactId>blueprints-sail-graph</artifactId>
65 <version>2.5.0</version>
66 <optional>true</optional>
69 <groupId>org.slf4j</groupId>
70 <artifactId>slf4j-log4j12</artifactId>
76 <groupId>com.tinkerpop.blueprints</groupId>
77 <artifactId>blueprints-graph-sail</artifactId>
78 <version>2.5.0</version>
79 <optional>true</optional>
82 <!-- Swagger Dependencies Start -->
84 <groupId>io.swagger</groupId>
85 <artifactId>swagger-jersey2-jaxrs</artifactId>
86 <scope>compile</scope>
87 <version>1.5.18</version>
91 <groupId>io.swagger.core.v3</groupId>
92 <artifactId>swagger-jaxrs2</artifactId>
93 <version>2.0.0-rc4</version>
95 <!-- Swagger Dependencies End -->
98 <groupId>org.openecomp.sdc</groupId>
99 <artifactId>common-app-api</artifactId>
100 <version>${project.version}</version>
101 <scope>compile</scope>
105 <groupId>org.openecomp.sdc.be</groupId>
106 <artifactId>common-be</artifactId>
107 <version>${project.version}</version>
108 <scope>compile</scope>
111 <groupId>org.openecomp.sdc.be</groupId>
112 <artifactId>catalog-dao</artifactId>
113 <version>${project.version}</version>
114 <scope>compile</scope>
118 <groupId>org.openecomp.sdc.be</groupId>
119 <artifactId>catalog-model</artifactId>
120 <version>${project.version}</version>
121 <scope>compile</scope>
125 <groupId>ch.qos.logback</groupId>
126 <artifactId>logback-classic</artifactId>
127 <version>${logback.version}</version>
128 <scope>compile</scope>
133 <groupId>org.yaml</groupId>
134 <artifactId>snakeyaml</artifactId>
135 <version>${snakeyaml.version}</version>
136 <scope>compile</scope>
139 <!-- File changes listener -->
141 <groupId>org.apache.commons</groupId>
142 <artifactId>commons-jci-core</artifactId>
143 <version>${commons-jci-core.version}</version>
144 <scope>compile</scope>
149 <groupId>com.google.code.gson</groupId>
150 <artifactId>gson</artifactId>
151 <version>${gson.version}</version>
152 <scope>compile</scope>
157 <groupId>org.glassfish.jersey.media</groupId>
158 <artifactId>jersey-media-json-jackson</artifactId>
159 <version>${jersey-bom.version}</version>
160 <scope>compile</scope>
164 <groupId>org.glassfish.jersey.containers</groupId>
165 <artifactId>jersey-container-servlet-core</artifactId>
166 <version>${jersey-bom.version}</version>
167 <scope>compile</scope>
171 <groupId>org.glassfish.jersey.ext</groupId>
172 <artifactId>jersey-spring4</artifactId>
173 <version>${jersey-bom.version}</version>
176 <groupId>org.springframework</groupId>
177 <artifactId>spring-web</artifactId>
180 <groupId>org.springframework</groupId>
181 <artifactId>spring-beans</artifactId>
184 <groupId>org.springframework</groupId>
185 <artifactId>spring-core</artifactId>
188 <groupId>org.springframework</groupId>
189 <artifactId>spring-aop</artifactId>
191 <!-- Transitive dependency of spring-bridge -->
193 <groupId>org.springframework</groupId>
194 <artifactId>spring-context</artifactId>
200 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
201 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
203 <groupId>org.glassfish.hk2.external</groupId>
204 <artifactId>asm-all-repackaged</artifactId>
208 <groupId>org.glassfish.jersey.ext</groupId>
209 <artifactId>jersey-bean-validation</artifactId>
214 <groupId>org.apache.httpcomponents</groupId>
215 <artifactId>httpclient</artifactId>
216 <version>${httpclient.version}</version>
217 <scope>compile</scope>
221 <groupId>org.apache.httpcomponents</groupId>
222 <artifactId>httpcore</artifactId>
223 <version>${httpcore.version}</version>
224 <scope>compile</scope>
228 <groupId>commons-logging</groupId>
229 <artifactId>commons-logging</artifactId>
230 <version>${commons-logging}</version>
231 <scope>compile</scope>
235 <groupId>commons-codec</groupId>
236 <artifactId>commons-codec</artifactId>
237 <version>${commons-codec}</version>
238 <scope>compile</scope>
240 <!-- http client END -->
243 <groupId>javax.servlet</groupId>
244 <artifactId>servlet-api</artifactId>
245 <version>${servlet-api.version}</version>
246 <scope>provided</scope>
250 <groupId>org.eclipse.jgit</groupId>
251 <artifactId>org.eclipse.jgit</artifactId>
252 <version>3.4.1.201406201815-r</version>
255 <!-- spring - used by A4C -->
257 <groupId>org.springframework</groupId>
258 <artifactId>spring-core</artifactId>
259 <version>${spring.version}</version>
260 <scope>compile</scope>
264 <groupId>org.springframework</groupId>
265 <artifactId>spring-context</artifactId>
266 <version>${spring.version}</version>
267 <scope>compile</scope>
271 <groupId>org.springframework</groupId>
272 <artifactId>spring-web</artifactId>
273 <version>${spring.version}</version>
274 <scope>compile</scope>
278 <groupId>org.springframework</groupId>
279 <artifactId>spring-webmvc</artifactId>
280 <version>${spring.version}</version>
281 <scope>compile</scope>
285 <groupId>org.springframework</groupId>
286 <artifactId>spring-aop</artifactId>
287 <version>${spring.version}</version>
288 <scope>compile</scope>
292 <groupId>org.springframework</groupId>
293 <artifactId>spring-beans</artifactId>
294 <version>${spring.version}</version>
295 <scope>compile</scope>
299 <groupId>org.springframework</groupId>
300 <artifactId>spring-expression</artifactId>
301 <version>${spring.version}</version>
302 <scope>compile</scope>
306 <groupId>org.codehaus.groovy</groupId>
307 <artifactId>groovy-all</artifactId>
308 <version>${groovy.version}</version>
309 <scope>compile</scope>
313 <groupId>org.codehaus.janino</groupId>
314 <artifactId>janino</artifactId>
315 <version>${janino.version}</version>
316 <scope>compile</scope>
320 <groupId>org.codehaus.janino</groupId>
321 <artifactId>commons-compiler</artifactId>
322 <version>${janino.version}</version>
323 <scope>compile</scope>
327 <groupId>com.google.guava</groupId>
328 <artifactId>guava</artifactId>
329 <version>${guava.version}</version>
330 <scope>compile</scope>
335 <groupId>com.thinkaurelius.titan</groupId>
336 <artifactId>titan-core</artifactId>
337 <version>${titan.version}</version>
338 <scope>compile</scope>
341 <groupId>org.json</groupId>
342 <artifactId>json</artifactId>
345 <artifactId>slf4j-log4j12</artifactId>
346 <groupId>org.slf4j</groupId>
352 <groupId>org.openecomp.sdc.sdc-titan-cassandra</groupId>
353 <artifactId>sdc-titan-cassandra</artifactId>
354 <version>${titan.version}</version>
355 <scope>compile</scope>
358 <groupId>org.slf4j</groupId>
359 <artifactId>slf4j-log4j12</artifactId>
362 <groupId>io.netty</groupId>
363 <artifactId>netty-all</artifactId>
369 <groupId>org.apache.commons</groupId>
370 <artifactId>commons-lang3</artifactId>
371 <version>${lang3.version}</version>
372 <scope>compile</scope>
377 <groupId>com.googlecode.json-simple</groupId>
378 <artifactId>json-simple</artifactId>
379 <version>${json-simple.version}</version>
380 <scope>compile</scope>
385 <groupId>org.elasticsearch</groupId>
386 <artifactId>elasticsearch</artifactId>
387 <version>${elastic-search.version}</version>
388 <scope>compile</scope>
392 <groupId>org.elasticsearch.plugin</groupId>
393 <artifactId>shield</artifactId>
394 <version>${elastic-search.version}</version>
395 <scope>compile</scope>
397 <!-- functional java -->
399 <groupId>org.functionaljava</groupId>
400 <artifactId>functionaljava</artifactId>
401 <version>${functionaljava.version}</version>
402 <scope>compile</scope>
407 <groupId>com.jcabi</groupId>
408 <artifactId>jcabi-aspects</artifactId>
409 <version>${jcabi.version}</version>
410 <scope>compile</scope>
414 <groupId>org.aspectj</groupId>
415 <artifactId>aspectjrt</artifactId>
416 <version>${aspectjrt.version}</version>
417 <scope>compile</scope>
422 <!-- CAMBRIA CLIENT for U-EB -->
424 <groupId>com.att.nsa</groupId>
425 <artifactId>cambriaClient</artifactId>
426 <version>1.2.1-oss</version>
427 <scope>compile</scope>
430 <groupId>com.att.nsa</groupId>
431 <artifactId>saClientLibrary</artifactId>
437 <groupId>org.json</groupId>
438 <artifactId>json</artifactId>
439 <version>20131018</version>
440 <scope>compile</scope>
443 <groupId>org.apache.tinkerpop</groupId>
444 <artifactId>tinkergraph-gremlin</artifactId>
445 <version>3.0.1-incubating</version>
446 <scope>compile</scope>
450 <groupId>org.apache.tinkerpop</groupId>
451 <artifactId>gremlin-groovy</artifactId>
452 <version>3.0.1-incubating</version>
453 <scope>compile</scope>
458 <groupId>com.datastax.cassandra</groupId>
459 <artifactId>cassandra-driver-core</artifactId>
460 <version>${cassandra.driver.version}</version>
461 <scope>compile</scope>
464 <groupId>com.datastax.cassandra</groupId>
465 <artifactId>cassandra-driver-mapping</artifactId>
466 <version>${cassandra.driver.version}</version>
467 <scope>compile</scope>
469 <!-- CASSANDRA END -->
471 <!-- Inserted for ECOMP Portal Integration -->
473 <groupId>org.openecomp.ecompsdkos</groupId>
474 <artifactId>epsdk-fw</artifactId>
475 <version>${ecomp.version}</version>
476 <scope>compile</scope>
479 <groupId>com.att.nsa</groupId>
480 <artifactId>cambriaClient</artifactId>
483 <artifactId>slf4j-log4j12</artifactId>
484 <groupId>org.slf4j</groupId>
489 <!--Artifact Generator-->
491 <groupId>org.openecomp.sdc.common</groupId>
492 <artifactId>openecomp-sdc-artifact-generator-api</artifactId>
493 <version>${artifact-generator-api.version}</version>
494 <scope>compile</scope>
497 <groupId>junit</groupId>
498 <artifactId>junit</artifactId>
504 <groupId>org.openecomp.sdc.common</groupId>
505 <artifactId>openecomp-sdc-artifact-generator-core</artifactId>
506 <version>${artifact-generator-core.version}</version>
507 <scope>compile</scope>
510 <groupId>junit</groupId>
511 <artifactId>junit</artifactId>
517 <groupId>org.openecomp.sdc.common</groupId>
518 <artifactId>openecomp-common-lib</artifactId>
519 <version>${dox-common-lib.version}</version>
523 <groupId>junit</groupId>
524 <artifactId>junit</artifactId>
531 <groupId>org.eclipse.jetty</groupId>
532 <artifactId>jetty-proxy</artifactId>
533 <version>${jetty.version}</version>
534 <scope>compile</scope>
538 <groupId>org.eclipse.jetty</groupId>
539 <artifactId>jetty-servlets</artifactId>
540 <version>${jetty.version}</version>
541 <scope>compile</scope>
543 <!-- System metrics -->
545 <groupId>org.fusesource</groupId>
546 <artifactId>sigar</artifactId>
547 <version>${sigar.version}</version>
548 <scope>compile</scope>
552 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
553 <artifactId>dmaapClient</artifactId>
554 <version>1.1.3-SNAPSHOT</version>
555 <scope>compile</scope>
558 <groupId>com.att.aft</groupId>
559 <artifactId>dme2</artifactId>
564 <groupId>com.att.aft</groupId>
565 <artifactId>dme2</artifactId>
566 <version>3.1.200-oss</version>
570 <groupId>javax.jms</groupId>
571 <artifactId>jms</artifactId>
572 <version>1.1</version>
573 <scope>provided</scope>
577 <groupId>javax.servlet</groupId>
578 <artifactId>javax.servlet-api</artifactId>
579 <version>3.1.0</version>
580 <scope>provided</scope>
585 <groupId>org.assertj</groupId>
586 <artifactId>assertj-core</artifactId>
591 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
592 <artifactId>jersey-test-framework-provider-bundle</artifactId>
593 <version>${jersey-bom.version}</version>
599 <!--<groupId>org.glassfish.jersey.test-framework.providers</groupId>-->
600 <!--<artifactId>jersey-test-framework-provider-inmemory</artifactId>-->
601 <!--<version>${jersey-bom.version}</version>-->
602 <!--<scope>test</scope>-->
606 <groupId>org.glassfish.jersey.core</groupId>
607 <artifactId>jersey-client</artifactId>
608 <version>${jersey-bom.version}</version>
609 <!--<scope>test</scope>-->
613 <groupId>com.github.tomakehurst</groupId>
614 <artifactId>wiremock</artifactId>
619 <groupId>org.eclipse.jetty</groupId>
620 <artifactId>jetty-servlet</artifactId>
621 <version>${jetty.version}</version>
626 <groupId>org.eclipse.jetty</groupId>
627 <artifactId>jetty-webapp</artifactId>
628 <version>${jetty.version}</version>
633 <groupId>junit</groupId>
634 <artifactId>junit</artifactId>
635 <version>${junit.version}</version>
640 <groupId>org.mockito</groupId>
641 <artifactId>mockito-core</artifactId>
646 <groupId>org.springframework</groupId>
647 <artifactId>spring-test</artifactId>
648 <version>${spring.version}</version>
653 <groupId>org.springframework</groupId>
654 <artifactId>spring-tx</artifactId>
655 <version>${spring.version}</version>
660 <groupId>io.cucumber</groupId>
661 <artifactId>cucumber-java</artifactId>
666 <groupId>io.cucumber</groupId>
667 <artifactId>cucumber-junit</artifactId>
674 <finalName>${project.artifactId}-${project.version}</finalName>
678 <groupId>org.apache.maven.plugins</groupId>
679 <artifactId>maven-war-plugin</artifactId>
680 <version>2.6</version>
682 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
683 WEB-INF/classes/elasticsearch.yml,
684 WEB-INF/classes/portal.properties
688 <SDC-Version>${project.version}</SDC-Version>
691 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
692 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
698 <directory>src/main/resources</directory>
699 <directory>src/main/resources/swagger</directory>
702 <attachClasses>true</attachClasses>
707 <groupId>org.apache.maven.plugins</groupId>
708 <artifactId>maven-dependency-plugin</artifactId>
711 <id>copy-dependencies</id>
712 <phase>package</phase>
714 <goal>copy-dependencies</goal>
717 <includeScope>compile</includeScope>
724 <groupId>com.jcabi</groupId>
725 <artifactId>jcabi-maven-plugin</artifactId>
726 <version>${jcabi.plugin.version}</version>
737 <artifactId>maven-resources-plugin</artifactId>
738 <version>2.6</version>
741 <id>copy-tosca-folder</id>
742 <!-- here the phase you need -->
743 <phase>install</phase>
745 <goal>copy-resources</goal>
748 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
751 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca</directory>
752 <filtering>true</filtering>
761 <groupId>org.apache.maven.plugins</groupId>
762 <artifactId>maven-assembly-plugin</artifactId>
766 <phase>package</phase>
771 <finalName>normatives</finalName>
772 <appendAssemblyId>false</appendAssemblyId>
773 <descriptor>${project.basedir}/normatives.xml</descriptor>
779 <artifactId>maven-clean-plugin</artifactId>
780 <version>3.0.0</version>
783 <id>clean.sdc.backend.folder</id>
790 <!-- static configuration files -->
793 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
795 <followSymlinks>false</followSymlinks>
797 <include>Artifact-Generator.properties</include>
798 <include>error-configuration.yaml</include>
799 <include>ecomp-error-configuration.yaml</include>
800 <include>logback.xml</include>
805 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
806 <followSymlinks>false</followSymlinks>
808 <include>*.war</include>
813 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
815 <followSymlinks>false</followSymlinks>
817 <include>normatives.tar.gz</include>
827 <id>clean-static-files</id>
836 <directory>${project.parent.basedir}/asdctool/tosca</directory>
837 <followSymlinks>false</followSymlinks>
849 <!--This plugin's configuration is used to store Eclipse m2e settings
850 only. It has no influence on the Maven build itself. -->
852 <groupId>org.eclipse.m2e</groupId>
853 <artifactId>lifecycle-mapping</artifactId>
854 <version>1.0.0</version>
856 <lifecycleMappingMetadata>
859 <pluginExecutionFilter>
860 <groupId>com.googlecode.maven-download-plugin</groupId>
861 <artifactId>download-maven-plugin</artifactId>
862 <versionRange>[1.2.1,)</versionRange>
866 </pluginExecutionFilter>
873 <pluginExecutionFilter>
874 <groupId>com.jcabi</groupId>
875 <artifactId>jcabi-maven-plugin</artifactId>
876 <versionRange>[0.0,)</versionRange>
880 </pluginExecutionFilter>
887 </lifecycleMappingMetadata>
891 <groupId>org.apache.maven.plugins</groupId>
892 <artifactId>maven-deploy-plugin</artifactId>
893 <version>2.7</version>
900 <!-- Swagger Plugins End -->
907 <activeByDefault>false</activeByDefault>
911 <finalName>${project.artifactId}-${project.version}</finalName>
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 <artifactId>maven-resources-plugin</artifactId>
931 <version>3.0.2</version>
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/api-docs
947 <include>api-docs.war</include>
955 <id>copy-static-configuration-files</id>
956 <phase>verify</phase>
958 <goal>copy-resources</goal>
961 <outputDirectory>${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory>
964 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory>
966 <include>Artifact-Generator.properties</include>
967 <include>error-configuration.yaml</include>
968 <include>ecomp-error-configuration.yaml</include>
969 <include>logback.xml</include>
977 <id>copy-resources-be</id>
978 <phase>verify</phase>
980 <goal>copy-resources</goal>
983 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
986 <directory>${project.parent.basedir}/catalog-be/target</directory>
988 <include>catalog-be-${project.version}.war</include>
993 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
996 <include>onboarding-be-${project.version}.war</include>
1003 <id>copy-normatives</id>
1004 <phase>verify</phase>
1006 <goal>copy-resources</goal>
1009 <outputDirectory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default</outputDirectory>
1012 <directory>${project.parent.basedir}/catalog-be/target</directory>
1014 <include>normatives.tar.gz</include>
1023 <groupId>io.fabric8</groupId>
1024 <artifactId>docker-maven-plugin</artifactId>
1025 <version>${fabric8.version}</version>
1028 <verbose>true</verbose>
1029 <apiVersion>1.23</apiVersion>
1030 <registry>nexus3.onap.org:10001</registry>
1033 <username>docker</username>
1034 <password>docker</password>
1039 <!-- Build backend image -->
1041 <name>onap/sdc-backend</name>
1042 <alias>sdc-backend</alias>
1044 <cleanup>try</cleanup>
1045 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
1047 <tag>${docker.tag}</tag>
1048 <tag>${docker.latest.tag}</tag>
1049 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
1053 <!-- Build backend-init image -->
1055 <name>onap/sdc-backend-init</name>
1056 <alias>sdc-backend-init</alias>
1058 <cleanup>try</cleanup>
1059 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1061 <tag>${docker.tag}</tag>
1062 <tag>${docker.latest.tag}</tag>
1063 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
1071 <id>clean-images</id>
1072 <phase>pre-clean</phase>
1077 <removeAll>true</removeAll>
1078 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1083 <id>generate-images</id>
1084 <phase>install</phase>
1091 <id>push-images</id>
1092 <phase>deploy</phase>
1097 <image>onap/sdc-backend,onap/sdc-backend-init</image>