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>5.0.2-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 <!--<jackson.version>2.6.3</jackson.version>-->
22 <!-- Skip assembling the zip by default -->
23 <skipassembly>true</skipassembly>
24 <!-- Tests usually require some setup that maven cannot do, so skip. -->
25 <skiptests>false</skiptests>
26 <!-- this should be commented for local debugging -->
27 <!-- <deployenv>local</deployenv> -->
28 <nexusproxy>https://nexus.onap.org</nexusproxy>
29 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
30 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
31 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
32 <NPM_CMD>build</NPM_CMD>
39 <name>ONAP - Staging Repository</name>
40 <url>${nexusproxy}/${stagingNexusPath}</url>
43 <id>ecomp-releases</id>
44 <name>OpenECOMP - Release Repository</name>
45 <url>${nexusproxy}/${releaseNexusPath}</url>
48 <id>ecomp-snapshots</id>
49 <name>OpenECOMP - Snapshot Repository</name>
50 <url>${nexusproxy}/${snapshotNexusPath}</url>
54 <name>ecomp onap public Repository</name>
55 <url>https://nexus.onap.org/content/groups/public</url>
59 <distributionManagement>
61 <id>ecomp-releases</id>
62 <name>VID Release Repository</name>
63 <url>${nexusproxy}/${releaseNexusPath}</url>
66 <id>ecomp-snapshots</id>
67 <name>VID Snapshot Repository</name>
68 <url>${nexusproxy}/${snapshotNexusPath}</url>
71 </distributionManagement>
75 <id>if-not-webpack</id>
78 <name>skipModernUi</name>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-antrun-plugin</artifactId>
87 <version>1.8</version>
90 <id>make-empty-dist</id>
91 <phase>validate</phase>
94 <mkdir dir="${project.basedir}/dist/"/>
95 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
96 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make
97 the war creation through.
115 <name>skipModernUi</name>
118 <activeByDefault>true</activeByDefault>
123 <groupId>com.github.eirslett</groupId>
124 <artifactId>frontend-maven-plugin</artifactId>
125 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
126 <version>1.6</version>
131 <id>install node and npm</id>
133 <goal>install-node-and-npm</goal>
136 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
137 <nodeVersion>v8.9.4</nodeVersion>
138 <npmVersion>5.6.0</npmVersion>
143 <id>npm set no-progress</id>
148 <arguments>set progress=false</arguments>
157 <!-- Optional configuration which provides for running any npm command -->
159 <arguments>install</arguments>
160 <environmentVariables>
161 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
162 </environmentVariables>
172 <arguments>run ${NPM_CMD}</arguments>
186 <groupId>com.github.eirslett</groupId>
187 <artifactId>frontend-maven-plugin</artifactId>
188 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
189 <version>1.6</version>
194 <id>install node and npm</id>
196 <goal>install-node-and-npm</goal>
199 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
200 <nodeVersion>v8.9.4</nodeVersion>
201 <npmVersion>5.6.0</npmVersion>
206 <id>npm install cypress</id>
210 <!-- Optional configuration which provides for running any npm command -->
212 <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
213 <environmentVariables>
214 <NO_PROXY>.att.com</NO_PROXY>
215 <http_proxy>http://one.proxy.att.com:8080</http_proxy>
216 <https_proxy>http://one.proxy.att.com:8080</https_proxy>
217 </environmentVariables>
222 <id>npm run cypress</id>
227 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
228 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
240 <finalName>vid-webpack-master</finalName>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-war-plugin</artifactId>
246 <version>3.2.0</version>
250 <!-- this is relative to the pom.xml directory -->
251 <directory>dist</directory>
252 <targetPath>app/ui</targetPath>
255 <webXml>src/WEB-INF/web.xml</webXml>
259 <artifactId>maven-clean-plugin</artifactId>
263 <directory>dist</directory>