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