This repository was archived by the owner on Mar 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathpom.xml
More file actions
1003 lines (863 loc) · 51.1 KB
/
pom.xml
File metadata and controls
1003 lines (863 loc) · 51.1 KB
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
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
or packager/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at packager/legal/LICENSE.txt.
GPL Classpath Exception:
Oracle designates this particular file as subject to the "Classpath"
exception as provided by Oracle in the GPL Version 2 section of the License
file that accompanied this code.
Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<!--
Project to create the Mojarra implementation jar.
This depends on [mojarra home]/jsf-tools being build first (mvn build install).
(note that the jsf-tools jar is only used during the build phase and has no runtime usage)
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.java</groupId>
<artifactId>jvnet-parent</artifactId>
<version>5</version>
</parent>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<packaging>jar</packaging>
<version>2.3.3.99</version>
<name>Mojarra ${project.version}</name>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<mojarra.logstrings.version>${project.version}</mojarra.logstrings.version>
</properties>
<build>
<plugins>
<!-- Use ANT to drive much of our custom build steps -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<!-- ### G E N E R A T E S O U R C E S ### -->
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<target>
<property name="jsf-tools-dir" value="${project.build.directory}/../../jsf-tools"/>
<echo message="${line.separator}${line.separator}${line.separator}${line.separator} * * * G E N E R A T E S O U R C E S${line.separator}${line.separator}${line.separator}${line.separator}" />
<!--
Generate standard-html-renderkit.xml
This works by taking /jsf-api/doc/standard-html-renderkit-base.xml
which contains a lot of xincludes, and then writing out a new file
called standard-html-renderkit.xml with the xincludes replaced by the
actual file contents.
(p.s. in a way this is compensating for components in faces-config not
being able to use inheritance)
-->
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<condition property="osfamily" value="unix">
<or>
<os family="mac"/>
<os family="unix"/>
</or>
</condition>
<if>
<equals arg1="${osfamily}" arg2="unix"/>
<then>
<!--
Copy a lot of -props.xml files to -attrs.xml.
This is done because by convention the properties of
components are often mirrored as attributes on their
associated default renderers.
-->
<copy todir="src/main/doc" overwrite="true">
<mapper type="glob"
from="*-props.xml"
to="*-attrs.xml"/>
<fileset dir="src/main/doc">
<include name="*-props.xml"/>
<exclude name="actionsource-props.xml"/>
<exclude name="actionsource2-props.xml"/>
<exclude name="editable-props.xml"/>
<exclude name="valueholder-props.xml"/>
<exclude name="ui*-props.xml"/>
<include name="outcometargetbutton-props.xml"/>
</fileset>
</copy>
<!--
Global search for "property" tags in the newly copied -attrs.xml files and replace
by "attribute" tags
-->
<replace dir="src/main/doc" summary="true">
<include name="*-attrs.xml"/>
<replacefilter
token="<property"
value="<attribute"/>
<replacefilter
token="</property"
value="</attribute"/>
<replacefilter
token="Properties"
value="Attributes"/>
</replace>
<!--
Use the xmllint commandline tool to do the actual inclusion of the xincludes
and write out the file with the include directives replaced by their
respective content.
-->
<exec executable="xmllint" dir="src/main/doc" failonerror="true">
<arg line="--xinclude --format --output standard-html-renderkit.xml standard-html-renderkit-base.xml"/>
</exec>
<!--
Add a warning that the file is generated and should not be edited manually.
-->
<replace file="src/main/doc/standard-html-renderkit.xml">
<replacetoken><![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]></replacetoken>
<replacevalue><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT DO NOT EDIT DO NOT EDIT DO NOT EDIT DO NOT EDIT -->]]>
</replacevalue>
</replace>
<replace file="src/main/doc/standard-html-renderkit.xml">
<replacetoken><![CDATA[<component xmlns:xi="http://www.w3.org/2001/XInclude">]]></replacetoken>
<replacevalue><![CDATA[<component>]]></replacevalue>
</replace>
<delete>
<fileset dir="src/main/doc" includes="*-attrs.xml"/>
</delete>
<move file="src/main/doc/standard-html-renderkit.xml"
tofile="src/main/resources/com/sun/faces/standard-html-renderkit.xml"/>
</then>
</if>
<!--
Generate AttributeManager
AttributeManager is a class that contains mappings between the standard components
and the passthrough attributes associated with them.
This is used in the generating of several UI components based on their taglib descriptions
-->
<echo message="Copying LogStrings.properties" />
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="LogStrings.properties"/>
</copy>
<echo message="Copying *.dtd,*.xsd" />
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" flatten="true" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="*.dtd,*.xsd"/>
</copy>
<taskdef name="generateAttrManager" classname="com.sun.faces.ant.AttributeManagerGenTask">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
</classpath>
</taskdef>
<generateAttrManager
generatorConfig="${jsf-tools-dir}/conf/HtmlBasicTaglib21.properties"
facesConfig="src/main/resources/com/sun/faces/standard-html-renderkit.xml"
fork="true">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
<pathelement location="${jsf-tools-dir}/build/classes"/>
<path refid="maven.plugin.classpath"/>
</classpath>
</generateAttrManager>
<copy todir="${project.build.directory}/generated-sources/antrun">
<fileset dir="build/generate"/>
</copy>
<delete dir="build"/>
<delete dir="${jsf-tools-dir}/build"/>
<echo message="${line.separator}${line.separator}Generate com.sun.faces.renderkit.html_basic sources${line.separator}${line.separator}" />
<!--
Generate com.sun.faces.renderkit.html_basic sources
-->
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="LogStrings.properties"/>
</copy>
<echo message="Copying *.dtd,*.xsd" />
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" flatten="true" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="*.dtd,*.xsd"/>
</copy>
<echo message="Copying TAG-*" />
<copy todir="build" verbose="true">
<fileset dir="${jsf-tools-dir}/conf">
<include name="TAG-*"/>
</fileset>
</copy>
<echo message="generateTaglib" />
<taskdef name="generateTaglib"
classname="com.sun.faces.ant.TaglibGenTask">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
<pathelement location="${jsf-tools-dir}/build/classes/"/>
</classpath>
</taskdef>
<generateTaglib
generatorConfig="${jsf-tools-dir}/conf/HtmlBasicTaglib21.properties"
facesConfig="src/main/resources/com/sun/faces/standard-html-renderkit.xml"
fork="true">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
<pathelement location="${jsf-tools-dir}/build/classes/"/>
<path refid="maven.plugin.classpath"/>
</classpath>
</generateTaglib>
<copy todir="${project.build.directory}/generated-sources/antrun/com" verbose="true">
<fileset dir="build/generate/com"/>
</copy>
<echo message="deleting build" />
<delete dir="build"/>
<delete dir="${jsf-tools-dir}/build"/>
<echo message="${line.separator}${line.separator}${line.separator}${line.separator}Generate API components${line.separator}${line.separator}${line.separator}${line.separator}" />
<!--
Generate API components
-->
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="LogStrings.properties"/>
</copy>
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" flatten="true">
<fileset dir="src/main/resources/com/sun/faces" includes="*.dtd,*.xsd"/>
</copy>
<taskdef name="generateComponents"
classname="com.sun.faces.ant.ComponentGenTask">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
</classpath>
</taskdef>
<generateComponents
generatorConfig="${jsf-tools-dir}/conf/HtmlBasicTaglib21.properties"
facesConfig="src/main/resources/com/sun/faces/standard-html-renderkit.xml"
fork="true">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
<pathelement location="${jsf-tools-dir}/build/classes"/>
<path refid="maven.plugin.classpath"/>
</classpath>
</generateComponents>
<copy todir="${project.build.directory}/generated-sources/antrun/javax">
<fileset dir="build/generate/javax"/>
</copy>
<delete dir="build"/>
<delete dir="${jsf-tools-dir}/build"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<!-- ### G E N E R A T E R E S O U R C E S ### -->
<execution>
<id>generate-resources</id>
<phase>generate-resources</phase>
<configuration>
<target>
<property name="jsf-tools-dir" value="${project.build.directory}/../../jsf-tools"/>
<echo message="${line.separator}${line.separator}${line.separator}${line.separator} * * * G E N E R A T E R E S O U R C E S${line.separator}${line.separator}${line.separator}${line.separator}" />
<!--
Copy LogStrings
-->
<mkdir dir="${project.build.directory}/generated-resources/antrun"/>
<copy todir="${project.build.directory}/generated-resources/antrun/com/sun/faces" overwrite="true" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="LogStrings*.properties"/>
</copy>
<!--
Replace the version placeholder in the LogStrings, so that the right
project version is used to print to log at startup
-->
<replace dir="${project.build.directory}/generated-resources/antrun"
token="|version.string|"
value="${mojarra.logstrings.version}">
<include name="**/LogStrings*.properties"/>
</replace>
<!--
Generate META-INF/html_basic.tld
-->
<copy todir="build">
<fileset dir="${jsf-tools-dir}/conf">
<include name="TAG-*"/>
</fileset>
</copy>
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" verbose="true">
<fileset dir="src/main/resources/com/sun/faces" includes="LogStrings.properties"/>
</copy>
<copy todir="${jsf-tools-dir}/build/classes/com/sun/faces" flatten="true">
<fileset dir="src/main/resources/com/sun/faces" includes="*.dtd,*.xsd"/>
</copy>
<taskdef name="generateTaglib" classname="com.sun.faces.ant.TaglibGenTask">
<classpath>
<pathelement location="${jsf-tools-dir}/build/classes"/>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
</classpath>
</taskdef>
<generateTaglib
generatorConfig="${jsf-tools-dir}/conf/HtmlBasicTaglib21.properties"
facesConfig="src/main/resources/com/sun/faces/standard-html-renderkit.xml"
fork="true">
<classpath>
<pathelement location="${jsf-tools-dir}/target/jsf-tools-${project.version}.jar"/>
<pathelement location="${jsf-tools-dir}/build/classes"/>
<path refid="maven.plugin.classpath"/>
</classpath>
</generateTaglib>
<copy file="build/generate/conf/share/html_basic.tld"
toDir="${project.build.directory}/generated-resources/antrun/META-INF"/>
<delete dir="build"/>
<delete dir="${jsf-tools-dir}/build"/>
<!--
Generate jsf(-uncompressed).js
-->
<mkdir dir="${project.build.directory}/generated-resources/antrun/META-INF/resources/javax.faces"/>
<concat destfile="${project.build.directory}/generated-resources/antrun/META-INF/resources/javax.faces/jsf-uncompressed.js" fixlastline="yes">
<filelist dir="src/main/js">
<file name="jsf.js"/>
</filelist>
<filelist dir="src/main/js">
<file name="mojarra.js"/>
</filelist>
</concat>
<get src="https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar" dest="yuicompressor.jar" usetimestamp="true" skipexisting="true"/>
<java jar="yuicompressor.jar" fork="true" failonerror="true"
args="-o ${project.build.directory}/generated-resources/antrun/META-INF/resources/javax.faces/jsf.js ${project.build.directory}/generated-resources/antrun/META-INF/resources/javax.faces/jsf-uncompressed.js"/>
<!--
Generate jsf-ri-runtime.xml
-->
<xslt in="src/main/resources/com/sun/faces/standard-html-renderkit.xml"
out="merged.xml"
style="${jsf-tools-dir}/src/main/xsl/merge-config.xsl">
</xslt>
<replace file="${basedir}/merged.xml">
<replacetoken><![CDATA[xmlns:jsf="http://xmlns.jcp.org/xml/ns/javaee"]]></replacetoken>
<replacevalue><![CDATA[]]></replacevalue>
</replace>
<replace file="${basedir}/merged.xml">
<replacetoken><![CDATA[ >]]></replacetoken>
<replacevalue><![CDATA[>]]></replacevalue>
</replace>
<xslt in="${basedir}/merged.xml"
out="${project.build.directory}/generated-resources/antrun/com/sun/faces/jsf-ri-runtime.xml"
style="${jsf-tools-dir}/src/main/xsl/prune-tool-data.xsl">
</xslt>
<replace file="${project.build.directory}/generated-resources/antrun/com/sun/faces/jsf-ri-runtime.xml">
<replacetoken><![CDATA[xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"]]></replacetoken>
</replace>
<replace file="${project.build.directory}/generated-resources/antrun/com/sun/faces/jsf-ri-runtime.xml">
<replacetoken><![CDATA[ >]]></replacetoken>
<replacevalue><![CDATA[>]]></replacevalue>
</replace>
<replace file="${project.build.directory}/generated-resources/antrun/com/sun/faces/jsf-ri-runtime.xml">
<replacetoken><![CDATA[<faces-config>]]></replacetoken>
<replacevalue><![CDATA[
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd"
version="2.3">]]>
</replacevalue>
</replace>
<delete file="${basedir}/merged.xml"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<!-- Ant plug-in dependencies -->
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.9.15</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>com.sun.faces.build</groupId>
<artifactId>jsf-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- Adds the paths where the source and resources generated above was stored -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/antrun</source>
</sources>
</configuration>
</execution>
<execution>
<id>generate-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/antrun</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- ### C O M P I L E ### -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<executions>
<!-- Process annotation - generate code based on them -->
<execution>
<id>process-annotations</id>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<annotationProcessors>com.sun.faces.generate.PreParseFacesConfigProcessor</annotationProcessors>
<generatedSourcesDirectory>${project.build.directory}/generated-sources/antrun</generatedSourcesDirectory>
<proc>only</proc>
</configuration>
</execution>
<!-- Compile all Java code, including the code generated above -->
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<proc>none</proc>
</configuration>
</execution>
</executions>
</plugin>
<!-- ### C R E A T E J A V A D O C ### -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<configuration>
<excludePackageNames>com</excludePackageNames>
</configuration>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- ### C R E A T E S O U R C E ### -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Generate the META-INF/MANIFEST.MF file for OSGi use -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.4.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle</id>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Bundle-SymbolicName>org.glassfish.javax.faces</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Name>Mojarra JSF Implementation ${project.version}</Bundle-Name>
<Bundle-Description>Mojarra JSF Implementation (javax.faces/2.3) ${project.version}</Bundle-Description>
<Specification-Title>JavaServer Faces</Specification-Title>
<Specification-Version>2.3</Specification-Version>
<Implementation-Title>Mojarra</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>Oracle America, Inc.</Implementation-Vendor>
<Implementation-Vendor-Id>com.sun</Implementation-Vendor-Id>
<!--
<Include-Resource>META-INF=build/classes/META-INF,build/classes</Include-Resource>
-->
<Extension-Name>javax.faces</Extension-Name>
<Export-Package>
javax.faces.*;version=2.3,
com.sun.faces.*;version=2.3
</Export-Package>
<Import-Package>
javax.faces.*,
com.sun.faces.*,
javax.servlet.annotation.*;resolution:=optional,
javax.servlet.*,
javax.el.*,
javax.inject.*,
javax.enterprise.inject.*,
javax.enterprise.util.*,
javax.enterprise.context.*,
javax.annotation.processing.*,
javax.annotation.*;version="[1.0.0,2.0.0)",
javax.crypto.*,
javax.websocket.*;resolution:=optional,
javax.json.*;resolution:=optional,
javax.validation.*;resolution:=optional,
javax.enterprise.event;resolution:=optional,
javax.ejb.*;resolution:=optional,
javax.persistence.*;resolution:=optional,
javax.xml.*,
org.w3c.dom.*,
com.sun.enterprise.*;resolution:=optional,
org.mortbay.jetty.annotations;resolution:=optional,
org.mortbay.jetty.plus.annotation;resolution:=optional,
org.apache.*;resolution:=optional,
org.jboss.weld.*;resolution:=optional,
org.xml.sax.*,
javax.naming.*
</Import-Package>
<!--
Allow Mojarra to load alternative AnnotationProvider, FaceletConfigResourceProvider,
FacesConfigResourceProvider, CDIUtil, and ApplicationConfigurationPopulator SPI
implementations. Mojarra provides default implementations, so each capability is marked as
optional.
-->
<Require-Capability>
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.spi.AnnotationProvider)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.spi.FaceletConfigResourceProvider)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.spi.FacesConfigResourceProvider)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.util.cdi11.CDIUtil)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=javax.faces.application.ApplicationConfigurationPopulator)";
resolution:=optional;cardinality:=multiple,
osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)";resolution:=optional
</Require-Capability>
<Provide-Capability>
osgi.extender;osgi.extender="jsp.taglib";uri="http://java.sun.com/jsf/html";
version:Version="2.3",
osgi.extender;osgi.extender="jsp.taglib";uri="http://java.sun.com/jsf/core";
version:Version="2.3"
</Provide-Capability>
</instructions>
</configuration>
</plugin>
<!-- ### V A L I D A T I O N ### -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.2</version>
<configuration>
<targetJdk>1.8</targetJdk>
<excludes>
<exclude>com/sun/faces/taglib/html_basic/**/*.java</exclude>
<exclude>javax/faces/component/html/**/*.java</exclude>
</excludes>
<rulesets>
<ruleset>${project.build.directory}/../src/main/pmd/ruleset.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd</artifactId>
<version>5.1.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>2.8</version>
<dependencies>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>bcel-findbugs</artifactId>
<version>6.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<threshold>High</threshold>
<excludeFilterFile>${project.build.directory}/../src/main/findbugs/exclude.xml</excludeFilterFile>
</configuration>
</plugin>
<!-- Validate that the various XML files are well formed and match their schema-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>src/main/resources/com/sun/faces</basedir>
<validationSets>
<validationSet>
<dir>src/main/resources/com/sun/faces</dir>
<includes>
<include>*.xsd</include>
<include>standard-html-renderkit.xml</include>
</includes>
</validationSet>
</validationSets>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.8</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- ### D E P E N D E N C I E S ### -->
<dependencies>
<!-- Java EE Dependencies -->
<!-- Servlet 4 dependency overriding Java EE 7 main dependency -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
<!-- Expression Language 3.0.1 overriding Java EE 7 main dependency -->
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>3.0.1-b04</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.el</artifactId>
<version>3.0.1-b04</version>
</dependency>
<!-- The main dependency against which Mojarra 2.3 is created: Java EE 7 -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.faces.build</groupId>
<artifactId>jsf-tools</artifactId>
<version>2.3.3.99</version>
<scope>provided</scope>
</dependency>
<!--
For the vendor SPI implementations shipped with Mojarra.
See package com.sun.faces.vendor
TODO: Is this really needed still? These are extremely old
-->
<!-- Jetty 6 -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<version>6.1.26</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-annotations</artifactId>
<version>6.1.26</version>
<optional>true</optional>
</dependency>
<!-- Tomcat 6 -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>catalina</artifactId>
<version>6.0.51</version>
<scope>provided</scope>
</dependency>
<!-- TEST DEPENDENCIES -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>javax.el</artifactId>
<version>2.2.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-easymock</artifactId>
<version>1.4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>1.4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<includes>javax/**/*.java</includes>
<configLocation>${project.build.directory}/../checkstyle-config.xml</configLocation>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.2</version>
<configuration>
<targetJdk>1.8</targetJdk>
<excludes>
<exclude>com/sun/faces/taglib/html_basic/**/*.java</exclude>
<exclude>javax/faces/component/html/**/*.java</exclude>
</excludes>
<rulesets>
<ruleset>${project.build.directory}/../src/main/pmd/ruleset.xml</ruleset>
</rulesets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>2.8</version>
<configuration>
<includes>
<include>javax/faces/**</include>
</includes>
<comparisonArtifacts>
<comparisonArtifact>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.3.0-m09</version>
</comparisonArtifact>
</comparisonArtifacts>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<threshold>High</threshold>
<excludeFilterFile>${project.build.directory}/../src/main/findbugs/exclude.xml</excludeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>