title: Not able to publish project documentation to Apache using WebDAV protocol after using mvn site:deploy command
body: <p>I am trying to deploy a project related information using <code>mvn site:deploy</code> command but I am getting following error. </p>
  
  <p>Can somebody please guide on this as what is the missing piece here?</p>
  
  <p><strong>Error Log:</strong></p>
  
  <pre><code>http://gsi-547576/sites/ - Session: Opened
  [INFO] Pushing C:\nital\my-pet-projects\istore\istore-mvc2\istore-mvc2-domain\target\site
  [INFO]    &gt;&gt;&gt; to http://gsi-547576/sites/./
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
  INFO: digest authentication scheme selected
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
  INFO: No credentials available for DIGEST 'DAV-upload'@gsi-547576:80
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
  INFO: digest authentication scheme selected
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
  INFO: No credentials available for DIGEST 'DAV-upload'@gsi-547576:80
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
  INFO: digest authentication scheme selected
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
  INFO: No credentials available for DIGEST 'DAV-upload'@gsi-547576:80
   Transfer error: java.io.IOException: Unable to create collection: http://gsi-547576/sites/; status code = 401
  Uploading: .//css/maven-base.css to http://gsi-547576/sites/
  
  #May 04, 2015 4:18:58 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
  INFO: digest authentication scheme selected
  May 04, 2015 4:18:58 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
  INFO: No credentials available for DIGEST 'DAV-upload'@gsi-547576:80
  http://gsi-547576/sites//./css/maven-base.css - Status code: 401
   Transfer error: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://gsi-547576/sites//./css/maven-base.css. Return code is: 401
  http://gsi-547576/sites/ - Session: Disconnecting
  http://gsi-547576/sites/ - Session: Disconnected
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.968 s
  [INFO] Finished at: 2015-05-04T16:18:58-04:00
  [INFO] Final Memory: 14M/219M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:deploy (default-cli) on project istore-mvc2-domain: Error uploading site: Failed to transfer fil
  sites//./css/maven-base.css. Return code is: 401 -&gt; [Help 1]
  </code></pre>
  
  <p><strong>httpd.conf (WebDAV enabled modules)</strong></p>
  
  <pre><code>LoadModule alias_module modules/mod_alias.so
  LoadModule auth_digest_module modules/mod_auth_digest.so
  LoadModule authn_file_module modules/mod_authn_file.so
  LoadModule dav_module modules/mod_dav.so
  LoadModule dav_fs_module modules/mod_dav_fs.so
  LoadModule dav_lock_module modules/mod_dav_lock.so
  LoadModule setenvif_module modules/mod_setenvif.so
  
  # Distributed authoring and versioning (WebDAV)
  Include conf/extra/httpd-dav.conf
  </code></pre>
  
  <p>I have already enabled WebDAV protocol on my WAMP server and the <code>httpd-dav.conf</code> looks like this:</p>
  
  <p><strong>httpd-dav.conf</strong></p>
  
  <pre><code>Alias /sites "C:/wamp/www/sites" 
  &lt;Directory "C:/wamp/www/sites"&gt;
      Dav On
  
      Order Allow,Deny
      Allow from all
  
      AuthType Digest
      AuthName DAV-upload
  
      Options Indexes
  
      AuthUserFile "C:/wamp/bin/apache/apache2.4.9/user.passwd"
      AuthDigestProvider file
  
      # Allow universal read-access, but writes are restricted
      # to the admin user.
      &lt;LimitExcept GET OPTIONS&gt;
          require user admin
      &lt;/LimitExcept&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The user.passwd file generated and placed in folder <code>C:/wamp/bin/apache/apache2.4.9/</code> folder.</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>  ....
    &lt;!-- Uploading project documentation/information --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.4&lt;/version&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;&lt;!-- add support for ssh/scp --&gt;
                      &lt;groupId&gt;org.apache.maven.wagon&lt;/groupId&gt;
                      &lt;artifactId&gt;wagon-ssh&lt;/artifactId&gt;
                      &lt;version&gt;1.0&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
     &lt;/plugins&gt;
      &lt;!-- Uploading project documentation/information --&gt;
      &lt;extensions&gt;
          &lt;extension&gt;
              &lt;groupId&gt;org.apache.maven.wagon&lt;/groupId&gt;
              &lt;artifactId&gt;wagon-webdav-jackrabbit&lt;/artifactId&gt;
              &lt;version&gt;1.0-beta-7&lt;/version&gt;
          &lt;/extension&gt;
      &lt;/extensions&gt;
  &lt;/build&gt;
  &lt;distributionManagement&gt;
      &lt;site&gt;
          &lt;id&gt;my-wamp-server&lt;/id&gt;
          &lt;url&gt;dav:http://gsi-547576/sites/&lt;/url&gt;
      &lt;/site&gt;
  &lt;/distributionManagement&gt;
  </code></pre>
  
  <p><strong>settings.xml</strong></p>
  
  <pre><code>&lt;servers&gt;
      &lt;server&gt;
          &lt;id&gt;my-wamp-server&lt;/id&gt;
          &lt;username&gt;admin&lt;/username&gt;
          &lt;password&gt;admin123&lt;password&gt;
      &lt;/server&gt;
  &lt;/servers&gt;
  </code></pre>