FlexDoc/XML XSDDoc Demo
XML Schema for Maven POM 4.0.0


complexType "Dependency"
Namespace:
Content:
complex, 9 elements
Defined:
globally in maven-4.0.0.xsd; see XML source
Includes:
declarations of 9 elements
Referenced:
Component Diagram
XML Representation Summary
<...>
   
Content: 
</...>
Content Element Model:
Component
Type / Value
Occurs
Nillable?
Declared In
Description
1..1
 groupId
xs:string
0..1
no
3.0.0+ The project group that produced the dependency, e.g. org.apache.maven.
 artifactId
xs:string
0..1
no
3.0.0+ The unique id for an artifact produced by the project group, e.g. maven-artifact.
 version
xs:string
0..1
no
3.0.0+ The version of the dependency, e.g. 3.2.1. In Maven 2, this can also be specified as a range of versions.
 type
xs:string : "jar"
0..1
no
4.0.0+ 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.
 classifier
xs:string
0..1
no
4.0.0+ 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.
 scope
xs:string
0..1
no
4.0.0+ 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.
 systemPath
xs:string
0..1
no
4.0.0+ 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}.
0..1
no
4.0.0+ Lists a set of artifacts that should be excluded from this dependency's artifact list when it comes to calculating transitive dependencies.
 optional
xs:string
0..1
no
4.0.0+ 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.
Description
version:
3.0.0+
description:
The <dependency> element contains information about a dependency of the project.
Related Components
Referenced By


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