Update version to 1.7.1
[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.7.1-SNAPSHOT</version>
14     </parent>
15
16     <properties>
17         <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable>
18         <sonar.sources>src/app/ng2</sonar.sources>
19     </properties>
20
21     <build>
22         <plugins>
23             <plugin>
24                 <groupId>org.apache.maven.plugins</groupId>
25                 <artifactId>maven-clean-plugin</artifactId>
26                 <executions>
27                     <execution>
28                         <id>clean.fe.webapp.folder</id>
29                         <phase>initialize</phase>
30                         <goals>
31                             <goal>clean</goal>
32                         </goals>
33                         <configuration>
34                             <filesets>
35                                 <fileset>
36                                     <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory>
37                                     <includes>
38                                         <include>**/*</include>
39                                         <include>*</include>
40                                     </includes>
41                                     <excludes>
42                                         <exclude>META-INF/*</exclude>
43                                         <exclude>WEB-INF/*</exclude>
44                                     </excludes>
45                                     <followSymlinks>false</followSymlinks>
46                                 </fileset>
47                             </filesets>
48                         </configuration>
49                     </execution>
50                 </executions>
51             </plugin>
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
64                             </outputDirectory>
65                             <resources>
66                                 <resource>
67                                     <directory>${project.basedir}/dist</directory>
68                                     <filtering>false</filtering>
69                                 </resource>
70                             </resources>
71                         </configuration>
72                     </execution>
73                 </executions>
74             </plugin>
75             <plugin>
76                 <groupId>com.github.eirslett</groupId>
77                 <artifactId>frontend-maven-plugin</artifactId>
78                 <configuration>
79                     <installDirectory>${project.basedir}</installDirectory>
80                 </configuration>
81
82                 <executions>
83                     <execution>
84                         <id>install node and npm</id>
85                         <goals>
86                             <goal>install-node-and-npm</goal>
87                         </goals>
88                         <configuration>
89                             <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
90                             <nodeVersion>v10.17.0</nodeVersion>
91                             <npmVersion>6.11.3</npmVersion>
92                         </configuration>
93                     </execution>
94
95                     <execution>
96                         <id>npm set progress off</id>
97                         <goals>
98                             <goal>npm</goal>
99                         </goals>
100                         <configuration>
101                             <arguments>set progress=false</arguments>
102                         </configuration>
103                     </execution>
104
105                     <execution>
106                         <id>npm install</id>
107                         <goals>
108                             <goal>npm</goal>
109                         </goals>
110                         <!-- Optional configuration which provides for running any npm command -->
111                         <configuration>
112                             <arguments>install --registry ${npm.registry}</arguments>
113                         </configuration>
114                     </execution>
115
116                     <execution>
117                         <id>npm run build</id>
118                         <goals>
119                             <goal>npm</goal>
120                         </goals>
121                         <configuration>
122                             <arguments>run build:prod</arguments>
123                         </configuration>
124                     </execution>
125
126                     <execution>
127                         <id>npm_test</id>
128                         <goals>
129                             <goal>npm</goal>
130                         </goals>
131                         <phase>test</phase>
132                         <configuration>
133                             <arguments>test</arguments>
134                             <skip>${skipTests}</skip>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>com.github.sylvainlaurent.maven</groupId>
141                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
142                 <executions>
143                     <execution>
144                         <id>validate</id>
145                         <phase>validate</phase>
146                         <goals>
147                             <goal>validate</goal>
148                         </goals>
149                         <configuration>
150                             <validationSets>
151                                 <validationSet>
152                                     <includes>
153                                         <include>src/main/resources/**/*.y*ml</include>
154                                         <include>src/test/resources/**/*.y*ml</include>
155                                     </includes>
156                                 </validationSet>
157                                 <validationSet>
158                                     <includes>
159                                         <include>src/main/resources/**/*.json</include>
160                                         <include>src/test/resources/**/*.json</include>
161                                     </includes>
162                                 </validationSet>
163                             </validationSets>
164                             <skip>${skipYamlJsonValidator}</skip>
165                         </configuration>
166                     </execution>
167                 </executions>
168             </plugin>
169
170         </plugins>
171     </build>
172 </project>