Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
Add a "maven" profile to the credentials chain
Browse files Browse the repository at this point in the history
Hard-coding this is a little gross, but maybe it will work
  • Loading branch information
dball committed Sep 23, 2016
1 parent 9668f8d commit 6692c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject sparkfund/aws-maven "5.1.2"
(defproject sparkfund/aws-maven "5.1.3"
:description "Maven wagon for S3"
:url "http://github.com/SparkFund/aws-maven"
:license {:name "MIT License"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSCredentialsProviderChain;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.internal.Mimetypes;
Expand Down Expand Up @@ -80,6 +81,7 @@ protected void connectToRepository(Repository repository, AuthenticationInfo aut
if (this.amazonS3 == null) {
AWSCredentialsProvider credentialsProvider =
new AWSCredentialsProviderChain(new AuthenticationInfoAWSCredentialsProviderChain(authenticationInfo),
new ProfileCredentialsProvider("maven"),
new DefaultAWSCredentialsProviderChain());
ClientConfiguration clientConfiguration = S3Utils.getClientConfiguration(proxyInfoProvider);

Expand Down

0 comments on commit 6692c1c

Please sign in to comment.