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