blob: df86ce7748db5829f7754fe3df2bdea929af924c [file] [log] [blame]
avigaffaa0858ef2017-09-12 11:46:01 +03001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
avigaffa00e935f2017-09-10 08:58:51 +03003 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
AviZi280f8012017-06-09 02:39:56 +03004 <modelVersion>4.0.0</modelVersion>
Michael Landoefa037d2017-02-19 12:57:33 +02005
avigaffaa0858ef2017-09-12 11:46:01 +03006 <groupId>org.openecomp.sdc</groupId>
AviZi280f8012017-06-09 02:39:56 +03007 <artifactId>onboarding-fe</artifactId>
8 <name>onboarding-ui-war</name>
9 <packaging>war</packaging>
Michael Landoefa037d2017-02-19 12:57:33 +020010
avigaffaa0858ef2017-09-12 11:46:01 +030011 <parent>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>sdc-onboarding</artifactId>
Michael Lando0ad3c802017-09-19 16:32:59 +030014 <version>1.2.0-SNAPSHOT</version>
avigaffaa0858ef2017-09-12 11:46:01 +030015 <relativePath>../onboarding</relativePath>
16 </parent>
17
18 <properties>
19 <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
20 </properties>
21
AviZi280f8012017-06-09 02:39:56 +030022 <build>
23 <plugins>
AviZi280f8012017-06-09 02:39:56 +030024 <plugin>
avigaffaa0858ef2017-09-12 11:46:01 +030025 <artifactId>maven-clean-plugin</artifactId>
26 <version>2.6.1</version>
27 <executions>
28 <execution>
29 <id>clean.dist.folder</id>
30 <phase>clean</phase>
31 <goals>
32 <goal>clean</goal>
33 </goals>
34 <configuration>
35 <filesets>
36 <fileset>
37 <directory>${basedir}/dist</directory>
38 </fileset>
Michael Lando7546f82f2017-10-18 01:51:24 +030039 <!--<fileset>-->
40 <!--<directory>${basedir}/node_modules</directory>-->
41 <!--</fileset>-->
avigaffaa0858ef2017-09-12 11:46:01 +030042 <fileset>
talig8e9c0652017-12-20 14:30:43 +020043 <directory>${basedir}/coverage</directory>
44 </fileset>
45 <fileset>
avigaffaa0858ef2017-09-12 11:46:01 +030046 <directory>${basedir}/../dox-sequence-diagram-ui/dist
47 </directory>
48 </fileset>
Michael Lando7546f82f2017-10-18 01:51:24 +030049 <!--<fileset>-->
50 <!--<directory>${basedir}/../dox-sequence-diagram-ui/node_modules-->
51 <!--</directory>-->
52 <!--</fileset>-->
avigaffaa0858ef2017-09-12 11:46:01 +030053 </filesets>
54 </configuration>
55 </execution>
56 </executions>
57 </plugin>
58
59 <!-- ============================================= -->
60 <!-- Build the UI module node code -->
61 <!-- ============================================= -->
62 <plugin>
63 <groupId>com.github.eirslett</groupId>
64 <artifactId>frontend-maven-plugin</artifactId>
65 <version>1.4</version>
66
67 <configuration>
68 <installDirectory>${project.parent.parent.basedir}</installDirectory>
69 </configuration>
70
71 <executions>
72
73 <execution>
74 <id>install node and npm</id>
75 <goals>
76 <goal>install-node-and-npm</goal>
77 </goals>
78 <configuration>
79 <nodeVersion>v6.9.5</nodeVersion>
80 <npmVersion>3.10.10</npmVersion>
81 </configuration>
82 </execution>
83
84 <execution>
85 <id>npm set progress off</id>
86 <goals>
87 <goal>npm</goal>
88 </goals>
89 <configuration>
90 <arguments>set progress=false</arguments>
91 </configuration>
92 </execution>
93
94 <execution>
95 <id>npm install in dox-sequence-diagram-ui</id>
96 <goals>
97 <goal>npm</goal>
98 </goals>
99 <configuration>
100 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
101 </workingDirectory>
102 <arguments>install</arguments>
103 </configuration>
104 </execution>
105
106 <!-- Fix jQuery dependency in restful-js -->
107 <execution>
108 <id>npm restful-js</id>
109 <goals>
110 <goal>npm</goal>
111 </goals>
112 <configuration>
113 <arguments>install restful-js</arguments>
114 </configuration>
115 </execution>
116 <execution>
117 <id>npm install restful-js dependencies</id>
118 <goals>
119 <goal>npm</goal>
120 </goals>
121 <configuration>
122 <workingDirectory>${project.basedir}/node_modules/restful-js
123 </workingDirectory>
124 <arguments>install --production</arguments>
125 </configuration>
126 </execution>
127
128 <execution>
129 <id>npm install</id>
130 <goals>
131 <goal>npm</goal>
132 </goals>
133 <configuration>
134 <arguments>install</arguments>
135 </configuration>
136 </execution>
137
138 <execution>
139 <id>npm run build</id>
140 <goals>
141 <goal>npm</goal>
142 </goals>
143 <configuration>
144 <arguments>run build -- --version=${project.version}</arguments>
145 </configuration>
146 </execution>
talig8e9c0652017-12-20 14:30:43 +0200147 <execution>
148 <id>ui test</id>
149 <goals>
150 <goal>npm</goal>
151 </goals>
152 <configuration>
153 <arguments>run test-build</arguments>
154 </configuration>
155 <phase>test</phase>
156 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300157 </executions>
158 </plugin>
159
160 <plugin>
161 <artifactId>maven-antrun-plugin</artifactId>
162 <executions>
163 <execution>
164 <id>repack war</id>
165 <phase>prepare-package</phase>
166 <configuration>
167 <tasks>
168 <echo message="Building test environment"/>
169 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
170 <patternset>
171 <include name="**/*"/>
172 </patternset>
173 </unzip>
174 </tasks>
175 </configuration>
176 <goals>
177 <goal>run</goal>
178 </goals>
179 </execution>
180 </executions>
181 </plugin>
182
183 <plugin>
184 <groupId>org.apache.maven.plugins</groupId>
AviZi280f8012017-06-09 02:39:56 +0300185 <artifactId>maven-war-plugin</artifactId>
avigaffaa0858ef2017-09-12 11:46:01 +0300186 <version>${maven.war.plugin.version}</version>
187 <configuration>
188 <webResources>
189 <resource>
190 <directory>${basedir}/target/dist</directory>
191 </resource>
192 </webResources>
193 </configuration>
194 </plugin>
AviZi280f8012017-06-09 02:39:56 +0300195 </plugins>
196 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200197
Michael Landoefa037d2017-02-19 12:57:33 +0200198</project>