I enabled debugging in Archiva and according to the log it cannot download an 
existing artifact from this URL:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom

(For my test I used the "admin" user; the "external-repository" proxies "Maven 
Central Repository").

The same URL opens in my browser without a problem (the browser is configured 
to use the same proxy configuration as Archiva).

This is clearly a bug. The log follows below.

(I removed proxy host name, port and my username from below log).

========================================
2011-10-21 17:46:53,957 ["http-apr-8080"-exec-2] DEBUG 
org.codehaus.plexus.redback.system.DefaultSecuritySystem  - User 'admin' 
authenticated.
2011-10-21 17:46:53,958 ["http-apr-8080"-exec-2] DEBUG 
org.codehaus.plexus.redback.system.DefaultSecuritySystem  - User 'admin' exists.
2011-10-21 17:46:53,958 ["http-apr-8080"-exec-2] DEBUG 
org.codehaus.plexus.redback.system.DefaultSecuritySystem  - User: username = 
'admin'
password = 'null'
encodedPassword = <encoded password>'
fullName = 'Admin'
email = '<email>'
locked = 'false'
permanent = 'true'
validated = 'false'
passwordChangeRequired = 'false'
2011-10-21 17:46:53,969 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.webdav.ArchivaDavResourceFactory  - Managed repository 
'external-releases' accessed by 'admin'
2011-10-21 17:46:53,969 ["http-apr-8080"-exec-2] DEBUG 
org.codehaus.plexus.redback.rbac.cached.CachedRbacManager  - building user 
permission map
2011-10-21 17:46:54,080 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Path 
[org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom] 
is not part of defined whitelist (skipping transfer from repository [Java.net 
Repository for Maven 2]).
2011-10-21 17:46:54,080 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Applying 
[releases] policy with [always]
2011-10-21 17:46:54,080 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.policies.AbstractUpdatePolicy  - OK to update, 
releases policy set to ALWAYS.
2011-10-21 17:46:54,080 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Applying 
[snapshots] policy with [never]
2011-10-21 17:46:54,080 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.policies.AbstractUpdatePolicy  - OK to update, 
snapshot policy does not apply for non-snapshot versions.
2011-10-21 17:46:54,081 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Applying 
[cache-failures] policy with [no]
2011-10-21 17:46:54,081 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.policies.CachedFailuresPolicy  - OK to fetch, 
check-failures policy set to NO.
2011-10-21 17:46:54,081 ["http-apr-8080"-exec-2] DEBUG 
org.springframework.beans.factory.support.DefaultListableBeanFactory  - 
Creating instance of bean 'wagon#http'
2011-10-21 17:46:54,098 ["http-apr-8080"-exec-2] DEBUG 
org.springframework.beans.factory.support.DefaultListableBeanFactory  - 
Finished creating instance of bean 'wagon#http'
2011-10-21 17:46:54,099 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Using 
network proxy <proxy host and port> to connect to remote repository 
http://repo1.maven.org/maven2; as user: <my proxy user>

2011-10-21 17:46:54,102 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Retrieving 
org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom 
from Central Repository
2011-10-21 17:46:54,704 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Applying 
[propagate-errors] policy with [queue error]
2011-10-21 17:46:54,705 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Applying 
[propagate-errors-on-update] policy with [artifact not already present]
2011-10-21 17:46:54,707 ["http-apr-8080"-exec-2] WARN  
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Transfer 
error from repository "central" for artifact 
org.apache.maven.plugins:maven-deploy-plugin:2.4::pom, continuing to next 
repository. Error message: Download failure on resource 
[http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom]:Access
 denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
2011-10-21 17:46:54,709 ["http-apr-8080"-exec-2] DEBUG 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Full stack 
trace
org.apache.maven.archiva.proxy.ProxyException: Download failure on resource 
[http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom]:Access
 denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        at 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferSimpleFile(DefaultRepositoryProxyConnectors.java:734)
        at 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferFile(DefaultRepositoryProxyConnectors.java:502)
        at 
org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.fetchFromProxies(DefaultRepositoryProxyConnectors.java:166)
        at 
org.apache.maven.archiva.webdav.ArchivaDavResourceFactory.fetchContentFromProxies(ArchivaDavResourceFactory.java:623)
        at 
org.apache.maven.archiva.webdav.ArchivaDavResourceFactory.processRepository(ArchivaDavResourceFactory.java:456)
        at 
org.apache.maven.archiva.webdav.ArchivaDavResourceFactory.createResource(ArchivaDavResourceFactory.java:246)
        at 
org.apache.maven.archiva.webdav.RepositoryServlet.service(RepositoryServlet.java:117)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)

----------------------------------------------------------------------
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.

Reply via email to