Merge "Remove Save metadta and Save Sources Button"
[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 <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">
22     <modelVersion>4.0.0</modelVersion>
23
24     <parent>
25         <groupId>org.onap.ccsdk.cds</groupId>
26         <artifactId>ui</artifactId>
27         <version>0.7.0-SNAPSHOT</version>
28         <relativePath>..</relativePath>
29     </parent>
30
31     <artifactId>ui-server</artifactId>
32     <version>0.7.0-SNAPSHOT</version>
33     <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>
41         <image.name>onap/ccsdk-cds-ui-server</image.name>
42         <docker.push.phase>deploy</docker.push.phase>
43     </properties>
44
45     <build>
46         <plugins>
47             <plugin>
48                 <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>
76                 <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>
82                     <npmVersion>6.4.1</npmVersion>
83                     <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
84                     <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>
123             <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>
139         </plugins>
140     </build>
141
142     <profiles>
143         <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>
192 </project>