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