blob: 93240c32f00ca74ab13f6a027c6e4978867ea77a [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>
MichaelMorris23d80342022-02-09 14:08:27 +000013 <version>1.10.2-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>
vasrazf1f5a352019-11-26 17:20:27 +000018 <app.context.path>onboarding</app.context.path>
19 <jest.command/>
20 </properties>
avigaffaa0858ef2017-09-12 11:46:01 +030021
vasrazf1f5a352019-11-26 17:20:27 +000022 <!-- ============================================= -->
23 <!-- Profile for windows to run jest one by the other due to current defect in node-graceful-js creating race condition -->
24 <!-- https://github.com/isaacs/node-graceful-fs/pull/119 -->
25 <!-- ============================================= -->
26 <profiles>
27 <profile>
28 <id>jest-windows-profile</id>
29 <activation>
30 <os>
31 <family>windows</family>
32 </os>
33 </activation>
34 <properties>
35 <jest.command>--runInBand</jest.command>
36 </properties>
37 </profile>
38 </profiles>
39 <build>
40 <plugins>
41 <plugin>
vasraz06250502021-06-17 20:12:04 +010042 <groupId>org.apache.maven.plugins</groupId>
vasrazf1f5a352019-11-26 17:20:27 +000043 <artifactId>maven-clean-plugin</artifactId>
vasrazf1f5a352019-11-26 17:20:27 +000044 <executions>
45 <execution>
46 <id>clean.dist.folder</id>
47 <phase>clean</phase>
48 <goals>
49 <goal>clean</goal>
50 </goals>
51 <configuration>
52 <filesets>
53 <fileset>
54 <directory>${basedir}/dist</directory>
55 </fileset>
56 <fileset>
57 <directory>${basedir}/coverage</directory>
58 </fileset>
59 <fileset>
vasraz06250502021-06-17 20:12:04 +010060 <directory>${basedir}/../dox-sequence-diagram-ui/dist</directory>
vasrazf1f5a352019-11-26 17:20:27 +000061 </fileset>
62 </filesets>
63 </configuration>
64 </execution>
65 <execution>
66 <id>clean.nodemodules.folder</id>
67 <phase>clean</phase>
68 <goals>
69 <goal>clean</goal>
70 </goals>
71 <configuration>
72 <skip>${skipUICleanup}</skip>
73 <filesets>
74 <fileset>
75 <directory>${basedir}/node_modules</directory>
76 </fileset>
77 <fileset>
78 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules
79 </directory>
80 </fileset>
81 </filesets>
82 </configuration>
83 </execution>
84 </executions>
85 </plugin>
avigaffaa0858ef2017-09-12 11:46:01 +030086
vasrazf1f5a352019-11-26 17:20:27 +000087 <!-- ============================================= -->
88 <!-- Build the UI module node code -->
89 <!-- ============================================= -->
90 <plugin>
91 <groupId>com.github.eirslett</groupId>
92 <artifactId>frontend-maven-plugin</artifactId>
vasrazf1f5a352019-11-26 17:20:27 +000093 <configuration>
94 <installDirectory>${project.parent.parent.basedir}</installDirectory>
95 </configuration>
avigaffaa0858ef2017-09-12 11:46:01 +030096
vasrazf1f5a352019-11-26 17:20:27 +000097 <executions>
avigaffaa0858ef2017-09-12 11:46:01 +030098
vasrazf1f5a352019-11-26 17:20:27 +000099 <execution>
100 <id>install node and yarn</id>
101 <goals>
102 <goal>install-node-and-yarn</goal>
103 </goals>
104 <configuration>
vasrazbdfccb62022-03-17 23:36:54 +0000105 <nodeVersion>v14.17.1</nodeVersion>
vasrazf1f5a352019-11-26 17:20:27 +0000106 <yarnVersion>v1.19.1</yarnVersion>
107 </configuration>
108 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300109
vasrazf1f5a352019-11-26 17:20:27 +0000110 <execution>
111 <id>yarn install in dox-sequence-diagram-ui</id>
112 <goals>
113 <goal>yarn</goal>
114 </goals>
115 <configuration>
vasraz06250502021-06-17 20:12:04 +0100116 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory>
vasrazf1f5a352019-11-26 17:20:27 +0000117 <arguments>install</arguments>
118 </configuration>
119 </execution>
120 <execution>
121 <id>yarn build in dox-sequence-diagram-ui</id>
122 <goals>
123 <goal>yarn</goal>
124 </goals>
125 <configuration>
vasraz06250502021-06-17 20:12:04 +0100126 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui</workingDirectory>
vasrazf1f5a352019-11-26 17:20:27 +0000127 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
128 <arguments>build</arguments>
129 </configuration>
130 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300131
vasrazf1f5a352019-11-26 17:20:27 +0000132 <execution>
133 <id>yarn install</id>
134 <goals>
135 <goal>yarn</goal>
136 </goals>
137 <configuration>
138 <arguments>install</arguments>
139 </configuration>
140 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300141
vasrazf1f5a352019-11-26 17:20:27 +0000142 <execution>
143 <id>yarn build</id>
144 <goals>
145 <goal>yarn</goal>
146 </goals>
147 <configuration>
148 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
149 <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments>
150 </configuration>
151 </execution>
152 <execution>
153 <id>ui test</id>
154 <goals>
155 <goal>yarn</goal>
156 </goals>
157 <configuration>
158 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
159 <arguments>test-build ${jest.command}</arguments>
andre.schmid5a59bf12021-10-08 12:54:44 +0100160 <skip>${maven.test.skip}</skip>
vasrazf1f5a352019-11-26 17:20:27 +0000161 </configuration>
162 <!-- for some reason does not fail on test phase -->
163 <phase>test</phase>
164 </execution>
165 </executions>
166 </plugin>
avigaffaa0858ef2017-09-12 11:46:01 +0300167
vasrazf1f5a352019-11-26 17:20:27 +0000168 <plugin>
169 <groupId>org.apache.maven.plugins</groupId>
170 <artifactId>maven-war-plugin</artifactId>
vasrazf1f5a352019-11-26 17:20:27 +0000171 <configuration>
172 <webResources>
173 <resource>
174 <directory>${basedir}/dist</directory>
175 <includes>
176 <include>*.html</include>
177 <include>*.js</include>
178 </includes>
179 </resource>
180 <resource>
181 <directory>${basedir}/src</directory>
182 <includes>
183 <include>**/*.json</include>
184 </includes>
185 </resource>
186 <resource>
187 <directory>${basedir}/external-resources/healthcheck/</directory>
188 <targetPath>v1.0</targetPath>
189 <filtering>true</filtering>
190 <includes>
191 <include>healthcheck</include>
192 </includes>
193 </resource>
194 <resource>
195 <directory>${basedir}/webapp-onboarding</directory>
196 <filtering>true</filtering>
197 </resource>
198 </webResources>
199 </configuration>
200 </plugin>
201 </plugins>
202 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200203
Michael Landoefa037d2017-02-19 12:57:33 +0200204</project>