forked from SAP/openui5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
412 lines (340 loc) · 12.2 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<!--**************************************************************************
* POM SECTION: Maven Model Version Settings
***************************************************************************-->
<modelVersion>4.0.0</modelVersion>
<!--**************************************************************************
* POM SECTION: Maven Settings
***************************************************************************-->
<groupId>com.sap.openui5</groupId>
<artifactId>reactor</artifactId>
<version>1.86.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!--**************************************************************************
* POM SECTION: Project Settings
***************************************************************************-->
<name>OpenUI5</name>
<description>OpenUI5 - Reactor POM</description>
<!--**************************************************************************
* POM SECTION: Modules Settings
***************************************************************************-->
<modules>
<!-- UI libraries -->
<module>src/sap.ui.core</module>
<module>src/sap.ui.unified</module>
<module>src/sap.ui.layout</module>
<module>src/sap.m</module>
<module>src/sap.f</module>
<module>src/sap.ui.commons</module>
<module>src/sap.ui.table</module>
<module>src/sap.ui.ux3</module>
<module>src/sap.ui.suite</module>
<module>src/sap.ui.documentation</module>
<module>src/sap.ui.dt</module>
<module>src/sap.tnt</module>
<module>src/sap.uxap</module>
<module>src/sap.ui.fl</module>
<module>src/sap.ui.mdc</module>
<module>src/sap.ui.rta</module>
<module>src/sap.ui.codeeditor</module>
<module>src/sap.ui.support</module>
<module>src/sap.ui.integration</module>
<module>src/sap.ui.testrecorder</module>
<!-- theme libraries -->
<module>src/themelib_sap_bluecrystal</module>
<module>src/themelib_sap_belize</module>
<module>src/themelib_sap_fiori_3</module>
<!-- JSDoc template -->
<module>lib/jsdoc</module>
</modules>
<!--**************************************************************************
* POM SECTION: Properties Settings
***************************************************************************-->
<properties>
<!-- default encoding is UTF-8 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- default compiler level is 1.6 -->
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<!-- filtering properties -->
<version>${project.version}</version>
<copyright><![CDATA[OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
]]></copyright>
<buildtime>${maven.build.timestamp}</buildtime>
<lastchange></lastchange><!-- TODO: fill via build parameter -->
<!-- JSLint/ESLint report path -->
<sonar.javascript.jslint.reportPath>target/jslint/jslint.xml</sonar.javascript.jslint.reportPath>
<!-- Maven build phase in which npm-sources should be packaged -->
<!-- Set to 'package' to enable packaging for a project in general -->
<npm.package.phase>never</npm.package.phase>
<!-- internal properties, do not modify -->
<effective.npm.package.phase>${npm.package.phase}</effective.npm.package.phase>
<!-- skip eslint validation -->
<sap.ui5.eslint.skip.validation>true</sap.ui5.eslint.skip.validation>
<!-- fail on eslint error -->
<sap.ui5.eslint.failonerror>true</sap.ui5.eslint.failonerror>
<!-- only validate the changed files -->
<sap.ui5.eslint.onlyChangedFiles>true</sap.ui5.eslint.onlyChangedFiles>
<!-- quite or verbose execution -->
<sap.ui5.eslint.quite>true</sap.ui5.eslint.quite>
</properties>
<!--**************************************************************************
* POM SECTION: Build Settings
***************************************************************************-->
<build>
<plugins>
<!-- specify the delimiters for the filtering -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<!-- list of used binary types (must not be filtered) -->
<nonFilteredFileExtensions>
<extension>ttf</extension>
<extension>eot</extension>
<extension>gif</extension>
<extension>png</extension>
<extension>ico</extension>
<extension>swf</extension>
<extension>wav</extension>
<extension>properties</extension><!-- excluded as those files don't use UTF-8 encoding and as no filtering is needed -->
<extension>woff</extension>
<extension>woff2</extension>
<extension>hpb</extension><!-- hyphenation pattern binary (introduced by OSS component 'hyphenopoly') -->
<extension>wasm</extension><!-- web assembly, compiled binary -->
</nonFilteredFileExtensions>
<!--
With the default delimiter settings, filtering fails for lines with an odd number of delimiter chars
like in
@version @version@
We therefore disable the defaults and use only ${*}.
-->
<useDefaultDelimiters>false</useDefaultDelimiters>
<delimiters>
<delimiter>${*}</delimiter>
</delimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<id>npm-resources</id>
<goals>
<goal>jar</goal>
</goals>
<!-- we use the 'phase' as a substitute for the missing 'skip' property of the jar-plugin -->
<!-- for non-library projects and for all builds other than the nightly build, it is set to 'never' -->
<phase>${effective.npm.package.phase}</phase>
<configuration>
<classesDirectory>${project.basedir}</classesDirectory>
<classifier>npm-resources</classifier>
<includes>
<include>package.json</include>
<include>ui5.yaml</include>
<include>src/**/*</include>
<include>test/**/*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!--**************************************************************************
* POM SECTION: Profile Settings
***************************************************************************-->
<profiles>
<!-- attach the LICENSE.txt and THIRDPARTY.txt files -->
<profile>
<activation>
<file>
<exists>${basedir}/LICENSE.txt</exists>
</file>
</activation>
<build>
<plugins>
<!-- attach the LICENSE.txt and THIRDPARTY.txt as separate artifacts -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/LICENSE.txt</file>
<type>txt</type>
<classifier>LICENSE</classifier>
</artifact>
<artifact>
<file>${basedir}/THIRDPARTY.txt</file>
<type>txt</type>
<classifier>THIRDPARTY</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eslint.build</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>unpack</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.sap.ui5.tools.eslint</groupId>
<artifactId>eslint-plugin-openui5</artifactId>
<version>0.1.0-SNAPSHOT</version>
<outputDirectory>${project.build.directory}/eslint-plugin-openui5</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</plugin>
<!-- when adopting the plugin here please also adopt src/testsuite/pom.xml -->
<plugin>
<groupId>com.sap.eslint</groupId>
<artifactId>eslint-maven-plugin</artifactId>
<version>0.1.14</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>eslint</goal>
</goals>
</execution>
</executions>
<configuration>
<version>1.10.3</version>
<skip>${sap.ui5.eslint.skip.validation}</skip>
<failOnError>${sap.ui5.eslint.failonerror}</failOnError>
<onlyChangedFiles>${sap.ui5.eslint.onlyChangedFiles}</onlyChangedFiles>
<quiet>true</quiet>
<includes>
<include>src/**</include>
<include>test/**</include>
</includes>
<plugins>
<openui5>${project.build.directory}/eslint-plugin-openui5/plugin.js</openui5>
</plugins>
<formatters>
<formatter implementation="com.sap.eslint.java.formatters.JSLintSonarFormatter">
<outputFile>${project.build.directory}/jslint/jslint.xml</outputFile>
</formatter>
</formatters>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eslintnode.build</id>
<build>
<plugins>
<plugin>
<groupId>com.sap.ui5.tools.maven</groupId>
<artifactId>eslintnode-maven-plugin</artifactId>
<version>0.2.0-SNAPSHOT</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>eslint</goal>
</goals>
</execution>
</executions>
<configuration>
<version>1.10.3</version>
<nodeType>SHARED</nodeType>
<nodeVersion>${node.version}</nodeVersion>
<nodeLocation>${node.location}</nodeLocation>
<npmRegistry>${npm.registry}</npmRegistry>
<npmVersion>${npm.version}</npmVersion>
<formatters>
<formatter>
<name>sonar</name>
<output>${project.build.directory}/jslint/jslint.xml</output>
</formatter>
</formatters>
<failOnError>${sap.ui5.eslint.failonerror}</failOnError>
<onlyChangedFiles>${sap.ui5.eslint.onlyChangedFiles}</onlyChangedFiles>
<quiet>${sap.ui5.eslint.quite}</quiet>
<skip>${sap.ui5.eslint.skip.validation}</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>nightly.build</id>
<activation>
<property>
<name>ldi.releaseBuild</name>
</property>
</activation>
<properties>
<!-- validate all files for the nightly build (attention: profile nightly.build must stay after eslint.build!) -->
<sap.ui5.eslint.onlyChangedFiles>false</sap.ui5.eslint.onlyChangedFiles>
</properties>
</profile>
<profile>
<id>fast.voter.build</id>
<properties>
<!-- fast.voter.build profile does not have to generate the npm-resources package
(has to be kept in sync with sapui5.runtime poms) -->
<effective.npm.package.phase>never</effective.npm.package.phase>
</properties>
</profile>
<profile>
<id>documentation.build</id>
<properties>
<!-- documentation.build profile does not have to generate the npm-resources package
(has to be kept in sync with sapui5.runtime poms) -->
<effective.npm.package.phase>never</effective.npm.package.phase>
</properties>
</profile>
<profile>
<id>testsuite.build</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>ui5workspace</name>
</property>
</activation>
<modules>
<!-- testsuite -->
<module>src/testsuite-utils</module>
<module>src/testsuite</module>
</modules>
</profile>
</profiles>
</project>