title: Maven : Could not transfer artifact Error code 401, Authorization Required
body: <p>I am using maven 2.2.1 and Eclipse Helios as IDE
  When i run mvn deploy from the command prompt , the deployment is successfull
  But when i use Eclipse Maven plug and tried to  deploy from there </p>
  
  <p>I get the below exception </p>
  
  <pre><code>[INFO] Total time: 1.148s
  [INFO] Finished at: Mon Oct 03 21:22:57 IST 2011
  [INFO] Final Memory: 10M/104M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project bayer: Failed to deploy artifacts: Could not transfer artifact com.tata:bayer:pom:1.0 from/to Test (dav:http://127.0.0.1/sites/): Access denied to http://127.0.0.1/sites/com/tata/bayer/1.0/bayer-1.0.pom. Error code 401, Authorization Required -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  </code></pre>
  
  <p>Inside my POM.xml file , i have this </p>
  
  <pre><code>&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;distributionManagement&gt;
      &lt;repository&gt;
     &lt;id&gt;Test&lt;/id&gt;
    &lt;name&gt;Parent Project&lt;/name&gt;
   &lt;url&gt;dav:http://127.0.0.1/sites/&lt;/url&gt;
    &lt;/repository&gt;
  &lt;/distributionManagement&gt;
  
  
  and in M2_HOME Settings.xml file i have these 
  
   &lt;servers&gt;
      &lt;server&gt;
          &lt;id&gt;Test&lt;/id&gt;
          &lt;username&gt;admin&lt;/username&gt;
          &lt;password&gt;Testing&lt;/password&gt;
  &lt;filePermissions&gt;664&lt;/filePermissions&gt;
  &lt;directoryPermissions&gt;775&lt;/directoryPermissions&gt;
      &lt;/server&gt;
      &lt;/servers&gt;
  </code></pre>
  
  <p><strong>Finally inside the Apache webserver ,, which i am using for the repository purpose , i have these</strong> </p>
  
  <pre><code>Alias /sites "/httpd-2.2-x64/sites"
  &lt;Directory "/httpd-2.2-x64/sites"&gt;
      Dav On
  
      Order Allow,Deny
      Allow from all
  AllowOverride All
      AuthType Digest
      AuthName DAV-upload
  
      # You can use the htdigest program to create the password database:
      #   htdigest -c "/httpd-2.2-x64/user.passwd" DAV-upload admin
      AuthUserFile "/httpd-2.2-x64/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>Could anybody please tell me why i am getting this </p>
  
  <p>Error code 401, Authorization Required -> [Help 1]</p>
  
  <p>(Again working fine under comamnd prompt , but not from the Eclipse IDE Maven Plugin ) </p>
  
  <p>Thank you very much </p>