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.0-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>
31 <NPM_CMD>build</NPM_CMD>
38 <name>ONAP - Staging Repository</name>
39 <url>${nexusproxy}/${stagingNexusPath}</url>
42 <id>ecomp-releases</id>
43 <name>OpenECOMP - Release Repository</name>
44 <url>${nexusproxy}/${releaseNexusPath}</url>
47 <id>ecomp-snapshots</id>
48 <name>OpenECOMP - Snapshot Repository</name>
49 <url>${nexusproxy}/${snapshotNexusPath}</url>
53 <name>ecomp onap public Repository</name>
54 <url>https://nexus.onap.org/content/groups/public</url>
58 <distributionManagement>
60 <id>ecomp-releases</id>
61 <name>VID Release Repository</name>
62 <url>${nexusproxy}/${releaseNexusPath}</url>
65 <id>ecomp-snapshots</id>
66 <name>VID Snapshot Repository</name>
67 <url>${nexusproxy}/${snapshotNexusPath}</url>
70 </distributionManagement>
74 <id>if-not-webpack</id>
77 <name>skipModernUi</name>
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-antrun-plugin</artifactId>
86 <version>1.8</version>
89 <id>make-empty-dist</id>
90 <phase>validate</phase>
93 <mkdir dir="${project.basedir}/dist/"/>
94 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
95 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make
96 the war creation through.
114 <name>skipModernUi</name>
117 <activeByDefault>true</activeByDefault>
122 <groupId>com.github.eirslett</groupId>
123 <artifactId>frontend-maven-plugin</artifactId>
124 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
125 <version>1.6</version>
130 <id>install node and npm</id>
132 <goal>install-node-and-npm</goal>
135 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
136 <nodeVersion>v8.9.4</nodeVersion>
137 <npmVersion>5.6.0</npmVersion>
146 <!-- Optional configuration which provides for running any npm command -->
148 <arguments>install</arguments>
149 <environmentVariables>
150 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
151 </environmentVariables>
161 <arguments>run ${NPM_CMD}</arguments>
175 <groupId>com.github.eirslett</groupId>
176 <artifactId>frontend-maven-plugin</artifactId>
177 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
178 <version>1.6</version>
183 <id>install node and npm</id>
185 <goal>install-node-and-npm</goal>
188 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
189 <nodeVersion>v8.9.4</nodeVersion>
190 <npmVersion>5.6.0</npmVersion>
195 <id>npm install cypress</id>
199 <!-- Optional configuration which provides for running any npm command -->
201 <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
202 <environmentVariables>
203 <NO_PROXY>.att.com</NO_PROXY>
204 <http_proxy>http://one.proxy.att.com:8080</http_proxy>
205 <https_proxy>http://one.proxy.att.com:8080</https_proxy>
206 </environmentVariables>
211 <id>npm run cypress</id>
216 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
217 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
229 <finalName>vid-webpack-master</finalName>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-war-plugin</artifactId>
235 <version>3.2.0</version>
239 <!-- this is relative to the pom.xml directory -->
240 <directory>dist</directory>
241 <targetPath>app/ui</targetPath>
244 <webXml>src/WEB-INF/web.xml</webXml>
248 <artifactId>maven-clean-plugin</artifactId>
252 <directory>dist</directory>