blob: 66bacc4db81b45a71d7e1f546e7d0a0fd87def5d [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 Lando1276ee12018-11-01 16:25:31 +020014 <version>1.3.2-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>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +030020 <app.context.path>onboarding</app.context.path>
Einav Weiss Keidard2f57942018-02-14 14:00:07 +020021 <jest.command />
avigaffaa0858ef2017-09-12 11:46:01 +030022 </properties>
23
Einav Weiss Keidard2f57942018-02-14 14:00:07 +020024 <!-- ============================================= -->
25 <!-- Profile for windows to run jest one by the other due to current defect in node-graceful-js creating race condition -->
26 <!-- https://github.com/isaacs/node-graceful-fs/pull/119 -->
27 <!-- ============================================= -->
28 <profiles>
29 <profile>
30 <id>jest-windows-profile</id>
31 <activation>
32 <os>
33 <family>windows</family>
34 </os>
35 </activation>
36 <properties>
37 <jest.command>--runInBand</jest.command>
38 </properties>
39 </profile>
40 </profiles>
AviZi280f8012017-06-09 02:39:56 +030041 <build>
42 <plugins>
AviZi280f8012017-06-09 02:39:56 +030043 <plugin>
avigaffaa0858ef2017-09-12 11:46:01 +030044 <artifactId>maven-clean-plugin</artifactId>
45 <version>2.6.1</version>
46 <executions>
47 <execution>
48 <id>clean.dist.folder</id>
49 <phase>clean</phase>
50 <goals>
51 <goal>clean</goal>
52 </goals>
53 <configuration>
54 <filesets>
55 <fileset>
56 <directory>${basedir}/dist</directory>
57 </fileset>
svishnevb03fa612018-01-25 17:22:08 +020058 <fileset>
talig8e9c0652017-12-20 14:30:43 +020059 <directory>${basedir}/coverage</directory>
60 </fileset>
61 <fileset>
avigaffaa0858ef2017-09-12 11:46:01 +030062 <directory>${basedir}/../dox-sequence-diagram-ui/dist
63 </directory>
64 </fileset>
Einav Weiss Keidard049ca02018-03-21 13:31:23 +020065 </filesets>
66 </configuration>
67 </execution>
68 <execution>
69 <id>clean.nodemodules.folder</id>
70 <phase>clean</phase>
71 <goals>
72 <goal>clean</goal>
73 </goals>
74 <configuration>
75 <skip>${skipUICleanup}</skip>
76 <filesets>
77 <fileset>
78 <directory>${basedir}/node_modules</directory>
79 </fileset>
svishnevb03fa612018-01-25 17:22:08 +020080 <fileset>
81 <directory>${basedir}/../dox-sequence-diagram-ui/node_modules
82 </directory>
83 </fileset>
avigaffaa0858ef2017-09-12 11:46:01 +030084 </filesets>
85 </configuration>
86 </execution>
87 </executions>
88 </plugin>
89
90 <!-- ============================================= -->
91 <!-- Build the UI module node code -->
92 <!-- ============================================= -->
93 <plugin>
94 <groupId>com.github.eirslett</groupId>
95 <artifactId>frontend-maven-plugin</artifactId>
svishnevb03fa612018-01-25 17:22:08 +020096 <version>1.6</version>
avigaffaa0858ef2017-09-12 11:46:01 +030097
98 <configuration>
99 <installDirectory>${project.parent.parent.basedir}</installDirectory>
100 </configuration>
101
102 <executions>
103
104 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200105 <id>install node and yarn</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300106 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200107 <goal>install-node-and-yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300108 </goals>
109 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200110 <nodeVersion>v9.4.0</nodeVersion>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300111 <yarnVersion>v1.7.0</yarnVersion>
avigaffaa0858ef2017-09-12 11:46:01 +0300112 </configuration>
Einav Weiss Keidard2f57942018-02-14 14:00:07 +0200113 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300114
115 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200116 <id>yarn install in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300117 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200118 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300119 </goals>
120 <configuration>
121 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
122 </workingDirectory>
123 <arguments>install</arguments>
124 </configuration>
125 </execution>
avigaffaa0858ef2017-09-12 11:46:01 +0300126 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200127 <id>yarn build in dox-sequence-diagram-ui</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300128 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200129 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300130 </goals>
131 <configuration>
ilanap1965d162018-01-04 11:34:59 +0200132 <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
avigaffaa0858ef2017-09-12 11:46:01 +0300133 </workingDirectory>
svishnevb03fa612018-01-25 17:22:08 +0200134 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300135 <arguments>build</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300136 </configuration>
137 </execution>
138
139 <execution>
svishnevb03fa612018-01-25 17:22:08 +0200140 <id>yarn install</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300141 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200142 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300143 </goals>
144 <configuration>
145 <arguments>install</arguments>
146 </configuration>
147 </execution>
148
149 <execution>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300150 <id>yarn build</id>
avigaffaa0858ef2017-09-12 11:46:01 +0300151 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200152 <goal>yarn</goal>
avigaffaa0858ef2017-09-12 11:46:01 +0300153 </goals>
154 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200155 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300156 <arguments>build --version=${project.version} --env.version=${project.version} --env.language=en</arguments>
avigaffaa0858ef2017-09-12 11:46:01 +0300157 </configuration>
158 </execution>
talig8e9c0652017-12-20 14:30:43 +0200159 <execution>
160 <id>ui test</id>
161 <goals>
svishnevb03fa612018-01-25 17:22:08 +0200162 <goal>yarn</goal>
Einav Weiss Keidard2f57942018-02-14 14:00:07 +0200163 </goals>
talig8e9c0652017-12-20 14:30:43 +0200164 <configuration>
svishnevb03fa612018-01-25 17:22:08 +0200165 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300166 <arguments>test-build ${jest.command}</arguments>
167 <skip>${skipTests}</skip>
talig8e9c0652017-12-20 14:30:43 +0200168 </configuration>
ilanap785dc1e2018-01-08 15:50:18 +0200169 <!-- for some reason does not fail on test phase -->
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300170 <phase>test</phase>
avigaffaa0858ef2017-09-12 11:46:01 +0300171 </execution>
172 </executions>
173 </plugin>
174
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
AviZi280f8012017-06-09 02:39:56 +0300177 <artifactId>maven-war-plugin</artifactId>
avigaffaa0858ef2017-09-12 11:46:01 +0300178 <version>${maven.war.plugin.version}</version>
179 <configuration>
180 <webResources>
181 <resource>
Einav Weiss Keidarf2c47232018-05-30 18:12:02 +0300182 <directory>${basedir}/dist</directory>
183 <includes>
184 <include>*.html</include>
185 <include>*.js</include>
186 </includes>
187 </resource>
188 <resource>
189 <directory>${basedir}/src</directory>
190 <includes>
191 <include>**/*.json</include>
192 </includes>
193 </resource>
194 <resource>
195 <directory>${basedir}/external-resources/healthcheck/</directory>
196 <targetPath>v1.0</targetPath>
197 <filtering>true</filtering>
198 <includes>
199 <include>healthcheck</include>
200 </includes>
201 </resource>
202 <resource>
203 <directory>${basedir}/webapp-onboarding</directory>
204 <filtering>true</filtering>
avigaffaa0858ef2017-09-12 11:46:01 +0300205 </resource>
206 </webResources>
207 </configuration>
208 </plugin>
AviZi280f8012017-06-09 02:39:56 +0300209 </plugins>
210 </build>
Michael Landoefa037d2017-02-19 12:57:33 +0200211
Michael Landoefa037d2017-02-19 12:57:33 +0200212</project>