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</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>
38 <!-- Snapshots repository has ECOMP snapshot artifacts -->
39 <id>att-mavencentral-ecomp-snapshots-repo</id>
40 <name>ATT Maven Central - Snapshots</name>
41 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-snapshots/</url>
45 <name>ONAP - Staging Repository</name>
46 <url>${nexusproxy}/${stagingNexusPath}</url>
49 <!-- Releases repository has ECOMP release artifacts -->
50 <id>att-mavencentral-ecomp-releases-repo</id>
51 <name>ATT Maven Central - Releases</name>
52 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-releases/</url>
55 <!-- Third party repository has Oracle and other jars -->
56 <id>att-mavencentral-3rd-repo</id>
57 <name>ATT Maven Central - Third Party</name>
58 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/att-repository-3rd-party/</url>
61 <!-- Service Assurance group has UEB/Cambria jars -->
62 <id>att-mavencentral-sa-group</id>
63 <name>ATT Maven Central - Service Assurance Group</name>
64 <url>http://mavencentral.it.att.com:8084/nexus/content/groups/2020SAPC/</url>
67 <!-- SWM repository has EELF jars -->
69 <name>ATT SWM Repository</name>
70 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/swm-releases</url>
74 <!-- Public repository has ECOMP jars -->
75 <id>att-mavencentral-public</id>
76 <name>ATT Maven Central - Public Group</name>
77 <url>http://mavencentral.it.att.com:8084/nexus/content/groups/att-public-group</url>
80 <id>ecomp-releases</id>
81 <name>OpenECOMP - Release Repository</name>
82 <url>${nexusproxy}/${releaseNexusPath}</url>
85 <id>ecomp-snapshots</id>
86 <name>OpenECOMP - Snapshot Repository</name>
87 <url>${nexusproxy}/${snapshotNexusPath}</url>
91 <name>ecomp onap public Repository</name>
92 <url>https://nexus.onap.org/content/groups/public</url>
96 <distributionManagement>
99 <name>VID Release Repository</name>
100 <url>https://162.242.254.138:8443/repository/maven-releases</url>
104 <id>vid-snapshots</id>
105 <name>VID Snapshot Repository</name>
106 <url>https://162.242.254.138:8443/repository/maven-snapshots</url>
107 </snapshotRepository>
108 </distributionManagement>
112 <id>if-not-webpack</id>
113 <activation><activeByDefault>true</activeByDefault></activation>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-antrun-plugin</artifactId>
119 <version>1.8</version>
122 <id>make-empty-dist</id>
123 <phase>validate</phase>
126 <mkdir dir="${project.basedir}/dist/" />
127 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
128 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make the war creation through.
147 <groupId>com.github.eirslett</groupId>
148 <artifactId>frontend-maven-plugin</artifactId>
149 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
150 <version>1.6</version>
155 <id>install node and npm</id>
157 <goal>install-node-and-npm</goal>
160 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
161 <nodeVersion>v8.9.4</nodeVersion>
162 <npmVersion>5.6.0</npmVersion>
167 <id>npm set no-progress</id>
172 <arguments>set progress=false</arguments>
181 <!-- Optional configuration which provides for running any npm command -->
183 <arguments>install</arguments>
184 <environmentVariables>
185 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
186 <NO_PROXY>.att.com</NO_PROXY>
187 <http_proxy>http://one.proxy.att.com:8080</http_proxy>
188 <https_proxy>http://one.proxy.att.com:8080</https_proxy> <!-- for cypress install -->
189 </environmentVariables>
194 <id>npm run test</id>
199 <arguments>run test</arguments>
204 <id>npm run build</id>
209 <arguments>run build</arguments>
224 <groupId>com.github.eirslett</groupId>
225 <artifactId>frontend-maven-plugin</artifactId>
226 <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
227 <version>1.6</version>
232 <id>install node and npm</id>
234 <goal>install-node-and-npm</goal>
237 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
238 <nodeVersion>v8.9.4</nodeVersion>
239 <npmVersion>5.6.0</npmVersion>
244 <id>npm install cypress</id>
248 <!-- Optional configuration which provides for running any npm command -->
250 <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
251 <environmentVariables>
252 <NO_PROXY>.att.com</NO_PROXY>
253 <http_proxy>http://one.proxy.att.com:8080</http_proxy>
254 <https_proxy>http://one.proxy.att.com:8080</https_proxy>
255 </environmentVariables>
260 <id>npm run cypress</id>
265 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
266 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
278 <finalName>vid-webpack-master</finalName>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-war-plugin</artifactId>
284 <version>3.2.0</version>
288 <!-- this is relative to the pom.xml directory -->
289 <directory>dist</directory>
290 <targetPath>app/ui</targetPath>
293 <webXml>src/WEB-INF/web.xml</webXml>