| <!-- |
| ============LICENSE_START======================================================= |
| Copyright (C) 2018 Ericsson. All rights reserved. |
| ================================================================================ |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| SPDX-License-Identifier: Apache-2.0 |
| ============LICENSE_END========================================================= |
| --> |
| |
| <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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.onap.so.monitoring</groupId> |
| <artifactId>so-monitoring</artifactId> |
| <version>1.7.1-SNAPSHOT</version> |
| </parent> |
| <artifactId>so-monitoring-ui</artifactId> |
| |
| <properties> |
| <yarn.proxy>false</yarn.proxy> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.github.eirslett</groupId> |
| <artifactId>frontend-maven-plugin</artifactId> |
| <version>1.6</version> |
| <configuration> |
| <workingDirectory>${project.basedir}/src/main/frontend</workingDirectory> |
| <installDirectory>target</installDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <id>install node and yarn</id> |
| <goals> |
| <goal>install-node-and-yarn</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <nodeVersion>v10.8.0</nodeVersion> |
| <yarnVersion>v1.7.0</yarnVersion> |
| </configuration> |
| </execution> |
| <execution> |
| <id>yarn install</id> |
| <goals> |
| <goal>yarn</goal> |
| </goals> |
| <configuration> |
| <arguments>install</arguments> |
| </configuration> |
| </execution> |
| <execution> |
| <id>yarn run webpack build</id> |
| <goals> |
| <goal>yarn</goal> |
| </goals> |
| <configuration> |
| <yarnInheritsProxyConfigFromMaven>${yarn.proxy}</yarnInheritsProxyConfigFromMaven> |
| <arguments>build</arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <failOnError>false</failOnError> |
| <filesets> |
| <fileset> |
| <directory>${project.basedir}/src/main/frontend/dist/</directory> |
| <followSymlinks>false</followSymlinks> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |