<?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <!-- This is the Maven project object model (POM) file for VID web application based on the ECOMP SDK distribution. This file stands alone; it does not inherit from a parent maven module. --> <groupId>org.onap.vid</groupId> <artifactId>vid-webpack-master</artifactId> <version>6.0.0-SNAPSHOT</version> <packaging>war</packaging> <name>VID UI</name> <description>VID UI</description> <properties> <encoding>UTF-8</encoding> <!--<springframework.version>5.1.6.RELEASE</springframework.version>--> <!--<hibernate.version>4.3.11.Final</hibernate.version>--> <!-- Skip assembling the zip by default --> <skipassembly>true</skipassembly> <!-- Tests usually require some setup that maven cannot do, so skip. --> <skiptests>false</skiptests> <!-- this should be commented for local debugging --> <!-- <deployenv>local</deployenv> --> <nexusproxy>https://nexus.onap.org</nexusproxy> <stagingNexusPath>content/repositories/staging/</stagingNexusPath> <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath> <releaseNexusPath>content/repositories/releases/</releaseNexusPath> <NPM_CMD>build</NPM_CMD> </properties> <repositories> <repository> <id>onap-staging</id> <name>ONAP - Staging Repository</name> <url>${nexusproxy}/${stagingNexusPath}</url> </repository> <repository> <id>ecomp-releases</id> <name>OpenECOMP - Release Repository</name> <url>${nexusproxy}/${releaseNexusPath}</url> </repository> <repository> <id>ecomp-snapshots</id> <name>OpenECOMP - Snapshot Repository</name> <url>${nexusproxy}/${snapshotNexusPath}</url> </repository> <repository> <id>ecomp-public</id> <name>ecomp onap public Repository</name> <url>https://nexus.onap.org/content/groups/public</url> </repository> </repositories> <distributionManagement> <repository> <id>ecomp-releases</id> <name>VID Release Repository</name> <url>${nexusproxy}/${releaseNexusPath}</url> </repository> <snapshotRepository> <id>ecomp-snapshots</id> <name>VID Snapshot Repository</name> <url>${nexusproxy}/${snapshotNexusPath}</url> </snapshotRepository> </distributionManagement> <profiles> <profile> <id>if-not-webpack</id> <activation> <property> <name>skipModernUi</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <id>make-empty-dist</id> <phase>validate</phase> <configuration> <target> <mkdir dir="${project.basedir}/dist/"/> <echo file="${project.basedir}/dist/NO-WEBPACK.txt" append="false"> Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make the war creation through. </echo> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>webpack-npm</id> <activation> <property> <name>skipModernUi</name> <value>!true</value> </property> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> <version>1.6</version> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <configuration> <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> <nodeVersion>v8.9.4</nodeVersion> <npmVersion>5.6.0</npmVersion> </configuration> </execution> <execution> <id>npm set no-progress</id> <goals> <goal>npm</goal> </goals> <configuration> <arguments>set progress=false</arguments> </configuration> </execution> <execution> <id>npm install</id> <goals> <goal>npm</goal> </goals> <!-- Optional configuration which provides for running any npm command --> <configuration> <arguments>install</arguments> <environmentVariables> <CYPRESS_INSTALL_BINARY>0</CYPRESS_INSTALL_BINARY> </environmentVariables> </configuration> </execution> <execution> <id>npm run</id> <goals> <goal>npm</goal> </goals> <configuration> <arguments>run ${NPM_CMD}</arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>cypress</id> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> <version>1.6</version> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <configuration> <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> <nodeVersion>v8.9.4</nodeVersion> <npmVersion>5.6.0</npmVersion> </configuration> </execution> <execution> <id>npm install cypress</id> <goals> <goal>npm</goal> </goals> <!-- Optional configuration which provides for running any npm command --> <configuration> <arguments><style>.highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .