Skip to content

mainstreethub/aws-maven

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. The latest version of the wagon can be found on the aws-maven page in Maven Central.

<project>
    ...
    <build>
        ...
        <extensions>
            ...
            <extension>
                <groupId>org.springframework.build</groupId>
                <artifactId>aws-maven</artifactId>
                <version>5.0.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 password element.

<settings>
    ...
    <servers>
        ...
        <server>
            <id>aws-release</id>
            <username>0123456789ABCDEFGHIJ</username>
            <password>0123456789abcdefghijklmnopqrstuvwxyzABCD</password>
        </server>
        <server>
            <id>aws-snapshot</id>
            <username>0123456789ABCDEFGHIJ</username>
            <password>0123456789abcdefghijklmnopqrstuvwxyzABCD</password>
        </server>
        ...
    </servers>
    ...
</settings>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%