if (!artifactFile.exists())
throw new MojoFailureException("Artifact File does not exists! (file="
+ path);
AmazonS3Client client = new AmazonS3Client(getAWSCredentials(), getClientConfiguration());
getLog().info("Target Path: s3://" + s3Bucket + "/" + s3Key);
getLog().info("Uploading artifact file: " + path);
PutObjectResult result = client.putObject(s3Bucket, s3Key, artifactFile);
getLog().info("Artifact Uploaded");
return result;
}