1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.openecomp.sdc</groupId>
6 <artifactId>onboarding-fe</artifactId>
7 <name>onboarding-ui-war</name>
8 <packaging>war</packaging>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-onboarding</artifactId>
13 <version>1.1.0-SNAPSHOT</version>
14 <relativePath>../onboarding</relativePath>
19 <!-- ============================================= -->
20 <!-- Clean dist folder -->
21 <!-- ============================================= -->
23 <artifactId>maven-clean-plugin</artifactId>
24 <version>2.6.1</version>
27 <id>clean.dist.folder</id>
35 <directory>${basedir}/dist</directory>
38 <directory>${basedir}/node_modules</directory>
41 <directory>${basedir}/../dox-sequence-diagram-ui/dist</directory>
44 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules</directory>
52 <!-- ============================================= -->
53 <!-- Build the UI module node code -->
54 <!-- ============================================= -->
56 <groupId>com.github.eirslett</groupId>
57 <artifactId>frontend-maven-plugin</artifactId>
58 <version>1.4</version>
61 <installDirectory>${project.parent.parent.basedir}</installDirectory>
67 <id>install node and npm</id>
69 <goal>install-node-and-npm</goal>
72 <nodeVersion>v6.9.5</nodeVersion>
73 <npmVersion>3.10.10</npmVersion>
78 <id>npm set progress off</id>
83 <arguments>set progress=false</arguments>
88 <id>npm install in dox-sequence-diagram-ui</id>
93 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory>
94 <arguments>install</arguments>
104 <arguments>install</arguments>
109 <id>npm run build</id>
114 <arguments>run build -- --version=${version}</arguments>
121 <artifactId>maven-antrun-plugin</artifactId>
125 <phase>prepare-package</phase>
128 <echo message="Building test environment"/>
129 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
131 <include name="**/*"/>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-war-plugin</artifactId>
146 <version>3.0.0</version>
150 <directory>${basedir}/target/dist</directory>