What is the XSD for a settings.xml file?
Author: Deron Eriksson
Description: This tutorial describes how to use an XSD for a maven settings.xml file.
Tutorial created using:
Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)
At the time of this writing (maven version 2.0.8), the global settings.xml file that comes with the mavenSW download doesn't include an XSD reference. However, an XSD does exist, as shown at http://maven.apache.org/settings.html. The settings-1.0.0.xsd reference is shown here: settings-1.0.0.xsd reference<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> If you're working in an IDE like EclipseSW, including the XSD reference in your settings.xml file can be very useful, since it can enable things like automatic XMLW validation and code completion. An example is shown below. |