Amazon Web Services S3 Maven Wagon Support

Standard Maven wagon support for s3:// urls

License

License

Categories

Categories

AWS Container PaaS Providers Maven Build Tools
GroupId

GroupId

tw.hyl.common
ArtifactId

ArtifactId

aws-maven
Last Version

Last Version

5.0.0.BUILD
Release Date

Release Date

Type

Type

jar
Description

Description

Amazon Web Services S3 Maven Wagon Support
Standard Maven wagon support for s3:// urls
Project URL

Project URL

https://github.com/SpringSource/aws-maven
Project Organization

Project Organization

Spring Framework
Source Code Management

Source Code Management

http://github.com/yunglin/aws-maven

Download aws-maven

How to add to project

<!-- https://jarcasting.com/artifacts/tw.hyl.common/aws-maven/ -->
<dependency>
    <groupId>tw.hyl.common</groupId>
    <artifactId>aws-maven</artifactId>
    <version>5.0.0.BUILD</version>
</dependency>
// https://jarcasting.com/artifacts/tw.hyl.common/aws-maven/
implementation 'tw.hyl.common:aws-maven:5.0.0.BUILD'
// https://jarcasting.com/artifacts/tw.hyl.common/aws-maven/
implementation ("tw.hyl.common:aws-maven:5.0.0.BUILD")
'tw.hyl.common:aws-maven:jar:5.0.0.BUILD'
<dependency org="tw.hyl.common" name="aws-maven" rev="5.0.0.BUILD">
  <artifact name="aws-maven" type="jar" />
</dependency>
@Grapes(
@Grab(group='tw.hyl.common', module='aws-maven', version='5.0.0.BUILD')
)
libraryDependencies += "tw.hyl.common" % "aws-maven" % "5.0.0.BUILD"
[tw.hyl.common/aws-maven "5.0.0.BUILD"]

Dependencies

compile (4)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.0.12
com.amazonaws : aws-java-sdk jar 1.4.3
org.slf4j : jcl-over-slf4j jar 1.7.5
org.slf4j : slf4j-api jar 1.7.5

provided (1)

Group / Artifact Type Version
org.apache.maven.wagon : wagon-provider-api jar 2.4

test (2)

Group / Artifact Type Version
junit : junit-dep jar 4.11
org.mockito : mockito-core jar 1.9.5

Project Modules

There are no modules declared in this project.

AWS Maven is a Maven Wagon for Amazon S3.

Usage

To publish Maven artifacts to S3 a build extension must be defined in a project's pom.xml.

<project>
    ...
    <build>
        ...
        <extensions>
            ...
            <extension>
                <groupId>org.springframework.build</groupId>
                <artifactId>aws-maven</artifactId>
                <version>4.4.0.RELEASE</version>
            </extension>
            ...
        </extensions>
        ...
    </build>
    ...
</project>

Once the build extension is configured distribution management repositories can be defined in the pom.xml with an s3:// scheme.

<project>
  ...
  <distributionManagement>
      <repository>
          <id>aws-release</id>
          <name>AWS Release Repository</name>
          <url>s3://distribution.bucket/release</url>
      </repository>
      <snapshotRepository>
          <id>aws-snapshot</id>
          <name>AWS Snapshot Repository</name>
          <url>s3://distribution.bucket/snapshot</url>
      </snapshotRepository>
  </distributionManagement>
  ...
</project>

Finally the ~/.m2/settings.xml must be updated to include access and secret keys for the account. The access key should be used to populate the username element, and the secret key should be used to populate the passphrase element.

<settings>
    ...
    <servers>
        ...
        <server>
            <id>aws-release</id>
            <username>0123456789ABCDEFGHIJ</username>
            <passphrase>0123456789abcdefghijklmnopqrstuvwxyzABCD</passphrase>
        </server>
        <server>
            <id>aws-snapshot</id>
            <username>0123456789ABCDEFGHIJ</username>
            <passphrase>0123456789abcdefghijklmnopqrstuvwxyzABCD</passphrase>
        </server>
        ...
    </servers>
    ...
</settings>
tw.hyl.common

Versions

Version
5.0.0.BUILD