forked from xwiki/xwiki-platform
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pom.xml
880 lines (864 loc) · 34.9 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
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
<?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.commons</groupId>
<artifactId>xwiki-commons-pom</artifactId>
<version>11.1-SNAPSHOT</version>
<!-- Note: Do NOT set the <relativePath> tag here as this can cause issues. For example imagine you're using
Jenkins and you have the following directory structure:
workspace/xwiki-commons
workspace/xwiki-platform_Quality_Checks
When the "xwiki-platform_Quality_Checks" module is built you definitely don't want its pom.xml to point to
workspace/xwiki-commons since that job may not have been built for some time (and thus it might not be up to
date with the latest code from the SCM, thus causing build failures that are hard to track.
By using an empty value we force Maven to resolve the parent from the Maven repositories,
see http://maven.apache.org/ref/3.2.3/maven-model/maven.html#class_parent
-->
<relativePath />
</parent>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform</artifactId>
<name>XWiki Platform - Parent POM</name>
<packaging>pom</packaging>
<version>11.1-SNAPSHOT</version>
<description>XWiki Platform - Parent POM</description>
<properties>
<!-- Useful for external Maven projects that extend the Platform POM. Must not be used by Platform project! -->
<platform.version>${commons.version}</platform.version>
<!-- Versions of XWiki dependencies used in Platform modules -->
<rendering.version>${platform.version}</rendering.version>
<!-- Version of HSQLDB that we use in Platform when import XARs for creating functional test environments -->
<hsqldb.version>2.4.1</hsqldb.version>
<!-- Dependencies versions -->
<ckeditor.version>1.31</ckeditor.version>
<bootstrap.version>3.3.7-1</bootstrap.version>
<batik.version>1.10</batik.version>
<restlet.version>2.3.12</restlet.version>
<tika.version>1.20</tika.version>
<pdfbox.version>2.0.13</pdfbox.version>
<keypress.version>2.1.5</keypress.version>
<!-- By default check that unit tests don't output anything to the console -->
<xwiki.surefire.captureconsole.skip>false</xwiki.surefire.captureconsole.skip>
<!-- Follow the specifications regarding the WebJar content path. -->
<webjar.outputDirectory>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</webjar.outputDirectory>
<!-- The recommended version of known extensions to use -->
<xwiki.extension.recommendedVersions.platform>
${xwiki.extension.recommendedVersions.commons},
org.xwiki.rendering:.*/[${rendering.version}],
org.xwiki.platform:.*/[${platform.version}]
</xwiki.extension.recommendedVersions.platform>
<xwiki.extension.recommendedVersions>${xwiki.extension.recommendedVersions.platform}</xwiki.extension.recommendedVersions>
<!-- Disable release staging and directly deploy on the configured distributionManagement -->
<xwiki.nexus.skipLocalStaging>true</xwiki.nexus.skipLocalStaging>
<xwiki.enforcer.check-dependency-version.skip>${xwiki.enforcer.skip}</xwiki.enforcer.check-dependency-version.skip>
</properties>
<scm>
<connection>scm:git:git://github.com/xwiki/xwiki-platform.git</connection>
<developerConnection>scm:git:[email protected]:xwiki/xwiki-platform.git</developerConnection>
<url>https://github.com/xwiki/xwiki-platform/tree/master/</url>
<tag>stable-10.7.x</tag>
</scm>
<issueManagement>
<system>jira</system>
<url>https://jira.xwiki.org/browse/XWIKI</url>
</issueManagement>
<modules>
<module>xwiki-platform-tools</module>
<module>xwiki-platform-core</module>
</modules>
<!-- Dependency Management that are used in platform and in sub-projects too (like xwiki-enterprise) -->
<dependencyManagement>
<dependencies>
<!-- Standard dependencies used in several modules -->
<dependency>
<groupId>com.mchange</groupId>
<artifactId>mchange-commons-java</artifactId>
<version>0.2.15</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.3</version>
</dependency>
<!-- Jython engine -->
<!-- We use a customized Jython JAR here because the standard one include many library we already get as dependencies -->
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.7.1-xwiki-2</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>4.0.16.Final</version>
</dependency>
<!-- Apache Tika used by several modules (Lucene, Office, etc) -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>${tika.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>${tika.version}</version>
<exclusions>
<!-- We don't need it the way we use Tika and it causes various conflicts -->
<exclusion>
<artifactId>cxf-rt-rs-client</artifactId>
<groupId>org.apache.cxf</groupId>
</exclusion>
<!-- Artifact id changed -->
<exclusion>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
</exclusion>
</exclusions>
</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>
<groupId>com.rometools</groupId>
<artifactId>rome</artifactId>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>com.rometools</groupId>
<artifactId>rome-utils</artifactId>
<version>1.12.0</version>
</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 xwiki-platform-oldcore and xwiki-platform-captcha -->
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts-core</artifactId>
<version>1.3.10</version>
<exclusions>
<!-- There is conflict with hibernate antlr-2.7.6 dependency -->
<exclusion>
<groupId>antlr</groupId>
<artifactId>antlr</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>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts-taglib</artifactId>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts-tiles</artifactId>
<version>1.3.10</version>
</dependency>
<!-- Embedded in the Standard Flavor and used by the Dashboard Application (to add/edit gadgets) -->
<dependency>
<groupId>org.xwiki.contrib</groupId>
<artifactId>application-ckeditor-ui</artifactId>
<version>${ckeditor.version}</version>
<type>xar</type>
</dependency>
<!-- Drawn by several transitive dependencies -->
<dependency>
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.19</version>
</dependency>
<!-- Used directly and indirectly in various projects. -->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.10.1</version>
</dependency>
<!-- Common WebJars -->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>requirejs</artifactId>
<version>2.2.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>2.2.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap-select</artifactId>
<version>1.12.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>${bootstrap.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>Keypress</artifactId>
<version>${keypress.version}</version>
<scope>runtime</scope>
</dependency>
<!-- All Batik artifacts should be in sync -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svgrasterizer</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-bridge</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-css</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-util</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-codec</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-ext</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-extension</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-gvt</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svg-dom</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-awt-util</artifactId>
<version>${batik.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.2.0</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.ccil.cowan.tagsoup</groupId>
<artifactId>tagsoup</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.11.3</version>
</dependency>
<!-- PDF -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>${pdfbox.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>fontbox</artifactId>
<version>${pdfbox.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-tools</artifactId>
<version>${pdfbox.version}</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>2.3</version>
<exclusions>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>xmlgraphics-commons</artifactId>
<version>2.3</version>
<exclusions>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Needed to have a nice toggle button instead of plain checkboxes in the UI -->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap-switch</artifactId>
<version>3.3.2</version>
<scope>runtime</scope>
</dependency>
<!--Used by oldcore + querymanager -->
<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>1.4</version>
</dependency>
<!-- JNR -->
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jffi</artifactId>
<version>1.2.18</version>
</dependency>
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-constants</artifactId>
<version>0.9.12</version>
</dependency>
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-ffi</artifactId>
<version>2.1.9</version>
</dependency>
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-netdb</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-posix</artifactId>
<version>3.0.49</version>
</dependency>
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-x86asm</artifactId>
<version>1.0.2</version>
</dependency>
<!-- Restlet -->
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jaxrs</artifactId>
<version>${restlet.version}</version>
<exclusions>
<!-- Version too recent.
TODO: remove when upgrading to Servlet 3.1+ -->
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</exclusion>
<!-- Already part of Java SE 6 -->
<exclusion>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
<!-- We use a more accurate and up to date JSON framework version -->
<exclusion>
<artifactId>org.restlet.lib.org.json</artifactId>
<groupId>org.restlet.jse</groupId>
</exclusion>
<!-- The recent one have a different id so we can't rely on dependencyManagement -->
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<!-- Restlet does not declare the right version of JAX-RS API... -->
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
</exclusion>
<!-- Restlet does not use the right artifact for JAXB implementation -->
<exclusion>
<artifactId>jaxb-impl</artifactId>
<groupId>com.sun.xml.bind</groupId>
</exclusion>
<!-- Restlet does not use the right artifact for JSON -->
<exclusion>
<artifactId>json</artifactId>
<groupId>org.json</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- We need Jackson for a proper JSON representation of our REST resources.
See XWIKI-9136: Rest API JSON does not retrieve inherited fields -->
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jackson</artifactId>
<version>${restlet.version}</version>
<scope>runtime</scope>
<exclusions>
<!-- Wrong version of Woodstox -->
<exclusion>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- We need a JAXB converter for XML representation because we model our REST resources using JAXB. Jackson (see
above) has a module that understands JAXB annotations but the output of the Restlet Jackson converter is not very
good (missing XML declaration and namespace, attributes serialized as elements) so we prefer to use a dedicated
JAXB converter for XML representation. -->
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jaxb</artifactId>
<version>${restlet.version}</version>
<scope>runtime</scope>
<exclusions>
<!-- Already part of Java SE 6 -->
<exclusion>
<artifactId>stax-api</artifactId>
<groupId>javax.xml.stream</groupId>
</exclusion>
<!-- Restlet does not use the right artifact for JAXB implementation -->
<exclusion>
<artifactId>jaxb-impl</artifactId>
<groupId>com.sun.xml.bind</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet</artifactId>
<version>${restlet.version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet.ext.servlet</artifactId>
<version>${restlet.version}</version>
<exclusions>
<exclusion>
<!-- We use "se" version of the client API -->
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<extensions>
<!-- Needed to add support for the "webjar" packaging -->
<extension>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-webjar-handlers</artifactId>
<version>${commons.version}</version>
</extension>
<!-- 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>
<!-- Needed to add support for the "xip" packaging -->
<extension>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-extension-plugin</artifactId>
<version>${commons.version}</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-xar-plugin</artifactId>
<version>${commons.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*IntegrationTests.java</include>
</includes>
<!-- Verify that unit tests don't output anything to stdout/stderr -->
<systemProperties combine.children="append">
<!-- This property makes it simple for some module to exclude the check (for example for functional
tests) -->
<property>
<name>xwiki.surefire.captureconsole.skip</name>
<value>${xwiki.surefire.captureconsole.skip}</value>
</property>
</systemProperties>
<properties>
<property>
<name>listener</name>
<value>org.xwiki.test.CaptureConsoleRunListener</value>
</property>
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-test-simple</artifactId>
<version>${commons.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<tags>
<!-- Tag to document a xwiki.cfg configuration file property behavior -->
<tag>
<name>xwiki.xwikicfg</name>
<placement>a</placement>
<head>xwiki.cfg configuration:</head>
</tag>
</tags>
</configuration>
</plugin>
<!-- Overwrite various properties while generating extension descriptors -->
<plugin>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-extension-plugin</artifactId>
<version>${commons.version}</version>
<configuration>
<extensionOverrides>
<extensionOverride>
<id>org.slf4j:jcl-over-slf4j</id>
<!-- Should be ok for any version of jcl-over-slf4j (since commons-logging is dead) -->
<features>commons-logging:commons-logging/1.2</features>
</extensionOverride>
<extensionOverride>
<id>org.slf4j:log4j-over-slf4j</id>
<features>
<!-- Should be ok for any version of log4j-over-slf4j (since log4j 1.x is dead) -->
log4j:log4j/1.2.17,
<!-- Does not make sense to have both at the same time -->
org.slf4j:slf4j-log4j12
</features>
</extensionOverride>
<extensionOverride>
<id>org.python:jython-standalone</id>
<features>org.python:jython</features>
</extensionOverride>
<!-- We've moved to Dom4J 2.0.0+ which has a new groupId (dom4j -> org.dom4j) and thus extensions of XWiki
may depend on dom4j:dom4j:1.6 and without this they would install dom4j instead of using the version
provided by the platform -->
<extensionOverride>
<id>org.dom4j:dom4j</id>
<features>dom4j:dom4j</features>
</extensionOverride>
<extensionOverride>
<!-- Right id of the JAXB API -->
<id>jakarta.xml.bind:jakarta.xml.bind-api</id>
<features>
javax.xml.bind:jaxb-api
</features>
</extensionOverride>
<extensionOverride>
<!-- Right id of the JAXB reference implementation -->
<id>org.glassfish.jaxb:jaxb-runtime</id>
<features>
com.sun.xml.bind:jaxb-impl,
org.glassfish.jaxb:jaxb-core,
com.sun.xml.bind:jaxb-core
</features>
</extensionOverride>
<extensionOverride>
<!-- Open Java is the same as JSON-Java but with a different license -->
<id>com.tdunning:json</id>
<features>org.json:json/20180130</features>
</extensionOverride>
<extensionOverride>
<!-- Embbed javax.el:javax.el-api -->
<id>org.glassfish:javax.el</id>
<features>javax.el:javax.el-api</features>
</extensionOverride>
<!-- Right id of the The Bouncy Castle Crypto packages -->
<extensionOverride>
<id>org.bouncycastle:bcprov-jdk15on</id>
<features>
bouncycastle:bcprov-jdk16,
bouncycastle:bcprov-jdk15,
bouncycastle:bcprov-jdk14,
bouncycastle:bcprov-jdk13,
bouncycastle:bcprov-jdk12,
org.bouncycastle:bcprov-jdk16,
org.bouncycastle:bcprov-jdk15,
org.bouncycastle:bcprov-jdk14,
org.bouncycastle:bcprov-jdk13,
org.bouncycastle:bcprov-jdk12
</features>
</extensionOverride>
<extensionOverride>
<id>org.bouncycastle:bcpkix-jdk15on</id>
<features>
bouncycastle:bcpkix-jdk16,
bouncycastle:bcpkix-jdk15,
bouncycastle:bcpkix-jdk14,
bouncycastle:bcpkix-jdk13,
bouncycastle:bcpkix-jdk12,
org.bouncycastle:bcpkix-jdk16,
org.bouncycastle:bcpkix-jdk15,
org.bouncycastle:bcpkix-jdk14,
org.bouncycastle:bcpkix-jdk13,
org.bouncycastle:bcpkix-jdk12
</features>
</extensionOverride>
<extensionOverride>
<id>org.bouncycastle:bcmail-jdk15on</id>
<features>
bouncycastle:bcmail-jdk16,
bouncycastle:bcmail-jdk15,
bouncycastle:bcmail-jdk14,
bouncycastle:bcmail-jdk13,
bouncycastle:bcmail-jdk12,
org.bouncycastle:bcmail-jdk16,
org.bouncycastle:bcmail-jdk15,
org.bouncycastle:bcmail-jdk14,
org.bouncycastle:bcmail-jdk13,
org.bouncycastle:bcmail-jdk12
</features>
</extensionOverride>
<extensionOverride>
<id>commons-beanutils:commons-beanutils</id>
<features>commons-beanutils:commons-beanutils-core</features>
</extensionOverride>
<extensionOverride>
<id>org.jdom:jdom</id>
<features>jdom:jdom</features>
</extensionOverride>
<extensionOverride>
<id>com.sun.mail:javax.mail</id>
<features>
javax.mail:mail,
javax.mail:mailapi
</features>
</extensionOverride>
<extensionOverride>
<id>xml-apis:xml-apis</id>
<features>xerces:xmlParserAPIs/2.6.2</features>
</extensionOverride>
<extensionOverride>
<id>com.google.inject:guice:no_aop</id>
<features>com.google.inject:guice</features>
</extensionOverride>
<extensionOverride>
<id>net.sf.json-lib:json-lib:jdk15</id>
<features>
net.sf.json-lib:json-lib,
net.sf.json-lib:json-lib:jdk13
</features>
</extensionOverride>
<extensionOverride>
<id>jakarta.activation:jakarta.activation-api</id>
<features>javax.activation:activation</features>
<features>javax.activation:javax.activation-api</features>
<features>com.sun.activation:javax.activation</features>
</extensionOverride>
<extensionOverride>
<id>com.google.code.findbugs:jsr305</id>
<features>com.google.code.findbugs:annotations</features>
</extensionOverride>
</extensionOverrides>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<!-- Check license headers -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<!-- Verify that all org.xwiki.commons dependencies have a version specified as:
- ${commons.version}
Also verifies that all org.xwiki.rendering dependencies have a version specified as:
- ${rendering.version}
Also verifies that all org.xwiki.platform dependencies have a version specified either as:
- ${project.version}
- [${project.version}] (single version specified as a version range)
- ${platform.version}
-->
<execution>
<id>check-dependency-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<validateDependencyVersion implementation="org.xwiki.tool.enforcer.ValidateDependencyVersion">
<versionCheck>
<groupIdPrefix>org.xwiki.commons</groupIdPrefix>
<allowedVersionRegex>\$\{commons.version\}</allowedVersionRegex>
</versionCheck>
<versionCheck>
<groupIdPrefix>org.xwiki.rendering</groupIdPrefix>
<allowedVersionRegex>\$\{rendering.version\}</allowedVersionRegex>
</versionCheck>
<versionCheck>
<groupIdPrefix>org.xwiki.platform</groupIdPrefix>
<allowedVersionRegex>\$\{project.version\}|\[\$\{project.version\}\]|${platform.version}</allowedVersionRegex>
</versionCheck>
</validateDependencyVersion>
</rules>
<skip>${xwiki.enforcer.check-dependency-version.skip}</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>distribution</id>
<modules>
<module>xwiki-platform-distribution</module>
</modules>
</profile>
<profile>
<id>clover</id>
<properties>
<!-- Don't check that unit tests don't output anything to the console since for example Clover will output
messages such as "Updating existing database at '...'." during tests! -->
<xwiki.surefire.captureconsole.skip>true</xwiki.surefire.captureconsole.skip>
</properties>
<build>
<pluginManagement>
<plugins>
<!-- Add the Clover JAR to the Packager plugin runtime classpath since the Packager plugin uses java classes
that have been instrumented with Clover (XWiki oldcore for example) -->
<plugin>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-tool-packager-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.openclover</groupId>
<artifactId>clover</artifactId>
<version>${clover.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- Add the Clover JAR to the Extension plugin runtime classpath since the Extension plugin uses java
classes that have been instrumented with Clover -->
<plugin>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-extension-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.openclover</groupId>
<artifactId>clover</artifactId>
<version>${clover.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>nexus.xwiki.org</id>
<name>XWiki Maven Remote Repository for Releases</name>
<url>http://nexus.xwiki.org/nexus/content/repositories/releases/</url>
</repository>
</distributionManagement>
</project>