Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | <?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 Stern | 2a3b304 | 2020-03-22 08:16:20 +0200 | [diff] [blame^] | 12 | <version>6.0.5-SNAPSHOT</version> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 13 | <packaging>war</packaging> |
| 14 | <name>VID UI</name> |
| 15 | <description>VID UI</description> |
| 16 | |
| 17 | <properties> |
| 18 | <encoding>UTF-8</encoding> |
Einat Vinouze | d719259 | 2019-07-07 14:15:07 +0300 | [diff] [blame] | 19 | <!--<springframework.version>5.1.6.RELEASE</springframework.version>--> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 20 | <!--<hibernate.version>4.3.11.Final</hibernate.version>--> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 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> |
Eylon Malin | 26c84f2 | 2019-12-17 10:21:49 +0200 | [diff] [blame] | 31 | <NPM_CMD>ci</NPM_CMD> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 32 | </properties> |
| 33 | |
| 34 | |
| 35 | <repositories> |
| 36 | <repository> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 37 | <id>onap-staging</id> |
| 38 | <name>ONAP - Staging Repository</name> |
| 39 | <url>${nexusproxy}/${stagingNexusPath}</url> |
| 40 | </repository> |
| 41 | <repository> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 42 | <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) | ccfb3ba | 2018-08-12 17:16:13 +0300 | [diff] [blame] | 58 | <distributionManagement> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 59 | <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) | ccfb3ba | 2018-08-12 17:16:13 +0300 | [diff] [blame] | 69 | |
| 70 | </distributionManagement> |
| 71 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 72 | <profiles> |
Eylon Malin | 26c84f2 | 2019-12-17 10:21:49 +0200 | [diff] [blame] | 73 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 74 | <profile> |
| 75 | <id>if-not-webpack</id> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 76 | <activation> |
wsliwka | ac02d11 | 2019-09-03 11:02:42 +0200 | [diff] [blame] | 77 | <property> |
| 78 | <name>skipModernUi</name> |
| 79 | <value>true</value> |
| 80 | </property> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 81 | </activation> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 82 | <build> |
| 83 | <plugins> |
| 84 | <plugin> |
| 85 | <groupId>org.apache.maven.plugins</groupId> |
| 86 | <artifactId>maven-antrun-plugin</artifactId> |
| 87 | <version>1.8</version> |
| 88 | <executions> |
| 89 | <execution> |
| 90 | <id>make-empty-dist</id> |
| 91 | <phase>validate</phase> |
| 92 | <configuration> |
| 93 | <target> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 94 | <mkdir dir="${project.basedir}/dist/"/> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 95 | <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false"> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 96 | Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make |
| 97 | the war creation through. |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 98 | </echo> |
| 99 | </target> |
| 100 | </configuration> |
| 101 | <goals> |
| 102 | <goal>run</goal> |
| 103 | </goals> |
| 104 | </execution> |
| 105 | </executions> |
| 106 | </plugin> |
| 107 | |
| 108 | </plugins> |
| 109 | </build> |
| 110 | </profile> |
Eylon Malin | 26c84f2 | 2019-12-17 10:21:49 +0200 | [diff] [blame] | 111 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 112 | <profile> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 113 | <id>webpack-npm</id> |
wsliwka | ac02d11 | 2019-09-03 11:02:42 +0200 | [diff] [blame] | 114 | <activation> |
| 115 | <property> |
| 116 | <name>skipModernUi</name> |
| 117 | <value>!true</value> |
| 118 | </property> |
| 119 | <activeByDefault>true</activeByDefault> |
| 120 | </activation> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 121 | <build> |
| 122 | <plugins> |
| 123 | <plugin> |
| 124 | <groupId>com.github.eirslett</groupId> |
| 125 | <artifactId>frontend-maven-plugin</artifactId> |
| 126 | <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> |
| 127 | <version>1.6</version> |
| 128 | |
| 129 | <executions> |
| 130 | |
| 131 | <execution> |
| 132 | <id>install node and npm</id> |
| 133 | <goals> |
| 134 | <goal>install-node-and-npm</goal> |
| 135 | </goals> |
| 136 | <configuration> |
| 137 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
Yoav Schneiderman | 4ef3ee7 | 2020-01-08 14:46:14 +0200 | [diff] [blame] | 138 | <nodeVersion>v10.15.3</nodeVersion> |
| 139 | <npmVersion>6.9.0</npmVersion> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 140 | </configuration> |
| 141 | </execution> |
| 142 | |
| 143 | <execution> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 144 | <id>npm install</id> |
| 145 | <goals> |
| 146 | <goal>npm</goal> |
| 147 | </goals> |
| 148 | <!-- Optional configuration which provides for running any npm command --> |
| 149 | <configuration> |
| 150 | <arguments>install</arguments> |
| 151 | <environmentVariables> |
| 152 | <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 153 | </environmentVariables> |
| 154 | </configuration> |
| 155 | </execution> |
| 156 | |
| 157 | <execution> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 158 | <id>npm run</id> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 159 | <goals> |
| 160 | <goal>npm</goal> |
| 161 | </goals> |
| 162 | <configuration> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 163 | <arguments>run ${NPM_CMD}</arguments> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 164 | </configuration> |
| 165 | </execution> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 166 | </executions> |
| 167 | </plugin> |
| 168 | </plugins> |
| 169 | </build> |
| 170 | </profile> |
| 171 | |
| 172 | <profile> |
| 173 | <id>cypress</id> |
| 174 | <build> |
| 175 | <plugins> |
| 176 | <plugin> |
| 177 | <groupId>com.github.eirslett</groupId> |
| 178 | <artifactId>frontend-maven-plugin</artifactId> |
| 179 | <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> |
| 180 | <version>1.6</version> |
| 181 | |
| 182 | <executions> |
| 183 | |
| 184 | <execution> |
| 185 | <id>install node and npm</id> |
| 186 | <goals> |
| 187 | <goal>install-node-and-npm</goal> |
| 188 | </goals> |
| 189 | <configuration> |
| 190 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
| 191 | <nodeVersion>v8.9.4</nodeVersion> |
| 192 | <npmVersion>5.6.0</npmVersion> |
| 193 | </configuration> |
| 194 | </execution> |
| 195 | |
| 196 | <execution> |
| 197 | <id>npm install cypress</id> |
| 198 | <goals> |
| 199 | <goal>npm</goal> |
| 200 | </goals> |
| 201 | <!-- Optional configuration which provides for running any npm command --> |
| 202 | <configuration> |
| 203 | <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments> |
| 204 | <environmentVariables> |
| 205 | <NO_PROXY>.att.com</NO_PROXY> |
| 206 | <http_proxy>http://one.proxy.att.com:8080</http_proxy> |
| 207 | <https_proxy>http://one.proxy.att.com:8080</https_proxy> |
| 208 | </environmentVariables> |
| 209 | </configuration> |
| 210 | </execution> |
| 211 | |
| 212 | <execution> |
| 213 | <id>npm run cypress</id> |
| 214 | <goals> |
| 215 | <goal>npm</goal> |
| 216 | </goals> |
| 217 | <configuration> |
| 218 | <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| 219 | <arguments>run cypress:run -- --config baseUrl=http://${VID_HOST}:8080/vid</arguments> |
| 220 | </configuration> |
| 221 | </execution> |
| 222 | |
| 223 | </executions> |
| 224 | </plugin> |
| 225 | </plugins> |
| 226 | </build> |
| 227 | </profile> |
| 228 | </profiles> |
| 229 | |
| 230 | <build> |
| 231 | <finalName>vid-webpack-master</finalName> |
| 232 | <plugins> |
| 233 | |
| 234 | <plugin> |
| 235 | <groupId>org.apache.maven.plugins</groupId> |
| 236 | <artifactId>maven-war-plugin</artifactId> |
Ittay Stern | 9ba4d06 | 2020-02-27 13:40:28 +0200 | [diff] [blame] | 237 | <version>3.2.3</version> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 238 | <configuration> |
| 239 | <webResources> |
| 240 | <resource> |
| 241 | <!-- this is relative to the pom.xml directory --> |
| 242 | <directory>dist</directory> |
| 243 | <targetPath>app/ui</targetPath> |
| 244 | </resource> |
| 245 | </webResources> |
| 246 | <webXml>src/WEB-INF/web.xml</webXml> |
| 247 | </configuration> |
| 248 | </plugin> |
wsliwka | ac02d11 | 2019-09-03 11:02:42 +0200 | [diff] [blame] | 249 | <plugin> |
| 250 | <artifactId>maven-clean-plugin</artifactId> |
| 251 | <configuration> |
| 252 | <filesets> |
| 253 | <fileset> |
| 254 | <directory>dist</directory> |
| 255 | </fileset> |
| 256 | </filesets> |
| 257 | </configuration> |
| 258 | </plugin> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 259 | </plugins> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 260 | </build> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 261 | <dependencies> |
| 262 | </dependencies> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 263 | </project> |