blob: 5386f2d864affcd466e4c373ba03931eefc7ee40 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<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>
Michael Landoa5445102018-03-04 14:53:33 +02005
Michael Lando451a3402017-02-19 10:28:42 +02006 <artifactId>catalog-ui</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +03007 <packaging>pom</packaging>
Michael Lando451a3402017-02-19 10:28:42 +02008
9
10 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
Michael Lando1276ee12018-11-01 16:25:31 +020013 <version>1.3.2-SNAPSHOT</version>
Michael Lando451a3402017-02-19 10:28:42 +020014 </parent>
15
16
17
18 <build>
19 <plugins>
Michael Lando451a3402017-02-19 10:28:42 +020020 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +030021 <groupId>org.apache.maven.plugins</groupId>
Michael Lando451a3402017-02-19 10:28:42 +020022 <artifactId>maven-clean-plugin</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +030023 <executions>
24 <execution>
25 <id>clean.fe.webapp.folder</id>
26 <phase>initialize</phase>
27 <goals>
28 <goal>clean</goal>
29 </goals>
30 <configuration>
Michael Lando451a3402017-02-19 10:28:42 +020031
Michael Landoed64b5e2017-06-09 03:19:04 +030032 <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>
Michael Lando451a3402017-02-19 10:28:42 +020049 </plugin>
50
ml636r0649e652017-02-20 21:10:54 +020051
ml636rfdb69b52017-02-19 17:04:06 +020052 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +030053 <groupId>org.apache.maven.plugins</groupId>
Michael Lando451a3402017-02-19 10:28:42 +020054 <artifactId>maven-resources-plugin</artifactId>
Michael Lando451a3402017-02-19 10:28:42 +020055 <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>
Michael Landoed64b5e2017-06-09 03:19:04 +030066 <directory>${project.basedir}/dist</directory>
Michael Lando451a3402017-02-19 10:28:42 +020067 <filtering>false</filtering>
68 </resource>
69 </resources>
70 </configuration>
71 </execution>
72 </executions>
73 </plugin>
Michael Landoed64b5e2017-06-09 03:19:04 +030074 <plugin>
75 <groupId>com.github.eirslett</groupId>
76 <artifactId>frontend-maven-plugin</artifactId>
Tal Gitelman153a3582017-07-03 20:16:55 +030077 <configuration>
78 <installDirectory>${project.parent.basedir}</installDirectory>
79 </configuration>
Michael Lando75aacbb2017-07-17 21:12:03 +030080
Michael Landoed64b5e2017-06-09 03:19:04 +030081 <executions>
Michael Landoed64b5e2017-06-09 03:19:04 +030082 <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>
Michael Lando75aacbb2017-07-17 21:12:03 +030093
Tal Gitelman153a3582017-07-03 20:16:55 +030094 <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>
Michael Landoed64b5e2017-06-09 03:19:04 +0300103
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>
Michael Landodc856bb2018-08-13 13:27:52 +0300111 <arguments>install --registry ${npm.registry}</arguments>
Michael Landoed64b5e2017-06-09 03:19:04 +0300112 </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>
dekstroza37843cb2018-05-18 14:42:24 +0100126 <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>
Michael Landoed64b5e2017-06-09 03:19:04 +0300155
Michael Lando451a3402017-02-19 10:28:42 +0200156 </plugins>
157 </build>
Michael Lando451a3402017-02-19 10:28:42 +0200158</project>
159