3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5 <modelVersion>4.0.0</modelVersion>
7 <!-- This is the Maven project object model (POM) file for VID web application
8 based on the ECOMP SDK distribution. This file stands alone; it does not
9 inherit from a parent maven module. -->
10 <groupId>org.onap.vid</groupId>
11 <artifactId>vid-webpack-master</artifactId>
12 <version>6.0.5-SNAPSHOT</version>
13 <packaging>war</packaging>
15 <description>VID UI</description>
18 <encoding>UTF-8</encoding>
19 <!--<springframework.version>5.1.6.RELEASE</springframework.version>-->
20 <!--<hibernate.version>4.3.11.Final</hibernate.version>-->
21 <!-- Skip assembling the zip by default -->
22 <skipassembly>true</skipassembly>
23 <!-- Tests usually require some setup that maven cannot do, so skip. -->
24 <skiptests>false</skiptests>
25 <!-- this should be commented for local debugging -->
26 <!-- <deployenv>local</deployenv> -->
27 <nexusproxy>https://nexus.onap.org</nexusproxy>
28 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
29 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
30 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
32 <eirslett.version>1.9.1</eirslett.version>
33 <node.version>v10.19.0</node.version>
34 <npm.version>6.14.4</npm.version>
43 <name>ONAP - Staging Repository</name>
44 <url>${nexusproxy}/${stagingNexusPath}</url>
47 <id>ecomp-releases</id>
48 <name>OpenECOMP - Release Repository</name>
49 <url>${nexusproxy}/${releaseNexusPath}</url>
52 <id>ecomp-snapshots</id>
53 <name>OpenECOMP - Snapshot Repository</name>
54 <url>${nexusproxy}/${snapshotNexusPath}</url>
58 <name>ecomp onap public Repository</name>
59 <url>https://nexus.onap.org/content/groups/public</url>
63 <distributionManagement>
65 <id>ecomp-releases</id>
66 <name>VID Release Repository</name>
67 <url>${nexusproxy}/${releaseNexusPath}</url>
70 <id>ecomp-snapshots</id>
71 <name>VID Snapshot Repository</name>
72 <url>${nexusproxy}/${snapshotNexusPath}</url>
75 </distributionManagement>
80 <id>if-not-webpack</id>
83 <name>skipModernUi</name>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-antrun-plugin</artifactId>
92 <version>1.8</version>
95 <id>make-empty-dist</id>
96 <phase>validate</phase>
99 <mkdir dir="${project.basedir}/dist/"/>
100 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
101 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make
102 the war creation through.
121 <name>skipModernUi</name>
124 <activeByDefault>true</activeByDefault>
129 <groupId>com.github.eirslett</groupId>
130 <artifactId>frontend-maven-plugin</artifactId>
131 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
132 <version>${eirslett.version}</version>
137 <id>install node and npm</id>
139 <goal>install-node-and-npm</goal>
142 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
143 <npmVersion>${npm.version}</npmVersion>
144 <nodeVersion>${node.version}</nodeVersion>
153 <!-- Optional configuration which provides for running any npm command -->
155 <arguments>install</arguments>
156 <environmentVariables>
157 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
158 </environmentVariables>
168 <arguments>run ${NPM_CMD}</arguments>
182 <groupId>com.github.eirslett</groupId>
183 <artifactId>frontend-maven-plugin</artifactId>
184 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
185 <version>${eirslett.version}</version>
190 <id>install node and npm</id>
192 <goal>install-node-and-npm</goal>
195 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
196 <npmVersion>${npm.version}</npmVersion>
197 <nodeVersion>${node.version}</nodeVersion>
202 <id>npm install cypress</id>
206 <!-- Optional configuration which provides for running any npm command -->
208 <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
213 <id>npm run cypress</id>
218 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
219 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
231 <finalName>vid-webpack-master</finalName>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-war-plugin</artifactId>
237 <version>3.2.3</version>
241 <!-- this is relative to the pom.xml directory -->
242 <directory>dist</directory>
243 <targetPath>app/ui</targetPath>
246 <webXml>src/WEB-INF/web.xml</webXml>
250 <artifactId>maven-clean-plugin</artifactId>
254 <directory>dist</directory>