-
-
Notifications
You must be signed in to change notification settings - Fork 542
/
pom.xml
525 lines (520 loc) · 21.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
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform</artifactId>
<version>5.2-SNAPSHOT</version>
</parent>
<artifactId>xwiki-platform-core</artifactId>
<name>XWiki Platform - Core - Parent POM</name>
<packaging>pom</packaging>
<description>XWiki Platform - Core - Parent POM</description>
<properties>
<gwt.version>2.5.1</gwt.version>
<gwt.maven.plugin.version>2.5.1</gwt.maven.plugin.version>
<!-- JS/CSS minification is on by default, this property is used in order to able to skip minification when the
debug profile is active. It can also be used from the command line to skip minification -->
<xwiki.minification.skip>false</xwiki.minification.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-test-component</artifactId>
<version>${commons.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- Standard dependencies used in several modules -->
<!-- Jython engine -->
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.5.4-rc1</version>
</dependency>
<!-- Used on remote observation and also by JBossCache/Infinispan (even if it does not really use it) -->
<dependency>
<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
<version>3.3.4.Final</version>
</dependency>
<!-- Apache Tika used by Lucene and Office modules -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>1.4</version>
<exclusions>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<!-- TODO: Remove when https://github.com/Gagravarr/VorbisJava/issues/2 is fixed -->
<exclusion>
<groupId>org.gagravarr</groupId>
<artifactId>vorbis-java-core</artifactId>
</exclusion>
<!-- Tika Parsers 1.3 depends on bcprov-jdk15 1.45 but some XWiki extensions (such as the CRaSH integration)
require bcprov-jdk16, thus we exclude it and add a dependency on it just after to the latest version -->
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
</exclusion>
<!-- Tika Parsers 1.3 depends on bcmail-jdk15 1.45 but some XWiki extensions (such as the CRaSH integration)
require bcmail-jdk16, thus we exclude it and add a dependency on it just after to the latest version -->
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bcmail-jdk15</artifactId>
</exclusion>
<!-- Tika triggers the wrong asm artifact so we have to take care of that ourself -->
<exclusion>
<artifactId>asm-debug-all</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- See the explanation in the tika-parsers exclusion above -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.46</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcmail-jdk16</artifactId>
<version>1.46</version>
</dependency>
<!-- Rome is used in rss macro and feed api modules and in Tika -->
<dependency>
<groupId>rome</groupId>
<artifactId>rome</artifactId>
<version>1.0</version>
<exclusions>
<!-- Exclude JDOM since Rome depends on jdom:jdom and we want to use org.jdom:jdom -->
<exclusion>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
</exclusion>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>rome</groupId>
<artifactId>rome-fetcher</artifactId>
<version>1.0</version>
<!-- Exclude JDOM since Rome depends on jdom:jdom and we want to use org.jdom:jdom -->
<exclusions>
<exclusion>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
</exclusion>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- Replace the runtime transitive dependency we excluded above with this one which repackages the NekoHTML classes to prevent conflicts. -->
<groupId>de.l3s.boilerpipe</groupId>
<artifactId>boilerpipe</artifactId>
<version>1.2.0-xwiki</version>
<scope>runtime</scope>
</dependency>
<!-- Used by several projects (HTMLCleaner, Formula renderer, etc.) directly or indirectly to do XPath and XSLT transformations -->
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.1</version>
</dependency>
<!-- Used by xwiki-platform-oldcore and xwiki-platform-captcha -->
<dependency>
<groupId>struts</groupId>
<artifactId>struts</artifactId>
<version>1.2.9</version>
<exclusions>
<!-- There is conflict with hibernate antlr-2.7.6 dependency -->
<exclusion>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
</exclusion>
<!-- We use a more recent version of Xalan (see above) -->
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Standard dependencies used in GWT modules -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<!-- Only needed at build time -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<!-- SmartGWT is used only for its tree widget. -->
<!-- If you remove or move this dependency don't forget to update the repository section at the bottom. -->
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt</artifactId>
<version>${smartgwt.version}</version>
<!-- Only needed at build time -->
<scope>provided</scope>
</dependency>
<!-- Used at least in Solr Search and in Infinispan Cache -->
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
<version>4.1.4</version>
</dependency>
<!-- Drawn by several transitive dependencies -->
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.1</version>
</dependency>
<!-- Make sure we exclude iText which we don't need and which incidentally would bring a bad dependency version
on bcprov and bcmail for jdk14. -->
<dependency>
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.14</version>
<exclusions>
<exclusion>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<!-- Use the manifest file generated by the OSGi Maven Bundle Plugin -->
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-xar-plugin</artifactId>
<version>${commons.version}</version>
</plugin>
<plugin>
<!-- Default configuration for the GWT maven plugin -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.maven.plugin.version}</version>
<!-- We declare these dependencies here in case we use different value for ${gwt.version} and
${gwt.maven.plugin.version} variables.
See http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html -->
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
<configuration>
<mode>htmlunit</mode>
<testTimeOut>600</testTimeOut>
</configuration>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!--
We exclude the GWT client tests because of http://jira.codehaus.org/browse/SUREFIRE-508 (Cannot run
GWTTestCases with Surefire). GWT client tests are currently run by gwt-maven-plugin.
-->
<excludes>
<exclude>**/gwt/**/client/**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<configuration>
<!--
Exclude GWT client code since otherwise it would mean they would get instrumented by Clover and GWT would
complain that it doesn't find the sources for Clover at runtime.
-->
<excludes>
<exclude>**/gwt/**/client/**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<skip>${xwiki.minification.skip}</skip>
<jswarn>false</jswarn>
<!-- Overwrite the resource files with the minimized version. -->
<nosuffix>true</nosuffix>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Generate OSGi Manifest information to all XWiki Core JARs -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<configuration>
<!-- List of specific CLIRR excludes. Example:
<difference>
<differenceType>7012</differenceType>
<className>org/xwiki/ircbot/IRCBot</className>
<method>void initialize(java.lang.String)</method>
<justification>IRCBot is still a young API. Added a new initialize() method to support installing the
IRC Bot application in a subwiki</justification>
</difference>
See http://mojo.codehaus.org/clirr-maven-plugin/examples/ignored-differences.html
-->
<ignored>
<!-- Remove the following ignores after we release the current version as final -->
<difference>
<differenceType>6006</differenceType>
<className>com/xpn/xwiki/XWikiContext</className>
<field>TYPE_PROVIDER</field>
<justification>This field is not meant to be be modified, the final was just forgotten.</justification>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/xpn/xwiki/store/XWikiHibernateBaseStore</className>
<method>* addHibernateSequenceIfRequired(*)</method>
<justification>Not an API. This should be internal.</justification>
</difference>
</ignored>
<excludes>
<!-- Has been moved to xwiki-platform-feed-api since it was the only module using it. We also
dropped Tidy in favor of HTMLCleaner.
Note: We cannot use a <difference> entry since CLIRR would still try to load the class from version
5.1 and will not find org.w3c.tidy.TidyMessageListener since the dependency on JTidy has been
removed. So we need to tell CLIRR to not load this class at all!
-->
<exclude>com/xpn/xwiki/util/TidyMessageLogger</exclude>
<exclude>**/internal/**</exclude>
<exclude>**/test/**</exclude>
<!-- Remove the following excludes after we release the current version as final -->
<!-- Google API plugin has been retired -->
<exclude>com/xpn/xwiki/plugin/google/GooglePlugin*</exclude>
<!-- The JPQLParser generates source code (that should be internal but it is not) and the grammar has
changed a bit -->
<exclude>org/xwiki/query/jpql/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
<extensions>
<!-- Needed to add support for the "xar" packaging -->
<extension>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-xar-handlers</artifactId>
<version>${commons.version}</version>
</extension>
</extensions>
</build>
<modules>
<!-- Sorted Alphabetically -->
<module>xwiki-platform-activeinstalls</module>
<module>xwiki-platform-activitystream</module>
<module>xwiki-platform-administration</module>
<module>xwiki-platform-annotations</module>
<module>xwiki-platform-application-manager</module>
<module>xwiki-platform-appwithinminutes</module>
<module>xwiki-platform-attachment</module>
<module>xwiki-platform-autotag</module>
<module>xwiki-platform-blog</module>
<module>xwiki-platform-bridge</module>
<module>xwiki-platform-cache</module>
<module>xwiki-platform-captcha</module>
<module>xwiki-platform-chart</module>
<module>xwiki-platform-classloader</module>
<module>xwiki-platform-colibri</module>
<module>xwiki-platform-colorthemes</module>
<module>xwiki-platform-component</module>
<module>xwiki-platform-configuration</module>
<module>xwiki-platform-containers</module>
<module>xwiki-platform-crypto</module>
<module>xwiki-platform-csrf</module>
<module>xwiki-platform-dashboard</module>
<module>xwiki-platform-display</module>
<module>xwiki-platform-eventstream</module>
<module>xwiki-platform-extension</module>
<module>xwiki-platform-faq</module>
<module>xwiki-platform-feed</module>
<module>xwiki-platform-formula</module>
<module>xwiki-platform-git</module>
<module>xwiki-platform-groovy</module>
<module>xwiki-platform-gwt</module>
<module>xwiki-platform-help</module>
<module>xwiki-platform-index</module>
<module>xwiki-platform-instance</module>
<module>xwiki-platform-invitation</module>
<module>xwiki-platform-ircbot</module>
<module>xwiki-platform-jira</module>
<module>xwiki-platform-jodatime</module>
<module>xwiki-platform-ldap</module>
<module>xwiki-platform-linkchecker</module>
<module>xwiki-platform-livetable</module>
<module>xwiki-platform-localization</module>
<module>xwiki-platform-logging</module>
<module>xwiki-platform-mailsender</module>
<module>xwiki-platform-menu</module>
<module>xwiki-platform-messagestream</module>
<module>xwiki-platform-model</module>
<module>xwiki-platform-observation</module>
<module>xwiki-platform-office</module>
<module>xwiki-platform-oldcore</module>
<module>xwiki-platform-panels</module>
<module>xwiki-platform-query</module>
<module>xwiki-platform-refactoring</module>
<module>xwiki-platform-release</module>
<module>xwiki-platform-rendering</module>
<module>xwiki-platform-repository</module>
<module>xwiki-platform-rest</module>
<module>xwiki-platform-sandbox</module>
<module>xwiki-platform-scheduler</module>
<module>xwiki-platform-search</module>
<module>xwiki-platform-security</module>
<module>xwiki-platform-selenium</module>
<module>xwiki-platform-sheet</module>
<module>xwiki-platform-skin</module>
<module>xwiki-platform-statistics</module>
<module>xwiki-platform-store</module>
<module>xwiki-platform-tag</module>
<module>xwiki-platform-test</module>
<module>xwiki-platform-user</module>
<module>xwiki-platform-uiextension</module>
<module>xwiki-platform-url</module>
<module>xwiki-platform-users</module>
<module>xwiki-platform-velocity</module>
<module>xwiki-platform-watchlist</module>
<module>xwiki-platform-web</module>
<module>xwiki-platform-webdav</module>
<module>xwiki-platform-wikistream</module>
<module>xwiki-platform-wiki-manager</module>
<module>xwiki-platform-workspace</module>
<module>xwiki-platform-wysiwyg</module>
<module>xwiki-platform-xml</module>
<module>xwiki-platform-xmlrpc</module>
<module>xwiki-platform-zipexplorer</module>
</modules>
<profiles>
<!-- Profile to build Legacy modules -->
<profile>
<id>legacy</id>
<modules>
<module>xwiki-platform-legacy</module>
</modules>
</profile>
<profile>
<!-- Allows running GWT tests manually -->
<id>gwt-test-manual</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<mode>manual</mode>
<productionMode>true</productionMode>
<style>DETAILED</style>
<!-- HACK: We inject the GWT arguments in the out parameter because we have no other option. -->
<out>target/www-test -port 54321 -codeServerPort 12345</out>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>