complexType Dependency

complexType {http://maven.apache.org/POM/4.0.0}Dependency

Abstractfalse (This can be used in an instance)
Target Namespacehttp://maven.apache.org/POM/4.0.0
Declared Namespacesxmlns:xs=http://www.w3.org/2001/XMLSchema
xmlns=http://maven.apache.org/POM/4.0.0


Source

<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>


Documentation

See also: version
3.0.0+


complexType Dependency


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.