14fee0be51117a997cd9c4d4abcdee2d3d1b25ea
[ccsdk/cds.git] / cds-ui / designer-client / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2020 Orange. 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>cds-ui</artifactId>
27         <version>1.4.1-SNAPSHOT</version>
28         <relativePath>..</relativePath>
29     </parent>
30
31     <artifactId>cds-ui-designer-client</artifactId>
32     <packaging>pom</packaging>
33
34     <name>CDS UI - Designer Client</name>
35
36     <build>
37         <plugins>
38             <plugin>
39                 <groupId>com.github.eirslett</groupId>
40                 <artifactId>frontend-maven-plugin</artifactId>
41                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
42                 <version>1.12.1</version>
43                 <configuration>
44                     <nodeVersion>v13.7.0</nodeVersion>
45                     <npmVersion>6.13.6</npmVersion>
46                     <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
47                     <installDirectory>./</installDirectory>
48                 </configuration>
49                 <executions>
50                     <execution>
51                         <id>install node and npm</id>
52                         <goals>
53                             <goal>install-node-and-npm</goal>
54                         </goals>
55                         <phase>generate-resources</phase>
56                     </execution>
57                     <execution>
58                         <id>npm install</id>
59                         <goals>
60                             <goal>npm</goal>
61                         </goals>
62                         <phase>generate-resources</phase>
63                         <configuration>
64                             <arguments>install</arguments>
65                         </configuration>
66                     </execution>
67                     <execution>
68                         <id>npm build</id>
69                         <goals>
70                             <goal>npm</goal>
71                         </goals>
72                         <phase>generate-resources</phase>
73                         <configuration>
74                             <arguments>run build</arguments>
75                             <skip>${npm.skipBuild}</skip>
76                         </configuration>
77                     </execution>
78                     <execution>
79                         <id>npm build local</id>
80                         <goals>
81                             <goal>npm</goal>
82                         </goals>
83                         <phase>generate-resources</phase>
84                         <configuration>
85                             <arguments>run build:local</arguments>
86                             <skip>${npm.skipBuildLocal}</skip>
87                         </configuration>
88                     </execution>
89                 </executions>
90             </plugin>
91         </plugins>
92     </build>
93 </project>