Skip to content

velo/s3-download-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3-download-maven-plugin

Downloads a file or (recursively) the contents of a directory from S3.

Configuration parameters

Parameter Description Required Default
bucketName The name of the bucket yes
source The source amazon s3 file key. Empty to download the whole bucket. no
destination The destination file or destination folder. Directories MUST end with / yes
accessKey S3 access key yes if unspecified, uses the Default Provider, falling back to env variables
secretKey S3 secret key yes if unspecified, uses the Default Provider, falling back to env variables
endpoint Use a different s3 endpoint no s3.amazonaws.com
signingRegion SigningRegion the region to use for SigV4 signing of requests. Only used when endpoint is present no null
skipSslVerification Skip endpoint verification no false

Example: Download a bucket

<build>
  ...

  <plugins>
    ...

    <plugin>
      <groupId>com.marvinformatics</groupId>
      <artifactId>s3-download-maven-plugin</artifactId>
      <version>0.3</version>
      <executions>
        <execution>
            <phase>your phase</phase>
            <goals>
                <goal>s3-download</goal>
            </goals>
            <configuration>
                <bucketName>my-s3-bucket</bucketName>
                <!-- if you provide no source the whole bucket will be downloaded -->
                <destination>/my/local/dir/</destination>
                <accessKey>access key</accessKey>
                <secretKey>secret key</secretKey>
            </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

About

Allows you to download files from S3 directly from maven.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%