blob: 88a64eba5a5424377957ee4693a173ff50fedd2d [file] [log] [blame]
vasrazf1f5a352019-11-26 17:20:27 +00001<project xmlns="http://maven.apache.org/POM/4.0.0"
ys969316a9fce2020-01-19 13:50:02 +02002 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">
Michael Lando451a3402017-02-19 10:28:42 +02004
ys969316a9fce2020-01-19 13:50:02 +02005 <modelVersion>4.0.0</modelVersion>
Michael Lando451a3402017-02-19 10:28:42 +02006
ys969316a9fce2020-01-19 13:50:02 +02007 <artifactId>catalog-ui</artifactId>
8 <packaging>pom</packaging>
Michael Lando451a3402017-02-19 10:28:42 +02009
ys969316a9fce2020-01-19 13:50:02 +020010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
13 <version>1.6.0-SNAPSHOT</version>
14 </parent>
Michael Lando451a3402017-02-19 10:28:42 +020015
ys969316a9fce2020-01-19 13:50:02 +020016 <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>
Michael Lando451a3402017-02-19 10:28:42 +020029
ys969316a9fce2020-01-19 13:50:02 +020030 <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>
Michael Lando451a3402017-02-19 10:28:42 +020077
ys969316a9fce2020-01-19 13:50:02 +020078 <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>
Michael Lando451a3402017-02-19 10:28:42 +020090
ys969316a9fce2020-01-19 13:50:02 +020091 <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>
Michael Lando451a3402017-02-19 10:28:42 +0200100
ys969316a9fce2020-01-19 13:50:02 +0200101 <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>
ml636r0649e652017-02-20 21:10:54 +0200111
ys969316a9fce2020-01-19 13:50:02 +0200112 <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>
Michael Lando75aacbb2017-07-17 21:12:03 +0300152
ys969316a9fce2020-01-19 13:50:02 +0200153 </plugins>
154 </build>
Michael Lando451a3402017-02-19 10:28:42 +0200155</project>