Fixing restconf_client.py script
[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.4.5-SNAPSHOT</version>
28         <relativePath>..</relativePath>
29     </parent>
30
31     <artifactId>ui-server</artifactId>
32     <version>0.4.5-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>com.github.eirslett</groupId>
49                 <artifactId>frontend-maven-plugin</artifactId>
50                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
51                 <version>1.3</version>
52                 <configuration>
53                     <nodeVersion>v8.12.0</nodeVersion>
54                     <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
55                     <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
56                     <installDirectory>./</installDirectory>
57                 </configuration>
58                 <executions>
59                     <execution>
60                         <id>install node and npm</id>
61                         <goals>
62                             <goal>install-node-and-npm</goal>
63                         </goals>
64                         <phase>generate-resources</phase>
65                     </execution>
66
67                     <execution>
68                         <id>npm install</id>
69                         <goals>
70                             <goal>npm</goal>
71                         </goals>
72
73                         <phase>generate-resources</phase>
74
75                         <configuration>
76                             <arguments>install</arguments>
77                         </configuration>
78                     </execution>
79
80                     <execution>
81                         <id>npm build</id>
82                         <goals>
83                             <goal>npm</goal>
84                         </goals>
85
86                         <phase>generate-resources</phase>
87
88                         <configuration>
89                             <arguments>run build</arguments>
90                         </configuration>
91                     </execution>
92
93                 </executions>
94             </plugin>
95             <plugin>
96                 <groupId>org.codehaus.groovy.maven</groupId>
97                 <artifactId>gmaven-plugin</artifactId>
98                 <version>1.0</version>
99                 <executions>
100                     <execution>
101                         <phase>validate</phase>
102                         <goals>
103                             <goal>execute</goal>
104                         </goals>
105                         <configuration>
106                             <source>${basedir}/../../TagVersion.groovy</source>
107                         </configuration>
108                     </execution>
109                 </executions>
110             </plugin>
111         </plugins>
112     </build>
113     
114         <profiles>
115         <profile>
116             <id>docker</id>
117             <build>
118                 <plugins>
119                     <plugin>
120                         <groupId>io.fabric8</groupId>
121                         <artifactId>docker-maven-plugin</artifactId>
122                         <version>0.26.1</version>
123                         <inherited>false</inherited>
124                         <configuration>
125                             <images>
126                                 <image>
127                                     <name>${image.name}</name>
128                                     <build>
129                                         <cleanup>try</cleanup>
130                                         <dockerFileDir>${basedir}</dockerFileDir>
131                                         <tags>
132                                             <tag>${project.docker.latestminortag.version}</tag>
133                                             <tag>${project.docker.latestfulltag.version}</tag>
134                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
135                                         </tags>
136                                     </build>
137                                 </image>
138                             </images>
139                             <verbose>true</verbose>
140                         </configuration>
141                         <executions>
142                             <execution>
143                                 <id>generate-images</id>
144                                 <phase>package</phase>
145                                 <goals>
146                                     <goal>build</goal>
147                                 </goals>
148                             </execution>
149                             <execution>
150                                 <id>push-images</id>
151                                 <phase>${docker.push.phase}</phase>
152                                 <goals>
153                                     <goal>build</goal>
154                                     <goal>push</goal>
155                                 </goals>
156                             </execution>
157                         </executions>
158                     </plugin>
159                 </plugins>
160             </build>
161         </profile>
162
163     </profiles>
164 </project>