diff --git a/.gitignore b/.gitignore index b6f7c003..ac6c563a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -.idea/libraries -.idea/tasks.xml -.idea/workspace.xml +.idea/ +*.ipr +*.iws +*.iml target diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index e932004b..00000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml deleted file mode 100644 index aa83f9d8..00000000 --- a/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 4c4c1de6..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index c22bc563..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/aws-maven.iml b/aws-maven.iml deleted file mode 100644 index 2e0133fc..00000000 --- a/aws-maven.iml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index ce78b0f0..eb67d4f7 100644 --- a/pom.xml +++ b/pom.xml @@ -3,15 +3,23 @@ 4.0.0 - org.springframework.build + + org.sonatype.oss + oss-parent + 7 + + + + com.mainstreethub.build aws-maven jar - 5.1.0.BUILD-SNAPSHOT + + 5.0.0.RELEASE.MSH.2-SNAPSHOT Amazon Web Services S3 Maven Wagon Support Standard Maven wagon support for s3:// urls - 1.7.1 + 1.9.8 4.11 1.1.1 1.9.5 @@ -91,6 +99,15 @@ 1.7 + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.1 + + -Xdoclint:none + + org.apache.maven.plugins maven-deploy-plugin @@ -110,6 +127,10 @@ 2.16 random + + + **/SimpleStorageServiceWagonIntegrationTest.java + @@ -120,7 +141,7 @@ - https://github.com/spring-projects/aws-maven + https://github.com/mainstreethub/aws-maven 2007 @@ -133,8 +154,9 @@ - scm:git:https://github.com/spring-projects/aws-maven.git - https://github.com/spring-projects/aws-maven + scm:git:git@github.com:mainstreethub/aws-maven + scm:git:git@github.com:mainstreethub/aws-maven + https://github.com/mainstrethub/aws-maven diff --git a/src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentialsProviderChain.java b/src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentialsProviderChain.java index 86726039..1ef2659d 100644 --- a/src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentialsProviderChain.java +++ b/src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentialsProviderChain.java @@ -20,6 +20,7 @@ import com.amazonaws.auth.EnvironmentVariableCredentialsProvider; import com.amazonaws.auth.InstanceProfileCredentialsProvider; import com.amazonaws.auth.SystemPropertiesCredentialsProvider; +import com.amazonaws.auth.profile.ProfileCredentialsProvider; import org.apache.maven.wagon.authentication.AuthenticationInfo; final class AuthenticationInfoAWSCredentialsProviderChain extends AWSCredentialsProviderChain { @@ -27,7 +28,8 @@ final class AuthenticationInfoAWSCredentialsProviderChain extends AWSCredentials AuthenticationInfoAWSCredentialsProviderChain(AuthenticationInfo authenticationInfo) { super(new EnvironmentVariableCredentialsProvider(), new SystemPropertiesCredentialsProvider(), - new InstanceProfileCredentialsProvider(), - new AuthenticationInfoAWSCredentialsProvider(authenticationInfo)); + new ProfileCredentialsProvider(), + new AuthenticationInfoAWSCredentialsProvider(authenticationInfo), + new InstanceProfileCredentialsProvider()); } } diff --git a/src/main/java/org/springframework/build/aws/maven/SimpleStorageServiceWagon.java b/src/main/java/org/springframework/build/aws/maven/SimpleStorageServiceWagon.java index 1e734be6..5637ccc6 100644 --- a/src/main/java/org/springframework/build/aws/maven/SimpleStorageServiceWagon.java +++ b/src/main/java/org/springframework/build/aws/maven/SimpleStorageServiceWagon.java @@ -182,7 +182,7 @@ protected void putResource(File source, String destination, TransferProgress tra in = new TransferProgressFileInputStream(source, transferProgress); - this.amazonS3.putObject(new PutObjectRequest(this.bucketName, key, in, objectMetadata)); + this.amazonS3.putObject(new PutObjectRequest(this.bucketName, key, in, objectMetadata).withCannedAcl(CannedAccessControlList.BucketOwnerFullControl)); } catch (AmazonServiceException e) { throw new TransferFailedException(String.format("Cannot write file to '%s'", destination), e); } catch (FileNotFoundException e) {