Bump SDC to 1.6.3
[sdc.git] / catalog-ui / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5     <modelVersion>4.0.0</modelVersion>
6
7     <artifactId>catalog-ui</artifactId>
8     <packaging>pom</packaging>
9
10     <parent>
11         <groupId>org.openecomp.sdc</groupId>
12         <artifactId>sdc-main</artifactId>
13         <version>1.6.3-SNAPSHOT</version>
14     </parent>
15
16     <build>
17         <plugins>
18             <plugin>
19                 <groupId>org.apache.maven.plugins</groupId>
20                 <artifactId>maven-clean-plugin</artifactId>
21                 <executions>
22                     <execution>
23                         <id>clean.fe.webapp.folder</id>
24                         <phase>initialize</phase>
25                         <goals>
26                             <goal>clean</goal>
27                         </goals>
28                         <configuration>
29
30                             <filesets>
31                                 <fileset>
32                                     <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory>
33                                     <includes>
34                                         <include>**/*</include>
35                                         <include>*</include>
36                                     </includes>
37                                     <excludes>
38                                         <exclude>META-INF/*</exclude>
39                                         <exclude>WEB-INF/*</exclude>
40                                     </excludes>
41                                     <followSymlinks>false</followSymlinks>
42                                 </fileset>
43                             </filesets>
44                         </configuration>
45                     </execution>
46                 </executions>
47             </plugin>
48             <plugin>
49                 <groupId>org.apache.maven.plugins</groupId>
50                 <artifactId>maven-resources-plugin</artifactId>
51                 <executions>
52                     <execution>
53                         <id>copy-resources</id>
54                         <phase>package</phase>
55                         <goals>
56                             <goal>copy-resources</goal>
57                         </goals>
58                         <configuration>
59                             <outputDirectory>${project.parent.basedir}/catalog-fe/src/main/webapp
60                             </outputDirectory>
61                             <resources>
62                                 <resource>
63                                     <directory>${project.basedir}/dist</directory>
64                                     <filtering>false</filtering>
65                                 </resource>
66                             </resources>
67                         </configuration>
68                     </execution>
69                 </executions>
70             </plugin>
71             <plugin>
72                 <groupId>com.github.eirslett</groupId>
73                 <artifactId>frontend-maven-plugin</artifactId>
74                 <configuration>
75                     <installDirectory>${project.parent.basedir}</installDirectory>
76                 </configuration>
77
78                 <executions>
79                     <execution>
80                         <id>install node and npm</id>
81                         <goals>
82                             <goal>install-node-and-npm</goal>
83                         </goals>
84                         <configuration>
85                             <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
86                             <nodeVersion>v10.17.0</nodeVersion>
87                             <npmVersion>6.11.3</npmVersion>
88                         </configuration>
89                     </execution>
90
91                     <execution>
92                         <id>npm set progress off</id>
93                         <goals>
94                             <goal>npm</goal>
95                         </goals>
96                         <configuration>
97                             <arguments>set progress=false</arguments>
98                         </configuration>
99                     </execution>
100
101                     <execution>
102                         <id>npm install</id>
103                         <goals>
104                             <goal>npm</goal>
105                         </goals>
106                         <!-- Optional configuration which provides for running any npm command -->
107                         <configuration>
108                             <arguments>install --registry ${npm.registry}</arguments>
109                         </configuration>
110                     </execution>
111
112                     <execution>
113                         <id>npm run build</id>
114                         <goals>
115                             <goal>npm</goal>
116                         </goals>
117                         <configuration>
118                             <arguments>run build:prod</arguments>
119                         </configuration>
120                     </execution>
121                 </executions>
122             </plugin>
123             <plugin>
124                 <groupId>com.github.sylvainlaurent.maven</groupId>
125                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
126                 <executions>
127                     <execution>
128                         <id>validate</id>
129                         <phase>validate</phase>
130                         <goals>
131                             <goal>validate</goal>
132                         </goals>
133                         <configuration>
134                             <validationSets>
135                                 <validationSet>
136                                     <includes>
137                                         <include>src/main/resources/**/*.y*ml</include>
138                                         <include>src/test/resources/**/*.y*ml</include>
139                                     </includes>
140                                 </validationSet>
141                                 <validationSet>
142                                     <includes>
143                                         <include>src/main/resources/**/*.json</include>
144                                         <include>src/test/resources/**/*.json</include>
145                                     </includes>
146                                 </validationSet>
147                             </validationSets>
148                         </configuration>
149                     </execution>
150                 </executions>
151             </plugin>
152
153         </plugins>
154     </build>
155 </project>