From 388e3548601bf1532c72e9a857c2f81247d3ec21 Mon Sep 17 00:00:00 2001 From: Vincent Siveton Date: Sat, 4 Nov 2006 14:06:42 +0000 Subject: [PATCH] MNG-1997: document xsd support for pom and settings in guides o added documentation git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@471193 13f79535-47bb-0310-9956-ffa450edef68 --- maven-settings/settings.mdo | 83 ++++++++++++++------------- maven-settings/src/site/apt/index.apt | 19 ++++++ 2 files changed, 63 insertions(+), 39 deletions(-) create mode 100644 maven-settings/src/site/apt/index.apt diff --git a/maven-settings/settings.mdo b/maven-settings/settings.mdo index b32c8ecb67..af73478dd0 100644 --- a/maven-settings/settings.mdo +++ b/maven-settings/settings.mdo @@ -4,10 +4,15 @@ settings Settings +

This is a reference for the user-specific configuration for Maven.

+

Includes things that should not be distributed with the pom.xml file, such as developer identity, along with + local settings, like proxy information.

+

The default location for the settings file is ~/.m2/settings.xml

+

An XSD is available at:

+ + ]]> package @@ -26,10 +31,10 @@ jdks 1.0.0 proxies 1.0.0 @@ -149,7 +154,7 @@ servers 1.0.0 @@ -172,7 +177,7 @@ profiles 1.0.0 @@ -211,9 +216,9 @@ { return Boolean.valueOf( isInteractiveMode() ); } - + private Proxy activeProxy; - + public void flushActiveProxy() { this.activeProxy = null; @@ -248,7 +253,7 @@ return activeProxy; } - + public Server getServer( String serverId ) { Server match = null; @@ -269,7 +274,7 @@ return match; } - + public Mirror getMirrorOf( String repositoryId ) { Mirror match = null; @@ -290,41 +295,41 @@ return match; } - + private java.util.Map profileMap; - + public void flushProfileMap() { this.profileMap = null; } - + public java.util.Map getProfilesAsMap() { if ( profileMap == null ) { profileMap = new java.util.HashMap(); - + if ( getProfiles() != null ) { for ( java.util.Iterator it = getProfiles().iterator(); it.hasNext(); ) { Profile profile = (Profile) it.next(); - + profileMap.put( profile.getId(), profile ); } } } - + return profileMap; } - + private RuntimeInfo runtimeInfo; - + public void setRuntimeInfo( RuntimeInfo runtimeInfo ) { this.runtimeInfo = runtimeInfo; } - + public RuntimeInfo getRuntimeInfo() { return runtimeInfo; @@ -416,7 +421,7 @@ nonProxyHosts 1.0.0 String @@ -438,7 +443,7 @@ password 1.0.0 String @@ -453,7 +458,7 @@ passphrase 1.0.0 String @@ -461,7 +466,7 @@ filePermissions 1.0.0 String @@ -469,7 +474,7 @@ directoryPermissions 1.0.0 String @@ -477,7 +482,7 @@ configuration DOM @@ -530,14 +535,14 @@ 1.0.0 IdentifiableBase activation 1.0.0 - Activation @@ -573,8 +578,8 @@ Repository * - @@ -583,7 +588,7 @@ Activation 1.0.0 @@ -772,7 +777,7 @@ ActivationProperty 1.0.0 @@ -831,7 +836,7 @@ 1.0.0 diff --git a/maven-settings/src/site/apt/index.apt b/maven-settings/src/site/apt/index.apt new file mode 100644 index 0000000000..7bcf149fac --- /dev/null +++ b/maven-settings/src/site/apt/index.apt @@ -0,0 +1,19 @@ + ----- + Maven Settings + ----- + Vincent Siveton + ----- + 04 November 2006 + ----- + +Maven Settings Model + + This is strictly the model for Maven settings. + + The following are generated from this model: + + * {{{apidocs/index.html}Java sources}} with Reader and Writers for the Xpp3 XML parser + + * A {{{settings.html}Descriptor Reference}} + + * An {{{ http://maven.apache.org/xsd/settings-1.0.0.xsd}XSD}}