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 <!--<epsdk.version>1.3.0</epsdk.version>-->
20 <!--<springframework.version>4.2.0.RELEASE</springframework.version>-->
21 <!--<hibernate.version>4.3.11.Final</hibernate.version>-->
22 <!--<jackson.version>2.6.3</jackson.version>-->
23 <!-- Skip assembling the zip by default -->
24 <skipassembly>true</skipassembly>
25 <!-- Tests usually require some setup that maven cannot do, so skip. -->
26 <skiptests>false</skiptests>
27 <!-- this should be commented for local debugging -->
28 <!-- <deployenv>local</deployenv> -->
29 <nexusproxy>https://nexus.onap.org</nexusproxy>
30 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
31 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
32 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
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>
76 <activation><activeByDefault>true</activeByDefault></activation>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-antrun-plugin</artifactId>
82 <version>1.8</version>
85 <id>make-empty-dist</id>
86 <phase>validate</phase>
89 <mkdir dir="${project.basedir}/dist/" />
90 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
91 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make the war creation through.
110 <groupId>com.github.eirslett</groupId>
111 <artifactId>frontend-maven-plugin</artifactId>
112 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
113 <version>1.6</version>
118 <id>install node and npm</id>
120 <goal>install-node-and-npm</goal>
123 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
124 <nodeVersion>v8.9.4</nodeVersion>
125 <npmVersion>5.6.0</npmVersion>
130 <id>npm set no-progress</id>
135 <arguments>set progress=false</arguments>
144 <!-- Optional configuration which provides for running any npm command -->
146 <arguments>install</arguments>
147 <environmentVariables>
148 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
149 </environmentVariables>
154 <id>npm run test</id>
159 <arguments>run test</arguments>
164 <id>npm run build</id>
169 <arguments>run build</arguments>
184 <groupId>com.github.eirslett</groupId>
185 <artifactId>frontend-maven-plugin</artifactId>
186 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
187 <version>1.6</version>
192 <id>install node and npm</id>
194 <goal>install-node-and-npm</goal>
197 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
198 <nodeVersion>v8.9.4</nodeVersion>
199 <npmVersion>5.6.0</npmVersion>
204 <id>npm install cypress</id>
208 <!-- Optional configuration which provides for running any npm command -->
210 <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
211 <environmentVariables>
212 <NO_PROXY>.att.com</NO_PROXY>
213 <http_proxy>http://one.proxy.att.com:8080</http_proxy>
214 <https_proxy>http://one.proxy.att.com:8080</https_proxy>
215 </environmentVariables>
220 <id>npm run cypress</id>
225 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
226 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
238 <finalName>vid-webpack-master</finalName>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-war-plugin</artifactId>
244 <version>3.2.0</version>
248 <!-- this is relative to the pom.xml directory -->
249 <directory>dist</directory>
250 <targetPath>app/ui</targetPath>
253 <webXml>src/WEB-INF/web.xml</webXml>