From aeadf4bdd8e9b0aa50bce41bc7bbf8f32ee57126 Mon Sep 17 00:00:00 2001 From: Jiaqi Guo Date: Sun, 13 Oct 2019 19:24:05 -0700 Subject: [PATCH] Getting ready for 1.5.0 release --- pom.xml | 9 +-------- .../org/cyclopsgroup/cym2/awss3/S3Wagon.java | 18 +++--------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/pom.xml b/pom.xml index 9b4ddd1..f11669f 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 4.0.0 awss3-maven-wagon - 1.5.0-SNAPSHOT + 1.5.0 jar S3 Maven Wagon Maven Wagon to support S3 repository @@ -77,13 +77,6 @@ - - - org.cyclopsgroup - awss3-maven-wagon - ${project.version} - - org.apache.maven.plugins diff --git a/src/main/java/org/cyclopsgroup/cym2/awss3/S3Wagon.java b/src/main/java/org/cyclopsgroup/cym2/awss3/S3Wagon.java index 7738234..1822615 100644 --- a/src/main/java/org/cyclopsgroup/cym2/awss3/S3Wagon.java +++ b/src/main/java/org/cyclopsgroup/cym2/awss3/S3Wagon.java @@ -195,9 +195,7 @@ public void get(String resourceName, File destination) } } - /** - * @inheritDoc - */ + @Override public List getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException { String path = keyPrefix + destinationDirectory; @@ -226,9 +224,7 @@ public List getFileList(String destinationDirectory) return new ArrayList(results); } - /** - * @inheritDoc - */ + @Override public boolean getIfNewer(String resourceName, File destination, long timestamp) throws ResourceDoesNotExistException, TransferFailedException { ObjectMetadata meta = getRequiredMetadata(resourceName); @@ -244,9 +240,6 @@ public boolean getIfNewer(String resourceName, File destination, long timestamp) return true; } - /** - * @inheritDoc - */ @Override public boolean getIfNewerToStream(String resourceName, OutputStream out, long timestamp) throws ResourceDoesNotExistException, TransferFailedException { @@ -287,9 +280,6 @@ private ObjectMetadata getRequiredMetadata(String resourceName) } } - /** - * @inheritDoc - */ @Override protected void openConnectionInternal() throws ConnectionException, AuthenticationException { AWSCredentialsProvider credentials = new AWSCredentialsProviderChain( @@ -334,9 +324,7 @@ protected void openConnectionInternal() throws ConnectionException, Authenticati fireSessionDebug("Key prefix " + keyPrefix); } - /** - * @inheritDoc - */ + @Override public void put(File source, String destination) throws TransferFailedException, ResourceDoesNotExistException { try (InputStream in = new FileInputStream(source)) {