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.15</version>
89 <!-- Swagger Dependencies End -->
92 <groupId>org.openecomp.sdc</groupId>
93 <artifactId>common-app-api</artifactId>
94 <version>${project.version}</version>
95 <scope>compile</scope>
99 <groupId>org.openecomp.sdc.be</groupId>
100 <artifactId>common-be</artifactId>
101 <version>${project.version}</version>
102 <scope>compile</scope>
105 <groupId>org.openecomp.sdc.be</groupId>
106 <artifactId>catalog-dao</artifactId>
107 <version>${project.version}</version>
108 <scope>compile</scope>
112 <groupId>org.openecomp.sdc.be</groupId>
113 <artifactId>catalog-model</artifactId>
114 <version>${project.version}</version>
115 <scope>compile</scope>
118 <!-- slf4j + logback -->
120 <groupId>org.slf4j</groupId>
121 <artifactId>slf4j-api</artifactId>
122 <version>${slf4j-api.version}</version>
123 <scope>compile</scope>
127 <groupId>ch.qos.logback</groupId>
128 <artifactId>logback-classic</artifactId>
129 <version>${logback.version}</version>
130 <scope>compile</scope>
134 <groupId>ch.qos.logback</groupId>
135 <artifactId>logback-core</artifactId>
136 <version>${logback.version}</version>
137 <scope>compile</scope>
142 <groupId>org.yaml</groupId>
143 <artifactId>snakeyaml</artifactId>
144 <version>${snakeyaml.version}</version>
145 <scope>compile</scope>
148 <!-- File changes listener -->
150 <groupId>org.apache.commons</groupId>
151 <artifactId>commons-jci-core</artifactId>
152 <version>${commons-jci-core.version}</version>
153 <scope>compile</scope>
158 <groupId>com.google.code.gson</groupId>
159 <artifactId>gson</artifactId>
160 <version>${gson.version}</version>
161 <scope>compile</scope>
166 <groupId>org.glassfish.jersey.media</groupId>
167 <artifactId>jersey-media-json-jackson</artifactId>
168 <version>${jersey-bom.version}</version>
169 <scope>compile</scope>
173 <groupId>org.glassfish.jersey.containers</groupId>
174 <artifactId>jersey-container-servlet-core</artifactId>
175 <version>${jersey-bom.version}</version>
176 <scope>compile</scope>
181 <groupId>org.apache.httpcomponents</groupId>
182 <artifactId>httpclient</artifactId>
183 <version>${httpclient.version}</version>
184 <scope>compile</scope>
188 <groupId>org.apache.httpcomponents</groupId>
189 <artifactId>httpcore</artifactId>
190 <version>${httpcore.version}</version>
191 <scope>compile</scope>
195 <groupId>commons-logging</groupId>
196 <artifactId>commons-logging</artifactId>
197 <version>${commons-logging}</version>
198 <scope>compile</scope>
202 <groupId>commons-codec</groupId>
203 <artifactId>commons-codec</artifactId>
204 <version>${commons-codec}</version>
205 <scope>compile</scope>
207 <!-- http client END -->
210 <groupId>javax.servlet</groupId>
211 <artifactId>servlet-api</artifactId>
212 <version>${servlet-api.version}</version>
213 <scope>provided</scope>
217 <groupId>org.eclipse.jgit</groupId>
218 <artifactId>org.eclipse.jgit</artifactId>
219 <version>3.4.1.201406201815-r</version>
222 <!-- spring - used by A4C -->
224 <groupId>org.springframework</groupId>
225 <artifactId>spring-core</artifactId>
226 <version>${spring.version}</version>
227 <scope>compile</scope>
231 <groupId>org.springframework</groupId>
232 <artifactId>spring-context</artifactId>
233 <version>${spring.version}</version>
234 <scope>compile</scope>
238 <groupId>org.springframework</groupId>
239 <artifactId>spring-web</artifactId>
240 <version>${spring.version}</version>
241 <scope>compile</scope>
245 <groupId>org.springframework</groupId>
246 <artifactId>spring-webmvc</artifactId>
247 <version>${spring.version}</version>
248 <scope>compile</scope>
252 <groupId>org.springframework</groupId>
253 <artifactId>spring-aop</artifactId>
254 <version>${spring.version}</version>
255 <scope>compile</scope>
259 <groupId>org.springframework</groupId>
260 <artifactId>spring-beans</artifactId>
261 <version>${spring.version}</version>
262 <scope>compile</scope>
266 <groupId>org.springframework</groupId>
267 <artifactId>spring-expression</artifactId>
268 <version>${spring.version}</version>
269 <scope>compile</scope>
273 <groupId>org.codehaus.groovy</groupId>
274 <artifactId>groovy-all</artifactId>
275 <version>${groovy.version}</version>
276 <scope>compile</scope>
280 <groupId>org.codehaus.janino</groupId>
281 <artifactId>janino</artifactId>
282 <version>${janino.version}</version>
283 <scope>compile</scope>
287 <groupId>org.codehaus.janino</groupId>
288 <artifactId>commons-compiler</artifactId>
289 <version>${janino.version}</version>
290 <scope>compile</scope>
294 <groupId>com.google.guava</groupId>
295 <artifactId>guava</artifactId>
296 <version>${guava.version}</version>
297 <scope>compile</scope>
302 <groupId>com.thinkaurelius.titan</groupId>
303 <artifactId>titan-core</artifactId>
304 <version>${titan.version}</version>
305 <scope>compile</scope>
308 <groupId>org.json</groupId>
309 <artifactId>json</artifactId>
312 <artifactId>slf4j-log4j12</artifactId>
313 <groupId>org.slf4j</groupId>
319 <groupId>org.openecomp.sdc.sdc-titan-cassandra</groupId>
320 <artifactId>sdc-titan-cassandra</artifactId>
321 <version>${titan.version}</version>
322 <scope>compile</scope>
325 <groupId>org.slf4j</groupId>
326 <artifactId>slf4j-log4j12</artifactId>
329 <groupId>io.netty</groupId>
330 <artifactId>netty-all</artifactId>
336 <groupId>org.apache.commons</groupId>
337 <artifactId>commons-lang3</artifactId>
338 <version>${lang3.version}</version>
339 <scope>compile</scope>
344 <groupId>com.googlecode.json-simple</groupId>
345 <artifactId>json-simple</artifactId>
346 <version>${json-simple.version}</version>
347 <scope>compile</scope>
352 <groupId>org.elasticsearch</groupId>
353 <artifactId>elasticsearch</artifactId>
354 <version>${elastic-search.version}</version>
355 <scope>compile</scope>
359 <groupId>org.elasticsearch.plugin</groupId>
360 <artifactId>shield</artifactId>
361 <version>${elastic-search.version}</version>
362 <scope>compile</scope>
364 <!-- functional java -->
366 <groupId>org.functionaljava</groupId>
367 <artifactId>functionaljava</artifactId>
368 <version>${functionaljava.version}</version>
369 <scope>compile</scope>
374 <groupId>com.jcabi</groupId>
375 <artifactId>jcabi-aspects</artifactId>
376 <version>${jcabi.version}</version>
377 <scope>compile</scope>
381 <groupId>org.aspectj</groupId>
382 <artifactId>aspectjrt</artifactId>
383 <version>${aspectjrt.version}</version>
384 <scope>compile</scope>
387 <!-- CAMBRIA CLIENT for U-EB -->
389 <groupId>com.att.nsa</groupId>
390 <artifactId>cambriaClient</artifactId>
391 <version>0.0.1</version>
392 <scope>compile</scope>
396 <groupId>com.att.nsa</groupId>
397 <artifactId>saClientLibrary</artifactId>
398 <version>0.0.1</version>
399 <scope>compile</scope>
402 <groupId>org.slf4j</groupId>
403 <artifactId>slf4j-log4j12</artifactId>
409 <groupId>org.json</groupId>
410 <artifactId>json</artifactId>
411 <version>20131018</version>
412 <scope>compile</scope>
415 <groupId>org.apache.tinkerpop</groupId>
416 <artifactId>tinkergraph-gremlin</artifactId>
417 <version>3.0.1-incubating</version>
418 <scope>compile</scope>
422 <groupId>org.apache.tinkerpop</groupId>
423 <artifactId>gremlin-groovy</artifactId>
424 <version>3.0.1-incubating</version>
425 <scope>compile</scope>
430 <groupId>com.datastax.cassandra</groupId>
431 <artifactId>cassandra-driver-core</artifactId>
432 <version>${cassandra.driver.version}</version>
433 <scope>compile</scope>
436 <groupId>com.datastax.cassandra</groupId>
437 <artifactId>cassandra-driver-mapping</artifactId>
438 <version>${cassandra.driver.version}</version>
439 <scope>compile</scope>
441 <!-- CASSANDRA END -->
443 <!-- Inserted for ECOMP Portal Integration -->
445 <groupId>org.openecomp.ecompsdkos</groupId>
446 <artifactId>epsdk-fw</artifactId>
447 <version>${ecomp.version}</version>
448 <scope>compile</scope>
451 <groupId>com.att.nsa</groupId>
452 <artifactId>cambriaClient</artifactId>
455 <artifactId>slf4j-log4j12</artifactId>
456 <groupId>org.slf4j</groupId>
461 <!--Artifact Generator-->
463 <groupId>org.openecomp.sdc.common</groupId>
464 <artifactId>openecomp-sdc-artifact-generator-api</artifactId>
465 <version>${artifact-generator-api.version}</version>
466 <scope>compile</scope>
469 <groupId>junit</groupId>
470 <artifactId>junit</artifactId>
476 <groupId>org.openecomp.sdc.common</groupId>
477 <artifactId>openecomp-sdc-artifact-generator-core</artifactId>
478 <version>${artifact-generator-core.version}</version>
479 <scope>compile</scope>
482 <groupId>junit</groupId>
483 <artifactId>junit</artifactId>
489 <groupId>org.openecomp.sdc.common</groupId>
490 <artifactId>openecomp-common-lib</artifactId>
491 <version>${dox-common-lib.version}</version>
495 <groupId>junit</groupId>
496 <artifactId>junit</artifactId>
503 <groupId>org.eclipse.jetty</groupId>
504 <artifactId>jetty-proxy</artifactId>
505 <version>${jetty.version}</version>
506 <scope>compile</scope>
510 <groupId>org.eclipse.jetty</groupId>
511 <artifactId>jetty-servlets</artifactId>
512 <version>${jetty.version}</version>
513 <scope>compile</scope>
515 <!-- System metrics -->
517 <groupId>org.fusesource</groupId>
518 <artifactId>sigar</artifactId>
519 <version>${sigar.version}</version>
520 <scope>compile</scope>
525 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
526 <artifactId>jersey-test-framework-provider-bundle</artifactId>
527 <version>${jersey-bom.version}</version>
533 <groupId>org.eclipse.jetty</groupId>
534 <artifactId>jetty-servlet</artifactId>
535 <version>${jetty.version}</version>
540 <groupId>org.eclipse.jetty</groupId>
541 <artifactId>jetty-webapp</artifactId>
542 <version>${jetty.version}</version>
547 <groupId>junit</groupId>
548 <artifactId>junit</artifactId>
549 <version>${junit.version}</version>
554 <groupId>org.mockito</groupId>
555 <artifactId>mockito-core</artifactId>
556 <version>${mockito.version}</version>
561 <groupId>org.assertj</groupId>
562 <artifactId>assertj-core</artifactId>
563 <version>${assertj.version}</version>
568 <groupId>org.springframework</groupId>
569 <artifactId>spring-test</artifactId>
570 <version>${spring.version}</version>
575 <groupId>org.springframework</groupId>
576 <artifactId>spring-tx</artifactId>
577 <version>${spring.version}</version>
584 <finalName>${project.artifactId}-${project.version}</finalName>
588 <groupId>org.apache.maven.plugins</groupId>
589 <artifactId>maven-war-plugin</artifactId>
590 <version>2.6</version>
592 <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
593 WEB-INF/classes/elasticsearch.yml,
594 WEB-INF/classes/portal.properties
598 <SDC-Version>${project.version}</SDC-Version>
601 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
602 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
608 <directory>src/main/resources</directory>
609 <directory>src/main/resources/swagger</directory>
612 <attachClasses>true</attachClasses>
617 <groupId>com.jcabi</groupId>
618 <artifactId>jcabi-maven-plugin</artifactId>
619 <version>${jcabi.plugin.version}</version>
630 <groupId>org.apache.maven.plugins</groupId>
631 <artifactId>maven-assembly-plugin</artifactId>
635 <phase>package</phase>
640 <finalName>normatives</finalName>
641 <appendAssemblyId>false</appendAssemblyId>
642 <descriptor>${project.basedir}/normatives.xml</descriptor>
648 <artifactId>maven-clean-plugin</artifactId>
649 <version>3.0.0</version>
652 <id>clean.sdc.backend.folder</id>
659 <!-- static configuration files -->
662 ${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default
664 <followSymlinks>false</followSymlinks>
666 <include>Artifact-Generator.properties</include>
667 <include>error-configuration.yaml</include>
668 <include>ecomp-error-configuration.yaml</include>
669 <include>logback.xml</include>
674 <directory>${project.parent.basedir}/catalog-be/sdc-backend</directory>
675 <followSymlinks>false</followSymlinks>
677 <include>*.war</include>
682 ${project.basedir}/sdc-backend-init/chef-repo/cookbooks/sdc-normatives/files/default
684 <followSymlinks>false</followSymlinks>
686 <include>normatives.tar.gz</include>
701 <!--This plugin's configuration is used to store Eclipse m2e settings
702 only. It has no influence on the Maven build itself. -->
704 <groupId>org.eclipse.m2e</groupId>
705 <artifactId>lifecycle-mapping</artifactId>
706 <version>1.0.0</version>
708 <lifecycleMappingMetadata>
711 <pluginExecutionFilter>
712 <groupId>com.googlecode.maven-download-plugin</groupId>
713 <artifactId>download-maven-plugin</artifactId>
714 <versionRange>[1.2.1,)</versionRange>
718 </pluginExecutionFilter>
725 <pluginExecutionFilter>
726 <groupId>com.jcabi</groupId>
727 <artifactId>jcabi-maven-plugin</artifactId>
728 <versionRange>[0.0,)</versionRange>
732 </pluginExecutionFilter>
739 </lifecycleMappingMetadata>
743 <groupId>org.apache.maven.plugins</groupId>
744 <artifactId>maven-deploy-plugin</artifactId>
745 <version>2.7</version>
752 <!-- Swagger Plugins End -->
759 <activeByDefault>false</activeByDefault>
763 <finalName>${project.artifactId}-${project.version}</finalName>
767 <id>docker-staging</id>
769 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
770 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
777 <activeByDefault>false</activeByDefault>
782 <artifactId>maven-resources-plugin</artifactId>
783 <version>3.0.2</version>
786 <id>copy-resources-apidocs</id>
787 <phase>verify</phase>
789 <goal>copy-resources</goal>
792 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
796 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/api-docs
799 <include>api-docs.war</include>
807 <id>copy-static-configuration-files</id>
808 <phase>verify</phase>
810 <goal>copy-resources</goal>
813 <outputDirectory>${project.parent.basedir}/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory>
816 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory>
818 <include>Artifact-Generator.properties</include>
819 <include>error-configuration.yaml</include>
820 <include>ecomp-error-configuration.yaml</include>
821 <include>logback.xml</include>
829 <id>copy-resources-be</id>
830 <phase>verify</phase>
832 <goal>copy-resources</goal>
835 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
838 <directory>${project.parent.basedir}/catalog-be/target</directory>
840 <include>catalog-be-${project.version}.war</include>
845 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
848 <include>onboarding-be-${project.version}.war</include>
855 <id>copy-normatives</id>
856 <phase>verify</phase>
858 <goal>copy-resources</goal>
861 <outputDirectory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default</outputDirectory>
864 <directory>${project.parent.basedir}/catalog-be/target</directory>
866 <include>normatives.tar.gz</include>
875 <groupId>io.fabric8</groupId>
876 <artifactId>docker-maven-plugin</artifactId>
877 <version>0.23.0</version>
880 <verbose>true</verbose>
881 <apiVersion>1.23</apiVersion>
882 <registry>nexus3.onap.org:10001</registry>
885 <username>docker</username>
886 <password>docker</password>
891 <!-- Build backend image -->
893 <name>onap/sdc-backend</name>
894 <alias>sdc-backend</alias>
896 <cleanup>try</cleanup>
897 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
899 <tag>${docker.tag}</tag>
900 <tag>${docker.latest.tag}</tag>
901 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
905 <!-- Build backend-init image -->
907 <name>onap/sdc-backend-init</name>
908 <alias>sdc-backend-init</alias>
910 <cleanup>try</cleanup>
911 <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
913 <tag>${docker.tag}</tag>
914 <tag>${docker.latest.tag}</tag>
915 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
923 <id>clean-images</id>
924 <phase>pre-clean</phase>
929 <removeAll>true</removeAll>
930 <image>onap/sdc-backend,onap/sdc-backend-init</image>
935 <id>generate-images</id>
936 <phase>install</phase>
944 <phase>deploy</phase>
949 <image>onap/sdc-backend,onap/sdc-backend-init</image>