| <?xml version="1.0" encoding="UTF-8"?> |
| <xsd:schema |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| elementFormDefault="qualified" |
| attributeFormDefault="unqualified" |
| version="1.3"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| Copyright (c) 2010-2014 SAP AG and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| SAP AG - initial API and implementation |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| This XML schema defines common types used by the Skalli REST API for |
| the Maven and MavenReactor model extensions. |
| </xsd:documentation> |
| </xsd:annotation> |
| |
| <!-- BEGIN of common declarations --> |
| <xsd:include schemaLocation="../../org.eclipse.skalli.api/schemas/common.xsd" /> |
| <!-- END of common declarations --> |
| |
| <xsd:simpleType name="MavenId"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| Represents a group or artifact id of a Maven project. |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:string"> |
| <xsd:pattern value="[A-Za-z0-9_\-.]+" /> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:complexType name="MavenArtifact"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| Defines the group id, artifact id, packaging type and version |
| of a Maven artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:sequence> |
| <xsd:element name="groupId" type="MavenId"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The group id of the artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="artifactId" type="MavenId"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The artifact id of the artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="version" type="xsd:string"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The version of the artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="packaging" type="xsd:string"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The packaging type of the artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <xsd:complexType name="MavenModule"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| Defines the group id, artifact id, packaging type and available versions |
| of a Maven project, module or artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:sequence> |
| <xsd:element name="groupId" type="MavenId"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The Maven group id of the project, module or artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="artifactId" type="MavenId"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The Maven artifact id of the project, module or artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="versions" minOccurs="0"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The available versions of the project, module or artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:complexType> |
| <xsd:sequence> |
| <xsd:element name="version" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| </xsd:element> |
| <xsd:element name="packaging" type="xsd:string"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The Maven packaging type of the project, module or artifact. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| </xsd:sequence> |
| </xsd:complexType> |
| </xsd:schema> |