blob: 026f129b937b639f5973a174d284bd96d8aa4199 [file] [log] [blame]
Michael Landoefa037d2017-02-19 12:57:33 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
AviZi280f8012017-06-09 02:39:56 +03002 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>
Michael Landoefa037d2017-02-19 12:57:33 +02004
AviZi280f8012017-06-09 02:39:56 +03005 <groupId>org.openecomp.sdc</groupId>
6 <artifactId>onboarding-fe</artifactId>
7 <name>onboarding-ui-war</name>
8 <packaging>war</packaging>
Michael Landoefa037d2017-02-19 12:57:33 +02009
AviZi280f8012017-06-09 02:39:56 +030010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-onboarding</artifactId>
13 <version>1.1.0-SNAPSHOT</version>
14 <relativePath>../onboarding</relativePath>
15 </parent>
Michael Landoefa037d2017-02-19 12:57:33 +020016
AviZi280f8012017-06-09 02:39:56 +030017 <build>
18 <plugins>
19 <!-- ============================================= -->
20 <!-- Clean dist folder -->
21 <!-- ============================================= -->
22 <plugin>
23 <artifactId>maven-clean-plugin</artifactId>
24 <version>2.6.1</version>
25 <executions>
26 <execution>
27 <id>clean.dist.folder</id>
28 <phase>clean</phase>
29 <goals>
30 <goal>clean</goal>
31 </goals>
32 <configuration>
33 <filesets>
34 <fileset>
35 <directory>${basedir}/dist</directory>
36 </fileset>
37 <fileset>
38 <directory>${basedir}/node_modules</directory>
39 </fileset>
40 <fileset>
41 <directory>${basedir}/../dox-sequence-diagram-ui/dist</directory>
42 </fileset>
43 <fileset>
44 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules</directory>
45 </fileset>
46 </filesets>
47 </configuration>
48 </execution>
49 </executions>
50 </plugin>
ml636r72e56e42017-02-27 12:36:59 +020051
AviZi280f8012017-06-09 02:39:56 +030052 <!-- ============================================= -->
53 <!-- Build the UI module node code -->
54 <!-- ============================================= -->
55 <plugin>
56 <groupId>com.github.eirslett</groupId>
57 <artifactId>frontend-maven-plugin</artifactId>
58 <version>1.4</version>
Michael Landoc13a9442017-08-22 13:33:06 +030059
Tal Gitelman153a3582017-07-03 20:16:55 +030060 <configuration>
61 <installDirectory>${project.parent.parent.basedir}</installDirectory>
Michael Landoc13a9442017-08-22 13:33:06 +030062 </configuration>
63
AviZi280f8012017-06-09 02:39:56 +030064 <executions>
ml636r5d2f54c2017-02-19 23:56:00 +020065
AviZi280f8012017-06-09 02:39:56 +030066 <execution>
67 <id>install node and npm</id>
68 <goals>
69 <goal>install-node-and-npm</goal>
70 </goals>
71 <configuration>
72 <nodeVersion>v6.9.5</nodeVersion>
73 <npmVersion>3.10.10</npmVersion>
74 </configuration>
75 </execution>
Michael Landoc13a9442017-08-22 13:33:06 +030076
Tal Gitelman153a3582017-07-03 20:16:55 +030077 <execution>
78 <id>npm set progress off</id>
79 <goals>
80 <goal>npm</goal>
81 </goals>
82 <configuration>
83 <arguments>set progress=false</arguments>
84 </configuration>
85 </execution>
Michael Landoc13a9442017-08-22 13:33:06 +030086
AviZi280f8012017-06-09 02:39:56 +030087 <execution>
88 <id>npm install in dox-sequence-diagram-ui</id>
89 <goals>
90 <goal>npm</goal>
91 </goals>
92 <configuration>
93 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory>
94 <arguments>install</arguments>
95 </configuration>
96 </execution>
Michael Landoc13a9442017-08-22 13:33:06 +030097
AviZi280f8012017-06-09 02:39:56 +030098 <execution>
99 <id>npm install</id>
100 <goals>
101 <goal>npm</goal>
102 </goals>
103 <configuration>
104 <arguments>install</arguments>
105 </configuration>
106 </execution>
Michael Landoc13a9442017-08-22 13:33:06 +0300107
AviZi280f8012017-06-09 02:39:56 +0300108 <execution>
109 <id>npm run build</id>
110 <goals>
111 <goal>npm</goal>
112 </goals>
113 <configuration>
vempofad94e42017-09-03 16:35:04 +0300114 <arguments>run build -- --version=${project.version}</arguments>
AviZi280f8012017-06-09 02:39:56 +0300115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
ml636r5d2f54c2017-02-19 23:56:00 +0200119
AviZi280f8012017-06-09 02:39:56 +0300120 <plugin>
121 <artifactId>maven-antrun-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>repack war</id>
125 <phase>prepare-package</phase>
126 <configuration>
127 <tasks>
128 <echo message="Building test environment"/>
129 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
130 <patternset>
131 <include name="**/*"/>
132 </patternset>
133 </unzip>
134 </tasks>
135 </configuration>
136 <goals>
137 <goal>run</goal>
138 </goals>
139 </execution>
140 </executions>
141 </plugin>
ml636r5d2f54c2017-02-19 23:56:00 +0200142
AviZi280f8012017-06-09 02:39:56 +0300143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-war-plugin</artifactId>
146 <version>3.0.0</version>
147 <configuration>
148 <webResources>
149 <resource>
150 <directory>${basedir}/target/dist</directory>
151 </resource>
152 </webResources>
153 </configuration>
154 </plugin>
155 </plugins>
156 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200157
Michael Landoefa037d2017-02-19 12:57:33 +0200158</project>