A Maven extension that hosts artifacts on Amazon S3.
Maven pom.xml
:
<build>
<extensions>
<extension>
<groupId>com.ikelin</groupId>
<artifactId>s3-maven-wagon-provider</artifactId>
<version>{VERSION}</version>
</extension>
</extensions>
</build>
<!-- deploys artifacts to S3 -->
<distributionManagement>
<snapshotRepository>
<id>aws-s3-snapshot</id>
<name>AWS S3 Snapshot Repository</name>
<url>s3://{BUCKET}/snapshot</url>
</snapshotRepository>
<repository>
<id>aws-s3-release</id>
<name>AWS S3 Release Repository</name>
<url>s3://{BUCKET}/release</url>
</repository>
</distributionManagement>
<!-- downloads artifacts from S3 -->
<repositories>
<repository>
<id>aws-s3-snapshot</id>
<url>s3://{BUCKET}/snapshot</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>aws-s3-release</id>
<url>s3://{BUCKET}/release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
</repository>
</repositories>
Supply AWS credentials using ways from Working with AWS Credentials.