<?xml version="1.0"?>
<!--
- Copyright 2018 ZTE Corporation.
+ Copyright 2018-2020 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
limitations under the License.
-->
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.onap.holmes.rule-management</groupId>
<artifactId>holmes-rulemgt-parent</artifactId>
- <version>1.1.0-SNAPSHOT</version>
+ <version>1.3.5-SNAPSHOT</version>
</parent>
<artifactId>holmes-rulemgt-frontend</artifactId>
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.5.0</version>
+ <groupId>com.github.eirslett</groupId>
+ <artifactId>frontend-maven-plugin</artifactId>
+ <version>1.10.0</version>
<executions>
<execution>
- <id>angular-cli install</id>
- <configuration>
- <workingDirectory>.</workingDirectory>
- <executable>cmd</executable>
- <arguments>
- <argument>/c</argument>
- <argument>"npm install --prefer-offline"</argument>
- </arguments>
- </configuration>
- <phase>generate-resources</phase>
+ <id>install node and npm</id>
<goals>
- <goal>exec</goal>
+ <goal>install-node-and-npm</goal>
</goals>
+ <phase>generate-resources</phase>
</execution>
<execution>
- <id>angular-cli build</id>
+ <id>npm install</id>
+ <goals>
+ <goal>npm</goal>
+ </goals>
+ <phase>generate-resources</phase>
<configuration>
- <workingDirectory>.</workingDirectory>
- <executable>cmd</executable>
- <arguments>
- <argument>/c</argument>
- <argument>"ng build --prod"</argument>
- </arguments>
+ <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
+ <arguments>install</arguments>
</configuration>
- <phase>generate-resources</phase>
+ </execution>
+ <execution>
+ <id>prod</id>
<goals>
- <goal>exec</goal>
+ <goal>npm</goal>
</goals>
+ <configuration>
+ <arguments>run-script prod</arguments>
+ <arguments>run-script prod</arguments>
+ </configuration>
+ <phase>generate-resources</phase>
</execution>
</executions>
+ <configuration>
+ <skip>${skip.node.and.npm.installation}</skip>
+ <nodeVersion>v10.6.0</nodeVersion>
+ <npmVersion>6.1.0</npmVersion>
+ <installDirectory>./</installDirectory>
+ <workingDirectory>./</workingDirectory>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>local</id>
+ <properties>
+ <skip.node.and.npm.installation>true</skip.node.and.npm.installation>
+ </properties>
+ </profile>
+ <profile>
+ <id>normal</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <skip.node.and.npm.installation>false</skip.node.and.npm.installation>
+ </properties>
+ </profile>
+ </profiles>
</project>