blob: 2fe0a6eafdade1f0a413353838b238b425cd4c48 [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001<?xml version="1.0"?>
2<project
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>
6
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>
Ittay Stern296345d2019-09-18 12:42:38 +030012 <version>6.0.0-SNAPSHOT</version>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030013 <packaging>war</packaging>
14 <name>VID UI</name>
15 <description>VID UI</description>
16
17 <properties>
18 <encoding>UTF-8</encoding>
Einat Vinouzed7192592019-07-07 14:15:07 +030019 <!--<springframework.version>5.1.6.RELEASE</springframework.version>-->
Ittay Stern6f900cc2018-08-29 17:01:32 +030020 <!--<hibernate.version>4.3.11.Final</hibernate.version>-->
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030021 <!-- 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>
wsliwkaac02d112019-09-03 11:02:42 +020031 <NPM_CMD>build</NPM_CMD>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030032 </properties>
33
34
35 <repositories>
36 <repository>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030037 <id>onap-staging</id>
38 <name>ONAP - Staging Repository</name>
39 <url>${nexusproxy}/${stagingNexusPath}</url>
40 </repository>
41 <repository>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030042 <id>ecomp-releases</id>
43 <name>OpenECOMP - Release Repository</name>
44 <url>${nexusproxy}/${releaseNexusPath}</url>
45 </repository>
46 <repository>
47 <id>ecomp-snapshots</id>
48 <name>OpenECOMP - Snapshot Repository</name>
49 <url>${nexusproxy}/${snapshotNexusPath}</url>
50 </repository>
51 <repository>
52 <id>ecomp-public</id>
53 <name>ecomp onap public Repository</name>
54 <url>https://nexus.onap.org/content/groups/public</url>
55 </repository>
56 </repositories>
57
Sonsino, Ofir (os0695)ccfb3ba2018-08-12 17:16:13 +030058 <distributionManagement>
biniek6f2b2082018-12-17 11:18:05 +010059 <repository>
60 <id>ecomp-releases</id>
61 <name>VID Release Repository</name>
62 <url>${nexusproxy}/${releaseNexusPath}</url>
63 </repository>
64 <snapshotRepository>
65 <id>ecomp-snapshots</id>
66 <name>VID Snapshot Repository</name>
67 <url>${nexusproxy}/${snapshotNexusPath}</url>
68 </snapshotRepository>
Sonsino, Ofir (os0695)ccfb3ba2018-08-12 17:16:13 +030069
70 </distributionManagement>
71
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030072 <profiles>
73 <profile>
74 <id>if-not-webpack</id>
biniek6f2b2082018-12-17 11:18:05 +010075 <activation>
wsliwkaac02d112019-09-03 11:02:42 +020076 <property>
77 <name>skipModernUi</name>
78 <value>true</value>
79 </property>
biniek6f2b2082018-12-17 11:18:05 +010080 </activation>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030081 <build>
82 <plugins>
83 <plugin>
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-antrun-plugin</artifactId>
86 <version>1.8</version>
87 <executions>
88 <execution>
89 <id>make-empty-dist</id>
90 <phase>validate</phase>
91 <configuration>
92 <target>
biniek6f2b2082018-12-17 11:18:05 +010093 <mkdir dir="${project.basedir}/dist/"/>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030094 <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false">
biniek6f2b2082018-12-17 11:18:05 +010095 Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make
96 the war creation through.
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030097 </echo>
98 </target>
99 </configuration>
100 <goals>
101 <goal>run</goal>
102 </goals>
103 </execution>
104 </executions>
105 </plugin>
106
107 </plugins>
108 </build>
109 </profile>
110 <profile>
Ittay Stern6f900cc2018-08-29 17:01:32 +0300111 <id>webpack-npm</id>
wsliwkaac02d112019-09-03 11:02:42 +0200112 <activation>
113 <property>
114 <name>skipModernUi</name>
115 <value>!true</value>
116 </property>
117 <activeByDefault>true</activeByDefault>
118 </activation>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300119 <build>
120 <plugins>
121 <plugin>
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>
126
127 <executions>
128
129 <execution>
130 <id>install node and npm</id>
131 <goals>
132 <goal>install-node-and-npm</goal>
133 </goals>
134 <configuration>
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>
138 </configuration>
139 </execution>
140
141 <execution>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300142 <id>npm install</id>
143 <goals>
144 <goal>npm</goal>
145 </goals>
146 <!-- Optional configuration which provides for running any npm command -->
147 <configuration>
148 <arguments>install</arguments>
149 <environmentVariables>
150 <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300151 </environmentVariables>
152 </configuration>
153 </execution>
154
155 <execution>
Ittay Stern6f900cc2018-08-29 17:01:32 +0300156 <id>npm run</id>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300157 <goals>
158 <goal>npm</goal>
159 </goals>
160 <configuration>
Ittay Stern6f900cc2018-08-29 17:01:32 +0300161 <arguments>run ${NPM_CMD}</arguments>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300162 </configuration>
163 </execution>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300164 </executions>
165 </plugin>
166 </plugins>
167 </build>
168 </profile>
169
170 <profile>
171 <id>cypress</id>
172 <build>
173 <plugins>
174 <plugin>
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>
179
180 <executions>
181
182 <execution>
183 <id>install node and npm</id>
184 <goals>
185 <goal>install-node-and-npm</goal>
186 </goals>
187 <configuration>
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>
191 </configuration>
192 </execution>
193
194 <execution>
195 <id>npm install cypress</id>
196 <goals>
197 <goal>npm</goal>
198 </goals>
199 <!-- Optional configuration which provides for running any npm command -->
200 <configuration>
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>
207 </configuration>
208 </execution>
209
210 <execution>
211 <id>npm run cypress</id>
212 <goals>
213 <goal>npm</goal>
214 </goals>
215 <configuration>
216 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
217 <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments>
218 </configuration>
219 </execution>
220
221 </executions>
222 </plugin>
223 </plugins>
224 </build>
225 </profile>
226 </profiles>
227
228 <build>
229 <finalName>vid-webpack-master</finalName>
230 <plugins>
231
232 <plugin>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-war-plugin</artifactId>
235 <version>3.2.0</version>
236 <configuration>
237 <webResources>
238 <resource>
239 <!-- this is relative to the pom.xml directory -->
240 <directory>dist</directory>
241 <targetPath>app/ui</targetPath>
242 </resource>
243 </webResources>
244 <webXml>src/WEB-INF/web.xml</webXml>
245 </configuration>
246 </plugin>
wsliwkaac02d112019-09-03 11:02:42 +0200247 <plugin>
248 <artifactId>maven-clean-plugin</artifactId>
249 <configuration>
250 <filesets>
251 <fileset>
252 <directory>dist</directory>
253 </fileset>
254 </filesets>
255 </configuration>
256 </plugin>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300257 </plugins>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300258 </build>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300259 <dependencies>
260 </dependencies>
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300261</project>