forked from poppyred/1.6.x
/
exec.cas-server.php
executable file
·1642 lines (1628 loc) · 72.9 KB
/
exec.cas-server.php
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
<?php
if(preg_match("#--verbose#",implode(" ",$argv))){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
if(posix_getuid()<>0){die("Cannot be used in web server mode\n\n");}
if(preg_match("#schedule-id=([0-9]+)#",implode(" ",$argv),$re)){$GLOBALS["SCHEDULE_ID"]=$re[1];}
include_once(dirname(__FILE__)."/ressources/class.user.inc");
include_once(dirname(__FILE__)."/ressources/class.system.network.inc");
include_once(dirname(__FILE__)."/ressources/class.os.system.inc");
include_once(dirname(__FILE__)."/ressources/class.mysql.inc");
include_once(dirname(__FILE__)."/ressources/class.templates.inc");
include_once(dirname(__FILE__).'/framework/class.unix.inc');
include_once(dirname(__FILE__).'/framework/frame.class.inc');
if($argv[1]=="--plugins"){setPlugins();exit;}
build();
function build(){
$webappFile=null;
$tomcatDir="/var/lib/tomcat6/webapps";
if(!is_dir($tomcatDir)){
echo "Starting......: ".date("H:i:s")." C.A.S server failed `$tomcatDir` no such directory...\n";
return;
}
$unix=new unix();
$dirfiles=$unix->DirFiles("/usr/share/cas-server/modules","cas-server-webapp-.*?\.war");
echo "Starting......: ".date("H:i:s")." C.A.S server checking libraries...\n";
echo "Starting......: ".date("H:i:s")." C.A.S server TomCat webapps `$tomcatDir`\n";
while (list ($num, $line) = each ($dirfiles)){
$webappFile="/usr/share/cas-server/modules/$num";
}
if($webappFile==null){echo "Starting......: ".date("H:i:s")." C.A.S server failed to retrive cas-server-webapp war file\n";return;}
if(is_file("$tomcatDir/cas.war")){@unlink("$tomcatDir/cas.war");}
echo "Starting......: ".date("H:i:s")." C.A.S server installing $webappFile into $tomcatDir..\n";
@link($webappFile, "$tomcatDir/cas.war");
writesettings();
maven2();
tomcat_config();
log4jxml();
if(is_file("/etc/init.d/tomcat6")){
echo "Starting......: ".date("H:i:s")." C.A.S server restarting tomcat server...\n";
shell_exec("/etc/init.d/tomcat6 restart >/dev/null 2>&1");
}
WEB_INF_deployerConfigContext();
log4jxml();
}
function WEB_INF_deployerConfigContext(){
$ldap=new clladp();
$f[]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
$f[]="";
$f[]="<beans xmlns=\"http://www.springframework.org/schema/beans\"";
$f[]=" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"";
$f[]=" xmlns:p=\"http://www.springframework.org/schema/p\"";
$f[]=" xmlns:tx=\"http://www.springframework.org/schema/tx\"";
$f[]=" xmlns:sec=\"http://www.springframework.org/schema/security\"";
$f[]=" xsi:schemaLocation=\"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd";
$f[]=" http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd";
$f[]=" http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd\">";
$f[]=" <bean id=\"authenticationManager\"";
$f[]=" class=\"org.jasig.cas.authentication.AuthenticationManagerImpl\">";
$f[]=" ";
$f[]=" <!-- Uncomment the metadata populator to allow clearpass to capture and cache the password";
$f[]=" This switch effectively will turn on clearpass.";
$f[]=" <property name=\"authenticationMetaDataPopulators\">";
$f[]=" <list>";
$f[]=" <bean class=\"org.jasig.cas.extension.clearpass.CacheCredentialsMetaDataPopulator\">";
$f[]=" <constructor-arg index=\"0\" ref=\"credentialsCache\" />";
$f[]=" </bean>";
$f[]=" </list>";
$f[]=" </property>";
$f[]=" -->";
$f[]=" ";
$f[]=" <property name=\"credentialsToPrincipalResolvers\">";
$f[]=" <list>";
$f[]=" <!--";
$f[]=" | UsernamePasswordCredentialsToPrincipalResolver supports the UsernamePasswordCredentials that we use for /login ";
$f[]=" | by default and produces SimplePrincipal instances conveying the username from the credentials.";
$f[]=" | ";
$f[]=" | If you've changed your LoginFormAction to use credentials other than UsernamePasswordCredentials then you will also";
$f[]=" | need to change this bean declaration (or add additional declarations) to declare a CredentialsToPrincipalResolver that supports the";
$f[]=" | Credentials you are using.";
$f[]=" +-->";
$f[]=" <bean class=\"org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver\" >";
$f[]=" <property name=\"attributeRepository\" ref=\"attributeRepository\" />";
$f[]=" </bean>";
$f[]=" <!--";
$f[]=" | HttpBasedServiceCredentialsToPrincipalResolver supports HttpBasedCredentials. It supports the CAS 2.0 approach of";
$f[]=" | authenticating services by SSL callback, extracting the callback URL from the Credentials and representing it as a";
$f[]=" | SimpleService identified by that callback URL.";
$f[]=" |";
$f[]=" | If you are representing services by something more or other than an HTTPS URL whereat they are able to";
$f[]=" | receive a proxy callback, you will need to change this bean declaration (or add additional declarations).";
$f[]=" +-->";
$f[]=" <bean";
$f[]=" class=\"org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver\" />";
$f[]=" </list>";
$f[]=" </property>";
$f[]="";
$f[]=" <!--";
$f[]=" | Whereas CredentialsToPrincipalResolvers identify who it is some Credentials might authenticate, ";
$f[]=" | AuthenticationHandlers actually authenticate credentials. Here we declare the AuthenticationHandlers that";
$f[]=" | authenticate the Principals that the CredentialsToPrincipalResolvers identified. CAS will try these handlers in turn";
$f[]=" | until it finds one that both supports the Credentials presented and succeeds in authenticating.";
$f[]=" +-->";
$f[]=" <property name=\"authenticationHandlers\">";
$f[]=" <list>";
$f[]=" <bean class=\"org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler\"";
$f[]=" p:httpClient-ref=\"httpClient\" />";
$f[]="\t<bean";
$f[]="\tclass=\"org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler\" >";
$f[]="\t\t\t<property name=\"filter\" value=\"uid=%u\" />";
$f[]="\t\t\t<property name=\"contextSource\" ref=\"contextSource\" />";
$f[]="\t</bean>";
$f[]="\t<bean class=\"org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler\">";
$f[]="\t<property name=\"filter\" value=\"uid=%u\" />";
$f[]="\t<property name=\"searchBase\" value=\"dc=organizations,$ldap->suffix\" />";
$f[]="\t<property name=\"contextSource\" ref=\"contextSource\" />";
$f[]="\t</bean>";
$f[]=" </list>";
$f[]=" </property>";
$f[]=" </bean>";
$f[]="";
$f[]="";
$f[]=" <!--";
$f[]=" This bean defines the security roles for the Services Management application. Simple deployments can use the in-memory version.";
$f[]=" More robust deployments will want to use another option, such as the Jdbc version.";
$f[]=" ";
$f[]=" The name of this should remain \"userDetailsService\" in order for Spring Security to find it.";
$f[]=" -->";
$f[]=" <!-- <sec:user name=\"@@THIS SHOULD BE REPLACED@@\" password=\"notused\" authorities=\"ROLE_ADMIN\" />-->";
$f[]="";
$f[]=" <sec:user-service id=\"userDetailsService\">";
$f[]=" <sec:user name=\"@@THIS SHOULD BE REPLACED@@\" password=\"notused\" authorities=\"ROLE_ADMIN\" />";
$f[]=" </sec:user-service>";
$f[]=" ";
$f[]=" <!-- ";
$f[]=" Bean that defines the attributes that a service may return. This example uses the Stub/Mock version. A real implementation";
$f[]=" may go against a database or LDAP server. The id should remain \"attributeRepository\" though.";
$f[]=" -->";
$f[]=" <bean id=\"attributeRepository\"";
$f[]=" class=\"org.jasig.services.persondir.support.StubPersonAttributeDao\">";
$f[]=" <property name=\"backingMap\">";
$f[]=" <map>";
$f[]=" <entry key=\"uid\" value=\"uid\" />";
$f[]=" <entry key=\"eduPersonAffiliation\" value=\"eduPersonAffiliation\" /> ";
$f[]=" <entry key=\"groupMembership\" value=\"groupMembership\" />";
$f[]=" </map>";
$f[]=" </property>";
$f[]=" </bean>";
$f[]=" ";
$f[]=" <!-- ";
$f[]=" Sample, in-memory data store for the ServiceRegistry. A real implementation";
$f[]=" would probably want to replace this with the JPA-backed ServiceRegistry DAO";
$f[]=" The name of this bean should remain \"serviceRegistryDao\".";
$f[]=" -->";
$f[]=" <bean";
$f[]=" id=\"serviceRegistryDao\"";
$f[]=" class=\"org.jasig.cas.services.InMemoryServiceRegistryDaoImpl\">";
$f[]=" <property name=\"registeredServices\">";
$f[]=" <list>";
$f[]=" <bean class=\"org.jasig.cas.services.RegexRegisteredService\">";
$f[]=" <property name=\"id\" value=\"0\" />";
$f[]=" <property name=\"name\" value=\"HTTP and IMAP\" />";
$f[]=" <property name=\"description\" value=\"Allows HTTP(S) and IMAP(S) protocols\" />";
$f[]=" <property name=\"serviceId\" value=\"^(https?|imaps?)://.*\" />";
$f[]=" <property name=\"evaluationOrder\" value=\"10000001\" />";
$f[]=" </bean>";
$f[]=" <!--";
$f[]=" Use the following definition instead of the above to further restrict access";
$f[]=" to services within your domain (including subdomains).";
$f[]=" Note that example.com must be replaced with the domain you wish to permit.";
$f[]=" -->";
$f[]=" <!--";
$f[]=" <bean class=\"org.jasig.cas.services.RegexRegisteredService\">";
$f[]=" <property name=\"id\" value=\"1\" />";
$f[]=" <property name=\"name\" value=\"HTTP and IMAP on example.com\" />";
$f[]=" <property name=\"description\" value=\"Allows HTTP(S) and IMAP(S) protocols on example.com\" />";
$f[]=" <property name=\"serviceId\" value=\"^(https?|imaps?)://([A-Za-z0-9_-]+\.)*example\.com/.*\" />";
$f[]=" <property name=\"evaluationOrder\" value=\"0\" />";
$f[]=" </bean>";
$f[]=" -->";
$f[]=" </list>";
$f[]=" </property>";
$f[]=" </bean>";
$f[]="";
$f[]=" <bean id=\"auditTrailManager\" class=\"com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager\" />";
$f[]=" ";
$f[]=" <bean id=\"healthCheckMonitor\" class=\"org.jasig.cas.monitor.HealthCheckMonitor\">";
$f[]=" <property name=\"monitors\">";
$f[]=" <list>";
$f[]=" <bean class=\"org.jasig.cas.monitor.MemoryMonitor\"";
$f[]=" p:freeMemoryWarnThreshold=\"10\" />";
$f[]=" <!--";
$f[]=" NOTE";
$f[]=" The following ticket registries support SessionMonitor:";
$f[]=" * DefaultTicketRegistry";
$f[]=" * JpaTicketRegistry";
$f[]=" Remove this monitor if you use an unsupported registry.";
$f[]=" -->";
$f[]=" <bean class=\"org.jasig.cas.monitor.SessionMonitor\"";
$f[]=" p:ticketRegistry-ref=\"ticketRegistry\"";
$f[]=" p:serviceTicketCountWarnThreshold=\"5000\"";
$f[]=" p:sessionCountWarnThreshold=\"100000\" />";
$f[]=" </list>";
$f[]=" </property>";
$f[]=" </bean>";
$f[]="\t<bean id=\"contextSource\" class=\"org.springframework.ldap.core.support.LdapContextSource\">";
$f[]="\t\t<property name=\"pooled\" value=\"true\"/>";
$f[]="\t\t\t<property name=\"urls\">";
$f[]="\t\t\t\t<list>";
$f[]="\t\t\t\t\t<value>ldap://$ldap->ldap_host:$ldap->ldap_port/</value>";
$f[]="\t\t\t\t</list>";
$f[]="\t\t\t</property>";
$f[]="\t\t<property name=\"userDn\" value=\"cn=$ldap->ldap_admin,$ldap->suffix\"/>";
$f[]="\t\t<property name=\"password\" value=\"$ldap->ldap_password\"/>";
$f[]="\t\t<property name=\"baseEnvironmentProperties\">";
$f[]="\t\t<map>";
$f[]="\t\t\t<entry>";
$f[]="\t\t\t\t<key>";
$f[]="\t\t\t\t\t<value>java.naming.security.authentication</value>";
$f[]="\t\t\t\t</key>";
$f[]="\t\t\t\t<value>simple</value>";
$f[]="\t\t\t</entry>";
$f[]="\t\t</map>";
$f[]="\t\t</property>";
$f[]="\t</bean>";
$f[]="</beans>";
$f[]="";
@file_put_contents("/var/lib/tomcat6/webapps/cas/WEB-INF/deployerConfigContext.xml", @implode("\n", $f));
echo "Starting......: ".date("H:i:s")." C.A.S deployerConfigContext.xml done...\n";
}
function maven2(){
@mkdir("/usr/share/maven2");
$f[]="main is org.apache.maven.cli.compat.CompatibleMain from plexus.core";
$f[]="set maven.home default /usr/share/maven2";
$f[]="[plexus.core]";
$f[]="load /usr/share/maven2/lib/*.jar";
@file_put_contents("/etc/maven2/m2.conf", @implode("\n", $f));
echo "Starting......: ".date("H:i:s")." C.A.S /etc/maven2/m2.conf done...\n";
$f=array();
$f[]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
$f[]="";
$f[]="<!--";
$f[]="Licensed to the Apache Software Foundation (ASF) under one";
$f[]="or more contributor license agreements. See the NOTICE file";
$f[]="distributed with this work for additional information";
$f[]="regarding copyright ownership. The ASF licenses this file";
$f[]="to you under the Apache License, Version 2.0 (the";
$f[]="\"License\"); you may not use this file except in compliance";
$f[]="with the License. You may obtain a copy of the License at";
$f[]="";
$f[]=" http://www.apache.org/licenses/LICENSE-2.0";
$f[]="";
$f[]="Unless required by applicable law or agreed to in writing,";
$f[]="software distributed under the License is distributed on an";
$f[]="\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY";
$f[]="KIND, either express or implied. See the License for the";
$f[]="specific language governing permissions and limitations";
$f[]="under the License.";
$f[]="-->";
$f[]="";
$f[]="<!--";
$f[]=" | This is the configuration file for Maven. It can be specified at two levels:";
$f[]=" |";
$f[]=" | 1. User Level. This settings.xml file provides configuration for a single user,";
$f[]=" | and is normally provided in \${user.home}/.m2/settings.xml.";
$f[]=" |";
$f[]=" | NOTE: This location can be overridden with the CLI option:";
$f[]=" |";
$f[]=" | -s /path/to/user/settings.xml";
$f[]=" |";
$f[]=" | 2. Global Level. This settings.xml file provides configuration for all Maven";
$f[]=" | users on a machine (assuming they're all using the same Maven";
$f[]=" | installation). It's normally provided in";
$f[]=" | \${maven.home}/conf/settings.xml.";
$f[]=" |";
$f[]=" | NOTE: This location can be overridden with the CLI option:";
$f[]=" |";
$f[]=" | -gs /path/to/global/settings.xml";
$f[]=" |";
$f[]=" | The sections in this sample file are intended to give you a running start at";
$f[]=" | getting the most out of your Maven installation. Where appropriate, the default";
$f[]=" | values (values used when the setting is not specified) are provided.";
$f[]=" |";
$f[]=" |-->";
$f[]="<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"";
$f[]=" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"";
$f[]=" xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd\">";
$f[]=" <localRepository>/usr/share/maven2</localRepository>";
$f[]="";
$f[]=" <!-- interactiveMode";
$f[]=" | This will determine whether maven prompts you when it needs input. If set to false,";
$f[]=" | maven will use a sensible default value, perhaps based on some other setting, for";
$f[]=" | the parameter in question.";
$f[]=" |";
$f[]=" | Default: true";
$f[]=" <interactiveMode>true</interactiveMode>";
$f[]=" -->";
$f[]="";
$f[]=" <!-- offline";
$f[]=" | Determines whether maven should attempt to connect to the network when executing a build.";
$f[]=" | This will have an effect on artifact downloads, artifact deployment, and others.";
$f[]=" |";
$f[]=" | Default: false";
$f[]=" <offline>false</offline>";
$f[]=" -->";
$f[]="";
$f[]=" <!-- pluginGroups";
$f[]=" | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.";
$f[]=" | when invoking a command line like \"mvn prefix:goal\". Maven will automatically add the group identifiers";
$f[]=" | \"org.apache.maven.plugins\" and \"org.codehaus.mojo\" if these are not already contained in the list.";
$f[]=" |-->";
$f[]=" <pluginGroups>";
$f[]=" <!-- pluginGroup";
$f[]=" | Specifies a further group identifier to use for plugin lookup.";
$f[]=" <pluginGroup>com.your.plugins</pluginGroup>";
$f[]=" -->";
$f[]=" </pluginGroups>";
$f[]="";
$f[]=" <!-- proxies";
$f[]=" | This is a list of proxies which can be used on this machine to connect to the network.";
$f[]=" | Unless otherwise specified (by system property or command-line switch), the first proxy";
$f[]=" | specification in this list marked as active will be used.";
$f[]=" |-->";
$f[]=" <proxies>";
$f[]=" <!-- proxy";
$f[]=" | Specification for one proxy, to be used in connecting to the network.";
$f[]=" |";
$f[]=" <proxy>";
$f[]=" <id>optional</id>";
$f[]=" <active>true</active>";
$f[]=" <protocol>http</protocol>";
$f[]=" <username>proxyuser</username>";
$f[]=" <password>proxypass</password>";
$f[]=" <host>proxy.host.net</host>";
$f[]=" <port>80</port>";
$f[]=" <nonProxyHosts>local.net|some.host.com</nonProxyHosts>";
$f[]=" </proxy>";
$f[]=" -->";
$f[]=" </proxies>";
$f[]="";
$f[]=" <!-- servers";
$f[]=" | This is a list of authentication profiles, keyed by the server-id used within the system.";
$f[]=" | Authentication profiles can be used whenever maven must make a connection to a remote server.";
$f[]=" |-->";
$f[]=" <servers>";
$f[]=" <!-- server";
$f[]=" | Specifies the authentication information to use when connecting to a particular server, identified by";
$f[]=" | a unique name within the system (referred to by the 'id' attribute below).";
$f[]=" |";
$f[]=" | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are";
$f[]=" | used together.";
$f[]=" |";
$f[]=" <server>";
$f[]=" <id>deploymentRepo</id>";
$f[]=" <username>repouser</username>";
$f[]=" <password>repopwd</password>";
$f[]=" </server>";
$f[]=" -->";
$f[]="";
$f[]=" <!-- Another sample, using keys to authenticate.";
$f[]=" <server>";
$f[]=" <id>siteServer</id>";
$f[]=" <privateKey>/path/to/private/key</privateKey>";
$f[]=" <passphrase>optional; leave empty if not used.</passphrase>";
$f[]=" </server>";
$f[]=" -->";
$f[]=" </servers>";
$f[]="";
$f[]=" <!-- mirrors";
$f[]=" | This is a list of mirrors to be used in downloading artifacts from remote repositories.";
$f[]=" |";
$f[]=" | It works like this: a POM may declare a repository to use in resolving certain artifacts.";
$f[]=" | However, this repository may have problems with heavy traffic at times, so people have mirrored";
$f[]=" | it to several places.";
$f[]=" |";
$f[]=" | That repository definition will have a unique id, so we can create a mirror reference for that";
$f[]=" | repository, to be used as an alternate download site. The mirror site will be the preferred";
$f[]=" | server for that repository.";
$f[]=" |-->";
$f[]=" <mirrors>";
$f[]=" <!-- mirror";
$f[]=" | Specifies a repository mirror site to use instead of a given repository. The repository that";
$f[]=" | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used";
$f[]=" | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.";
$f[]=" |";
$f[]=" <mirror>";
$f[]=" <id>mirrorId</id>";
$f[]=" <mirrorOf>repositoryId</mirrorOf>";
$f[]=" <name>Human Readable Name for this Mirror.</name>";
$f[]=" <url>http://my.repository.com/repo/path</url>";
$f[]=" </mirror>";
$f[]=" -->";
$f[]=" </mirrors>";
$f[]="";
$f[]=" <!-- profiles";
$f[]=" | This is a list of profiles which can be activated in a variety of ways, and which can modify";
$f[]=" | the build process. Profiles provided in the settings.xml are intended to provide local machine-";
$f[]=" | specific paths and repository locations which allow the build to work in the local environment.";
$f[]=" |";
$f[]=" | For example, if you have an integration testing plugin - like cactus - that needs to know where";
$f[]=" | your Tomcat instance is installed, you can provide a variable here such that the variable is";
$f[]=" | dereferenced during the build process to configure the cactus plugin.";
$f[]=" |";
$f[]=" | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles";
$f[]=" | section of this document (settings.xml) - will be discussed later. Another way essentially";
$f[]=" | relies on the detection of a system property, either matching a particular value for the property,";
$f[]=" | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a";
$f[]=" | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.";
$f[]=" | Finally, the list of active profiles can be specified directly from the command line.";
$f[]=" |";
$f[]=" | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact";
$f[]=" | repositories, plugin repositories, and free-form properties to be used as configuration";
$f[]=" | variables for plugins in the POM.";
$f[]=" |";
$f[]=" |-->";
$f[]=" <profiles>";
$f[]=" <!-- profile";
$f[]=" | Specifies a set of introductions to the build process, to be activated using one or more of the";
$f[]=" | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>";
$f[]=" | or the command line, profiles have to have an ID that is unique.";
$f[]=" |";
$f[]=" | An encouraged best practice for profile identification is to use a consistent naming convention";
$f[]=" | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.";
$f[]=" | This will make it more intuitive to understand what the set of introduced profiles is attempting";
$f[]=" | to accomplish, particularly when you only have a list of profile id's for debug.";
$f[]=" |";
$f[]=" | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.";
$f[]=" <profile>";
$f[]=" <id>jdk-1.4</id>";
$f[]="";
$f[]=" <activation>";
$f[]=" <jdk>1.4</jdk>";
$f[]=" </activation>";
$f[]="";
$f[]=" <repositories>";
$f[]=" <repository>";
$f[]=" <id>jdk14</id>";
$f[]=" <name>Repository for JDK 1.4 builds</name>";
$f[]=" <url>http://www.myhost.com/maven/jdk14</url>";
$f[]=" <layout>default</layout>";
$f[]=" <snapshotPolicy>always</snapshotPolicy>";
$f[]=" </repository>";
$f[]=" </repositories>";
$f[]=" </profile>";
$f[]=" -->";
$f[]="";
$f[]=" <!--";
$f[]=" | Here is another profile, activated by the system property 'target-env' with a value of 'dev',";
$f[]=" | which provides a specific path to the Tomcat instance. To use this, your plugin configuration";
$f[]=" | might hypothetically look like:";
$f[]=" |";
$f[]=" | ...";
$f[]=" | <plugin>";
$f[]=" | <groupId>org.myco.myplugins</groupId>";
$f[]=" | <artifactId>myplugin</artifactId>";
$f[]=" |";
$f[]=" | <configuration>";
$f[]=" | <tomcatLocation>\${tomcatPath}</tomcatLocation>";
$f[]=" | </configuration>";
$f[]=" | </plugin>";
$f[]=" | ...";
$f[]=" |";
$f[]=" | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to";
$f[]=" | anything, you could just leave off the <value/> inside the activation-property.";
$f[]=" |";
$f[]=" <profile>";
$f[]=" <id>env-dev</id>";
$f[]="";
$f[]=" <activation>";
$f[]=" <property>";
$f[]=" <name>target-env</name>";
$f[]=" <value>dev</value>";
$f[]=" </property>";
$f[]=" </activation>";
$f[]="";
$f[]=" <properties>";
$f[]=" <tomcatPath>/path/to/tomcat/instance</tomcatPath>";
$f[]=" </properties>";
$f[]=" </profile>";
$f[]=" -->";
$f[]=" </profiles>";
$f[]="";
$f[]=" <!-- activeProfiles";
$f[]=" | List of profiles that are active for all builds.";
$f[]=" |";
$f[]=" <activeProfiles>";
$f[]=" <activeProfile>alwaysActiveProfile</activeProfile>";
$f[]=" <activeProfile>anotherAlwaysActiveProfile</activeProfile>";
$f[]=" </activeProfiles>";
$f[]=" -->";
$f[]="</settings>";
$f[]="";
@file_put_contents("/etc/maven2/settings.xml", @implode("\n", $f));
echo "Starting......: ".date("H:i:s")." C.A.S /etc/maven2/settings.xml done...\n";
}
function writesettings(){
$xml = simplexml_load_file("/usr/share/cas-server/pom.xml");
$Version=$xml->version[0];
$f[]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
$f[]="<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\">";
$f[]=" <parent>";
$f[]=" <groupId>org.jasig.parent</groupId>";
$f[]=" <artifactId>jasig-parent</artifactId>";
$f[]=" <version>34</version>";
$f[]=" </parent>";
$f[]=" <modelVersion>4.0.0</modelVersion>";
$f[]=" <groupId>org.jasig.cas</groupId>";
$f[]=" <artifactId>cas-server</artifactId>";
$f[]=" <packaging>pom</packaging>";
$f[]=" <name>Jasig Central Authentication Service</name>";
$f[]=" <description>Jasig CAS SSO server libraries and Web application.</description>";
$f[]=" <version>$Version</version>";
$f[]=" <url>http://www.jasig.org/cas/</url>";
$f[]=" <inceptionYear>2004</inceptionYear>";
$f[]="";
$f[]=" <licenses>";
$f[]=" <license>";
$f[]=" <name>Apache 2</name>";
$f[]=" <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>";
$f[]=" <distribution>repo</distribution>";
$f[]=" </license>";
$f[]=" </licenses>";
$f[]="";
$f[]=" <developers>";
$f[]=" <developer>";
$f[]=" <id>battags</id>";
$f[]=" <name>Scott Battaglia</name>";
$f[]=" <email>scott.battaglia@gmail.com</email>";
$f[]=" <timezone>-5</timezone>";
$f[]=" <roles>";
$f[]=" <role>developer</role>";
$f[]=" </roles>";
$f[]=" </developer>";
$f[]=" <developer>";
$f[]=" <id>serac</id>";
$f[]=" <name>Marvin S. Addison</name>";
$f[]=" <email>marvin.addison@gmail.com</email>";
$f[]=" <timezone>-5</timezone>";
$f[]=" <roles>";
$f[]=" <role>developer</role>";
$f[]=" <role>cas-server-support-ldap module lead</role>";
$f[]=" <role>cas-server-support-x509 module lead</role>";
$f[]=" </roles>";
$f[]=" </developer>";
$f[]=" <developer>";
$f[]=" <id>wgthom</id>";
$f[]=" <name>William G. Thompson</name>";
$f[]=" <email>wgthom@gmail.com</email>";
$f[]=" <timezone>-5</timezone>";
$f[]=" <roles>";
$f[]=" <role>developer</role>";
$f[]=" </roles>";
$f[]=" </developer>";
$f[]=" <developer>";
$f[]=" <id>apetro</id>";
$f[]=" <name>Andrew Petro</name>";
$f[]=" <email>apetro@unicon.net</email>";
$f[]=" <timezone>-5</timezone>";
$f[]=" <roles>";
$f[]=" <role>developer</role>";
$f[]=" </roles>";
$f[]=" </developer>";
$f[]=" <developer>";
$f[]=" <id>leleuj</id>";
$f[]=" <name>Jérôme Leleu</name>";
$f[]=" <email>leleuj@gmail.com</email>";
$f[]=" <timezone>-5</timezone>";
$f[]=" <roles>";
$f[]=" <role>developer</role>";
$f[]=" <role>cas-server-support-oauth module lead</role>";
$f[]=" </roles>";
$f[]=" </developer>";
$f[]=" <developer>";
$f[]=" <id>mmoayyed</id>";
$f[]=" <name>Misagh Moayyed</name>";
$f[]=" <email>mmoayyed@unicon.net</email>";
$f[]=" <timezone>-7</timezone>";
$f[]=" <roles>";
$f[]=" <role>developer</role>";
$f[]=" </roles>";
$f[]=" </developer>";
$f[]="";
$f[]=" </developers>";
$f[]="";
$f[]=" <contributors>";
$f[]=" <contributor>";
$f[]=" <name>Adam Rybicki</name>";
$f[]=" <email>arybicki@unicon.net</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Andrew Tillinghast</name>";
$f[]=" <email>atilling@conncoll.edu</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Arnaud Lesueur</name>";
$f[]=" <email>arnaud.lesueur@gmail.com</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Dmitriy Kopylenko</name>";
$f[]=" <email>dima767@gmail.com</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Drew Mazurek</name>";
$f[]=" <email>dmazurek@unicon.net</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Eric Dalquist</name>";
$f[]=" <email>eric.dalquist@doit.wisc.edu</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Eric Pierce</name>";
$f[]=" <email>epierce@usf.edu</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Frederic Esnault</name>";
$f[]=" <email>esnault.frederic@gmail.com</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Howard Gilbert</name>";
$f[]=" <email>Howard.Gilbert@yale.edu</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Jan Van der Velpen</name>";
$f[]=" <email>velpi@industria.be</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>John Martin</name>";
$f[]=" <email>jmartin@unicon.net</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>MarcAntoine Garrigue</name>";
$f[]=" <email>marc.antoine.garrigue@gmail.com</email>";
$f[]=" </contributor>";
$f[]=" <contributor>";
$f[]=" <name>Mihir Patel</name>";
$f[]=" <email>exploremihir@gmail.com</email>";
$f[]=" </contributor>";
$f[]=" </contributors>";
$f[]="";
$f[]=" <issueManagement>";
$f[]=" <system>Jira</system>";
$f[]=" <url>https://issues.jasig.org/browse/CAS</url>";
$f[]=" </issueManagement>";
$f[]=" ";
$f[]=" <mailingLists>";
$f[]=" <mailingList>";
$f[]=" <name>cas-user</name>";
$f[]=" <subscribe>join-cas-user@lists.jasig.org</subscribe>";
$f[]=" <unsubscribe>leave-cas-user@lists.jasig.org</unsubscribe>";
$f[]=" <post>cas-user@lists.jasig.org</post>";
$f[]=" <archive>https://lists.wisc.edu/read/?forum=cas-user</archive>";
$f[]=" </mailingList>";
$f[]=" <mailingList>";
$f[]=" <name>cas-dev</name>";
$f[]=" <subscribe>join-cas-dev@lists.jasig.org</subscribe>";
$f[]=" <unsubscribe>leave-cas-dev@lists.jasig.org</unsubscribe>";
$f[]=" <post>cas-dev@lists.jasig.org</post>";
$f[]=" <archive>https://lists.wisc.edu/read/?forum=cas-dev</archive>";
$f[]=" </mailingList>";
$f[]=" <mailingList>";
$f[]=" <name>cas-announce</name>";
$f[]=" <subscribe>join-cas-announce@lists.jasig.org</subscribe>";
$f[]=" <unsubscribe>leave-cas-announce@lists.jasig.org</unsubscribe>";
$f[]=" <post>cas-announce@lists.jasig.org</post>";
$f[]=" <archive>https://lists.wisc.edu/read/?forum=cas-announce</archive>";
$f[]=" </mailingList>";
$f[]=" </mailingLists>";
$f[]="";
$f[]=" <scm>";
$f[]=" <connection>scm:git:git@github.com:Jasig/cas.git</connection>";
$f[]=" <developerConnection>scm:git:git@github.com:Jasig/cas.git</developerConnection>";
$f[]=" <url>https://github.com/Jasig/cas</url>";
$f[]=" </scm>";
$f[]="";
$f[]=" <build>";
$f[]=" <testResources>";
$f[]=" <testResource>";
$f[]=" <directory>\${basedir}/src/test/resources</directory>";
$f[]=" </testResource>";
$f[]=" </testResources>";
$f[]=" ";
$f[]=" <pluginManagement>";
$f[]=" <plugins>";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-surefire-plugin</artifactId>";
$f[]=" <version>2.12</version>";
$f[]=" <configuration>";
$f[]=" <skipTests>true</skipTests>";
$f[]=" <forkMode>once</forkMode>";
$f[]=" <includes>";
$f[]=" <include>**/*Tests.java</include>";
$f[]=" </includes>";
$f[]=" <excludes>";
$f[]=" <exclude>**/Abstract*.java</exclude>";
$f[]=" </excludes>";
$f[]=" <additionalClasspathElements>";
$f[]=" <additionalClasspathElement>\${project.build.directory}/test-lib/jdbc-driver.jar</additionalClasspathElement>";
$f[]=" </additionalClasspathElements>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" </plugins>";
$f[]=" </pluginManagement>";
$f[]=" ";
$f[]=" <plugins>";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-enforcer-plugin</artifactId>";
$f[]=" <executions>";
$f[]=" <execution>";
$f[]=" <id>enforce-versions</id>";
$f[]=" <goals>";
$f[]=" <goal>enforce</goal>";
$f[]=" </goals>";
$f[]=" <configuration>";
$f[]=" <rules>";
$f[]=" <requireMavenVersion>";
$f[]=" <version>2.0.9</version>";
$f[]=" </requireMavenVersion>";
$f[]=" <requireJavaVersion>";
$f[]=" <version>\${jdk.version}</version>";
$f[]=" </requireJavaVersion>";
$f[]=" </rules>";
$f[]=" </configuration>";
$f[]=" </execution>";
$f[]=" </executions>";
$f[]=" </plugin>";
$f[]=" <!--";
$f[]=" <plugin>";
$f[]=" <groupId>com.atlassian.maven.plugins</groupId>";
$f[]=" <artifactId>maven-clover2 lugin</artifactId>";
$f[]=" <version>\${clover.version}</version>";
$f[]=" <configuration>";
$f[]=" <license><![CDATA[oPpoNpLipDQKHHXaIXJPCIsoqRpdAfeXwIImkDIRoTnriq";
$f[]="mi2KuXZFGad>>Lz0ULLXhqIo2KPjARsdren1aP3vzebzkM";
$f[]="qNNNUvQNpqopPoOQRqmTvqoPnOnMopRPqpSUtxrWTxOxTu";
$f[]="pTSqrOnmqmUUnopqmvummmmmmUUnopqmvummmmmmUUA1jJ";
$f[]="97W9kZkUUnmm]]></license>";
$f[]=" <jdk>\${jdk.version}</jdk>";
$f[]=" <generateXml>true</generateXml>";
$f[]=" <generateHtml>true</generateHtml>";
$f[]=" <includes>";
$f[]=" <include>**/*.java</include>";
$f[]=" </includes>";
$f[]=" <excludes>";
$f[]=" <exclude>**/CasVersion.java</exclude>";
$f[]=" <exclude>";
$f[]=" **/SamlCompliantUniqueTicketIdGenerator.java";
$f[]=" </exclude>";
$f[]=" </excludes>";
$f[]=" </configuration>";
$f[]=" <executions>";
$f[]=" <execution>";
$f[]=" <phase>verify</phase>";
$f[]=" <goals>";
$f[]=" <goal>instrument</goal>";
$f[]=" </goals>";
$f[]=" </execution>";
$f[]=" </executions>";
$f[]=" </plugin>-->";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-compiler-plugin</artifactId>";
$f[]=" <configuration>";
$f[]=" <source>\${jdk.version}</source>";
$f[]=" <target>\${jdk.version}</target>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-jar-plugin</artifactId>";
$f[]=" <configuration>";
$f[]=" <archive>";
$f[]=" <manifest>";
$f[]=" <addDefaultImplementationEntries>true</addDefaultImplementationEntries>";
$f[]=" </manifest>";
$f[]=" </archive>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-assembly-plugin</artifactId>";
$f[]=" <version>2.2.1</version>";
$f[]=" <configuration>";
$f[]=" <descriptors>";
$f[]=" <descriptor>\${basedir}/assembly.xml</descriptor>";
$f[]=" </descriptors>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" <plugin>";
$f[]=" <groupId>org.codehaus.mojo</groupId>";
$f[]=" <artifactId>aspectj-maven-plugin</artifactId>";
$f[]=" <version>1.3.1</version>";
$f[]=" <executions>";
$f[]=" <execution>";
$f[]=" <goals>";
$f[]=" <goal>compile</goal>";
$f[]=" </goals>";
$f[]=" </execution>";
$f[]=" </executions>";
$f[]=" <configuration>";
$f[]=" <source>\${jdk.version}</source>";
$f[]=" <target>\${jdk.version}</target>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-release-plugin</artifactId>";
$f[]=" <version>2.2.1</version>";
$f[]=" <configuration>";
$f[]=" <mavenExecutorId>forked-path</mavenExecutorId>";
$f[]=" <tagNameFormat>v@{project.version}</tagNameFormat>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" <!-- CAS-988 generate hashes for assembly artifacts -->";
$f[]=" <plugin>";
$f[]=" <groupId>org.apache.maven.plugins</groupId>";
$f[]=" <artifactId>maven-antrun-plugin</artifactId>";
$f[]=" <version>1.5</version>";
$f[]=" <configuration>";
$f[]=" <target>";
$f[]=" <ant antfile=\"tasks.xml\" target=\"genhash\" />";
$f[]=" </target>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" <plugin>";
$f[]=" <groupId>com.mycila.maven-license-plugin</groupId>";
$f[]=" <artifactId>maven-license-plugin</artifactId>";
$f[]=" <configuration>";
$f[]=" <header>src/licensing/header.txt</header>";
$f[]=" <headerDefinitions>";
$f[]=" <headerDefinition>src/licensing/header-definitions.xml</headerDefinition>";
$f[]=" </headerDefinitions>";
$f[]=" <aggregate>true</aggregate>";
$f[]=" <excludes>";
$f[]=" <exclude>LICENSE</exclude>";
$f[]=" <exclude>**/INSTALL*</exclude>";
$f[]=" <exclude>**/NOTICE*</exclude>";
$f[]=" <exclude>**/README*</exclude>";
$f[]=" <exclude>**/readme*</exclude>";
$f[]=" <exclude>**/*.log</exclude>";
$f[]=" <exclude>**/*.license</exclude>";
$f[]=" <exclude>**/*.txt</exclude>";
$f[]=" <exclude>**/*.crt</exclude>";
$f[]=" <exclude>**/*.crl</exclude>";
$f[]=" <exclude>**/*.key</exclude>";
$f[]=" <exclude>**/.gitignore</exclude>";
$f[]=" <exclude>**/overlays/**</exclude>";
$f[]=" <exclude>src/licensing/**</exclude>";
$f[]=" <exclude>**/testCA/**</exclude>";
$f[]=" </excludes>";
$f[]=" </configuration>";
$f[]=" </plugin>";
$f[]=" </plugins>";
$f[]=" </build>";
$f[]="";
$f[]=" <dependencies>";
$f[]=" <dependency>";
$f[]=" <groupId>junit</groupId>";
$f[]=" <artifactId>junit</artifactId>";
$f[]=" <version>\${junit.version}</version>";
$f[]=" <scope>test</scope>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.jasig.cas</groupId>";
$f[]=" <artifactId>cas-server-support-ldap</artifactId>";
$f[]=" <version>\${project.version}</version>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.mockito</groupId>";
$f[]=" <artifactId>mockito-core</artifactId>";
$f[]=" <version>\${mockito.version}</version>";
$f[]=" <scope>test</scope>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.jasig.cas</groupId>";
$f[]=" <artifactId>cas-server-support-spnego</artifactId>";
$f[]=" <version>\${cas.version}</version>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.springframework</groupId>";
$f[]=" <artifactId>spring-test</artifactId>";
$f[]=" <version>\${spring.version}</version>";
$f[]=" <scope>test</scope>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>javax.servlet</groupId>";
$f[]=" <artifactId>servlet-api</artifactId>";
$f[]=" <scope>provided</scope>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.aspectj</groupId>";
$f[]=" <artifactId>aspectjrt</artifactId>";
$f[]=" <scope>compile</scope>";
$f[]=" <version>\${aspectj.version}</version>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.aspectj</groupId>";
$f[]=" <artifactId>aspectjweaver</artifactId>";
$f[]=" <scope>compile</scope>";
$f[]=" <version>\${aspectj.version}</version>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>javax.validation</groupId>";
$f[]=" <artifactId>validation-api</artifactId>";
$f[]=" <version>\${javax.validation.version}</version>";
$f[]=" <scope>compile</scope>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.slf4j</groupId>";
$f[]=" <artifactId>slf4j-api</artifactId>";
$f[]=" <version>\${slf4j.version}</version>";
$f[]=" <scope>compile</scope>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.slf4j</groupId>";
$f[]=" <artifactId>slf4j-log4j12</artifactId>";
$f[]=" <version>\${slf4j.version}</version>";
$f[]=" <scope>runtime</scope>";
$f[]=" <type>jar</type>";
$f[]=" <exclusions>";
$f[]=" <exclusion>";
$f[]=" <groupId>log4j</groupId>";
$f[]=" <artifactId>log4j</artifactId>";
$f[]=" </exclusion>";
$f[]=" </exclusions>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>org.slf4j</groupId>";
$f[]=" <artifactId>jcl-over-slf4j</artifactId>";
$f[]=" <version>\${slf4j.version}</version>";
$f[]=" <scope>compile</scope>";
$f[]=" </dependency>";
$f[]=" </dependencies>";
$f[]="";
$f[]=" <repositories>";
$f[]=" <repository>";
$f[]=" <id>jasig-repository</id>";
$f[]=" <name>Jasig Maven2 Repository</name>";
$f[]=" <url>http://developer.ja-sig.org/maven2</url>";
$f[]=" </repository>";
$f[]="";
$f[]=" <repository>";
$f[]=" <id>jboss</id>";
$f[]=" <name>JBoss Repository</name>";
$f[]=" <layout>default</layout>";
$f[]=" <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>";
$f[]=" </repository>";
$f[]=" </repositories>";
$f[]="";
$f[]=" <pluginRepositories>";
$f[]=" <pluginRepository>";
$f[]=" <id>mojo-snapshot</id>";
$f[]=" <name>Codehause Mojo Snapshot Repository</name>";
$f[]=" <url>https://nexus.codehaus.org/content/repositories/codehaus-snapshots/</url>";
$f[]=" <snapshots>";
$f[]=" <enabled>true</enabled>";
$f[]=" </snapshots>";
$f[]=" </pluginRepository>";
$f[]=" </pluginRepositories>";
$f[]="";
$f[]=" <dependencyManagement>";
$f[]=" <dependencies>";
$f[]=" <dependency>";
$f[]=" <groupId>commons-lang</groupId>";
$f[]=" <artifactId>commons-lang</artifactId>";
$f[]=" <version>\${commons.lang.version}</version>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <!-- Inspektr Dependencies -->";
$f[]=" <dependency>";
$f[]=" <groupId>com.github.inspektr</groupId>";
$f[]=" <artifactId>inspektr-audit</artifactId>";
$f[]=" <version>\${inspektr.version}</version>";
$f[]=" </dependency>";
$f[]="";
$f[]=" <dependency>";
$f[]=" <groupId>com.github.inspektr</groupId>";
$f[]=" <artifactId>inspektr-common</artifactId>";
$f[]=" <version>\${inspektr.version}</version>";
$f[]=" </dependency>";
$f[]="";