inherit from a parent maven module. -->
<groupId>org.onap.vid</groupId>
<artifactId>vid-webpack-master</artifactId>
- <version>1.3.0-SNAPSHOT</version>
+ <version>6.0.5-SNAPSHOT</version>
<packaging>war</packaging>
<name>VID UI</name>
<description>VID UI</description>
<properties>
<encoding>UTF-8</encoding>
- <!--<epsdk.version>1.3.0</epsdk.version>-->
- <!--<springframework.version>4.2.0.RELEASE</springframework.version>-->
+ <!--<springframework.version>5.1.6.RELEASE</springframework.version>-->
<!--<hibernate.version>4.3.11.Final</hibernate.version>-->
- <!--<jackson.version>2.6.3</jackson.version>-->
<!-- Skip assembling the zip by default -->
<skipassembly>true</skipassembly>
<!-- Tests usually require some setup that maven cannot do, so skip. -->
<stagingNexusPath>content/repositories/staging/</stagingNexusPath>
<snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
<releaseNexusPath>content/repositories/releases/</releaseNexusPath>
+
+ <eirslett.version>1.9.1</eirslett.version>
+ <node.version>v10.19.0</node.version>
+ <npm.version>6.14.4</npm.version>
+
+ <NPM_CMD>ci</NPM_CMD>
</properties>
</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>
+ <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><activeByDefault>true</activeByDefault></activation>
+ <activation>
+ <property>
+ <name>skipModernUi</name>
+ <value>true</value>
+ </property>
+ </activation>
<build>
<plugins>
<plugin>
<phase>validate</phase>
<configuration>
<target>
- <mkdir dir="${project.basedir}/dist/" />
+ <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.
+ Note: 'webpack' profile was not selected while mvn build. This 'dist' folder was created to make
+ the war creation through.
</echo>
</target>
</configuration>
</plugins>
</build>
</profile>
+
<profile>
- <id>webpack</id>
+ <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>
+ <version>${eirslett.version}</version>
<executions>
</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>
+ <npmVersion>${npm.version}</npmVersion>
+ <nodeVersion>${node.version}</nodeVersion>
</configuration>
</execution>
</execution>
<execution>
- <id>npm run test</id>
- <goals>
- <goal>npm</goal>
- </goals>
- <configuration>
- <arguments>run test</arguments>
- </configuration>
- </execution>
-
- <execution>
- <id>npm run build</id>
+ <id>npm run</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
- <arguments>run build</arguments>
+ <arguments>run ${NPM_CMD}</arguments>
</configuration>
</execution>
-
</executions>
</plugin>
</plugins>
<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>
+ <version>${eirslett.version}</version>
<executions>
</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>
+ <npmVersion>${npm.version}</npmVersion>
+ <nodeVersion>${node.version}</nodeVersion>
</configuration>
</execution>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install --verbose cypress @bahmutov/add-typescript-to-cypress</arguments>
- <environmentVariables>
- <NO_PROXY>.att.com</NO_PROXY>
- <http_proxy>http://one.proxy.att.com:8080</http_proxy>
- <https_proxy>http://one.proxy.att.com:8080</https_proxy>
- </environmentVariables>
</configuration>
</execution>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
- <version>3.2.0</version>
+ <version>3.2.3</version>
<configuration>
<webResources>
<resource>
<webXml>src/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
-
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>dist</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
</plugins>
-
-
</build>
-
<dependencies>
</dependencies>
-
</project>