update sdc version in master
[sdc.git] / catalog-fe / pom.xml
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
4         <modelVersion>4.0.0</modelVersion>
5         <artifactId>catalog-fe</artifactId>
6         <packaging>war</packaging>
7
8         <parent>
9                 <groupId>org.openecomp.sdc</groupId>
10                 <artifactId>sdc-main</artifactId>
11                 <version>1.4.0-SNAPSHOT</version>
12         </parent>
13
14         <dependencies>
15
16                 <dependency>
17                         <groupId>org.functionaljava</groupId>
18                         <artifactId>functionaljava</artifactId>
19                         <version>${functionaljava.version}</version>
20                         <scope>compile</scope>
21                 </dependency>
22
23                 <dependency>
24                         <groupId>org.openecomp.sdc</groupId>
25                         <artifactId>security-utils</artifactId>
26                         <version>${project.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                 <dependency>
100                         <groupId>javax.mail</groupId>
101                         <artifactId>javax.mail-api</artifactId>
102                         <version>1.5.2</version>
103                         <scope>compile</scope>
104                 </dependency>
105
106                 <dependency>
107                         <groupId>org.glassfish.jersey.media</groupId>
108                         <artifactId>jersey-media-json-jackson</artifactId>
109                         <version>${jersey-bom.version}</version>
110                         <scope>compile</scope>
111                 </dependency>
112
113                 <dependency>
114                         <groupId>org.glassfish.jersey.inject</groupId>
115                         <artifactId>jersey-hk2</artifactId>
116                         <version>${jersey-bom.version}</version>
117                 </dependency>
118
119                 <dependency>
120                         <groupId>com.fasterxml.jackson.core</groupId>
121                         <artifactId>jackson-core</artifactId>
122                         <version>${jackson.version}</version>
123                         <scope>compile</scope>
124                 </dependency>
125
126                 <dependency>
127                         <groupId>com.fasterxml.jackson.core</groupId>
128                         <artifactId>jackson-databind</artifactId>
129                         <version>${jackson.version}</version>
130                         <scope>compile</scope>
131                 </dependency>
132
133                 <dependency>
134                         <groupId>com.fasterxml.jackson.core</groupId>
135                         <artifactId>jackson-annotations</artifactId>
136                         <version>${jackson-annotations.version}</version>
137                         <scope>compile</scope>
138                 </dependency>
139
140                 <!-- http client -->
141                 <dependency>
142                         <groupId>org.apache.httpcomponents</groupId>
143                         <artifactId>httpclient</artifactId>
144                         <version>${httpclient.version}</version>
145                         <scope>compile</scope>
146                 </dependency>
147
148                 <dependency>
149                         <groupId>org.apache.httpcomponents</groupId>
150                         <artifactId>httpcore</artifactId>
151                         <version>${httpcore.version}</version>
152                         <scope>compile</scope>
153                 </dependency>
154
155                 <dependency>
156                         <groupId>org.apache.httpcomponents</groupId>
157                         <artifactId>httpmime</artifactId>
158                         <version>${httpclient.version}</version>
159                         <scope>compile</scope>
160                 </dependency>
161
162                 <dependency>
163                         <groupId>commons-logging</groupId>
164                         <artifactId>commons-logging</artifactId>
165                         <version>${commons-logging}</version>
166                         <scope>compile</scope>
167                 </dependency>
168
169                 <dependency>
170                         <groupId>commons-codec</groupId>
171                         <artifactId>commons-codec</artifactId>
172                         <version>${commons-codec}</version>
173                         <scope>compile</scope>
174                 </dependency>
175                 <!-- http client END -->
176
177                 <dependency>
178                         <groupId>javax.servlet</groupId>
179                         <artifactId>javax.servlet-api</artifactId>
180                         <version>${servlet-api.version}</version>
181                         <scope>provided</scope>
182                 </dependency>
183
184                 <!-- JSON and YAML Parsing -->
185                 <dependency>
186                         <groupId>com.fasterxml.jackson.dataformat</groupId>
187                         <artifactId>jackson-dataformat-yaml</artifactId>
188                         <version>${jackson.version}</version>
189                         <scope>compile</scope>
190                 </dependency>
191
192                 <!-- Jetty Proxy -->
193                 <dependency>
194                         <groupId>org.eclipse.jetty</groupId>
195                         <artifactId>jetty-proxy</artifactId>
196                         <version>${jetty.version}</version>
197                         <scope>compile</scope>
198                 </dependency>
199
200                 <dependency>
201                         <groupId>org.eclipse.jetty</groupId>
202                         <artifactId>jetty-servlets</artifactId>
203                         <version>${jetty.version}</version>
204                         <scope>compile</scope>
205                 </dependency>
206
207                 <!-- Proxy servlet -->
208                 <dependency>
209                         <groupId>com.google.guava</groupId>
210                         <artifactId>guava</artifactId>
211                         <version>${guava.version}</version>
212                         <scope>compile</scope>
213                 </dependency>
214
215                 <!-- Aspects -->
216                 <dependency>
217                         <groupId>com.jcabi</groupId>
218                         <artifactId>jcabi-aspects</artifactId>
219                         <version>${jcabi.version}</version>
220                         <scope>compile</scope>
221                 </dependency>
222                 <dependency>
223                         <groupId>org.aspectj</groupId>
224                         <artifactId>aspectjrt</artifactId>
225                         <version>${aspectjrt.version}</version>
226                         <scope>compile</scope>
227                 </dependency>
228
229                 <dependency>
230                         <groupId>org.apache.commons</groupId>
231                         <artifactId>commons-lang3</artifactId>
232                         <version>${lang3.version}</version>
233                         <scope>compile</scope>
234                 </dependency>
235
236                 <!-- Inserted for ECOMP Portal Integration -->
237                 <dependency>
238                         <groupId>org.onap.portal.sdk</groupId>
239                         <artifactId>epsdk-fw</artifactId>
240                         <version>${ecomp.version}</version>
241                         <scope>compile</scope>
242                         <exclusions>
243                                 <exclusion>
244                                         <groupId>com.att.nsa</groupId>
245                                         <artifactId>cambriaClient</artifactId>
246                                 </exclusion>
247                                 <exclusion>
248                                         <artifactId>slf4j-log4j12</artifactId>
249                                         <groupId>org.slf4j</groupId>
250                                 </exclusion>
251                         </exclusions>
252                 </dependency>
253                 <!-- System metrics -->
254                 <dependency>
255                         <groupId>org.fusesource</groupId>
256                         <artifactId>sigar</artifactId>
257                         <version>${sigar.version}</version>
258                         <scope>compile</scope>
259                 </dependency>
260
261                 <!-- TEST -->
262                 <dependency>
263                         <groupId>org.glassfish.jersey.test-framework.providers</groupId>
264                         <artifactId>jersey-test-framework-provider-bundle</artifactId>
265                         <version>${jersey-bom.version}</version>
266                         <type>pom</type>
267                         <scope>test</scope>
268                 </dependency>
269
270                 <dependency>
271                         <groupId>org.eclipse.jetty</groupId>
272                         <artifactId>jetty-servlet</artifactId>
273                         <version>${jetty.version}</version>
274                         <scope>test</scope>
275                 </dependency>
276
277                 <dependency>
278                         <groupId>org.eclipse.jetty</groupId>
279                         <artifactId>jetty-webapp</artifactId>
280                         <version>${jetty.version}</version>
281                         <scope>test</scope>
282                 </dependency>
283
284                 <dependency>
285                         <groupId>org.mockito</groupId>
286                         <artifactId>mockito-core</artifactId>
287                         <scope>test</scope>
288                 </dependency>
289
290         </dependencies>
291
292         <build>
293
294                 <finalName>${project.artifactId}-${project.version}</finalName>
295
296                 <plugins>
297                         <plugin>
298                                 <groupId>org.apache.maven.plugins</groupId>
299                                 <artifactId>maven-war-plugin</artifactId>
300                                 <configuration>
301                                         <archive>
302                                                 <manifest>
303                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
304                                                 </manifest>
305                                         </archive>
306
307                                         <webResources>
308                                                 <resource>
309                                                         <directory>src/main/resources</directory>
310                                                 </resource>
311                                         </webResources>
312                                 </configuration>
313                         </plugin>
314
315                         <plugin>
316                                 <groupId>org.eclipse.jetty</groupId>
317                                 <artifactId>jetty-maven-plugin</artifactId>
318                                 <version>${jetty.version}</version>
319                                 <configuration>
320                                         <webApp>
321                                                 <contextPath>/</contextPath>
322                                                 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
323                                         </webApp>
324                                         <war>${project.build.directory}/${project.build.finalName}.war</war>
325                                 </configuration>
326                         </plugin>
327
328                         <plugin>
329                                 <groupId>org.apache.maven.plugins</groupId>
330                                 <artifactId>maven-deploy-plugin</artifactId>
331                                 <configuration>
332                                         <skip>true</skip>
333                                 </configuration>
334                         </plugin>
335
336                         <plugin>
337                                 <groupId>com.jcabi</groupId>
338                                 <artifactId>jcabi-maven-plugin</artifactId>
339                                 <version>${jcabi.maven.plugin.version}</version>
340                                 <executions>
341                                         <execution>
342                                                 <goals>
343                                                         <goal>ajc</goal>
344                                                 </goals>
345                                         </execution>
346                                 </executions>
347                         </plugin>
348                         <plugin>
349                                 <groupId>org.apache.maven.plugins</groupId>
350                                 <artifactId>maven-clean-plugin</artifactId>
351                                 <executions>
352                                         <execution>
353                                                 <id>clean.catalog.fe.folder</id>
354                                                 <phase>clean</phase>
355                                                 <goals>
356                                                         <goal>clean</goal>
357                                                 </goals>
358                                                 <configuration>
359                                                         <filesets>
360                                                                 <!-- FE WAR's -->
361                                                                 <fileset>
362                                                                         <directory>${project.parent.basedir}/catalog-fe/sdc-frontend/</directory>
363                                                                         <followSymlinks>false</followSymlinks>
364                                                                         <includes>
365                                                                                 <include>*.war</include>
366                                                                         </includes>
367                                                                 </fileset>
368                                                         </filesets>
369                                                 </configuration>
370                                         </execution>
371                                 </executions>
372                         </plugin>
373                         <plugin>
374                                 <groupId>com.github.sylvainlaurent.maven</groupId>
375                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
376                                 <executions>
377                                         <execution>
378                                                 <id>validate</id>
379                                                 <phase>validate</phase>
380                                                 <goals>
381                                                         <goal>validate</goal>
382                                                 </goals>
383                                                 <configuration>
384                                                         <validationSets>
385                                                                 <validationSet>
386                                                                         <includes>
387                                                                                 <include>src/main/resources/**/*.y*ml</include>
388                                                                                 <include>src/test/resources/**/*.y*ml</include>
389                                                                         </includes>
390                                                                 </validationSet>
391                                                                 <validationSet>
392                                                                         <includes>
393                                                                                 <include>src/main/resources/**/*.json</include>
394                                                                                 <include>src/test/resources/**/*.json</include>
395                                                                         </includes>
396                                                                 </validationSet>
397                                                         </validationSets>
398                                                 </configuration>
399                                         </execution>
400                                 </executions>
401                         </plugin>
402
403                 </plugins>
404
405                 <pluginManagement>
406                         <plugins>
407                                 <!--This plugin's configuration is used to store Eclipse m2e settings
408                                         only. It has no influence on the Maven build itself. -->
409                                 <plugin>
410                                         <groupId>org.eclipse.m2e</groupId>
411                                         <artifactId>lifecycle-mapping</artifactId>
412                                         <version>1.0.0</version>
413                                         <configuration>
414                                                 <lifecycleMappingMetadata>
415                                                         <pluginExecutions>
416
417                                                                 <pluginExecution>
418                                                                         <pluginExecutionFilter>
419                                                                                 <groupId>com.jcabi</groupId>
420                                                                                 <artifactId>jcabi-maven-plugin</artifactId>
421                                                                                 <versionRange>[0.0,)</versionRange>
422                                                                                 <goals>
423                                                                                         <goal>ajc</goal>
424                                                                                 </goals>
425                                                                         </pluginExecutionFilter>
426                                                                         <action>
427                                                                                 <execute />
428                                                                         </action>
429                                                                 </pluginExecution>
430
431                                                         </pluginExecutions>
432                                                 </lifecycleMappingMetadata>
433                                         </configuration>
434                                 </plugin>
435
436                                 <!-- jacbi (log injection) -->
437
438                         </plugins>
439                 </pluginManagement>
440
441         </build>
442
443         <profiles>
444                 <profile>
445                         <id>catalog</id>
446                         <activation>
447                                 <activeByDefault>false</activeByDefault>
448                         </activation>
449
450                         <build>
451                                 <finalName>${project.artifactId}-${project.version}</finalName>
452                         </build>
453                 </profile>
454                 <profile>
455                         <id>docker-staging</id>
456                         <properties>
457                                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
458                                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
459                         </properties>
460                 </profile>
461
462                 <profile>
463                         <id>docker</id>
464                         <activation>
465                                 <activeByDefault>false</activeByDefault>
466                         </activation>
467                         <properties>
468                                 <docker.username>docker</docker.username>
469                                 <docker.password>docker</docker.password>
470                         </properties>
471                         <build>
472                                 <plugins>
473                                         <plugin>
474                                                 <groupId>org.apache.maven.plugins</groupId>
475                                                 <artifactId>maven-resources-plugin</artifactId>
476                                                 <executions>
477                                                         <execution>
478                                                                 <id>copy-resources-fe</id>
479                                                                 <phase>verify</phase>
480                                                                 <goals>
481                                                                         <goal>copy-resources</goal>
482                                                                 </goals>
483                                                                 <configuration>
484                                                                         <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
485                                                                         <resources>
486                                                                                 <resource>
487                                                                                         <directory>${project.parent.basedir}/catalog-fe/target</directory>
488                                                                                         <includes>
489                                                                                                 <include>catalog-fe-${project.version}.war</include>
490                                                                                         </includes>
491                                                                                 </resource>
492                                                                                 <resource>
493                                                                                         <directory>${project.parent.basedir}/openecomp-ui/target</directory>
494                                                                                         <includes>
495                                                                                                 <include>onboarding-fe-${project.version}.war</include>
496                                                                                         </includes>
497                                                                                 </resource>
498                                                                         </resources>
499                                                                 </configuration>
500                                                         </execution>
501                                                 </executions>
502                                         </plugin>
503                                         <plugin>
504                                                 <groupId>io.fabric8</groupId>
505                                                 <artifactId>docker-maven-plugin</artifactId>
506                                                 <configuration>
507                                                         <apiVersion>1.23</apiVersion>
508                                                         <registry>nexus3.onap.org:10001</registry>
509                                                         <authConfig>
510                                                                 <pull>
511                                                                         <username>${docker.username}</username>
512                                                                         <password>${docker.password}</password>
513                                                                 </pull>
514                                                         </authConfig>
515                                                         <images>
516
517                                                                 <!-- Build frontend image -->
518                                                                 <image>
519                                                                         <name>onap/sdc-frontend</name>
520                                                                         <alias>sdc-frontend</alias>
521                                                                         <build>
522                                                                                 <cleanup>try</cleanup>
523                                                                                 <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
524                                                                                 <tags>
525                                                                                         <tag>${docker.tag}</tag>
526                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
527                                                                                 </tags>
528                                                                         </build>
529                                                                 </image>
530                                                         </images>
531                                                 </configuration>
532                                                 <executions>
533                                                         <execution>
534                                                                 <id>clean-images</id>
535                                                                 <phase>pre-clean</phase>
536                                                                 <goals>
537                                                                         <goal>remove</goal>
538                                                                 </goals>
539                                                                 <configuration>
540                                                                         <removeAll>true</removeAll>
541                                                                         <image>onap/sdc-frontend</image>
542                                                                 </configuration>
543                                                         </execution>
544
545                                                         <execution>
546                                                                 <id>generate-images</id>
547                                                                 <phase>install</phase>
548                                                                 <goals>
549                                                                         <goal>build</goal>
550                                                                 </goals>
551                                                         </execution>
552
553                                                         <execution>
554                                                                 <id>push-images</id>
555                                                                 <phase>deploy</phase>
556                                                                 <goals>
557                                                                         <goal>push</goal>
558                                                                 </goals>
559                                                                 <configuration>
560                                                                         <image>onap/sdc-frontend</image>
561                                                                 </configuration>
562                                                         </execution>
563                                                 </executions>
564                                         </plugin>
565                                 </plugins>
566                         </build>
567                 </profile>
568         </profiles>
569 </project>