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> |
Rachitha Ramappa | 545da32 | 2020-11-05 20:42:19 +0530 | [diff] [blame] | 12 | <version>7.0.2-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> |
Ittay Stern | e9d0f6a | 2020-04-06 16:31:04 +0300 | [diff] [blame] | 31 | |
| 32 | <eirslett.version>1.9.1</eirslett.version> |
| 33 | <node.version>v10.19.0</node.version> |
| 34 | <npm.version>6.14.4</npm.version> |
| 35 | |
Eylon Malin | 26c84f2 | 2019-12-17 10:21:49 +0200 | [diff] [blame] | 36 | <NPM_CMD>ci</NPM_CMD> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 37 | </properties> |
| 38 | |
| 39 | |
| 40 | <repositories> |
| 41 | <repository> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 42 | <id>onap-staging</id> |
| 43 | <name>ONAP - Staging Repository</name> |
| 44 | <url>${nexusproxy}/${stagingNexusPath}</url> |
| 45 | </repository> |
| 46 | <repository> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 47 | <id>ecomp-releases</id> |
| 48 | <name>OpenECOMP - Release Repository</name> |
| 49 | <url>${nexusproxy}/${releaseNexusPath}</url> |
| 50 | </repository> |
| 51 | <repository> |
| 52 | <id>ecomp-snapshots</id> |
| 53 | <name>OpenECOMP - Snapshot Repository</name> |
| 54 | <url>${nexusproxy}/${snapshotNexusPath}</url> |
| 55 | </repository> |
| 56 | <repository> |
| 57 | <id>ecomp-public</id> |
| 58 | <name>ecomp onap public Repository</name> |
| 59 | <url>https://nexus.onap.org/content/groups/public</url> |
| 60 | </repository> |
| 61 | </repositories> |
| 62 | |
Sonsino, Ofir (os0695) | ccfb3ba | 2018-08-12 17:16:13 +0300 | [diff] [blame] | 63 | <distributionManagement> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 64 | <repository> |
| 65 | <id>ecomp-releases</id> |
| 66 | <name>VID Release Repository</name> |
| 67 | <url>${nexusproxy}/${releaseNexusPath}</url> |
| 68 | </repository> |
| 69 | <snapshotRepository> |
| 70 | <id>ecomp-snapshots</id> |
| 71 | <name>VID Snapshot Repository</name> |
| 72 | <url>${nexusproxy}/${snapshotNexusPath}</url> |
| 73 | </snapshotRepository> |
Sonsino, Ofir (os0695) | ccfb3ba | 2018-08-12 17:16:13 +0300 | [diff] [blame] | 74 | |
| 75 | </distributionManagement> |
| 76 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 77 | <profiles> |
Eylon Malin | 26c84f2 | 2019-12-17 10:21:49 +0200 | [diff] [blame] | 78 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 79 | <profile> |
| 80 | <id>if-not-webpack</id> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 81 | <activation> |
wsliwka | ac02d11 | 2019-09-03 11:02:42 +0200 | [diff] [blame] | 82 | <property> |
| 83 | <name>skipModernUi</name> |
| 84 | <value>true</value> |
| 85 | </property> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 86 | </activation> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 87 | <build> |
| 88 | <plugins> |
| 89 | <plugin> |
| 90 | <groupId>org.apache.maven.plugins</groupId> |
| 91 | <artifactId>maven-antrun-plugin</artifactId> |
| 92 | <version>1.8</version> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>make-empty-dist</id> |
| 96 | <phase>validate</phase> |
| 97 | <configuration> |
| 98 | <target> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 99 | <mkdir dir="${project.basedir}/dist/"/> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 100 | <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false"> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 101 | Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make |
| 102 | the war creation through. |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 103 | </echo> |
| 104 | </target> |
| 105 | </configuration> |
| 106 | <goals> |
| 107 | <goal>run</goal> |
| 108 | </goals> |
| 109 | </execution> |
| 110 | </executions> |
| 111 | </plugin> |
| 112 | |
| 113 | </plugins> |
| 114 | </build> |
| 115 | </profile> |
Eylon Malin | 26c84f2 | 2019-12-17 10:21:49 +0200 | [diff] [blame] | 116 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 117 | <profile> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 118 | <id>webpack-npm</id> |
wsliwka | ac02d11 | 2019-09-03 11:02:42 +0200 | [diff] [blame] | 119 | <activation> |
| 120 | <property> |
| 121 | <name>skipModernUi</name> |
| 122 | <value>!true</value> |
| 123 | </property> |
| 124 | <activeByDefault>true</activeByDefault> |
| 125 | </activation> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 126 | <build> |
| 127 | <plugins> |
| 128 | <plugin> |
| 129 | <groupId>com.github.eirslett</groupId> |
| 130 | <artifactId>frontend-maven-plugin</artifactId> |
| 131 | <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> |
Ittay Stern | e9d0f6a | 2020-04-06 16:31:04 +0300 | [diff] [blame] | 132 | <version>${eirslett.version}</version> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 133 | |
| 134 | <executions> |
| 135 | |
| 136 | <execution> |
| 137 | <id>install node and npm</id> |
| 138 | <goals> |
| 139 | <goal>install-node-and-npm</goal> |
| 140 | </goals> |
| 141 | <configuration> |
| 142 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
Ittay Stern | e9d0f6a | 2020-04-06 16:31:04 +0300 | [diff] [blame] | 143 | <npmVersion>${npm.version}</npmVersion> |
| 144 | <nodeVersion>${node.version}</nodeVersion> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 145 | </configuration> |
| 146 | </execution> |
| 147 | |
| 148 | <execution> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 149 | <id>npm install</id> |
| 150 | <goals> |
| 151 | <goal>npm</goal> |
| 152 | </goals> |
| 153 | <!-- Optional configuration which provides for running any npm command --> |
| 154 | <configuration> |
| 155 | <arguments>install</arguments> |
| 156 | <environmentVariables> |
| 157 | <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 158 | </environmentVariables> |
| 159 | </configuration> |
| 160 | </execution> |
| 161 | |
| 162 | <execution> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 163 | <id>npm run</id> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 164 | <goals> |
| 165 | <goal>npm</goal> |
| 166 | </goals> |
| 167 | <configuration> |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 168 | <arguments>run ${NPM_CMD}</arguments> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 169 | </configuration> |
| 170 | </execution> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 171 | </executions> |
| 172 | </plugin> |
| 173 | </plugins> |
| 174 | </build> |
| 175 | </profile> |
| 176 | |
| 177 | <profile> |
| 178 | <id>cypress</id> |
| 179 | <build> |
| 180 | <plugins> |
| 181 | <plugin> |
| 182 | <groupId>com.github.eirslett</groupId> |
| 183 | <artifactId>frontend-maven-plugin</artifactId> |
| 184 | <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> |
Ittay Stern | e9d0f6a | 2020-04-06 16:31:04 +0300 | [diff] [blame] | 185 | <version>${eirslett.version}</version> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 186 | |
| 187 | <executions> |
| 188 | |
| 189 | <execution> |
| 190 | <id>install node and npm</id> |
| 191 | <goals> |
| 192 | <goal>install-node-and-npm</goal> |
| 193 | </goals> |
| 194 | <configuration> |
| 195 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
Ittay Stern | e9d0f6a | 2020-04-06 16:31:04 +0300 | [diff] [blame] | 196 | <npmVersion>${npm.version}</npmVersion> |
| 197 | <nodeVersion>${node.version}</nodeVersion> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 198 | </configuration> |
| 199 | </execution> |
| 200 | |
| 201 | <execution> |
| 202 | <id>npm install cypress</id> |
| 203 | <goals> |
| 204 | <goal>npm</goal> |
| 205 | </goals> |
| 206 | <!-- Optional configuration which provides for running any npm command --> |
| 207 | <configuration> |
| 208 | <arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 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> |