c485cb27a8e2c4e3c1fcca7182f3d046a62fe333
[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.1.0-SNAPSHOT</version>
29         <relativePath>..</relativePath>
30     </parent>
31
32     <artifactId>cds-ui-server</artifactId>
33     <packaging>pom</packaging>
34
35     <name>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.3</version>
76                 <configuration>
77                     <nodeVersion>v8.12.0</nodeVersion>
78                     <npmVersion>6.4.1</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
91                     <execution>
92                         <id>npm install</id>
93                         <goals>
94                             <goal>npm</goal>
95                         </goals>
96
97                         <phase>generate-resources</phase>
98
99                         <configuration>
100                             <arguments>install</arguments>
101                         </configuration>
102                     </execution>
103
104                     <execution>
105                         <id>npm build</id>
106                         <goals>
107                             <goal>npm</goal>
108                         </goals>
109
110                         <phase>generate-resources</phase>
111
112                         <configuration>
113                             <arguments>run build</arguments>
114                         </configuration>
115                     </execution>
116
117                 </executions>
118             </plugin>
119             <plugin>
120                 <groupId>org.codehaus.groovy.maven</groupId>
121                 <artifactId>gmaven-plugin</artifactId>
122                 <version>1.0</version>
123                 <executions>
124                     <execution>
125                         <phase>validate</phase>
126                         <goals>
127                             <goal>execute</goal>
128                         </goals>
129                         <configuration>
130                             <source>${basedir}/../../TagVersion.groovy</source>
131                         </configuration>
132                     </execution>
133                 </executions>
134             </plugin>
135         </plugins>
136     </build>
137
138     <profiles>
139         <profile>
140             <id>docker</id>
141             <build>
142                 <plugins>
143                     <plugin>
144                         <groupId>io.fabric8</groupId>
145                         <artifactId>docker-maven-plugin</artifactId>
146                         <version>0.34.0</version>
147                         <inherited>false</inherited>
148                         <configuration>
149                             <images>
150                                 <image>
151                                     <name>${image.name}</name>
152                                     <build>
153                                         <cleanup>try</cleanup>
154                                         <dockerFileDir>${basedir}</dockerFileDir>
155                                         <tags>
156                                             <tag>${project.docker.latestminortag.version}</tag>
157                                             <tag>${project.docker.latestfulltag.version}</tag>
158                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
159                                         </tags>
160                                     </build>
161                                 </image>
162                             </images>
163                             <verbose>${docker.verbose}</verbose>
164                             <skipPush>${docker.skip.push}</skipPush>
165                         </configuration>
166                         <executions>
167                             <execution>
168                                 <id>build-push-images</id>
169                                 <phase>${docker.push.phase}</phase>
170                                 <goals>
171                                     <goal>build</goal>
172                                     <goal>push</goal>
173                                 </goals>
174                             </execution>
175                         </executions>
176                     </plugin>
177                 </plugins>
178             </build>
179         </profile>
180
181     </profiles>
182 </project>