-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmaven-v4_0_0.xsd
2259 lines (2251 loc) · 103 KB
/
maven-v4_0_0.xsd
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"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0">
<xs:element name="project" type="Model">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The <code>&lt;project&gt;</code> element specifies various attributes
about a project. This is the root element of the project descriptor.
The following table lists all of the possible child elements. Child
elements with children are then documented further in subsequent
sections.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="Model">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The <code>&lt;project&gt;</code> element specifies various attributes
about a project. This is the root element of the project descriptor.
The following table lists all of the possible child elements. Child
elements with children are then documented further in subsequent
sections.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="parent" minOccurs="0" type="Parent">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Information on which parent POM to extend.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="modelVersion" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Declares to which version of project descriptor this POM conforms.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="groupId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The short name of the project group. This value is used to group
all jars for a project in one directory. For more info look at the
<a href="/reference/conventions.html">user guide</a>.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="artifactId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The short name of the project. This value is used in conjunction
with <code>groupId</code>
when naming <a href="/plugins/java/index.html">jars</a> and
<a href="/plugins/dist/index.html">distribution files</a>.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="packaging" minOccurs="0" type="xs:string" default="jar">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The type of artifact this project produces.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="name" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The full name of the project. This value is used when
generating <a href="/plugins/javadoc/index.html">JavaDoc</a>
titles.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="version" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
The current version of the artifact produced by this project.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
Optional. A detailed description of the project.
This description is used as the default to generate the
<a href="/plugins/site/index.html">Mailing Lists</a> of the project's
web site, and is shown when <code>maven --usage</code> is called on
the project. While this element can be specified as CDATA to enable
the use of HTML tags within the description, you are encouraged to
provide an alternative home page using <code>xdocs/index.xml</code>
if this is required.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="url" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The URL to the project's homepage.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="prerequisites" minOccurs="0" type="Prerequisites">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Describes the prerequisites in the build environment for this project.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="issueManagement" minOccurs="0" type="IssueManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The project's issue management information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ciManagement" minOccurs="0" type="CiManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The project's continuous integration management information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="inceptionYear" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The year of the project's inception specified with 4 digits.
This value is used when generating
<a href="/plugins/javadoc/index.html">JavaDoc</a> copyright notices.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="mailingLists" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
Contains information about a project's mailing lists. This
is used to generate the <a href="/plugins/site/index.html">front
page</a> of the site's web site.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="mailingList" minOccurs="0" maxOccurs="unbounded" type="MailingList"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="developers" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
Describes the committers to a project. This is used to
generate the <a href="/plugins/site/index.html">Project Team</a>
page of the project's web site.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="developer" minOccurs="0" maxOccurs="unbounded" type="Developer"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="contributors" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
Describes the contributors to a project. This is used to generate
the <a href="/plugins/site/index.html">Project Team</a> page of
the project's web site.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="contributor" minOccurs="0" maxOccurs="unbounded" type="Contributor"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="licenses" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
This element describes all of the licenses for this project.
Each license is described by a <code>license</code> element, which
is then described by additional elements (described below). The
auto-generated site documentation references this information.
Projects should only list the license(s) that applies to the project
and not the licenses that apply to dependencies.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="license" minOccurs="0" maxOccurs="unbounded" type="License"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="scm" minOccurs="0" type="Scm">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Specification for the SCM used by the project.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="organization" minOccurs="0" type="Organization">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
This element describes various attributes of the organization to
which the project belongs. These attributes are utilized when
documentation is created (for copyright notices and links).
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="build" minOccurs="0" type="Build">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">Information required to build the project.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="profiles" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Listing of project-local build profiles which will modify the build process when activated.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="profile" minOccurs="0" maxOccurs="unbounded" type="Profile"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="modules" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The modules to build in addition to the current project</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="module" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="repositories" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The lists of the remote repositories</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="repository" minOccurs="0" maxOccurs="unbounded" type="Repository"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pluginRepositories" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The lists of the remote repositories for discovering plugins</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="pluginRepository" minOccurs="0" maxOccurs="unbounded" type="Repository"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="dependencies" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
<p>
This element describes all of the dependencies associated with a
project. Each dependency is described by a
<code>dependency</code> element, which is then described by
additional elements (described below).
</p>
<p>
These dependencies are used to construct a classpath for your
project during the build process.
</p>
<p>
Maven can automatically download these dependencies from a
<a href="/user-guide.html#Remote%20Repository%20Layout">remote repository</a>.
</p>
<p>
The filename that Maven downloads from the repository is
<code>artifactId-version.jar</code> where <code>artifactId</code>
corresponds to the <code>artifactId</code> element and
<code>version</code> corresponds to the <code>version</code> element.
</p>
<p>
When Maven goes looking for a dependency in the remote repository,
it uses the dependency element to construct the URL to download
from. This URL is defined as:
</p>
<div class="source">
<pre>${repo}/${groupId}/${type}s/${artifactId}-${version}.${type}</pre>
</div>
<p>
Where
</p>
<dl>
<dt>repo</dt>
<dd>
is the remote repository URL specified by
<code>${maven.repo.remote}</code>
</dd>
<dt>groupId</dt>
<dd>is taken from the dependency element</dd>
<dt>type</dt>
<dd>is taken from the dependency element</dd>
<dt>artifactId</dt>
<dd>is taken from the dependency element</dd>
<dt>version</dt>
<dd>is taken from the dependency element</dd>
</dl>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="dependency" minOccurs="0" maxOccurs="unbounded" type="Dependency"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reports" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
NOT A VALID ELEMENT. LISTED TO ALLOW LEGACY REPOSITORY POMs TO PARSE.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reporting" minOccurs="0" type="Reporting">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
This element includes the specification of reports to be
included in a Maven-generated site. These reports will be run
when a user executes <code>maven site</code>. All of the
reports will be included in the navigation bar for browsing in
the order they are specified.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dependencyManagement" minOccurs="0" type="DependencyManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Default dependency information for grouped projects inheriting from
this one. The dependency information here will not be checked.
Instead, when a POM derived from this one declares a dependency
described by a groupId and an artifactId (version not necessary),
the entries in here will supply default values for that dependency.
Any locally-supplied information for a particular dependency will
overwrite any information specified here for that project.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="distributionManagement" minOccurs="0" type="DistributionManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Distribution information for a project.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="properties" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Properties used to fill in plugin configuration
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="Contributor">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
Description of a person who has contributed to the project, but who does
not have commit privileges. Usually, these contributions come in the
form of patches submitted.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="name" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">The full name of the contributor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="email" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">The email address of the contributor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="url" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">The URL for the homepage of the contributor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="organization" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">The organization to which the contributor belongs.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="organizationUrl" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">The URL of the organization.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="roles" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The roles the contributor plays in the project. Each role is
described by a <code>role</code> element, the body of which is a
role name.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="role" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="timezone" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The timezone the contributor is in. This is a number in the range -11 to 12.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="properties" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
Properties about the contributor, such as an instant messenger handle.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="Profile">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Modifications to the build process which is keyed on some
sort of environmental parameter.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="id" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The ID of this build profile, for activation
purposes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="activation" minOccurs="0" type="Activation">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The conditional logic which will automatically
trigger the inclusion of this profile.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="build" minOccurs="0" type="BuildBase">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Information required to build the project.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="modules" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The modules to build in addition to the current project</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="module" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="repositories" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The lists of the remote repositories</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="repository" minOccurs="0" maxOccurs="unbounded" type="Repository"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pluginRepositories" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The lists of the remote repositories for discovering plugins</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="pluginRepository" minOccurs="0" maxOccurs="unbounded" type="Repository"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="dependencies" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
<p>
This element describes all of the dependencies associated with a
project. Each dependency is described by a
<code>dependency</code> element, which is then described by
additional elements (described below).
</p>
<p>
These dependencies are used to construct a classpath for your
project during the build process.
</p>
<p>
Maven can automatically download these dependencies from a
<a href="/user-guide.html#Remote%20Repository%20Layout">remote repository</a>.
</p>
<p>
The filename that Maven downloads from the repository is
<code>artifactId-version.jar</code> where <code>artifactId</code>
corresponds to the <code>artifactId</code> element and
<code>version</code> corresponds to the <code>version</code> element.
</p>
<p>
When Maven goes looking for a dependency in the remote repository,
it uses the dependency element to construct the URL to download
from. This URL is defined as:
</p>
<div class="source">
<pre>${repo}/${groupId}/${type}s/${artifactId}-${version}.${type}</pre>
</div>
<p>
Where
</p>
<dl>
<dt>repo</dt>
<dd>
is the remote repository URL specified by
<code>${maven.repo.remote}</code>
</dd>
<dt>groupId</dt>
<dd>is taken from the dependency element</dd>
<dt>type</dt>
<dd>is taken from the dependency element</dd>
<dt>artifactId</dt>
<dd>is taken from the dependency element</dd>
<dt>version</dt>
<dd>is taken from the dependency element</dd>
</dl>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="dependency" minOccurs="0" maxOccurs="unbounded" type="Dependency"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reports" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
NOT A VALID ELEMENT. LISTED TO ALLOW LEGACY REPOSITORY POMs TO PARSE.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reporting" minOccurs="0" type="Reporting">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
This element includes the specification of reports to be
included in a Maven-generated site. These reports will be run
when a user executes <code>maven site</code>. All of the
reports will be included in the navigation bar for browsing in
the order they are specified.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dependencyManagement" minOccurs="0" type="DependencyManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Default dependency information for grouped projects inheriting from
this one. The dependency information here will not be checked.
Instead, when a POM derived from this one declares a dependency
described by a groupId and an artifactId (version not necessary),
the entries in here will supply default values for that dependency.
Any locally-supplied information for a particular dependency will
overwrite any information specified here for that project.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="distributionManagement" minOccurs="0" type="DistributionManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Distribution information for a project.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="properties" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Properties used to fill in plugin configuration
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="Activation">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
The conditions within the build runtime environment which will trigger
the automatic inclusion of the parent build profile.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="activeByDefault" minOccurs="0" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Flag specifying whether this profile is active as a default.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="jdk" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Specifies that this profile will be activated when a matching JDK is detected.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="os" minOccurs="0" type="ActivationOS">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Specifies that this profile will be activated when matching OS attributes are detected.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="property" minOccurs="0" type="ActivationProperty">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Specifies that this profile will be activated when this System property is specified.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="file" minOccurs="0" type="ActivationFile">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Specifies that this profile will be activated based on existence of a file.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="ActivationFile">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
This is the file specification used to activate a profile. The missing value will be a the location
of a file that needs to exist, and if it doesn't the profile must run. On the other hand exists will test
for the existence of the file and if it is there will run the profile.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="missing" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The name of the file that should be missing to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="exists" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The name of the file that should exist to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="ActivationProperty">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
This is the property specification used to activate a profile. If the value field is empty,
then the existence of the named property will activate the profile, otherwise it does a case-sensitive
match against the property value as well.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="name" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The name of the property to be used to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="value" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The value of the property to be used to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="ActivationOS">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
This is an activator which will detect an operating system's attributes in order to activate
its profile.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="name" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The name of the OS to be used to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="family" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The general family of the OS to be used to activate a profile (e.g. 'windows')</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="arch" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The architecture of the OS to be used to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="version" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The version of the OS to be used to activate a profile</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="DependencyManagement">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Section for management of default dependency information for use in a group of POMs.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="dependencies" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
The dependencies specified here are not validated until they
are referenced in a POM within the group. This allows the
specification of a "standard" version for a particular
dependency.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="dependency" minOccurs="0" maxOccurs="unbounded" type="Dependency"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="Dependency">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="groupId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The project group that produced the dependency, e.g.
<code>geronimo</code>.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="artifactId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The unique id for an artifact produced by the project group, e.g.
<code>germonimo-jms</code>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="version" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The version of the dependency, e.g. <code>3.2.1</code>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="type" minOccurs="0" type="xs:string" default="jar">
<xs:annotation>
<xs:documentation source="version">3.0.0+</xs:documentation>
<xs:documentation source="description">
The type of dependency. This defaults to <code>jar</code>.
Known recognised dependency types are:
<ul>
<li><code>jar</code></li>
<li><code>ejb</code></li>
<li><code>plugin</code></li>
</ul>
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="classifier" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
The classifier of the dependency. This allows distinguishing two artifacts that belong to the same POM but
were built differently, and is appended to the filename after the version.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="scope" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
The scope of the dependency - compile, runtime, test. Used to
calculate the various classpaths used for testing, etc. and for
determining which artifacts to include in a distribution of this
project. For more information, see
<a href="http://maven.apache.org/maven2/dependencies-mechanism.html">Dependency Mechanism</a>.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="systemPath" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">FOR SYSTEM SCOPE ONLY. This specifies the path on the filesystem for this
dependency.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="exclusions" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to
calculating transitive dependencies.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="exclusion" minOccurs="0" maxOccurs="unbounded" type="Exclusion"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="optional" minOccurs="0" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">
Indicates the dependency is optional for use of this library. While the version of the dependency will be
taken into account for dependency calculation if the library is used elsewhere, it will not be passed on
transitively.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="Exclusion">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="artifactId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The artifact id of the project to exclude.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="groupId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The group id of the project to exclude.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="Reporting">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Section for management of reports and configuration</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="excludeDefaults" minOccurs="0" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">If true, then the default reports are not included in the site generation</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="outputDirectory" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Where to store all of the generated reports</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="plugins" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The report plugins) to use and their configuration</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="plugin" minOccurs="0" maxOccurs="unbounded" type="ReportPlugin"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="ReportPlugin">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="groupId" minOccurs="0" type="xs:string" default="org.apache.maven.plugins">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="artifactId" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="version" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">The version of the reporter to be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="inherited" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="configuration" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reportSets" minOccurs="0">
<xs:annotation>
<xs:documentation source="version">4.0.0</xs:documentation>
<xs:documentation source="description">Multiple specifications of a set of reports, each having (possibly) different
configuration</xs:documentation>
</xs:annotation>