s3-maven-plugin

Download and upload files and artifacts of any kind from and to an s3 bucket via Apache Maven.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.software-crafter
ArtifactId

ArtifactId

s3-maven-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

s3-maven-plugin
Download and upload files and artifacts of any kind from and to an s3 bucket via Apache Maven.
Project URL

Project URL

https://github.com/rzett/s3-maven-plugin/
Source Code Management

Source Code Management

https://github.com/rzett/s3-maven-plugin/tree/master

Download s3-maven-plugin

How to add to project

<plugin>
    <groupId>com.software-crafter</groupId>
    <artifactId>s3-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.twdata.maven : mojo-executor jar 2.3.0
org.apache.maven : maven-plugin-api jar 3.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.1
com.amazonaws : aws-java-sdk-s3 jar 1.11.702
javax.xml.bind : jaxb-api jar 2.3.0
com.sun.xml.bind : jaxb-core jar 2.3.0
com.sun.xml.bind : jaxb-impl jar 2.3.0

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

s3-maven-plugin

s3-maven-plugin logo

What: s3-maven-plugin allows you to download and upload files and artifacts of any kind from and to an s3 bucket via maven execution.

How: Downloading and uploading can be bound to specific maven goals. The configuration of all parameters is done directly in the POM file, so no additional scripts or tools have to be used for the data transfer from or to the s3 storage. The entire process can be managed by Maven.

Installation

s3-maven-plugin has been released to the Maven Central Repository. It can be downloaded and configured as usual via the maven dependency management:

<dependency>
    <groupId>com.software-crafter</groupId>
    <artifactId>s3-maven-plugin</artifactId>
    <version>1.0.0</version>
</dependency>

Please follow the configuration instructions as described below.

POM file configuration example

<build>
    <plugins>
        <plugin>
            <groupId>com.software-crafter</groupId>
            <artifactId>s3-maven-plugin</artifactId>
            <version>1.0.0</version>
            <configuration>
                <accessKey>${s3.accessKey}</accessKey>
                <secretKey>${s3.secretKey}</secretKey>
                <downloads>
                    <download>
                        <fileName>s3-download.zip</fileName>
                        <bucketName>s3-maven-plugin-bucket</bucketName>
                        <path>/Users/dummy/project/s3-maven-plugin/</path>
                    </download>
                </downloads>
                <uploads>
                    <upload>
                        <fileName>s3-upload.jar</fileName>
                        <bucketName>s3-maven-plugin-bucket</bucketName>
                        <path>/Users/dummy/project/s3-maven-plugin/</path>
                    </upload>
                </uploads>
            </configuration>
        </plugin>
    </plugins>
</build>

settings.xml configuration

<profiles>
    <profile>
        <id>s3-maven-plugin</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <properties>
            <s3.accessKey>INSERT YOUR ACCESSKEY</s3.accessKey>
            <s3.secretKey>INSERT YOUR SECRETKEY</s3.secretKey>
        </properties>
    </profile>
</profiles>

Manual execution

  1. Executing downloads only: mvn s3:download
  2. Executing uploads only: mvn s3:uploads
  3. Executing downloads and uploads: mvn s3:execute-all

Versions

Version
1.0.0