Remove vulnerable log4j dependency
[sdc.git] / catalog-be / pom.xml
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>
5
6     <artifactId>catalog-be</artifactId>
7     <packaging>war</packaging>
8
9     <parent>
10         <groupId>org.openecomp.sdc</groupId>
11         <artifactId>sdc-main</artifactId>
12         <version>1.8.0-SNAPSHOT</version>
13     </parent>
14
15     <properties>
16         <java-hamcrest.version>2.0.0.0</java-hamcrest.version>
17         <swagger.version>2.1.1</swagger.version>
18         <swagger-ui.version>3.25.0</swagger-ui.version>
19         <maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
20         <replacer.plugin.version>1.5.3</replacer.plugin.version>
21     </properties>
22
23     <dependencies>
24         <dependency>
25             <groupId>org.openecomp.sdc</groupId>
26             <artifactId>togglz-rest-services</artifactId>
27             <version>${project.version}</version>
28         </dependency>
29
30         <!--JSON and YAML Parsing-->
31         <dependency>
32             <groupId>com.fasterxml.jackson.core</groupId>
33             <artifactId>jackson-core</artifactId>
34             <version>${jackson.version}</version>
35         </dependency>
36         <dependency>
37             <groupId>com.fasterxml.jackson.dataformat</groupId>
38             <artifactId>jackson-dataformat-yaml</artifactId>
39             <version>${jackson.version}</version>
40             <exclusions>
41                 <exclusion>
42                     <groupId>com.fasterxml.jackson.core</groupId>
43                     <artifactId>jackson-core</artifactId>
44                 </exclusion>
45             </exclusions>
46         </dependency>
47
48         <dependency>
49             <groupId>com.fasterxml.jackson.core</groupId>
50             <artifactId>jackson-databind</artifactId>
51             <version>${jackson.version}</version>
52             <exclusions>
53                 <exclusion>
54                     <groupId>com.fasterxml.jackson.core</groupId>
55                     <artifactId>jackson-core</artifactId>
56                 </exclusion>
57             </exclusions>
58         </dependency>
59
60         <dependency>
61             <groupId>org.onap.sdc.common</groupId>
62             <artifactId>onap-generic-artifact-browser-service</artifactId>
63             <version>${project.version}</version>
64             <scope>compile</scope>
65         </dependency>
66
67         <!-- Swagger Dependencies Start -->
68         <dependency>
69             <groupId>io.swagger.core.v3</groupId>
70             <artifactId>swagger-jaxrs2</artifactId>
71             <version>${swagger.version}</version>
72             <exclusions>
73                 <exclusion>
74                     <groupId>com.fasterxml.jackson.core</groupId>
75                     <artifactId>jackson-core</artifactId>
76                 </exclusion>
77             </exclusions>
78         </dependency>
79         <dependency>
80             <groupId>io.swagger.core.v3</groupId>
81             <artifactId>swagger-annotations</artifactId>
82             <version>${swagger.version}</version>
83         </dependency>
84         <!-- Swagger Dependencies End -->
85
86         <dependency>
87             <groupId>org.openecomp.sdc</groupId>
88             <artifactId>common-app-api</artifactId>
89             <version>${project.version}</version>
90             <exclusions>
91                 <exclusion>
92                     <groupId>com.fasterxml.jackson.core</groupId>
93                     <artifactId>jackson-core</artifactId>
94                 </exclusion>
95             </exclusions>
96         </dependency>
97
98         <dependency>
99             <groupId>javax.ws.rs</groupId>
100             <artifactId>javax.ws.rs-api</artifactId>
101             <version>${ws.rs.version}</version>
102         </dependency>
103
104         <dependency>
105             <groupId>org.openecomp.sdc.be</groupId>
106             <artifactId>common-be</artifactId>
107             <version>${project.version}</version>
108             <scope>compile</scope>
109         </dependency>
110         <dependency>
111             <groupId>org.openecomp.sdc.be</groupId>
112             <artifactId>common-be</artifactId>
113             <version>${project.version}</version>
114             <type>test-jar</type>
115             <scope>test</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.openecomp.sdc.be</groupId>
119             <artifactId>catalog-dao</artifactId>
120             <version>${project.version}</version>
121             <exclusions>
122                 <exclusion>
123                     <groupId>com.fasterxml.jackson.core</groupId>
124                     <artifactId>jackson-core</artifactId>
125                 </exclusion>
126             </exclusions>
127         </dependency>
128
129         <dependency>
130             <groupId>org.openecomp.sdc.be</groupId>
131             <artifactId>catalog-model</artifactId>
132             <version>${project.version}</version>
133             <exclusions>
134                 <exclusion>
135                     <groupId>com.fasterxml.jackson.core</groupId>
136                     <artifactId>jackson-core</artifactId>
137                 </exclusion>
138             </exclusions>
139         </dependency>
140
141         <dependency>
142             <groupId>ch.qos.logback</groupId>
143             <artifactId>logback-classic</artifactId>
144             <version>${logback.version}</version>
145             <scope>compile</scope>
146         </dependency>
147
148         <!-- Snake Yaml -->
149         <dependency>
150             <groupId>org.yaml</groupId>
151             <artifactId>snakeyaml</artifactId>
152             <version>${snakeyaml.version}</version>
153             <scope>compile</scope>
154         </dependency>
155
156         <!-- File changes listener -->
157         <dependency>
158             <groupId>org.apache.commons</groupId>
159             <artifactId>commons-jci-core</artifactId>
160             <version>${commons-jci-core.version}</version>
161             <scope>compile</scope>
162         </dependency>
163
164         <!-- Gson -->
165         <dependency>
166             <groupId>com.google.code.gson</groupId>
167             <artifactId>gson</artifactId>
168             <version>${gson.version}</version>
169             <scope>compile</scope>
170         </dependency>
171
172         <!-- jersey -->
173         <dependency>
174             <groupId>org.glassfish.jersey.media</groupId>
175             <artifactId>jersey-media-json-jackson</artifactId>
176             <version>${jersey-bom.version}</version>
177             <exclusions>
178                 <exclusion>
179                     <groupId>com.fasterxml.jackson.core</groupId>
180                     <artifactId>jackson-core</artifactId>
181                 </exclusion>
182             </exclusions>
183         </dependency>
184
185         <dependency>
186             <groupId>org.glassfish.jersey.containers</groupId>
187             <artifactId>jersey-container-servlet-core</artifactId>
188             <version>${jersey-bom.version}</version>
189             <scope>compile</scope>
190         </dependency>
191
192         <dependency>
193             <groupId>org.glassfish.jersey.media</groupId>
194             <artifactId>jersey-media-multipart</artifactId>
195             <version>${jersey-bom.version}</version>
196             <scope>compile</scope>
197         </dependency>
198         <dependency>
199             <groupId>org.glassfish.jersey.ext</groupId>
200             <artifactId>jersey-spring4</artifactId>
201             <version>${jersey-bom.version}</version>
202             <exclusions>
203                 <exclusion>
204                     <groupId>org.springframework</groupId>
205                     <artifactId>spring-web</artifactId>
206                 </exclusion>
207                 <exclusion>
208                     <groupId>org.springframework</groupId>
209                     <artifactId>spring-beans</artifactId>
210                 </exclusion>
211                 <exclusion>
212                     <groupId>org.springframework</groupId>
213                     <artifactId>spring-core</artifactId>
214                 </exclusion>
215                 <exclusion>
216                     <groupId>org.springframework</groupId>
217                     <artifactId>spring-aop</artifactId>
218                 </exclusion>
219                 <!-- Transitive dependency of spring-bridge -->
220                 <exclusion>
221                     <groupId>org.springframework</groupId>
222                     <artifactId>spring-context</artifactId>
223                 </exclusion>
224             </exclusions>
225
226         </dependency>
227
228         <!--asm-all-repackaged is a jersey dependency. in current version jersey depends on a version that was compiled using java 9 compiler
229             currently our jetty (v9.3.6) does not support java 9. as soon as jetty gets upgraded we will remove this dependency-->
230         <dependency>
231             <groupId>org.glassfish.hk2.external</groupId>
232             <artifactId>asm-all-repackaged</artifactId>
233         </dependency>
234
235         <dependency>
236             <groupId>org.glassfish.jersey.ext</groupId>
237             <artifactId>jersey-bean-validation</artifactId>
238         </dependency>
239
240         <!-- http client -->
241         <dependency>
242             <groupId>org.apache.httpcomponents</groupId>
243             <artifactId>httpclient</artifactId>
244             <version>${httpclient.version}</version>
245             <scope>compile</scope>
246         </dependency>
247
248         <dependency>
249             <groupId>org.apache.httpcomponents</groupId>
250             <artifactId>httpcore</artifactId>
251             <version>${httpcore.version}</version>
252             <scope>compile</scope>
253         </dependency>
254
255         <dependency>
256             <groupId>commons-logging</groupId>
257             <artifactId>commons-logging</artifactId>
258             <version>${commons-logging}</version>
259             <scope>compile</scope>
260         </dependency>
261
262         <dependency>
263             <groupId>commons-codec</groupId>
264             <artifactId>commons-codec</artifactId>
265             <version>${commons-codec}</version>
266             <scope>compile</scope>
267         </dependency>
268         <!-- http client END -->
269
270         <dependency>
271             <groupId>javax.servlet</groupId>
272             <artifactId>javax.servlet-api</artifactId>
273             <version>${servlet-api.version}</version>
274             <scope>provided</scope>
275         </dependency>
276
277         <dependency>
278             <groupId>org.eclipse.jgit</groupId>
279             <artifactId>org.eclipse.jgit</artifactId>
280             <version>3.4.1.201406201815-r</version>
281         </dependency>
282
283         <!-- spring - used by A4C -->
284         <dependency>
285             <groupId>org.springframework</groupId>
286             <artifactId>spring-core</artifactId>
287             <version>${spring.version}</version>
288             <scope>compile</scope>
289         </dependency>
290
291         <dependency>
292             <groupId>org.springframework</groupId>
293             <artifactId>spring-context</artifactId>
294             <version>${spring.version}</version>
295             <scope>compile</scope>
296         </dependency>
297
298         <dependency>
299             <groupId>org.springframework</groupId>
300             <artifactId>spring-web</artifactId>
301             <version>${spring.version}</version>
302             <scope>compile</scope>
303         </dependency>
304
305         <dependency>
306             <groupId>org.springframework</groupId>
307             <artifactId>spring-webmvc</artifactId>
308             <version>${spring.version}</version>
309             <scope>compile</scope>
310         </dependency>
311
312         <dependency>
313             <groupId>org.springframework</groupId>
314             <artifactId>spring-aop</artifactId>
315             <version>${spring.version}</version>
316             <scope>compile</scope>
317         </dependency>
318
319         <dependency>
320             <groupId>org.springframework</groupId>
321             <artifactId>spring-beans</artifactId>
322             <version>${spring.version}</version>
323             <scope>compile</scope>
324         </dependency>
325
326         <dependency>
327             <groupId>org.springframework</groupId>
328             <artifactId>spring-expression</artifactId>
329             <version>${spring.version}</version>
330             <scope>compile</scope>
331         </dependency>
332
333         <!-- Spring integration (optional) -->
334         <dependency>
335             <groupId>org.togglz</groupId>
336             <artifactId>togglz-spring-web</artifactId>
337             <version>${togglz.version}</version>
338         </dependency>
339
340         <dependency>
341             <groupId>org.codehaus.janino</groupId>
342             <artifactId>janino</artifactId>
343             <version>${janino.version}</version>
344             <scope>compile</scope>
345         </dependency>
346
347         <dependency>
348             <groupId>org.codehaus.janino</groupId>
349             <artifactId>commons-compiler</artifactId>
350             <version>${janino.version}</version>
351             <scope>compile</scope>
352         </dependency>
353
354         <dependency>
355             <groupId>com.google.guava</groupId>
356             <artifactId>guava</artifactId>
357             <version>${guava.version}</version>
358             <scope>compile</scope>
359         </dependency>
360
361         <dependency>
362             <groupId>org.janusgraph</groupId>
363             <artifactId>janusgraph-core</artifactId>
364             <version>${janusgraph.version}</version>
365             <scope>compile</scope>
366             <exclusions>
367                 <exclusion>
368                     <groupId>org.json</groupId>
369                     <artifactId>json</artifactId>
370                 </exclusion>
371                 <exclusion>
372                     <artifactId>slf4j-log4j12</artifactId>
373                     <groupId>org.slf4j</groupId>
374                 </exclusion>
375                 <exclusion>
376                     <artifactId>commons-collections</artifactId>
377                     <groupId>commons-collections</groupId>
378                 </exclusion>
379                 <exclusion>
380                     <groupId>org.apache.thrift</groupId>
381                     <artifactId>libthrift</artifactId>
382                 </exclusion>
383             </exclusions>
384         </dependency>
385
386         <dependency>
387             <groupId>org.janusgraph</groupId>
388             <artifactId>janusgraph-cql</artifactId>
389             <version>${janusgraph.version}</version>
390             <scope>compile</scope>
391             <exclusions>
392                 <exclusion>
393                     <groupId>org.slf4j</groupId>
394                     <artifactId>slf4j-log4j12</artifactId>
395                 </exclusion>
396                 <exclusion>
397                     <groupId>org.json</groupId>
398                     <artifactId>json</artifactId>
399                 </exclusion>
400                 <exclusion>
401                     <artifactId>commons-collections</artifactId>
402                     <groupId>commons-collections</groupId>
403                 </exclusion>
404                 <exclusion>
405                     <artifactId>groovy</artifactId>
406                     <groupId>org.codehaus.groovy</groupId>
407                 </exclusion>
408                 <exclusion>
409                     <groupId>io.netty</groupId>
410                     <artifactId>netty-all</artifactId>
411                 </exclusion>
412             </exclusions>
413         </dependency>
414
415         <dependency>
416             <groupId>org.apache.commons</groupId>
417             <artifactId>commons-lang3</artifactId>
418             <version>${lang3.version}</version>
419             <scope>compile</scope>
420         </dependency>
421
422         <dependency>
423             <groupId>com.googlecode.json-simple</groupId>
424             <artifactId>json-simple</artifactId>
425             <version>${json-simple.version}</version>
426             <scope>compile</scope>
427
428         </dependency>
429
430         <!-- functional java -->
431         <dependency>
432             <groupId>org.functionaljava</groupId>
433             <artifactId>functionaljava</artifactId>
434             <version>${functionaljava.version}</version>
435             <scope>compile</scope>
436         </dependency>
437
438         <!-- Aspects -->
439         <dependency>
440             <groupId>com.jcabi</groupId>
441             <artifactId>jcabi-aspects</artifactId>
442             <version>${jcabi.version}</version>
443             <scope>compile</scope>
444         </dependency>
445
446         <dependency>
447             <groupId>org.aspectj</groupId>
448             <artifactId>aspectjrt</artifactId>
449             <version>${aspectjrt.version}</version>
450             <scope>compile</scope>
451         </dependency>
452
453
454         <!-- CAMBRIA CLIENT for U-EB -->
455         <dependency>
456             <groupId>com.att.nsa</groupId>
457             <artifactId>cambriaClient</artifactId>
458             <version>1.2.1-oss</version>
459             <scope>compile</scope>
460             <exclusions>
461                 <exclusion>
462                     <groupId>com.att.nsa</groupId>
463                     <artifactId>saClientLibrary</artifactId>
464                 </exclusion>
465             </exclusions>
466         </dependency>
467
468         <dependency>
469             <groupId>org.json</groupId>
470             <artifactId>json</artifactId>
471             <version>20131018</version>
472             <scope>compile</scope>
473         </dependency>
474
475         <!-- CASSANDRA -->
476         <dependency>
477             <groupId>com.datastax.cassandra</groupId>
478             <artifactId>cassandra-driver-core</artifactId>
479             <version>${cassandra.driver.version}</version>
480             <scope>compile</scope>
481         </dependency>
482         <dependency>
483             <groupId>com.datastax.cassandra</groupId>
484             <artifactId>cassandra-driver-mapping</artifactId>
485             <version>${cassandra.driver.version}</version>
486             <scope>compile</scope>
487         </dependency>
488         <!-- CASSANDRA END -->
489
490         <!-- Inserted for ECOMP Portal Integration -->
491         <dependency>
492             <groupId>org.owasp.esapi</groupId>
493             <artifactId>esapi</artifactId>
494             <version>2.2.0.0</version>
495             <exclusions>
496                 <exclusion>
497                     <groupId>xerces</groupId>
498                     <artifactId>xercesImpl</artifactId>
499                 </exclusion>
500                 <exclusion>
501                     <groupId>log4j</groupId>
502                     <artifactId>log4j</artifactId>
503                 </exclusion>
504             </exclusions>
505         </dependency>
506         <dependency>
507             <groupId>org.onap.portal.sdk</groupId>
508             <artifactId>epsdk-fw</artifactId>
509             <version>${ecomp.version}</version>
510             <scope>compile</scope>
511             <exclusions>
512                 <exclusion>
513                     <groupId>com.att.nsa</groupId>
514                     <artifactId>cambriaClient</artifactId>
515                 </exclusion>
516                 <exclusion>
517                     <artifactId>slf4j-log4j12</artifactId>
518                     <groupId>org.slf4j</groupId>
519                 </exclusion>
520                 <exclusion>
521                     <groupId>org.onap.aaf.authz</groupId>
522                     <artifactId>aaf-cadi-aaf</artifactId>
523                 </exclusion>
524                 <exclusion>
525                     <artifactId>aaf-cadi-core</artifactId>
526                     <groupId>org.onap.aaf.authz</groupId>
527                 </exclusion>
528                 <exclusion>
529                     <artifactId>commons-codec</artifactId>
530                     <groupId>commons-codec</groupId>
531                 </exclusion>
532                 <exclusion>
533                     <artifactId>log4j</artifactId>
534                     <groupId>log4j</groupId>
535                 </exclusion>
536             </exclusions>
537         </dependency>
538
539         <!--Jetty Proxy-->
540         <dependency>
541             <groupId>org.eclipse.jetty</groupId>
542             <artifactId>jetty-proxy</artifactId>
543             <version>${jetty.version}</version>
544             <scope>compile</scope>
545         </dependency>
546
547         <dependency>
548             <groupId>org.eclipse.jetty</groupId>
549             <artifactId>jetty-servlets</artifactId>
550             <version>${jetty.version}</version>
551             <scope>compile</scope>
552         </dependency>
553         <!-- System metrics -->
554         <dependency>
555             <groupId>org.fusesource</groupId>
556             <artifactId>sigar</artifactId>
557             <version>${sigar.version}</version>
558             <scope>compile</scope>
559             <exclusions>
560                 <exclusion>
561                     <groupId>log4j</groupId>
562                     <artifactId>log4j</artifactId>
563                 </exclusion>
564             </exclusions>
565         </dependency>
566         <dependency>
567             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
568             <artifactId>dmaapClient</artifactId>
569             <version>1.1.3</version>
570             <scope>compile</scope>
571             <exclusions>
572                 <exclusion>
573                     <groupId>com.att.aft</groupId>
574                     <artifactId>dme2</artifactId>
575                 </exclusion>
576                 <exclusion>
577                     <groupId>com.fasterxml.jackson.core</groupId>
578                     <artifactId>jackson-core</artifactId>
579                 </exclusion>
580                 <exclusion>
581                     <artifactId>log4j</artifactId>
582                     <groupId>log4j</groupId>
583                 </exclusion>
584                 <exclusion>
585                     <artifactId>apache-log4j-extras</artifactId>
586                     <groupId>log4j</groupId>
587                 </exclusion>
588             </exclusions>
589         </dependency>
590         <dependency>
591             <groupId>com.att.aft</groupId>
592             <artifactId>dme2</artifactId>
593             <version>3.1.200-oss</version>
594         </dependency>
595
596         <dependency>
597             <groupId>javax.jms</groupId>
598             <artifactId>jms</artifactId>
599             <version>1.1</version>
600             <scope>provided</scope>
601         </dependency>
602
603         <!-- CADI -->
604         <dependency>
605             <groupId>org.onap.aaf.authz</groupId>
606             <artifactId>aaf-cadi-aaf</artifactId>
607             <version>${cadi.version}</version>
608             <exclusions>
609                 <exclusion>
610                     <groupId>com.datastax.cassandra</groupId>
611                     <artifactId>cassandra-driver-core</artifactId>
612                 </exclusion>
613                 <exclusion>
614                     <groupId>org.slf4j</groupId>
615                     <artifactId>slf4j-log4j12</artifactId>
616                 </exclusion>
617                 <exclusion>
618                     <artifactId>log4j</artifactId>
619                     <groupId>log4j</groupId>
620                 </exclusion>
621             </exclusions>
622         </dependency>
623
624         <!-- TEST -->
625         <dependency>
626             <groupId>org.assertj</groupId>
627             <artifactId>assertj-core</artifactId>
628             <scope>test</scope>
629         </dependency>
630
631         <dependency>
632             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
633             <artifactId>jersey-test-framework-provider-bundle</artifactId>
634             <version>${jersey-bom.version}</version>
635             <type>pom</type>
636             <scope>test</scope>
637         </dependency>
638
639         <dependency>
640             <groupId>org.glassfish.jersey.core</groupId>
641             <artifactId>jersey-client</artifactId>
642             <version>${jersey-bom.version}</version>
643         </dependency>
644
645         <dependency>
646             <groupId>org.eclipse.jetty</groupId>
647             <artifactId>jetty-webapp</artifactId>
648             <version>${jetty.version}</version>
649             <scope>test</scope>
650         </dependency>
651
652         <dependency>
653             <groupId>org.hamcrest</groupId>
654             <artifactId>hamcrest</artifactId>
655             <version>${hamcrest.version}</version>
656             <scope>test</scope>
657         </dependency>
658
659         <dependency>
660             <groupId>org.hamcrest</groupId>
661             <artifactId>hamcrest-library</artifactId>
662             <version>${hamcrest.version}</version>
663             <scope>test</scope>
664         </dependency>
665
666         <dependency>
667             <groupId>org.junit.jupiter</groupId>
668             <artifactId>junit-jupiter-api</artifactId>
669             <version>${junitJupiter.version}</version>
670             <scope>test</scope>
671         </dependency>
672
673         <dependency>
674             <groupId>org.junit.jupiter</groupId>
675             <artifactId>junit-jupiter</artifactId>
676             <version>${junitJupiter.version}</version>
677             <scope>test</scope>
678         </dependency>
679
680         <dependency>
681             <groupId>org.junit.platform</groupId>
682             <artifactId>junit-platform-commons</artifactId>
683             <version>${junit.platform.version}</version>
684             <scope>test</scope>
685         </dependency>
686         <dependency>
687             <groupId>org.junit.platform</groupId>
688             <artifactId>junit-platform-engine</artifactId>
689             <version>${junit.platform.version}</version>
690             <scope>test</scope>
691         </dependency>
692         <dependency>
693             <groupId>org.mockito</groupId>
694             <artifactId>mockito-junit-jupiter</artifactId>
695             <version>${mockitoJupiter.version}</version>
696             <scope>test</scope>
697         </dependency>
698
699         <dependency>
700             <groupId>org.springframework</groupId>
701             <artifactId>spring-test</artifactId>
702             <version>${spring.version}</version>
703             <scope>test</scope>
704         </dependency>
705
706         <dependency>
707             <groupId>org.springframework</groupId>
708             <artifactId>spring-tx</artifactId>
709             <version>${spring.version}</version>
710         </dependency>
711
712         <dependency>
713             <groupId>io.cucumber</groupId>
714             <artifactId>cucumber-java</artifactId>
715             <version>${cucumber.version}</version>
716             <scope>test</scope>
717         </dependency>
718
719         <dependency>
720             <groupId>io.cucumber</groupId>
721             <artifactId>cucumber-junit</artifactId>
722             <version>${cucumber.version}</version>
723             <scope>test</scope>
724         </dependency>
725
726         <dependency>
727             <groupId>org.jmockit</groupId>
728             <artifactId>jmockit</artifactId>
729             <version>${jmockit.version}</version>
730             <scope>test</scope>
731         </dependency>
732
733         <dependency>
734             <groupId>com.google.code.bean-matchers</groupId>
735             <artifactId>bean-matchers</artifactId>
736             <version>0.11</version>
737             <scope>test</scope>
738         </dependency>
739
740         <dependency>
741             <groupId>org.codehaus.groovy</groupId>
742             <artifactId>groovy</artifactId>
743             <version>2.4.8</version>
744         </dependency>
745
746         <dependency>
747             <groupId>io.netty</groupId>
748             <artifactId>netty-handler</artifactId>
749         </dependency>
750         <dependency>
751             <groupId>org.onap.sdc.common</groupId>
752             <artifactId>onap-tosca-datatype</artifactId>
753             <version>${project.version}</version>
754             <exclusions>
755                 <exclusion>
756                     <groupId>com.fasterxml.jackson.core</groupId>
757                     <artifactId>jackson-core</artifactId>
758                 </exclusion>
759             </exclusions>
760         </dependency>
761         <dependency>
762             <groupId>org.apache.commons</groupId>
763             <artifactId>commons-collections4</artifactId>
764             <version>${commons.collections.version}</version>
765         </dependency>
766         <dependency>
767             <groupId>org.onap.sdc.sdc-be-common</groupId>
768             <artifactId>security-util-lib</artifactId>
769             <version>${security.util.lib.version}</version>
770             <exclusions>
771                 <exclusion>
772                     <groupId>org.springframework.boot</groupId>
773                     <artifactId>spring-boot-starter-logging</artifactId>
774                 </exclusion>
775             </exclusions>
776         </dependency>
777         <dependency>
778             <groupId>org.openecomp.sdc.core</groupId>
779             <artifactId>openecomp-tosca-lib</artifactId>
780             <version>${project.version}</version>
781             <exclusions>
782                 <exclusion>
783                     <groupId>com.fasterxml.jackson.core</groupId>
784                     <artifactId>jackson-core</artifactId>
785                 </exclusion>
786             </exclusions>
787         </dependency>
788         <dependency>
789             <groupId>org.onap.vnfsdk.validation</groupId>
790             <artifactId>validation-pmdictionary</artifactId>
791             <version>${onap.vnfsdk.validation.pmdictionary.version}</version>
792             <exclusions>
793                 <exclusion>
794                     <groupId>org.apache.logging.log4j</groupId>
795                     <artifactId>log4j-slf4j-impl</artifactId>
796                 </exclusion>
797             </exclusions>
798         </dependency>
799     </dependencies>
800
801     <build>
802         <finalName>catalog-be</finalName>
803         <plugins>
804             <plugin>
805                 <groupId>org.apache.maven.plugins</groupId>
806                 <artifactId>maven-surefire-plugin</artifactId>
807                 <configuration>
808                     <forkCount>1</forkCount>
809                 </configuration>
810             </plugin>
811             <plugin>
812                 <!-- Download Swagger UI webjar. -->
813                 <artifactId>maven-dependency-plugin</artifactId>
814                 <version>${maven-dependency-plugin.version}</version>
815                 <executions>
816                     <execution>
817                         <phase>prepare-package</phase>
818                         <goals>
819                             <goal>unpack</goal>
820                         </goals>
821                         <configuration>
822                             <artifactItems>
823                                 <artifactItem>
824                                     <groupId>org.webjars</groupId>
825                                     <artifactId>swagger-ui</artifactId>
826                                     <version>${swagger-ui.version}</version>
827                                 </artifactItem>
828                             </artifactItems>
829                             <outputDirectory>${project.build.directory}/swagger-ui</outputDirectory>
830                         </configuration>
831                     </execution>
832                 </executions>
833             </plugin>
834             <plugin>
835                 <!-- Replace the OpenAPI specification example URL with the local one. -->
836                 <groupId>com.google.code.maven-replacer-plugin</groupId>
837                 <artifactId>replacer</artifactId>
838                 <version>${replacer.plugin.version}</version>
839                 <executions>
840                     <execution>
841                         <phase>prepare-package</phase>
842                         <goals>
843                             <goal>replace</goal>
844                         </goals>
845                     </execution>
846                 </executions>
847                 <configuration>
848                     <file>
849                         ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/index.html
850                     </file>
851                     <replacements>
852                         <replacement>
853                             <token>https://petstore.swagger.io/v2/swagger.json</token>
854                             <value>/sdc/openapi.json</value>
855                         </replacement>
856                     </replacements>
857                 </configuration>
858             </plugin>
859             <plugin>
860                 <groupId>org.apache.maven.plugins</groupId>
861                 <artifactId>maven-war-plugin</artifactId>
862                 <configuration>
863                     <packagingExcludes>WEB-INF\lib\slf4j-log4j*.jar,
864                         WEB-INF/classes/elasticsearch.yml,
865                         WEB-INF/classes/portal.properties
866                     </packagingExcludes>
867                     <archive>
868                         <manifestEntries>
869                             <SDC-Version>${project.version}</SDC-Version>
870                         </manifestEntries>
871                         <manifest>
872                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
873                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
874                         </manifest>
875                     </archive>
876                     <attachClasses>true</attachClasses>
877                     <webResources combine.children="append">
878                         <resource>
879                             <directory>
880                                 ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}
881                             </directory>
882                             <includes>
883                                 <include>**/*.*</include>
884                             </includes>
885                             <targetPath>swagger-ui</targetPath>
886                         </resource>
887                     </webResources>
888                 </configuration>
889             </plugin>
890             <plugin>
891                 <groupId>com.github.sylvainlaurent.maven</groupId>
892                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
893                 <executions>
894                     <execution>
895                         <id>validate</id>
896                         <phase>validate</phase>
897                         <goals>
898                             <goal>validate</goal>
899                         </goals>
900                         <configuration>
901                             <validationSets>
902                                 <validationSet>
903                                     <includes>
904                                         <include>src/main/resources/**/*.y*ml</include>
905                                         <include>src/test/resources/**/*.y*ml</include>
906                                     </includes>
907                                     <excludes>
908                                         <exclude>src/test/resources/artifacts/pnfSoftwareInformation/**</exclude>
909                                     </excludes>
910                                 </validationSet>
911                                 <validationSet>
912                                     <includes>
913                                         <include>src/main/resources/**/*.json</include>
914                                         <include>src/test/resources/**/*.json</include>
915                                     </includes>
916                                 </validationSet>
917                             </validationSets>
918                             <skip>${skipYamlJsonValidator}</skip>
919                         </configuration>
920                     </execution>
921                 </executions>
922             </plugin>
923             <plugin>
924                 <groupId>com.jcabi</groupId>
925                 <artifactId>jcabi-maven-plugin</artifactId>
926                 <version>${jcabi.maven.plugin.version}</version>
927                 <dependencies>
928                     <dependency>
929                         <groupId>org.aspectj</groupId>
930                         <artifactId>aspectjtools</artifactId>
931                         <version>1.9.2</version>
932                     </dependency>
933                     <dependency>
934                         <groupId>org.aspectj</groupId>
935                         <artifactId>aspectjweaver</artifactId>
936                         <version>1.9.2</version>
937                     </dependency>
938                 </dependencies>
939                 <executions>
940                     <execution>
941                         <goals>
942                             <goal>ajc</goal>
943                         </goals>
944                     </execution>
945                 </executions>
946             </plugin>
947             <plugin>
948                 <groupId>org.apache.maven.plugins</groupId>
949                 <artifactId>maven-assembly-plugin</artifactId>
950                 <executions>
951                     <execution>
952                         <id>normatives</id>
953                         <phase>prepare-package</phase>
954                         <goals>
955                             <goal>single</goal>
956                         </goals>
957                         <configuration>
958                             <finalName>normatives</finalName>
959                             <appendAssemblyId>false</appendAssemblyId>
960                             <descriptors>
961                                 <descriptor>src/main/assembly/normatives.xml</descriptor>
962                             </descriptors>
963                         </configuration>
964                     </execution>
965                 </executions>
966             </plugin>
967             <plugin>
968                 <groupId>org.apache.maven.plugins</groupId>
969                 <artifactId>maven-clean-plugin</artifactId>
970                 <executions>
971                     <execution>
972                         <id>clean.sdc.backend.folder</id>
973                         <phase>clean</phase>
974                         <goals>
975                             <goal>clean</goal>
976                         </goals>
977                         <configuration>
978                             <filesets>
979                                 <fileset>
980                                     <directory>sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
981                                     </directory>
982                                     <followSymlinks>false</followSymlinks>
983                                     <includes>
984                                         <include>normatives.tar.gz</include>
985                                     </includes>
986                                 </fileset>
987                             </filesets>
988                         </configuration>
989                     </execution>
990                 </executions>
991             </plugin>
992         </plugins>
993
994         <pluginManagement>
995             <plugins>
996                 <!--This plugin's configuration is used to store Eclipse m2e settings
997                     only. It has no influence on the Maven build itself. -->
998                 <plugin>
999                     <groupId>org.eclipse.m2e</groupId>
1000                     <artifactId>lifecycle-mapping</artifactId>
1001                     <version>1.0.0</version>
1002                     <configuration>
1003                         <lifecycleMappingMetadata>
1004                             <pluginExecutions>
1005                                 <pluginExecution>
1006                                     <pluginExecutionFilter>
1007                                         <groupId>com.googlecode.maven-download-plugin</groupId>
1008                                         <artifactId>download-maven-plugin</artifactId>
1009                                         <versionRange>[1.2.1,)</versionRange>
1010                                         <goals>
1011                                             <goal>wget</goal>
1012                                         </goals>
1013                                     </pluginExecutionFilter>
1014                                 </pluginExecution>
1015
1016                                 <pluginExecution>
1017                                     <pluginExecutionFilter>
1018                                         <groupId>com.jcabi</groupId>
1019                                         <artifactId>jcabi-maven-plugin</artifactId>
1020                                         <versionRange>[0.0,)</versionRange>
1021                                         <goals>
1022                                             <goal>ajc</goal>
1023                                         </goals>
1024                                     </pluginExecutionFilter>
1025                                     <action>
1026                                         <execute/>
1027                                     </action>
1028                                 </pluginExecution>
1029
1030                             </pluginExecutions>
1031                         </lifecycleMappingMetadata>
1032                     </configuration>
1033                 </plugin>
1034             </plugins>
1035         </pluginManagement>
1036         <!-- Swagger Plugins End -->
1037     </build>
1038
1039     <profiles>
1040         <profile>
1041             <id>docker</id>
1042             <activation>
1043                 <activeByDefault>false</activeByDefault>
1044             </activation>
1045             <build>
1046                 <plugins>
1047                     <plugin>
1048                         <groupId>org.apache.maven.plugins</groupId>
1049                         <artifactId>maven-resources-plugin</artifactId>
1050                         <executions>
1051                             <execution>
1052                                 <id>copy-normatives</id>
1053                                 <phase>package</phase>
1054                                 <goals>
1055                                     <goal>copy-resources</goal>
1056                                 </goals>
1057                                 <configuration>
1058                                     <outputDirectory>
1059                                         sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/files/default
1060                                     </outputDirectory>
1061                                     <resources>
1062                                         <resource>
1063                                             <directory>${project.parent.basedir}/catalog-be/target</directory>
1064                                             <includes>
1065                                                 <include>normatives.tar.gz</include>
1066                                             </includes>
1067                                         </resource>
1068                                     </resources>
1069                                 </configuration>
1070                             </execution>
1071                             <execution>
1072                                 <id>copy-sdc-be-py</id>
1073                                 <phase>verify</phase>
1074                                 <goals>
1075                                     <goal>copy-resources</goal>
1076                                 </goals>
1077                                 <configuration>
1078                                     <outputDirectory>
1079                                         sdc-backend-init/
1080                                     </outputDirectory>
1081                                     <resources>
1082                                         <resource>
1083                                             <directory>${project.parent.basedir}/catalog-be/src/main/resources/
1084                                             </directory>
1085                                             <includes>
1086                                                 <include>scripts/sdcBePy/**</include>
1087                                                 <inculde>scripts/setup.py</inculde>
1088                                             </includes>
1089                                         </resource>
1090                                     </resources>
1091                                 </configuration>
1092                             </execution>
1093                         </executions>
1094                     </plugin>
1095                     <plugin>
1096                         <groupId>io.fabric8</groupId>
1097                         <artifactId>docker-maven-plugin</artifactId>
1098                         <configuration>
1099                             <apiVersion>${docker.api.version}</apiVersion>
1100                             <registry>nexus3.onap.org:10001</registry>
1101                             <authConfig>
1102                                 <pull>
1103                                     <username>docker</username>
1104                                     <password>docker</password>
1105                                 </pull>
1106                             </authConfig>
1107                             <images>
1108
1109                                 <!-- Build backend image -->
1110                                 <image>
1111                                     <name>onap/sdc-backend</name>
1112                                     <alias>sdc-backend</alias>
1113                                     <build>
1114                                         <cleanup>try</cleanup>
1115                                         <dockerFileDir>backend</dockerFileDir>
1116                                         <tags>
1117                                             <tag>latest</tag>
1118                                             <tag>
1119                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1120                                             </tag>
1121                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
1122                                         </tags>
1123                                         <assembly>
1124                                             <descriptor>backend/backend-files.xml</descriptor>
1125                                             <name>onap-sdc-backend</name>
1126                                         </assembly>
1127                                     </build>
1128                                 </image>
1129                                 <!-- Build backend-init image -->
1130                                 <image>
1131                                     <name>onap/sdc-backend-init</name>
1132                                     <alias>sdc-backend-init</alias>
1133                                     <build>
1134                                         <cleanup>try</cleanup>
1135                                         <dockerFileDir>${project.basedir}/sdc-backend-init</dockerFileDir>
1136                                         <tags>
1137                                             <tag>latest</tag>
1138                                             <tag>
1139                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
1140                                             </tag>
1141                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
1142                                         </tags>
1143                                     </build>
1144                                 </image>
1145                             </images>
1146                         </configuration>
1147                         <executions>
1148                             <execution>
1149                                 <id>clean-images</id>
1150                                 <phase>pre-clean</phase>
1151                                 <goals>
1152                                     <goal>remove</goal>
1153                                 </goals>
1154                                 <configuration>
1155                                     <removeAll>true</removeAll>
1156                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1157                                 </configuration>
1158                             </execution>
1159
1160                             <execution>
1161                                 <id>generate-images</id>
1162                                 <phase>install</phase>
1163                                 <goals>
1164                                     <goal>build</goal>
1165                                 </goals>
1166                             </execution>
1167
1168                             <execution>
1169                                 <id>push-images</id>
1170                                 <phase>deploy</phase>
1171                                 <goals>
1172                                     <goal>push</goal>
1173                                 </goals>
1174                                 <configuration>
1175                                     <image>onap/sdc-backend,onap/sdc-backend-init</image>
1176                                 </configuration>
1177                             </execution>
1178                         </executions>
1179                     </plugin>
1180                 </plugins>
1181             </build>
1182         </profile>
1183     </profiles>
1184 </project>