blob: 1fbac72619b941236f041e4b5f5820a54ba7acb2 [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
AviZi280f8012017-06-09 02:39:56 +03006 <artifactId>onboarding-fe</artifactId>
7 <name>onboarding-ui-war</name>
8 <packaging>war</packaging>
Michael Landoefa037d2017-02-19 12:57:33 +02009
avigaffaa0858ef2017-09-12 11:46:01 +030010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-onboarding</artifactId>
Ofir Sonsino610ff242019-07-28 15:44:36 +030013 <version>1.5.1-SNAPSHOT</version>
avigaffaa0858ef2017-09-12 11:46:01 +030014 <relativePath>../onboarding</relativePath>
15 </parent>
16
17 <properties>
18 <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +030019 <app.context.path>onboarding</app.context.path>
Einav Weiss Keidard2f57942018-02-14 14:00:07 +020020 <jest.command />
avigaffaa0858ef2017-09-12 11:46:01 +030021 </properties>
22
Einav Weiss Keidard2f57942018-02-14 14:00:07 +020023 <!-- ============================================= -->
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>
AviZi280f8012017-06-09 02:39:56 +030040 <build>
41 <plugins>
AviZi280f8012017-06-09 02:39:56 +030042 <plugin>
avigaffaa0858ef2017-09-12 11:46:01 +030043 <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>
svishnevb03fa612018-01-25 17:22:08 +020057 <fileset>
talig8e9c0652017-12-20 14:30:43 +020058 <directory>${basedir}/coverage</directory>
59 </fileset>
60 <fileset>
avigaffaa0858ef2017-09-12 11:46:01 +030061 <directory>${basedir}/../dox-sequence-diagram-ui/dist
62 </directory>
63 </fileset>
Einav Weiss Keidard049ca02018-03-21 13:31:23 +020064 </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>
svishnevb03fa612018-01-25 17:22:08 +020079 <fileset>
80 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules
81 </directory>
82 </fileset>
avigaffaa0858ef2017-09-12 11:46:01 +030083 </filesets>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
88
89 <!-- ============================================= -->
90 <!-- Build the UI module node code -->
91 <!-- ============================================= -->
92 <plugin>
93 <groupId>com.github.eirslett</groupId>
94 <artifactId>frontend-maven-plugin</artifactId>
svishnevb03fa612018-01-25 17:22:08 +020095 <version>1.6</version>
avigaffaa0858ef2017-09-12 11:46:01 +030096
97 <configuration>
98 <installDirectory>${project.parent.parent.basedir}</installDirectory>
99 </configuration>
100
101 <executions>
102
103 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200104 <id>install node and yarn</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300105 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200106 <goal>install-node-and-yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300107 </goals>
108 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200109 <nodeVersion>v9.4.0</nodeVersion>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300110 <yarnVersion>v1.7.0</yarnVersion>
avigaffaa0858ef2017-09-12 11:46:01 +0300111 </configuration>
Einav Weiss Keidard2f57942018-02-14 14:00:07 +0200112 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300113
114 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200115 <id>yarn install in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300116 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200117 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300118 </goals>
119 <configuration>
120 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
121 </workingDirectory>
122 <arguments>install</arguments>
123 </configuration>
124 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300125 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200126 <id>yarn build in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300127 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200128 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300129 </goals>
130 <configuration>
ilanap1965d162018-01-04 11:34:59 +0200131 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
avigaffaa0858ef2017-09-12 11:46:01 +0300132 </workingDirectory>
svishnevb03fa612018-01-25 17:22:08 +0200133 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300134 <arguments>build</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300135 </configuration>
136 </execution>
137
138 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200139 <id>yarn install</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300140 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200141 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300142 </goals>
143 <configuration>
144 <arguments>install</arguments>
145 </configuration>
146 </execution>
147
148 <execution>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300149 <id>yarn build</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300150 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200151 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300152 </goals>
153 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200154 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300155 <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300156 </configuration>
157 </execution>
talig8e9c0652017-12-20 14:30:43 +0200158 <execution>
159 <id>ui test</id>
160 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200161 <goal>yarn</goal>
Einav Weiss Keidard2f57942018-02-14 14:00:07 +0200162 </goals>
talig8e9c0652017-12-20 14:30:43 +0200163 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200164 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300165 <arguments>test-build ${jest.command}</arguments>
166 <skip>${skipTests}</skip>
talig8e9c0652017-12-20 14:30:43 +0200167 </configuration>
ilanap785dc1e2018-01-08 15:50:18 +0200168 <!-- for some reason does not fail on test phase -->
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300169 <phase>test</phase>
avigaffaa0858ef2017-09-12 11:46:01 +0300170 </execution>
171 </executions>
172 </plugin>
173
174 <plugin>
175 <groupId>org.apache.maven.plugins</groupId>
AviZi280f8012017-06-09 02:39:56 +0300176 <artifactId>maven-war-plugin</artifactId>
avigaffaa0858ef2017-09-12 11:46:01 +0300177 <version>${maven.war.plugin.version}</version>
178 <configuration>
179 <webResources>
180 <resource>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300181 <directory>${basedir}/dist</directory>
182 <includes>
183 <include>*.html</include>
184 <include>*.js</include>
185 </includes>
186 </resource>
187 <resource>
188 <directory>${basedir}/src</directory>
189 <includes>
190 <include>**/*.json</include>
191 </includes>
192 </resource>
193 <resource>
194 <directory>${basedir}/external-resources/healthcheck/</directory>
195 <targetPath>v1.0</targetPath>
196 <filtering>true</filtering>
197 <includes>
198 <include>healthcheck</include>
199 </includes>
200 </resource>
201 <resource>
202 <directory>${basedir}/webapp-onboarding</directory>
203 <filtering>true</filtering>
avigaffaa0858ef2017-09-12 11:46:01 +0300204 </resource>
205 </webResources>
206 </configuration>
207 </plugin>
AviZi280f8012017-06-09 02:39:56 +0300208 </plugins>
209 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200210
Michael Landoefa037d2017-02-19 12:57:33 +0200211</project>