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>1.3.0-SNAPSHOT</version>
13 <packaging>war</packaging>
15 <description>VID UI</description>
18 <encoding>UTF-8</encoding>
19 <!-- Skip assembling the zip by default -->
20 <skipassembly>true</skipassembly>
21 <!-- Tests usually require some setup that maven cannot do, so skip. -->
22 <skiptests>false</skiptests>
23 <!-- this should be commented for local debugging -->
24 <!-- <deployenv>local</deployenv> -->
25 <nexusproxy>https://nexus.onap.org</nexusproxy>
26 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
27 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
28 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
35 <name>ONAP - Staging Repository</name>
36 <url>${nexusproxy}/${stagingNexusPath}</url>
39 <id>ecomp-releases</id>
40 <name>OpenECOMP - Release Repository</name>
41 <url>${nexusproxy}/${releaseNexusPath}</url>
44 <id>ecomp-snapshots</id>
45 <name>OpenECOMP - Snapshot Repository</name>
46 <url>${nexusproxy}/${snapshotNexusPath}</url>
50 <name>ecomp onap public Repository</name>
51 <url>https://nexus.onap.org/content/groups/public</url>
55 <distributionManagement>
57 <id>ecomp-releases</id>
58 <name>VID Release Repository</name>
59 <url>${nexusproxy}/${releaseNexusPath}</url>
62 <id>ecomp-snapshots</id>
63 <name>VID Snapshot Repository</name>
64 <url>${nexusproxy}/${snapshotNexusPath}</url>
67 </distributionManagement>
71 <id>if-not-webpack</id>
73 <activeByDefault>true</activeByDefault>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-antrun-plugin</artifactId>
80 <version>1.8</version>
83 <id>make-empty-dist</id>
84 <phase>validate</phase>
87 <mkdir dir="${project.basedir}/dist/"/>
88 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
89 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make
90 the war creation through.
109 <groupId>com.github.eirslett</groupId>
110 <artifactId>frontend-maven-plugin</artifactId>
111 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
112 <version>1.6</version>
117 <id>install node and npm</id>
119 <goal>install-node-and-npm</goal>
122 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
123 <nodeVersion>v8.9.4</nodeVersion>
124 <npmVersion>5.6.0</npmVersion>
129 <id>npm set no-progress</id>
134 <arguments>set progress=false</arguments>
143 <!-- Optional configuration which provides for running any npm command -->
145 <arguments>install</arguments>
146 <environmentVariables>
147 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
148 </environmentVariables>
153 <id>npm run test</id>
158 <arguments>run test</arguments>
163 <id>npm run build</id>
168 <arguments>run build</arguments>
183 <groupId>com.github.eirslett</groupId>
184 <artifactId>frontend-maven-plugin</artifactId>
185 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
186 <version>1.6</version>
191 <id>install node and npm</id>
193 <goal>install-node-and-npm</goal>
196 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
197 <nodeVersion>v8.9.4</nodeVersion>
198 <npmVersion>5.6.0</npmVersion>
203 <id>npm install cypress</id>
207 <!-- Optional configuration which provides for running any npm command -->
209 <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
210 <environmentVariables>
211 <NO_PROXY>.att.com</NO_PROXY>
212 <http_proxy>http://one.proxy.att.com:8080</http_proxy>
213 <https_proxy>http://one.proxy.att.com:8080</https_proxy>
214 </environmentVariables>
219 <id>npm run cypress</id>
224 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
225 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
237 <finalName>vid-webpack-master</finalName>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-war-plugin</artifactId>
243 <version>3.2.0</version>
247 <!-- this is relative to the pom.xml directory -->
248 <directory>dist</directory>
249 <targetPath>app/ui</targetPath>
252 <webXml>src/WEB-INF/web.xml</webXml>