complexType Profile

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

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


Documentation

See also: version
4.0.0
See also: description
Modifications to the build process which is keyed on some
sort of environmental parameter.


complexType Profile


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.