8,906
社区成员
发帖
与我相关
我的任务
分享
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0" elementFormDefault="qualified" targetNamespace="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><project></code> element is the root of the descriptor. The following table lists all of the possible child elements.
</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><project></code> element is the root of the descriptor. The following table lists all of the possible child elements.
</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">
The location of the parent project, if one exists. Values from the parent project will be the default for this project if they are left unspecified. The location is given as a group ID, artifact ID and version.
</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">
A universally unique identifier for a project. It is normal to use a fully-qualified package name to distinguish it from other projects with a similar name (eg. <code>org.apache.maven</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 identifier for this artifact that is unique within the group given by the group ID. An artifact is something that is either produced or used by a project. Examples of artifacts produced by Maven for a project include: JARs, source and binary distributions, and WARs.
</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, for example <code>jar</code> <code>war</code> <code>ear</code> <code>pom</code>. Plugins can create their own packaging, and therefore their own packaging types, so this list does not contain all possible types.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="name" minOccurs="0" type="xs:string">
<xs:annotation>
<xs:documentation s...