blob: 6e85d65d2fc66010f2511e7244e1279e6d5fc535 [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>
ChrisC00acf3d2021-03-22 13:54:06 +010013 <version>1.9.0-SNAPSHOT</version>
ys969316a9fce2020-01-19 13:50:02 +020014 </parent>
Michael Lando451a3402017-02-19 10:28:42 +020015
andre.schmid4a4d45f2020-03-06 14:42:45 +000016 <properties>
17 <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable>
18 <sonar.sources>src/app/ng2</sonar.sources>
19 </properties>
20
ys969316a9fce2020-01-19 13:50:02 +020021 <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>
ys969316a9fce2020-01-19 13:50:02 +020034 <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>
andre.schmid4a4d45f2020-03-06 14:42:45 +000079 <installDirectory>${project.basedir}</installDirectory>
vasraz98954ad2021-04-18 15:09:25 +010080 <npmDownloadRoot>${npm.registry}</npmDownloadRoot>
ys969316a9fce2020-01-19 13:50:02 +020081 </configuration>
Michael Lando451a3402017-02-19 10:28:42 +020082
ys969316a9fce2020-01-19 13:50:02 +020083 <executions>
84 <execution>
85 <id>install node and npm</id>
86 <goals>
87 <goal>install-node-and-npm</goal>
88 </goals>
89 <configuration>
90 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
vasraz98954ad2021-04-18 15:09:25 +010091 <nodeVersion>v14.16.1</nodeVersion>
92 <npmVersion>6.14.12</npmVersion>
ys969316a9fce2020-01-19 13:50:02 +020093 </configuration>
94 </execution>
Michael Lando451a3402017-02-19 10:28:42 +020095
ys969316a9fce2020-01-19 13:50:02 +020096 <execution>
97 <id>npm set progress off</id>
98 <goals>
99 <goal>npm</goal>
100 </goals>
101 <configuration>
102 <arguments>set progress=false</arguments>
103 </configuration>
104 </execution>
Michael Lando451a3402017-02-19 10:28:42 +0200105
ys969316a9fce2020-01-19 13:50:02 +0200106 <execution>
107 <id>npm install</id>
108 <goals>
109 <goal>npm</goal>
110 </goals>
111 <!-- Optional configuration which provides for running any npm command -->
112 <configuration>
vasraz98954ad2021-04-18 15:09:25 +0100113 <arguments>install</arguments>
ys969316a9fce2020-01-19 13:50:02 +0200114 </configuration>
115 </execution>
ml636r0649e652017-02-20 21:10:54 +0200116
ys969316a9fce2020-01-19 13:50:02 +0200117 <execution>
118 <id>npm run build</id>
119 <goals>
120 <goal>npm</goal>
121 </goals>
122 <configuration>
123 <arguments>run build:prod</arguments>
124 </configuration>
125 </execution>
andre.schmid4a4d45f2020-03-06 14:42:45 +0000126
127 <execution>
128 <id>npm_test</id>
129 <goals>
130 <goal>npm</goal>
131 </goals>
132 <phase>test</phase>
133 <configuration>
134 <arguments>test</arguments>
135 <skip>${skipTests}</skip>
136 </configuration>
137 </execution>
ys969316a9fce2020-01-19 13:50:02 +0200138 </executions>
139 </plugin>
140 <plugin>
141 <groupId>com.github.sylvainlaurent.maven</groupId>
142 <artifactId>yaml-json-validator-maven-plugin</artifactId>
143 <executions>
144 <execution>
145 <id>validate</id>
146 <phase>validate</phase>
147 <goals>
148 <goal>validate</goal>
149 </goals>
150 <configuration>
151 <validationSets>
152 <validationSet>
153 <includes>
154 <include>src/main/resources/**/*.y*ml</include>
155 <include>src/test/resources/**/*.y*ml</include>
156 </includes>
157 </validationSet>
158 <validationSet>
159 <includes>
160 <include>src/main/resources/**/*.json</include>
161 <include>src/test/resources/**/*.json</include>
162 </includes>
163 </validationSet>
164 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +0200165 <skip>${skipYamlJsonValidator}</skip>
ys969316a9fce2020-01-19 13:50:02 +0200166 </configuration>
167 </execution>
168 </executions>
169 </plugin>
Michael Lando75aacbb2017-07-17 21:12:03 +0300170
ys969316a9fce2020-01-19 13:50:02 +0200171 </plugins>
172 </build>
Michael Lando451a3402017-02-19 10:28:42 +0200173</project>