Robert Patrick created MNGSITE-209:
--------------------------------------

             Summary: Doc error on Advanced Configuration of the HttpClient 
HTTP Wagon page
                 Key: MNGSITE-209
                 URL: https://jira.codehaus.org/browse/MNGSITE-209
             Project: Maven Project Web Site
          Issue Type: Bug
            Reporter: Robert Patrick


In section 
http://maven.apache.org/guides/mini/guide-http-settings.html#Fine-Tuning_HttpClient_Parameters,
 the examples are wrong.  For example, the Using Preemptive Authentication 
example shows the following XML:

<settings>
  <servers>
    <server>
      <id>my-server</id>
      <configuration>
        <httpConfiguration>
          <put>
            <params>
              <param>
                <name>http.authentication.preemptive</name>
                <value>%b,true</value>
              </param>
            </params>
          </put>
        </httpConfiguration>
      </configuration>
    </server>
  </servers>
</settings>

This does not work.  The <param> element is not recognized by the software, as 
the code expects the <property> element instead.  As such, the example should 
say:

<settings>
  <servers>
    <server>
      <id>my-server</id>
      <configuration>
        <httpConfiguration>
          <put>
            <params>
              <property>
                <name>http.authentication.preemptive</name>
                <value>%b,true</value>
              </property>
            </params>
          </put>
        </httpConfiguration>
      </configuration>
    </server>
  </servers>
</settings>




--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to