1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.openecomp.sdc</groupId>
7 <artifactId>onboarding-fe</artifactId>
8 <name>onboarding-ui-war</name>
9 <packaging>war</packaging>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>sdc-onboarding</artifactId>
14 <version>1.2.0-SNAPSHOT</version>
15 <relativePath>../onboarding</relativePath>
19 <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
25 <artifactId>maven-clean-plugin</artifactId>
26 <version>2.6.1</version>
29 <id>clean.dist.folder</id>
37 <directory>${basedir}/dist</directory>
40 <!--<directory>${basedir}/node_modules</directory>-->
43 <directory>${basedir}/coverage</directory>
46 <directory>${basedir}/../dox-sequence-diagram-ui/dist
50 <!--<directory>${basedir}/../dox-sequence-diagram-ui/node_modules-->
59 <!-- ============================================= -->
60 <!-- Build the UI module node code -->
61 <!-- ============================================= -->
63 <groupId>com.github.eirslett</groupId>
64 <artifactId>frontend-maven-plugin</artifactId>
65 <version>1.4</version>
68 <installDirectory>${project.parent.parent.basedir}</installDirectory>
74 <id>install node and npm</id>
76 <goal>install-node-and-npm</goal>
79 <nodeVersion>v6.9.5</nodeVersion>
80 <npmVersion>3.10.10</npmVersion>
85 <id>npm set progress off</id>
90 <arguments>set progress=false</arguments>
95 <id>npm install in dox-sequence-diagram-ui</id>
100 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
102 <arguments>install</arguments>
106 <id>npm build in dox-sequence-diagram-ui</id>
111 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
113 <arguments>run build</arguments>
123 <arguments>install</arguments>
128 <id>npm run build</id>
133 <arguments>run build -- --version=${project.version}</arguments>
142 <arguments>run test-build</arguments>
144 <!-- for some reason does not fail on test phase -->
145 <phase>install</phase>
151 <artifactId>maven-antrun-plugin</artifactId>
155 <phase>prepare-package</phase>
158 <echo message="Building test environment"/>
159 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
161 <include name="**/*"/>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-war-plugin</artifactId>
176 <version>${maven.war.plugin.version}</version>
180 <directory>${basedir}/target/dist</directory>