blob: dedf129ab9ec0a93d19a7a9c6b7a3ae8337adeaa [file] [log] [blame]
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -04001<?xml version="1.0" encoding="UTF-8"?>
Arundathi Patil85db5b02019-01-17 14:10:08 +05302<!--
3============LICENSE_START==========================================
4===================================================================
5Copyright (C) 2018-19 IBM Intellectual Property. All rights reserved.
6===================================================================
7
8Unless otherwise specified, all software contained herein is licensed
9under the Apache License, Version 2.0 (the License);
10you may not use this software except in compliance with the License.
11You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15Unless required by applicable law or agreed to in writing, software
16distributed under the License is distributed on an "AS IS" BASIS,
17WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18See the License for the specific language governing permissions and
19limitations under the License.
20============LICENSE_END============================================ -->
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -040021<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">
Arundathi Patil85db5b02019-01-17 14:10:08 +053022 <modelVersion>4.0.0</modelVersion>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040023
Timoney, Dan (dt5972)a76ceb42019-01-24 09:53:56 -050024 <parent>
25 <groupId>org.onap.ccsdk.cds</groupId>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040026 <artifactId>ui</artifactId>
Timoney, Dan (dt5972)1926b372019-09-11 10:54:30 -040027 <version>0.7.0-SNAPSHOT</version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040028 <relativePath>..</relativePath>
Timoney, Dan (dt5972)a76ceb42019-01-24 09:53:56 -050029 </parent>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040030
31 <artifactId>ui-server</artifactId>
Timoney, Dan (dt5972)1926b372019-09-11 10:54:30 -040032 <version>0.7.0-SNAPSHOT</version>
Arundathi Patil85db5b02019-01-17 14:10:08 +053033 <packaging>pom</packaging>
34
35 <name>cds-ui-server</name>
36
37 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <npm.executable>npm</npm.executable>
40 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Chandan Ghosh5d55c412019-04-09 15:18:05 +053041 <image.name>onap/ccsdk-cds-ui-server</image.name>
42 <docker.push.phase>deploy</docker.push.phase>
Arundathi Patil85db5b02019-01-17 14:10:08 +053043 </properties>
44
Arundathi Patil85db5b02019-01-17 14:10:08 +053045 <build>
46 <plugins>
47 <plugin>
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040048 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-dependency-plugin</artifactId>
50 <version>3.1.1</version>
51 <executions>
52 <execution>
53 <id>unpack-blueprint-grpc-proto</id>
54 <phase>generate-resources</phase>
55 <goals>
56 <goal>unpack</goal>
57 </goals>
58 <configuration>
59 <artifactItems>
60 <artifactItem>
61 <groupId>org.onap.ccsdk.cds.components</groupId>
62 <artifactId>proto-definition</artifactId>
63 <version>${project.version}</version>
64 <type>jar</type>
65 <overWrite>true</overWrite>
66 <outputDirectory>${project.build.directory}/generated/proto-definition/proto</outputDirectory>
67 <includes>**/*.proto</includes>
68 </artifactItem>
69 </artifactItems>
70 </configuration>
71 </execution>
72 </executions>
73 </plugin>
74
75 <plugin>
Arundathi Patil85db5b02019-01-17 14:10:08 +053076 <groupId>com.github.eirslett</groupId>
77 <artifactId>frontend-maven-plugin</artifactId>
78 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
79 <version>1.3</version>
80 <configuration>
81 <nodeVersion>v8.12.0</nodeVersion>
Timoney, Dan (dt5972)dfe52052019-07-17 11:07:44 -040082 <npmVersion>6.4.1</npmVersion>
Arundathi Patil85db5b02019-01-17 14:10:08 +053083 <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
Arundathi Patil85db5b02019-01-17 14:10:08 +053084 <installDirectory>./</installDirectory>
85 </configuration>
86 <executions>
87 <execution>
88 <id>install node and npm</id>
89 <goals>
90 <goal>install-node-and-npm</goal>
91 </goals>
92 <phase>generate-resources</phase>
93 </execution>
94
95 <execution>
96 <id>npm install</id>
97 <goals>
98 <goal>npm</goal>
99 </goals>
100
101 <phase>generate-resources</phase>
102
103 <configuration>
104 <arguments>install</arguments>
105 </configuration>
106 </execution>
107
108 <execution>
109 <id>npm build</id>
110 <goals>
111 <goal>npm</goal>
112 </goals>
113
114 <phase>generate-resources</phase>
115
116 <configuration>
117 <arguments>run build</arguments>
118 </configuration>
119 </execution>
120
121 </executions>
122 </plugin>
Chandan Ghosh5d55c412019-04-09 15:18:05 +0530123 <plugin>
124 <groupId>org.codehaus.groovy.maven</groupId>
125 <artifactId>gmaven-plugin</artifactId>
126 <version>1.0</version>
127 <executions>
128 <execution>
129 <phase>validate</phase>
130 <goals>
131 <goal>execute</goal>
132 </goals>
133 <configuration>
134 <source>${basedir}/../../TagVersion.groovy</source>
135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
Arundathi Patil85db5b02019-01-17 14:10:08 +0530139 </plugins>
140 </build>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000141
142 <profiles>
Chandan Ghosh5d55c412019-04-09 15:18:05 +0530143 <profile>
144 <id>docker</id>
145 <build>
146 <plugins>
147 <plugin>
148 <groupId>io.fabric8</groupId>
149 <artifactId>docker-maven-plugin</artifactId>
150 <version>0.26.1</version>
151 <inherited>false</inherited>
152 <configuration>
153 <images>
154 <image>
155 <name>${image.name}</name>
156 <build>
157 <cleanup>try</cleanup>
158 <dockerFileDir>${basedir}</dockerFileDir>
159 <tags>
160 <tag>${project.docker.latestminortag.version}</tag>
161 <tag>${project.docker.latestfulltag.version}</tag>
162 <tag>${project.docker.latesttagtimestamp.version}</tag>
163 </tags>
164 </build>
165 </image>
166 </images>
167 <verbose>true</verbose>
168 </configuration>
169 <executions>
170 <execution>
171 <id>generate-images</id>
172 <phase>package</phase>
173 <goals>
174 <goal>build</goal>
175 </goals>
176 </execution>
177 <execution>
178 <id>push-images</id>
179 <phase>${docker.push.phase}</phase>
180 <goals>
181 <goal>build</goal>
182 <goal>push</goal>
183 </goals>
184 </execution>
185 </executions>
186 </plugin>
187 </plugins>
188 </build>
189 </profile>
190
191 </profiles>
Arundathi Patil85db5b02019-01-17 14:10:08 +0530192</project>