blob: 9665d46266612bc7eefebf7b61f0216c7b05b921 [file] [log] [blame]
avigaffaa0858ef2017-09-12 11:46:01 +03001<project xmlns="http://maven.apache.org/POM/4.0.0"
vasrazf1f5a352019-11-26 17:20:27 +00002 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>
Michael Landoefa037d2017-02-19 12:57:33 +02005
vasrazf1f5a352019-11-26 17:20:27 +00006 <artifactId>onboarding-fe</artifactId>
7 <name>onboarding-ui-war</name>
8 <packaging>war</packaging>
Michael Landoefa037d2017-02-19 12:57:33 +02009
vasrazf1f5a352019-11-26 17:20:27 +000010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-onboarding</artifactId>
Joanna Jeremicz1affa572020-11-30 11:35:07 +010013 <version>1.8.1-SNAPSHOT</version>
vasrazf1f5a352019-11-26 17:20:27 +000014 <relativePath>../onboarding</relativePath>
15 </parent>
avigaffaa0858ef2017-09-12 11:46:01 +030016
vasrazf1f5a352019-11-26 17:20:27 +000017 <properties>
18 <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
19 <app.context.path>onboarding</app.context.path>
20 <jest.command/>
21 </properties>
avigaffaa0858ef2017-09-12 11:46:01 +030022
vasrazf1f5a352019-11-26 17:20:27 +000023 <!-- ============================================= -->
24 <!-- Profile for windows to run jest one by the other due to current defect in node-graceful-js creating race condition -->
25 <!-- https://github.com/isaacs/node-graceful-fs/pull/119 -->
26 <!-- ============================================= -->
27 <profiles>
28 <profile>
29 <id>jest-windows-profile</id>
30 <activation>
31 <os>
32 <family>windows</family>
33 </os>
34 </activation>
35 <properties>
36 <jest.command>--runInBand</jest.command>
37 </properties>
38 </profile>
39 </profiles>
40 <build>
41 <plugins>
42 <plugin>
43 <artifactId>maven-clean-plugin</artifactId>
44 <version>2.6.1</version>
45 <executions>
46 <execution>
47 <id>clean.dist.folder</id>
48 <phase>clean</phase>
49 <goals>
50 <goal>clean</goal>
51 </goals>
52 <configuration>
53 <filesets>
54 <fileset>
55 <directory>${basedir}/dist</directory>
56 </fileset>
57 <fileset>
58 <directory>${basedir}/coverage</directory>
59 </fileset>
60 <fileset>
61 <directory>${basedir}/../dox-sequence-diagram-ui/dist
62 </directory>
63 </fileset>
64 </filesets>
65 </configuration>
66 </execution>
67 <execution>
68 <id>clean.nodemodules.folder</id>
69 <phase>clean</phase>
70 <goals>
71 <goal>clean</goal>
72 </goals>
73 <configuration>
74 <skip>${skipUICleanup}</skip>
75 <filesets>
76 <fileset>
77 <directory>${basedir}/node_modules</directory>
78 </fileset>
79 <fileset>
80 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules
81 </directory>
82 </fileset>
83 </filesets>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
avigaffaa0858ef2017-09-12 11:46:01 +030088
vasrazf1f5a352019-11-26 17:20:27 +000089 <!-- ============================================= -->
90 <!-- Build the UI module node code -->
91 <!-- ============================================= -->
92 <plugin>
93 <groupId>com.github.eirslett</groupId>
94 <artifactId>frontend-maven-plugin</artifactId>
avigaffaa0858ef2017-09-12 11:46:01 +030095
vasrazf1f5a352019-11-26 17:20:27 +000096 <configuration>
97 <installDirectory>${project.parent.parent.basedir}</installDirectory>
98 </configuration>
avigaffaa0858ef2017-09-12 11:46:01 +030099
vasrazf1f5a352019-11-26 17:20:27 +0000100 <executions>
avigaffaa0858ef2017-09-12 11:46:01 +0300101
vasrazf1f5a352019-11-26 17:20:27 +0000102 <execution>
103 <id>install node and yarn</id>
104 <goals>
105 <goal>install-node-and-yarn</goal>
106 </goals>
107 <configuration>
108 <nodeVersion>v10.17.0</nodeVersion>
109 <yarnVersion>v1.19.1</yarnVersion>
110 </configuration>
111 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300112
vasrazf1f5a352019-11-26 17:20:27 +0000113 <execution>
114 <id>yarn install in dox-sequence-diagram-ui</id>
115 <goals>
116 <goal>yarn</goal>
117 </goals>
118 <configuration>
119 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
120 </workingDirectory>
121 <arguments>install</arguments>
122 </configuration>
123 </execution>
124 <execution>
125 <id>yarn build in dox-sequence-diagram-ui</id>
126 <goals>
127 <goal>yarn</goal>
128 </goals>
129 <configuration>
130 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
131 </workingDirectory>
132 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
133 <arguments>build</arguments>
134 </configuration>
135 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300136
vasrazf1f5a352019-11-26 17:20:27 +0000137 <execution>
138 <id>yarn install</id>
139 <goals>
140 <goal>yarn</goal>
141 </goals>
142 <configuration>
143 <arguments>install</arguments>
144 </configuration>
145 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300146
vasrazf1f5a352019-11-26 17:20:27 +0000147 <execution>
148 <id>yarn build</id>
149 <goals>
150 <goal>yarn</goal>
151 </goals>
152 <configuration>
153 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
154 <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments>
155 </configuration>
156 </execution>
157 <execution>
158 <id>ui test</id>
159 <goals>
160 <goal>yarn</goal>
161 </goals>
162 <configuration>
163 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
164 <arguments>test-build ${jest.command}</arguments>
165 <skip>${skipTests}</skip>
166 </configuration>
167 <!-- for some reason does not fail on test phase -->
168 <phase>test</phase>
169 </execution>
170 </executions>
171 </plugin>
avigaffaa0858ef2017-09-12 11:46:01 +0300172
vasrazf1f5a352019-11-26 17:20:27 +0000173 <plugin>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-war-plugin</artifactId>
176 <version>${maven.war.plugin.version}</version>
177 <configuration>
178 <webResources>
179 <resource>
180 <directory>${basedir}/dist</directory>
181 <includes>
182 <include>*.html</include>
183 <include>*.js</include>
184 </includes>
185 </resource>
186 <resource>
187 <directory>${basedir}/src</directory>
188 <includes>
189 <include>**/*.json</include>
190 </includes>
191 </resource>
192 <resource>
193 <directory>${basedir}/external-resources/healthcheck/</directory>
194 <targetPath>v1.0</targetPath>
195 <filtering>true</filtering>
196 <includes>
197 <include>healthcheck</include>
198 </includes>
199 </resource>
200 <resource>
201 <directory>${basedir}/webapp-onboarding</directory>
202 <filtering>true</filtering>
203 </resource>
204 </webResources>
205 </configuration>
206 </plugin>
207 </plugins>
208 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200209
Michael Landoefa037d2017-02-19 12:57:33 +0200210</project>