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