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.4.0-SNAPSHOT</version>
18 <!--JSON and YAML Parsing-->
20 <groupId>com.fasterxml.jackson.dataformat</groupId>
21 <artifactId>jackson-dataformat-yaml</artifactId>
22 <version>${jackson.version}</version>
23 <scope>compile</scope>
27 <groupId>com.fasterxml.jackson.core</groupId>
28 <artifactId>jackson-databind</artifactId>
29 <version>${jackson.version}</version>
30 <scope>compile</scope>
34 <groupId>org.openecomp.sdc</groupId>
35 <artifactId>security-utils</artifactId>
36 <version>${project.version}</version>
37 <scope>compile</scope>
40 <groupId>org.onap.sdc.common</groupId>
41 <artifactId>onap-tosca-datatype</artifactId>
42 <version>${project.version}</version>
43 <scope>compile</scope>
47 <groupId>org.onap.sdc.common</groupId>
48 <artifactId>onap-generic-artifact-browser-service</artifactId>
49 <version>${project.version}</version>
50 <scope>compile</scope>
53 <!-- Swagger Dependencies Start -->
55 <groupId>io.swagger</groupId>
56 <artifactId>swagger-jersey2-jaxrs</artifactId>
57 <scope>compile</scope>
58 <version>1.5.15</version>
60 <!-- Swagger Dependencies End -->
63 <groupId>org.openecomp.sdc</groupId>
64 <artifactId>common-app-api</artifactId>
65 <version>${project.version}</version>
66 <scope>compile</scope>
70 <groupId>org.openecomp.sdc.be</groupId>
71 <artifactId>common-be</artifactId>
72 <version>${project.version}</version>
73 <scope>compile</scope>
76 <groupId>org.openecomp.sdc.be</groupId>
77 <artifactId>catalog-dao</artifactId>
78 <version>${project.version}</version>
79 <scope>compile</scope>
83 <groupId>org.openecomp.sdc.be</groupId>
84 <artifactId>catalog-model</artifactId>
85 <version>${project.version}</version>
86 <scope>compile</scope>
90 <groupId>ch.qos.logback</groupId>
91 <artifactId>logback-classic</artifactId>
92 <version>${logback.version}</version>
93 <scope>compile</scope>
98 <groupId>org.yaml</groupId>
99 <artifactId>snakeyaml</artifactId>
100 <version>${snakeyaml.version}</version>
101 <scope>compile</scope>
104 <!-- File changes listener -->
106 <groupId>org.apache.commons</groupId>
107 <artifactId>commons-jci-core</artifactId>
108 <version>${commons-jci-core.version}</version>
109 <scope>compile</scope>
114 <groupId>com.google.code.gson</groupId>
115 <artifactId>gson</artifactId>
116 <version>${gson.version}</version>
117 <scope>compile</scope>
122 <groupId>org.glassfish.jersey.media</groupId>
123 <artifactId>jersey-media-json-jackson</artifactId>
124 <version>${jersey-bom.version}</version>
125 <scope>compile</scope>
129 <groupId>org.glassfish.jersey.containers</groupId>
130 <artifactId>jersey-container-servlet-core</artifactId>
131 <version>${jersey-bom.version}</version>
132 <scope>compile</scope>
136 <groupId>org.glassfish.jersey.media</groupId>
137 <artifactId>jersey-media-multipart</artifactId>
138 <version>${jersey-bom.version}</version>
139 <scope>compile</scope>
142 <groupId>org.glassfish.jersey.ext</groupId>
143 <artifactId>jersey-spring4</artifactId>
144 <version>${jersey-bom.version}</version>
147 <groupId>org.springframework</groupId>
148 <artifactId>spring-web</artifactId>
151 <groupId>org.springframework</groupId>
152 <artifactId>spring-beans</artifactId>
155 <groupId>org.springframework</groupId>
156 <artifactId>spring-core</artifactId>
159 <groupId>org.springframework</groupId>
160 <artifactId>spring-aop</artifactId>
162 <!-- Transitive dependency of spring-bridge -->
164 <groupId>org.springframework</groupId>
165 <artifactId>spring-context</artifactId>
171 <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
172 currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
174 <groupId>org.glassfish.hk2.external</groupId>
175 <artifactId>asm-all-repackaged</artifactId>
179 <groupId>org.glassfish.jersey.ext</groupId>
180 <artifactId>jersey-bean-validation</artifactId>
185 <groupId>org.apache.httpcomponents</groupId>
186 <artifactId>httpclient</artifactId>
187 <version>${httpclient.version}</version>
188 <scope>compile</scope>
192 <groupId>org.apache.httpcomponents</groupId>
193 <artifactId>httpcore</artifactId>
194 <version>${httpcore.version}</version>
195 <scope>compile</scope>
199 <groupId>commons-logging</groupId>
200 <artifactId>commons-logging</artifactId>
201 <version>${commons-logging}</version>
202 <scope>compile</scope>
206 <groupId>commons-codec</groupId>
207 <artifactId>commons-codec</artifactId>
208 <version>${commons-codec}</version>
209 <scope>compile</scope>
211 <!-- http client END -->
214 <groupId>javax.servlet</groupId>
215 <artifactId>javax.servlet-api</artifactId>
216 <version>${servlet-api.version}</version>
217 <scope>provided</scope>
221 <groupId>org.eclipse.jgit</groupId>
222 <artifactId>org.eclipse.jgit</artifactId>
223 <version>3.4.1.201406201815-r</version>
226 <!-- spring - used by A4C -->
228 <groupId>org.springframework</groupId>
229 <artifactId>spring-core</artifactId>
230 <version>${spring.version}</version>
231 <scope>compile</scope>
235 <groupId>org.springframework</groupId>
236 <artifactId>spring-context</artifactId>
237 <version>${spring.version}</version>
238 <scope>compile</scope>
242 <groupId>org.springframework</groupId>
243 <artifactId>spring-web</artifactId>
244 <version>${spring.version}</version>
245 <scope>compile</scope>
249 <groupId>org.springframework</groupId>
250 <artifactId>spring-webmvc</artifactId>
251 <version>${spring.version}</version>
252 <scope>compile</scope>
256 <groupId>org.springframework</groupId>
257 <artifactId>spring-aop</artifactId>
258 <version>${spring.version}</version>
259 <scope>compile</scope>
263 <groupId>org.springframework</groupId>
264 <artifactId>spring-beans</artifactId>
265 <version>${spring.version}</version>
266 <scope>compile</scope>
270 <groupId>org.springframework</groupId>
271 <artifactId>spring-expression</artifactId>
272 <version>${spring.version}</version>
273 <scope>compile</scope>
277 <groupId>org.codehaus.groovy</groupId>
278 <artifactId>groovy</artifactId>
279 <scope>compile</scope>
283 <groupId>org.codehaus.janino</groupId>
284 <artifactId>janino</artifactId>
285 <version>${janino.version}</version>
286 <scope>compile</scope>
290 <groupId>org.codehaus.janino</groupId>
291 <artifactId>commons-compiler</artifactId>
292 <version>${janino.version}</version>
293 <scope>compile</scope>
297 <groupId>com.google.guava</groupId>
298 <artifactId>guava</artifactId>
299 <version>${guava.version}</version>
300 <scope>compile</scope>
305 <groupId>com.thinkaurelius.titan</groupId>
306 <artifactId>titan-core</artifactId>
307 <version>${titan.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>
326 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
327 <artifactId>sdc-titan-cassandra</artifactId>
328 <version>${sdc.titan.version}</version>
329 <scope>compile</scope>
332 <groupId>org.slf4j</groupId>
333 <artifactId>slf4j-log4j12</artifactId>
336 <groupId>io.netty</groupId>
337 <artifactId>netty-all</artifactId>
343 <groupId>org.apache.commons</groupId>
344 <artifactId>commons-lang3</artifactId>
345 <version>${lang3.version}</version>
346 <scope>compile</scope>
351 <groupId>com.googlecode.json-simple</groupId>
352 <artifactId>json-simple</artifactId>
353 <version>${json-simple.version}</version>
354 <scope>compile</scope>
359 <groupId>org.elasticsearch</groupId>
360 <artifactId>elasticsearch</artifactId>
361 <version>${elastic-search.version}</version>
362 <scope>compile</scope>
365 <!-- functional java -->
367 <groupId>org.functionaljava</groupId>
368 <artifactId>functionaljava</artifactId>
369 <version>${functionaljava.version}</version>
370 <scope>compile</scope>
375 <groupId>com.jcabi</groupId>
376 <artifactId>jcabi-aspects</artifactId>
377 <version>${jcabi.version}</version>
378 <scope>compile</scope>
382 <groupId>org.aspectj</groupId>
383 <artifactId>aspectjrt</artifactId>
384 <version>${aspectjrt.version}</version>
385 <scope>compile</scope>
389 <!-- CAMBRIA CLIENT for U-EB -->
391 <groupId>com.att.nsa</groupId>
392 <artifactId>cambriaClient</artifactId>
393 <version>1.2.1-oss</version>
394 <scope>compile</scope>
397 <groupId>com.att.nsa</groupId>
398 <artifactId>saClientLibrary</artifactId>
404 <groupId>org.json</groupId>
405 <artifactId>json</artifactId>
406 <version>20131018</version>
407 <scope>compile</scope>
410 <groupId>org.apache.tinkerpop</groupId>
411 <artifactId>tinkergraph-gremlin</artifactId>
412 <version>3.0.1-incubating</version>
413 <scope>compile</scope>
417 <groupId>org.apache.tinkerpop</groupId>
418 <artifactId>gremlin-groovy</artifactId>
419 <version>3.0.1-incubating</version>
420 <scope>compile</scope>
423 <artifactId>groovy</artifactId>
424 <groupId>org.codehaus.groovy</groupId>
431 <groupId>com.datastax.cassandra</groupId>
432 <artifactId>cassandra-driver-core</artifactId>
433 <version>${cassandra.driver.version}</version>
434 <scope>compile</scope>
437 <groupId>com.datastax.cassandra</groupId>
438 <artifactId>cassandra-driver-mapping</artifactId>
439 <version>${cassandra.driver.version}</version>
440 <scope>compile</scope>
442 <!-- CASSANDRA END -->
444 <!-- Inserted for ECOMP Portal Integration -->
446 <groupId>org.onap.portal.sdk</groupId>
447 <artifactId>epsdk-fw</artifactId>
448 <version>${ecomp.version}</version>
449 <scope>compile</scope>
452 <groupId>com.att.nsa</groupId>
453 <artifactId>cambriaClient</artifactId>
456 <artifactId>slf4j-log4j12</artifactId>
457 <groupId>org.slf4j</groupId>
464 <groupId>org.eclipse.jetty</groupId>
465 <artifactId>jetty-proxy</artifactId>
466 <version>${jetty.version}</version>
467 <scope>compile</scope>
471 <groupId>org.eclipse.jetty</groupId>
472 <artifactId>jetty-servlets</artifactId>
473 <version>${jetty.version}</version>
474 <scope>compile</scope>
476 <!-- System metrics -->
478 <groupId>org.fusesource</groupId>
479 <artifactId>sigar</artifactId>
480 <version>${sigar.version}</version>
481 <scope>compile</scope>
484 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
485 <artifactId>dmaapClient</artifactId>
486 <version>1.1.3</version>
487 <scope>compile</scope>
490 <groupId>com.att.aft</groupId>
491 <artifactId>dme2</artifactId>
496 <groupId>com.att.aft</groupId>
497 <artifactId>dme2</artifactId>
498 <version>3.1.200-oss</version>
502 <groupId>javax.jms</groupId>
503 <artifactId>jms</artifactId>
504 <version>1.1</version>
505 <scope>provided</scope>
510 <groupId>org.assertj</groupId>
511 <artifactId>assertj-core</artifactId>
516 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
517 <artifactId>jersey-test-framework-provider-bundle</artifactId>
518 <version>${jersey-bom.version}</version>
524 <groupId>org.glassfish.jersey.core</groupId>
525 <artifactId>jersey-client</artifactId>
526 <version>${jersey-bom.version}</version>
530 <groupId>com.github.tomakehurst</groupId>
531 <artifactId>wiremock-standalone</artifactId>
536 <groupId>org.eclipse.jetty</groupId>
537 <artifactId>jetty-webapp</artifactId>
538 <version>${jetty.version}</version>
543 <groupId>junit</groupId>
544 <artifactId>junit</artifactId>
545 <version>${junit.version}</version>
550 <groupId>org.mockito</groupId>
551 <artifactId>mockito-core</artifactId>
556 <groupId>org.springframework</groupId>
557 <artifactId>spring-test</artifactId>
558 <version>${spring.version}</version>
563 <groupId>org.springframework</groupId>
564 <artifactId>spring-tx</artifactId>
565 <version>${spring.version}</version>
569 <groupId>io.cucumber</groupId>
570 <artifactId>cucumber-java</artifactId>
575 <groupId>io.cucumber</groupId>
576 <artifactId>cucumber-junit</artifactId>
581 <groupId>org.jmockit</groupId>
582 <artifactId>jmockit</artifactId>
583 <version>${jmockit.version}</version>
588 <groupId>com.google.code.bean-matchers</groupId>
589 <artifactId>bean-matchers</artifactId>
590 <version>0.11</version>
595 <groupId>org.codehaus.groovy</groupId>
596 <artifactId>groovy</artifactId>
597 <version>2.4.8</version>
601 <groupId>io.netty</groupId>
602 <artifactId>netty-handler</artifactId>
605 <groupId>org.onap.sdc.common</groupId>
606 <artifactId>onap-tosca-datatype</artifactId>
607 <version>${project.version}</version>
610 <groupId>org.apache.commons</groupId>
611 <artifactId>commons-collections4</artifactId>
612 <version>${commons.collections.version}</version>
618 <finalName>${project.artifactId}-${project.version}</finalName>
622 <groupId>org.apache.maven.plugins</groupId>
623 <artifactId>maven-war-plugin</artifactId>
625 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
626 WEB-INF/classes/elasticsearch.yml,
627 WEB-INF/classes/portal.properties
631 <SDC-Version>${project.version}</SDC-Version>
634 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
635 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
641 <directory>src/main/resources</directory>
642 <directory>src/main/resources/swagger</directory>
645 <attachClasses>true</attachClasses>
649 <groupId>com.github.sylvainlaurent.maven</groupId>
650 <artifactId>yaml-json-validator-maven-plugin</artifactId>
654 <phase>validate</phase>
656 <goal>validate</goal>
662 <include>src/main/resources/**/*.y*ml</include>
663 <include>src/test/resources/**/*.y*ml</include>
668 <include>src/main/resources/**/*.json</include>
669 <include>src/test/resources/**/*.json</include>
678 <groupId>com.jcabi</groupId>
679 <artifactId>jcabi-maven-plugin</artifactId>
680 <version>${jcabi.maven.plugin.version}</version>
690 <groupId>org.apache.maven.plugins</groupId>
691 <artifactId>maven-assembly-plugin</artifactId>
695 <phase>package</phase>
700 <finalName>normatives</finalName>
701 <appendAssemblyId>false</appendAssemblyId>
703 <descriptor>${project.basedir}/normatives.xml</descriptor>
710 <groupId>org.apache.maven.plugins</groupId>
711 <artifactId>maven-clean-plugin</artifactId>
714 <id>clean.sdc.backend.folder</id>
721 <!-- static configuration files -->
724 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
726 <followSymlinks>false</followSymlinks>
728 <include>error-configuration.yaml</include>
729 <include>ecomp-error-configuration.yaml</include>
730 <include>logback.xml</include>
735 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
736 <followSymlinks>false</followSymlinks>
738 <include>*.war</include>
743 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
745 <followSymlinks>false</followSymlinks>
747 <include>normatives.tar.gz</include>
757 <id>clean-static-files</id>
766 <directory>${project.parent.basedir}/asdctool/tosca</directory>
767 <followSymlinks>false</followSymlinks>
775 <groupId>org.apache.maven.plugins</groupId>
776 <artifactId>maven-resources-plugin</artifactId>
779 <id>copy-static-configuration-files</id>
780 <phase>verify</phase>
782 <goal>copy-resources</goal>
786 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
790 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config
793 <include>error-configuration.yaml</include>
794 <include>ecomp-error-configuration.yaml</include>
795 <include>logback.xml</include>
802 <id>copy-tosca-folder</id>
803 <!-- here the phase you need -->
804 <phase>install</phase>
806 <goal>copy-resources</goal>
809 <outputDirectory>${project.parent.basedir}/asdctool/tosca</outputDirectory>
812 <directory>${project.parent.basedir}/catalog-be/src/main/resources/import/tosca
814 <filtering>true</filtering>
825 <!--This plugin's configuration is used to store Eclipse m2e settings
826 only. It has no influence on the Maven build itself. -->
828 <groupId>org.eclipse.m2e</groupId>
829 <artifactId>lifecycle-mapping</artifactId>
830 <version>1.0.0</version>
832 <lifecycleMappingMetadata>
835 <pluginExecutionFilter>
836 <groupId>com.googlecode.maven-download-plugin</groupId>
837 <artifactId>download-maven-plugin</artifactId>
838 <versionRange>[1.2.1,)</versionRange>
842 </pluginExecutionFilter>
849 <pluginExecutionFilter>
850 <groupId>com.jcabi</groupId>
851 <artifactId>jcabi-maven-plugin</artifactId>
852 <versionRange>[0.0,)</versionRange>
856 </pluginExecutionFilter>
863 </lifecycleMappingMetadata>
868 <!-- Swagger Plugins End -->
873 <id>docker-staging</id>
875 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
876 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
883 <activeByDefault>false</activeByDefault>
888 <groupId>org.apache.maven.plugins</groupId>
889 <artifactId>maven-resources-plugin</artifactId>
892 <id>copy-resources-apidocs</id>
893 <phase>verify</phase>
895 <goal>copy-resources</goal>
898 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
902 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/target/api-docs
905 <include>api-docs.war</include>
913 <id>copy-resources-be</id>
914 <phase>verify</phase>
916 <goal>copy-resources</goal>
919 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
922 <directory>${project.parent.basedir}/catalog-be/target</directory>
924 <include>catalog-be-${project.version}.war</include>
929 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
932 <include>onboarding-be-${project.version}.war</include>
939 <id>copy-normatives</id>
940 <phase>verify</phase>
942 <goal>copy-resources</goal>
946 sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
950 <directory>${project.parent.basedir}/catalog-be/target</directory>
952 <include>normatives.tar.gz</include>
961 <groupId>io.fabric8</groupId>
962 <artifactId>docker-maven-plugin</artifactId>
964 <apiVersion>1.23</apiVersion>
965 <registry>nexus3.onap.org:10001</registry>
968 <username>docker</username>
969 <password>docker</password>
974 <!-- Build backend image -->
976 <name>onap/sdc-backend</name>
977 <alias>sdc-backend</alias>
979 <cleanup>try</cleanup>
980 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
982 <tag>${docker.tag}</tag>
984 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
989 <!-- Build backend-init image -->
991 <name>onap/sdc-backend-init</name>
992 <alias>sdc-backend-init</alias>
994 <cleanup>try</cleanup>
995 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
997 <tag>${docker.tag}</tag>
999 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1008 <id>clean-images</id>
1009 <phase>pre-clean</phase>
1014 <removeAll>true</removeAll>
1015 <image>onap/sdc-backend,onap/sdc-backend-init</image>
1020 <id>generate-images</id>
1021 <phase>install</phase>
1028 <id>push-images</id>
1029 <phase>deploy</phase>
1034 <image>onap/sdc-backend,onap/sdc-backend-init</image>