From 43cac6795ac547497a967af39bc5066f39452d4d Mon Sep 17 00:00:00 2001 From: Jorge Cruz-Lambert Date: Tue, 22 Jul 2014 15:02:30 +0200 Subject: [PATCH 1/2] Added information about setting a proxy It's necessary to specify the protocol as s3 in order to get the proxy settings. --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 5b274052..69e7fdc1 100644 --- a/README.md +++ b/README.md @@ -172,3 +172,27 @@ aws s3api put-bucket-policy --bucket $BUCKET --policy "$POLICY" [s3]: http://aws.amazon.com/s3/ [sys-prop]: http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/SystemPropertiesCredentialsProvider.html [wagon]: http://maven.apache.org/wagon/ + +## Connecting through an HTTP Proxy + +You need to add the following configuration to your settings.xml file: + +```xml + + ... + + ... + + true + s3 + myproxy.host.com + 8080 + proxyuser + somepassword + www.google.com|*.somewhere.com + + ... + + ... + +``` From 3eacc3c3e85c59dd65af0d89a4dc91394436f661 Mon Sep 17 00:00:00 2001 From: Jorge Cruz-Lambert Date: Tue, 22 Jul 2014 15:10:11 +0200 Subject: [PATCH 2/2] Moved the proxy information to a better place --- README.md | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 69e7fdc1..faeb166d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,29 @@ Alternatively, the access and secret keys for the account can be provided using * `aws.accessKeyId` and `aws.secretKey` [system properties][sys-prop] * The Amazon EC2 [Instance Metadata Service][instance-metadata] +## Connecting through a Proxy +For being able to connect behind an HTTP proxy you need to add the following configuration to `~/.m2/settings.xml`: + +```xml + + ... + + ... + + true + s3 + myproxy.host.com + 8080 + proxyuser + somepassword + www.google.com|*.somewhere.com + + ... + + ... + +``` + ## Making Artifacts Public This wagon doesn't set an explict ACL for each artfact that is uploaded. Instead you should create an AWS Bucket Policy to set permissions on objects. A bucket policy can be set in the [AWS Console][console] and can be generated using the [AWS Policy Generator][policy-generator]. @@ -172,27 +195,3 @@ aws s3api put-bucket-policy --bucket $BUCKET --policy "$POLICY" [s3]: http://aws.amazon.com/s3/ [sys-prop]: http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/SystemPropertiesCredentialsProvider.html [wagon]: http://maven.apache.org/wagon/ - -## Connecting through an HTTP Proxy - -You need to add the following configuration to your settings.xml file: - -```xml - - ... - - ... - - true - s3 - myproxy.host.com - 8080 - proxyuser - somepassword - www.google.com|*.somewhere.com - - ... - - ... - -```