complexType "Dependency"
Namespace:
Content:
complex, 9 elements
Defined:
globally in maven-4.0.0.xsd; see XML source
Includes:
definitions of 9 elements
Used:
Component Diagram
XML Representation Summary
<...>
   
Content: 
</...>
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
version:
3.0.0+
description:
The <dependency> element contains information about a dependency of the project.
XML Source (w/o annotations (10); see within schema source)
<xs:complexType name="Dependency">
<xs:all>
<xs:element minOccurs="0" name="groupId" type="xs:string"/>
<xs:element minOccurs="0" name="artifactId" type="xs:string"/>
<xs:element minOccurs="0" name="version" type="xs:string"/>
<xs:element default="jar" minOccurs="0" name="type" type="xs:string"/>
<xs:element minOccurs="0" name="classifier" type="xs:string"/>
<xs:element minOccurs="0" name="scope" type="xs:string"/>
<xs:element minOccurs="0" name="systemPath" type="xs:string"/>
<xs:element minOccurs="0" name="exclusions">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="exclusion" type="Exclusion"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="optional" type="xs:string"/>
</xs:all>
</xs:complexType>
Content Element Detail (all declarations; defined within this component only; 9/9)
artifactId
Type:
xs:string, predefined, simple content
version:
3.0.0+
description:
The unique id for an artifact produced by the project group, e.g. maven-artifact.
XML Representation Summary
<artifactId>
   
Content: 
{ xs:string }
</artifactId>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="artifactId" type="xs:string"/>

classifier
Type:
xs:string, predefined, simple content
version:
4.0.0+
description:
The classifier of the dependency. It is appended to the filename after the version. This allows:
  • referring to attached artifact, for example sources and javadoc: see default artifact handlers for a list,
  • distinguishing two artifacts that belong to the same POM but were built differently. For example, jdk14 and jdk15.
XML Representation Summary
<classifier>
   
Content: 
{ xs:string }
</classifier>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="classifier" type="xs:string"/>

exclusions
Type:
anonymous complexType, complex content
version:
4.0.0+
description:
Lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to calculating transitive dependencies.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="exclusions">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="exclusion" type="Exclusion"/>
</xs:sequence>
</xs:complexType>
</xs:element>

groupId
Type:
xs:string, predefined, simple content
version:
3.0.0+
description:
The project group that produced the dependency, e.g. org.apache.maven.
XML Representation Summary
<groupId>
   
Content: 
{ xs:string }
</groupId>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="groupId" type="xs:string"/>

optional
Type:
xs:string, predefined, simple content
version:
4.0.0+
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. Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean. Default value is false.
XML Representation Summary
<optional>
   
Content: 
{ xs:string }
</optional>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="optional" type="xs:string"/>

scope
Type:
xs:string, predefined, simple content
version:
4.0.0+
description:
The scope of the dependency - compile, runtime, test, system, and provided. Used to calculate the various classpaths used for compilation, testing, and so on. It also assists in determining which artifacts to include in a distribution of this project. For more information, see the dependency mechanism. The default scope is compile.
XML Representation Summary
<scope>
   
Content: 
{ xs:string }
</scope>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="scope" type="xs:string"/>

systemPath
Type:
xs:string, predefined, simple content
version:
4.0.0+
description:
FOR SYSTEM SCOPE ONLY. Note that use of this property is discouraged and may be replaced in later versions. This specifies the path on the filesystem for this dependency. Requires an absolute path for the value, not relative. Use a property that gives the machine specific absolute path, e.g. ${java.home}.
XML Representation Summary
<systemPath>
   
Content: 
{ xs:string }
</systemPath>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="systemPath" type="xs:string"/>

type
Type:
xs:string, predefined, simple content
version:
4.0.0+
description:
The type of dependency, that will be mapped to a file extension, an optional classifier, and a few other attributes. Some examples are jar, war, ejb-client and test-jar: see default artifact handlers for a list. New types can be defined by extensions, so this is not a complete list.
XML Representation Summary
<type>
   
Content: 
{ xs:string }
</type>
Simple Content
Default:
"jar"
XML Source (w/o annotations (1); see within schema source)
<xs:element default="jar" minOccurs="0" name="type" type="xs:string"/>

version
Type:
xs:string, predefined, simple content
version:
3.0.0+
description:
The version of the dependency, e.g. 3.2.1. In Maven 2, this can also be specified as a range of versions.
XML Representation Summary
<version>
   
Content: 
{ xs:string }
</version>
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="version" type="xs:string"/>

XML schema documentation generated with FlexDoc/XML 1.13 using FlexDoc/XML XSDDoc 2.9.5 template set. All XSD diagrams generated by FlexDoc/XML DiagramKit.