Hi Robert,
thank you for your reply.

But, no... I do not see any "access denied" problem when I run Maven in debug 
mode.
It definitely downloaded the surefire plugin v2.4.3 and the plugin is used to 
run the
tests. However, it seems to me that the plugin is ignoring the -DproxyHost=... 
and
-DproxyPort=... options.

Are you sure you have properly configured your web proxy in 
$MAVEN_HOME/conf/settings.xml ?

Your problem is different: Maven is not able to download the surefire plugin 
using
your web proxy.

Paolo

Robert Glover wrote:
I'm having the same problem.  Below I paste the error message I get. (I posted 
this a few days earlier as well).  Is this similar to the error you receive? 
(Note you need to use the -X option on the mvn command you are using to make 
the expanded console output appear so that you can see if you too get this 
error message).

...snip...
[DEBUG] Connecting to repository: 'central' with url: 
'http://repo1.maven.org/maven2'.
[DEBUG] Using Proxy: b1web1.obfuscated.org
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
[DEBUG] Access denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
    at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)
    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
    at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
  ...snip...




----- Original Message ----
From: Paolo Castagna <paolo.casta...@hplb.hpl.hp.com>
To: "users@maven.apache.org" <users@maven.apache.org>
Sent: Wednesday, June 10, 2009 4:33:20 AM
Subject: mvn test -DproxyHost=... -DproxyPort=...

Hi,
I need to run a test suite which needs to connect to public web servers and
I am behind a web proxy.

I use:

mvn test -DproxyHost=... -DproxyPort=...
mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...

Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
seems to me that the proxy does not get used.

I am probably missing something obvious...

Any help?

Paolo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to