Files are uploaded with the permission
PublicRead by default, but that can be overridden through configuration.
<filePermissions> to the configuration for a server in
~/.m2/settings.xml to change the default:
<server> <id>s3.snapshot</id> <filePermissions>AuthenticatedRead</filePermissions> </server>
AuthenticatedRead prevents the general public from accessing your files. Only authorized users will have access.
The allowed values for
Private PublicRead PublicReadWrite AuthenticatedRead LogDeliveryWrite BucketOwnerRead BucketOwnerFullControl
The javadoc for
CannedAccessControlList has details on what each value means.
Versions prior to 1.1.15 need the S3 bucket to have been created by the same user the
maven-s3-wagon authenticates with. This is no longer the case. Buckets can be created by any user as long as the
Versions 1.1.9 and 1.1.10, use the tag
<acl> instead of
<acl> is now deprecated. Backwards compatibility is maintained by using the
<acl> tag if it is present, but always deferring to the
Versions prior to 1.1.9 always upload files with the hard coded permission