Update versions for London
[ccsdk/cds.git] / cds-ui / server / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2018-19 IBM Intellectual Property. All rights reserved.
6 ===================================================================
7
8 Unless otherwise specified, all software contained herein is licensed
9 under the Apache License, Version 2.0 (the License);
10 you may not use this software except in compliance with the License.
11 You may obtain a copy of the License at
12
13     http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END============================================ -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.ccsdk.cds</groupId>
27         <artifactId>cds-ui</artifactId>
28         <version>1.5.0-SNAPSHOT</version>
29         <relativePath>..</relativePath>
30     </parent>
31
32     <artifactId>cds-ui-server</artifactId>
33     <packaging>pom</packaging>
34
35     <name>CDS UI - Server</name>
36
37     <properties>
38         <image.name>onap/ccsdk-cds-ui-server</image.name>
39     </properties>
40
41     <build>
42         <plugins>
43             <plugin>
44                 <groupId>org.apache.maven.plugins</groupId>
45                 <artifactId>maven-dependency-plugin</artifactId>
46                 <version>3.1.1</version>
47                 <executions>
48                     <execution>
49                         <id>unpack-blueprint-grpc-proto</id>
50                         <phase>generate-resources</phase>
51                         <goals>
52                             <goal>unpack</goal>
53                         </goals>
54                         <configuration>
55                             <artifactItems>
56                                 <artifactItem>
57                                     <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
58                                     <artifactId>blueprint-proto</artifactId>
59                                     <version>${ccsdk.cds.version}</version>
60                                     <type>jar</type>
61                                     <overWrite>true</overWrite>
62                                     <outputDirectory>${project.build.directory}/generated/proto-definition/proto</outputDirectory>
63                                     <includes>**/*.proto</includes>
64                                 </artifactItem>
65                             </artifactItems>
66                         </configuration>
67                     </execution>
68                 </executions>
69             </plugin>
70
71             <plugin>
72                 <groupId>com.github.eirslett</groupId>
73                 <artifactId>frontend-maven-plugin</artifactId>
74                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
75                 <version>1.12.1</version>
76                 <configuration>
77                     <nodeVersion>v16.14.0</nodeVersion>
78                     <npmVersion>8.3.0</npmVersion>
79                     <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
80                     <installDirectory>./</installDirectory>
81                 </configuration>
82                 <executions>
83                     <execution>
84                         <id>install node and npm</id>
85                         <goals>
86                             <goal>install-node-and-npm</goal>
87                         </goals>
88                         <phase>generate-resources</phase>
89                     </execution>
90                     <execution>
91                         <id>npm install</id>
92                         <goals>
93                             <goal>npm</goal>
94                         </goals>
95                         <phase>generate-resources</phase>
96                         <configuration>
97                             <arguments>install</arguments>
98                         </configuration>
99                     </execution>
100                     <execution>
101                         <id>npm build</id>
102                         <goals>
103                             <goal>npm</goal>
104                         </goals>
105                         <phase>generate-resources</phase>
106                         <configuration>
107                             <arguments>run build</arguments>
108                         </configuration>
109                     </execution>
110                 </executions>
111             </plugin>
112             <plugin>
113                 <groupId>org.codehaus.groovy.maven</groupId>
114                 <artifactId>gmaven-plugin</artifactId>
115                 <version>1.0</version>
116                 <executions>
117                     <execution>
118                         <phase>validate</phase>
119                         <goals>
120                             <goal>execute</goal>
121                         </goals>
122                         <configuration>
123                             <source>${basedir}/../../TagVersion.groovy</source>
124                         </configuration>
125                     </execution>
126                 </executions>
127             </plugin>
128         </plugins>
129     </build>
130
131     <profiles>
132         <profile>
133             <id>docker</id>
134             <build>
135                 <plugins>
136                     <plugin>
137                         <groupId>io.fabric8</groupId>
138                         <artifactId>docker-maven-plugin</artifactId>
139                         <version>0.34.0</version>
140                         <inherited>false</inherited>
141                         <configuration>
142                             <images>
143                                 <image>
144                                     <name>${image.name}</name>
145                                     <build>
146                                         <cleanup>try</cleanup>
147                                         <noCache>true</noCache>
148                                         <dockerFileDir>${basedir}</dockerFileDir>
149                                         <tags>
150                                             <tag>${project.docker.latestminortag.version}</tag>
151                                             <tag>${project.docker.latestfulltag.version}</tag>
152                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
153                                         </tags>
154                                     </build>
155                                 </image>
156                             </images>
157                             <verbose>${docker.verbose}</verbose>
158                             <skipPush>${docker.skip.push}</skipPush>
159                         </configuration>
160                         <executions>
161                             <execution>
162                                 <id>build-push-images</id>
163                                 <goals>
164                                     <goal>build</goal>
165                                     <goal>push</goal>
166                                 </goals>
167                             </execution>
168                         </executions>
169                     </plugin>
170                 </plugins>
171             </build>
172         </profile>
173     </profiles>
174 </project>