Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configurable S3 endpoints #7

Open
yegor256 opened this issue Feb 24, 2013 · 4 comments
Open

configurable S3 endpoints #7

yegor256 opened this issue Feb 24, 2013 · 4 comments

Comments

@yegor256
Copy link

As far as I understand, at the moment, the plugin doesn't support any other S3 endpoints except s3, the default one. My bucket is in Singapour and its endpoint is s3-ap-southeast-1. Would be nice to make it possible to configure an end point. Maybe in settings.xml inside server element (http://maven.apache.org/settings.html#Servers):

<servers>
  <server>
    <id>server001</id>
    <username>my_login</username>
    <password>my_password</password>
    <configuration>
      <endpoint>s3-ap-southeast-1.amazonaws.com</endpoint>
    </configuration>
  </server>
</servers>
@mdedetrich
Copy link

This is basically required on our end, we are unable to use maven-s3-wagon at all due to not being able to configure the endpoint and our s3 repo sitting in the south-east asia region

@mdedetrich
Copy link

On our end, this isn't the actual issue. It turns out that the S3 client by default (since 1.4) automatically deals with buckets in different regions. In other words, regardless of what region your bucket is in, the S3 client will upload your files to correct bucket with the correct endpoint

In our case, the issue was that setting the default ACL (which with maven-s3-wagon was publicRead) was causing issues with private S3 buckets, hence the reason for this pull request #22

@Faylixe
Copy link

Faylixe commented Apr 21, 2017

I have the same problem too, we would like to use Minio s3 server for storing artifact and configure s3-wagon to use Minio server URL as AWS endpoint.

@jamshid
Copy link

jamshid commented Jun 11, 2017

FYI @ankon added support for a maven.wagon.s3.endpoint property in pull request #28. Follow there, it does work but you need to build and host it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants