Update SDC version
[sdc.git] / catalog-fe / 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
5   <modelVersion>4.0.0</modelVersion>
6   <artifactId>catalog-fe</artifactId>
7   <packaging>war</packaging>
8
9   <parent>
10     <groupId>org.openecomp.sdc</groupId>
11     <artifactId>sdc-main</artifactId>
12     <version>1.8.4-SNAPSHOT</version>
13   </parent>
14
15   <dependencies>
16
17     <dependency>
18       <groupId>org.projectlombok</groupId>
19       <artifactId>lombok</artifactId>
20       <version>${lombok.version}</version>
21     </dependency>
22
23     <dependency>
24       <groupId>org.functionaljava</groupId>
25       <artifactId>functionaljava</artifactId>
26       <version>${functionaljava.version}</version>
27       <scope>compile</scope>
28     </dependency>
29
30     <dependency>
31       <groupId>org.openecomp.sdc</groupId>
32       <artifactId>common-app-api</artifactId>
33       <version>${project.version}</version>
34     </dependency>
35
36     <!-- File changes listener -->
37     <dependency>
38       <groupId>ch.qos.logback</groupId>
39       <artifactId>logback-classic</artifactId>
40       <version>${logback.version}</version>
41       <scope>compile</scope>
42     </dependency>
43
44     <dependency>
45       <groupId>org.codehaus.groovy</groupId>
46       <artifactId>groovy</artifactId>
47       <scope>compile</scope>
48     </dependency>
49
50     <dependency>
51       <groupId>org.codehaus.janino</groupId>
52       <artifactId>janino</artifactId>
53       <version>${janino.version}</version>
54       <scope>compile</scope>
55     </dependency>
56
57     <dependency>
58       <groupId>org.yaml</groupId>
59       <artifactId>snakeyaml</artifactId>
60       <version>${snakeyaml.version}</version>
61       <scope>compile</scope>
62     </dependency>
63
64     <dependency>
65       <groupId>org.apache.commons</groupId>
66       <artifactId>commons-jci-core</artifactId>
67       <version>${commons-jci-core.version}</version>
68       <scope>compile</scope>
69     </dependency>
70
71     <dependency>
72       <groupId>com.google.code.gson</groupId>
73       <artifactId>gson</artifactId>
74       <version>${gson.version}</version>
75       <scope>compile</scope>
76     </dependency>
77
78     <dependency>
79       <groupId>org.glassfish.jersey.containers</groupId>
80       <artifactId>jersey-container-servlet</artifactId>
81       <version>${jersey-bom.version}</version>
82       <scope>compile</scope>
83     </dependency>
84
85     <dependency>
86       <groupId>org.glassfish.jersey.media</groupId>
87       <artifactId>jersey-media-multipart</artifactId>
88       <version>${jersey-bom.version}</version>
89       <scope>compile</scope>
90     </dependency>
91
92     <dependency>
93       <groupId>org.glassfish.jersey.media</groupId>
94       <artifactId>jersey-media-moxy</artifactId>
95       <version>${jersey-bom.version}</version>
96       <scope>compile</scope>
97     </dependency>
98
99
100     <dependency>
101       <groupId>org.glassfish.jersey.media</groupId>
102       <artifactId>jersey-media-json-jackson</artifactId>
103       <version>${jersey-bom.version}</version>
104       <scope>compile</scope>
105     </dependency>
106
107     <dependency>
108       <groupId>org.glassfish.jersey.inject</groupId>
109       <artifactId>jersey-hk2</artifactId>
110       <version>${jersey-bom.version}</version>
111     </dependency>
112
113     <dependency>
114       <groupId>com.fasterxml.jackson.core</groupId>
115       <artifactId>jackson-core</artifactId>
116       <version>${jackson.version}</version>
117       <scope>compile</scope>
118     </dependency>
119
120     <dependency>
121       <groupId>com.fasterxml.jackson.core</groupId>
122       <artifactId>jackson-databind</artifactId>
123       <version>${jackson.version}</version>
124       <exclusions>
125         <exclusion>
126           <groupId>com.fasterxml.jackson.core</groupId>
127           <artifactId>jackson-core</artifactId>
128         </exclusion>
129       </exclusions>
130     </dependency>
131
132     <dependency>
133       <groupId>com.fasterxml.jackson.core</groupId>
134       <artifactId>jackson-annotations</artifactId>
135       <version>${jackson-annotations.version}</version>
136       <scope>compile</scope>
137     </dependency>
138
139     <!-- http client -->
140     <dependency>
141       <groupId>org.apache.httpcomponents</groupId>
142       <artifactId>httpclient</artifactId>
143       <version>${httpclient.version}</version>
144       <scope>compile</scope>
145     </dependency>
146
147     <dependency>
148       <groupId>org.apache.httpcomponents</groupId>
149       <artifactId>httpcore</artifactId>
150       <version>${httpcore.version}</version>
151       <scope>compile</scope>
152     </dependency>
153
154     <dependency>
155       <groupId>org.apache.httpcomponents</groupId>
156       <artifactId>httpmime</artifactId>
157       <version>${httpclient.version}</version>
158       <scope>compile</scope>
159     </dependency>
160
161     <dependency>
162       <groupId>commons-logging</groupId>
163       <artifactId>commons-logging</artifactId>
164       <version>${commons-logging}</version>
165       <scope>compile</scope>
166     </dependency>
167
168     <dependency>
169       <groupId>commons-codec</groupId>
170       <artifactId>commons-codec</artifactId>
171       <version>${commons-codec}</version>
172       <scope>compile</scope>
173     </dependency>
174     <!-- http client END -->
175
176     <dependency>
177       <groupId>javax.servlet</groupId>
178       <artifactId>javax.servlet-api</artifactId>
179       <version>${servlet-api.version}</version>
180       <scope>provided</scope>
181     </dependency>
182
183     <!-- JSON and YAML Parsing -->
184     <dependency>
185       <groupId>com.fasterxml.jackson.dataformat</groupId>
186       <artifactId>jackson-dataformat-yaml</artifactId>
187       <version>${jackson.version}</version>
188       <scope>compile</scope>
189     </dependency>
190
191     <!-- Jetty Proxy -->
192     <dependency>
193       <groupId>org.eclipse.jetty</groupId>
194       <artifactId>jetty-proxy</artifactId>
195       <version>${jetty.version}</version>
196       <scope>compile</scope>
197       <exclusions>
198         <exclusion>
199           <groupId>org.eclipse.jetty</groupId>
200           <artifactId>jetty-http</artifactId>
201         </exclusion>
202       </exclusions>
203     </dependency>
204
205     <dependency>
206       <groupId>org.eclipse.jetty</groupId>
207       <artifactId>jetty-servlets</artifactId>
208       <version>${jetty.version}</version>
209       <scope>compile</scope>
210       <exclusions>
211         <exclusion>
212           <groupId>org.eclipse.jetty</groupId>
213           <artifactId>jetty-http</artifactId>
214         </exclusion>
215       </exclusions>
216     </dependency>
217
218     <!-- Proxy servlet -->
219     <dependency>
220       <groupId>com.google.guava</groupId>
221       <artifactId>guava</artifactId>
222       <version>${guava.version}</version>
223       <scope>compile</scope>
224     </dependency>
225
226     <!-- Aspects -->
227     <dependency>
228       <groupId>com.jcabi</groupId>
229       <artifactId>jcabi-aspects</artifactId>
230       <version>${jcabi.version}</version>
231       <scope>compile</scope>
232     </dependency>
233     <dependency>
234       <groupId>org.aspectj</groupId>
235       <artifactId>aspectjrt</artifactId>
236       <version>${aspectjrt.version}</version>
237       <scope>compile</scope>
238     </dependency>
239
240     <dependency>
241       <groupId>org.apache.commons</groupId>
242       <artifactId>commons-lang3</artifactId>
243       <version>${lang3.version}</version>
244       <scope>compile</scope>
245     </dependency>
246
247         <dependency>
248             <groupId>javax.xml.bind</groupId>
249             <artifactId>jaxb-api</artifactId>
250             <version>${jaxb-api.version}</version>
251             <scope>compile</scope>
252         </dependency>
253
254         <!-- Inserted for ECOMP Portal Integration -->
255         <dependency>
256             <groupId>org.owasp.esapi</groupId>
257             <artifactId>esapi</artifactId>
258             <version>2.2.0.0</version>
259           <exclusions>
260             <exclusion>
261               <groupId>log4j</groupId>
262               <artifactId>log4j</artifactId>
263             </exclusion>
264           </exclusions>
265         </dependency>
266         <dependency>
267             <groupId>org.onap.portal.sdk</groupId>
268             <artifactId>epsdk-fw</artifactId>
269             <version>${ecomp.version}</version>
270             <scope>compile</scope>
271             <exclusions>
272                 <exclusion>
273                     <groupId>com.att.nsa</groupId>
274                     <artifactId>cambriaClient</artifactId>
275                 </exclusion>
276                 <exclusion>
277                     <artifactId>slf4j-log4j12</artifactId>
278                     <groupId>org.slf4j</groupId>
279                 </exclusion>
280                 <exclusion>
281                     <artifactId>log4j</artifactId>
282                     <groupId>log4j</groupId>
283                 </exclusion>
284             </exclusions>
285         </dependency>
286         <!-- System metrics -->
287         <dependency>
288             <groupId>org.fusesource</groupId>
289             <artifactId>sigar</artifactId>
290             <version>${sigar.version}</version>
291             <scope>compile</scope>
292             <exclusions>
293                 <exclusion>
294                     <groupId>log4j</groupId>
295                     <artifactId>log4j</artifactId>
296                 </exclusion>
297             </exclusions>
298         </dependency>
299
300     <!-- TEST -->
301     <dependency>
302       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
303       <artifactId>jersey-test-framework-provider-bundle</artifactId>
304       <version>${jersey-bom.version}</version>
305       <type>pom</type>
306       <scope>test</scope>
307       <exclusions>
308         <exclusion>
309           <groupId>org.eclipse.jetty</groupId>
310           <artifactId>jetty-server</artifactId>
311         </exclusion>
312         <exclusion>
313           <groupId>org.eclipse.jetty</groupId>
314           <artifactId>jetty-continuation</artifactId>
315         </exclusion>
316       </exclusions>
317     </dependency>
318
319     <dependency>
320       <groupId>com.google.code.bean-matchers</groupId>
321       <artifactId>bean-matchers</artifactId>
322       <version>${bean-matchers.version}</version>
323       <scope>test</scope>
324     </dependency>
325
326     <dependency>
327       <groupId>org.eclipse.jetty</groupId>
328       <artifactId>jetty-servlet</artifactId>
329       <version>${jetty.version}</version>
330       <scope>test</scope>
331       <exclusions>
332         <exclusion>
333           <groupId>org.eclipse.jetty</groupId>
334           <artifactId>jetty-server</artifactId>
335         </exclusion>
336       </exclusions>
337     </dependency>
338
339     <dependency>
340       <groupId>org.eclipse.jetty</groupId>
341       <artifactId>jetty-webapp</artifactId>
342       <version>${jetty.version}</version>
343       <scope>test</scope>
344       <exclusions>
345         <exclusion>
346           <groupId>org.eclipse.jetty</groupId>
347           <artifactId>jetty-servlet</artifactId>
348         </exclusion>
349       </exclusions>
350     </dependency>
351     <dependency>
352       <groupId>org.eclipse.jetty</groupId>
353       <artifactId>jetty-http</artifactId>
354       <version>${jetty.version}</version>
355     </dependency>
356
357   </dependencies>
358
359   <build>
360
361     <finalName>${project.artifactId}-${project.version}</finalName>
362
363     <plugins>
364       <plugin>
365         <groupId>org.apache.maven.plugins</groupId>
366         <artifactId>maven-war-plugin</artifactId>
367         <configuration>
368           <archive>
369             <manifest>
370               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
371             </manifest>
372           </archive>
373
374           <webResources>
375             <resource>
376               <directory>src/main/resources</directory>
377             </resource>
378           </webResources>
379         </configuration>
380       </plugin>
381
382       <plugin>
383         <groupId>org.eclipse.jetty</groupId>
384         <artifactId>jetty-maven-plugin</artifactId>
385         <version>${jetty.version}</version>
386         <configuration>
387           <webApp>
388             <contextPath>/</contextPath>
389             <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
390           </webApp>
391           <war>${project.build.directory}/${project.build.finalName}.war</war>
392         </configuration>
393       </plugin>
394
395       <plugin>
396         <groupId>org.apache.maven.plugins</groupId>
397         <artifactId>maven-deploy-plugin</artifactId>
398         <configuration>
399           <skip>true</skip>
400         </configuration>
401       </plugin>
402
403       <plugin>
404         <groupId>com.jcabi</groupId>
405         <artifactId>jcabi-maven-plugin</artifactId>
406         <version>${jcabi.maven.plugin.version}</version>
407         <dependencies>
408             <dependency>
409                 <groupId>org.aspectj</groupId>
410                 <artifactId>aspectjtools</artifactId>
411                 <version>1.9.2</version>
412             </dependency>
413             <dependency>
414                 <groupId>org.aspectj</groupId>
415                 <artifactId>aspectjweaver</artifactId>
416                 <version>1.9.2</version>
417             </dependency>
418         </dependencies>
419         <executions>
420           <execution>
421             <goals>
422               <goal>ajc</goal>
423             </goals>
424           </execution>
425         </executions>
426       </plugin>
427       <plugin>
428         <groupId>org.apache.maven.plugins</groupId>
429         <artifactId>maven-clean-plugin</artifactId>
430         <executions>
431           <execution>
432             <id>clean.catalog.fe.folder</id>
433             <phase>clean</phase>
434             <goals>
435               <goal>clean</goal>
436             </goals>
437             <configuration>
438               <filesets>
439                 <!-- FE WAR's -->
440                 <fileset>
441                   <directory>${project.parent.basedir}/catalog-fe/sdc-frontend/</directory>
442                   <followSymlinks>false</followSymlinks>
443                   <includes>
444                     <include>*.war</include>
445                   </includes>
446                 </fileset>
447               </filesets>
448             </configuration>
449           </execution>
450         </executions>
451       </plugin>
452       <plugin>
453         <groupId>com.github.sylvainlaurent.maven</groupId>
454         <artifactId>yaml-json-validator-maven-plugin</artifactId>
455         <executions>
456           <execution>
457             <id>validate</id>
458             <phase>validate</phase>
459             <goals>
460               <goal>validate</goal>
461             </goals>
462             <configuration>
463               <validationSets>
464                 <validationSet>
465                   <includes>
466                     <include>src/main/resources/**/*.y*ml</include>
467                     <include>src/test/resources/**/*.y*ml</include>
468                   </includes>
469                 </validationSet>
470                 <validationSet>
471                   <includes>
472                     <include>src/main/resources/**/*.json</include>
473                     <include>src/test/resources/**/*.json</include>
474                   </includes>
475                 </validationSet>
476               </validationSets>
477               <skip>${skipYamlJsonValidator}</skip>
478             </configuration>
479           </execution>
480         </executions>
481       </plugin>
482
483     </plugins>
484
485     <pluginManagement>
486       <plugins>
487         <!--This plugin's configuration is used to store Eclipse m2e settings
488           only. It has no influence on the Maven build itself. -->
489         <plugin>
490           <groupId>org.eclipse.m2e</groupId>
491           <artifactId>lifecycle-mapping</artifactId>
492           <version>1.0.0</version>
493           <configuration>
494             <lifecycleMappingMetadata>
495               <pluginExecutions>
496
497                 <pluginExecution>
498                   <pluginExecutionFilter>
499                     <groupId>com.jcabi</groupId>
500                     <artifactId>jcabi-maven-plugin</artifactId>
501                     <versionRange>[0.0,)</versionRange>
502                     <goals>
503                       <goal>ajc</goal>
504                     </goals>
505                   </pluginExecutionFilter>
506                   <action>
507                     <execute/>
508                   </action>
509                 </pluginExecution>
510
511               </pluginExecutions>
512             </lifecycleMappingMetadata>
513           </configuration>
514         </plugin>
515
516         <!-- jacbi (log injection) -->
517
518       </plugins>
519     </pluginManagement>
520
521   </build>
522
523   <profiles>
524     <profile>
525       <id>catalog</id>
526       <activation>
527         <activeByDefault>false</activeByDefault>
528       </activation>
529
530       <build>
531         <finalName>${project.artifactId}-${project.version}</finalName>
532       </build>
533     </profile>
534     <profile>
535       <id>docker</id>
536       <activation>
537         <activeByDefault>false</activeByDefault>
538       </activation>
539       <properties>
540         <docker.username>docker</docker.username>
541         <docker.password>docker</docker.password>
542       </properties>
543       <build>
544         <plugins>
545           <plugin>
546             <groupId>org.apache.maven.plugins</groupId>
547             <artifactId>maven-resources-plugin</artifactId>
548             <executions>
549               <execution>
550                 <id>copy-resources-fe</id>
551                 <phase>verify</phase>
552                 <goals>
553                   <goal>copy-resources</goal>
554                 </goals>
555                 <configuration>
556                   <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
557                   <resources>
558                     <resource>
559                       <directory>${project.parent.basedir}/catalog-fe/target</directory>
560                       <includes>
561                         <include>catalog-fe-${project.version}.war</include>
562                       </includes>
563                     </resource>
564                     <resource>
565                       <directory>${project.parent.basedir}/openecomp-ui/target</directory>
566                       <includes>
567                         <include>onboarding-fe-${project.version}.war</include>
568                       </includes>
569                     </resource>
570                   </resources>
571                 </configuration>
572               </execution>
573             </executions>
574           </plugin>
575           <plugin>
576             <groupId>io.fabric8</groupId>
577             <artifactId>docker-maven-plugin</artifactId>
578             <configuration>
579               <apiVersion>${docker.api.version}</apiVersion>
580               <registry>nexus3.onap.org:10001</registry>
581               <authConfig>
582                 <pull>
583                   <username>${docker.username}</username>
584                   <password>${docker.password}</password>
585                 </pull>
586               </authConfig>
587               <images>
588
589                 <!-- Build frontend image -->
590                 <image>
591                   <name>onap/sdc-frontend</name>
592                   <alias>sdc-frontend</alias>
593                   <build>
594                     <cleanup>try</cleanup>
595                     <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
596                     <tags>
597                       <tag>latest</tag>
598                       <tag>
599                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
600                       </tag>
601                       <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
602                     </tags>
603                   </build>
604                 </image>
605               </images>
606             </configuration>
607             <executions>
608               <execution>
609                 <id>clean-images</id>
610                 <phase>pre-clean</phase>
611                 <goals>
612                   <goal>remove</goal>
613                 </goals>
614                 <configuration>
615                   <removeAll>true</removeAll>
616                   <image>onap/sdc-frontend</image>
617                 </configuration>
618               </execution>
619
620               <execution>
621                 <id>generate-images</id>
622                 <phase>install</phase>
623                 <goals>
624                   <goal>build</goal>
625                 </goals>
626               </execution>
627
628               <execution>
629                 <id>push-images</id>
630                 <phase>deploy</phase>
631                 <goals>
632                   <goal>push</goal>
633                 </goals>
634                 <configuration>
635                   <image>onap/sdc-frontend</image>
636                 </configuration>
637               </execution>
638             </executions>
639           </plugin>
640         </plugins>
641       </build>
642     </profile>
643   </profiles>
644 </project>