From a871ee13c7eae47c1110fe687b2b8f28fb22b84d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Jan 2026 08:48:35 +0000 Subject: [PATCH 1/2] Bump org.apache.maven:maven-parent from 45 to 47 Bumps [org.apache.maven:maven-parent](https://github.com/apache/maven-parent) from 45 to 47. - [Release notes](https://github.com/apache/maven-parent/releases) - [Commits](https://github.com/apache/maven-parent/commits) --- updated-dependencies: - dependency-name: org.apache.maven:maven-parent dependency-version: '47' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f174f91b..2891045f 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ under the License. org.apache.maven maven-parent - 45 + 47 org.apache.maven.wagon From e33cb82ad62e42e60f4b5027e48f4c4614ab7678 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Sun, 1 Feb 2026 15:59:51 +0100 Subject: [PATCH 2/2] spotless --- .../wagon/providers/http/LightweightHttpWagon.java | 8 ++++---- .../wagon/shared/http/AbstractHttpClientWagon.java | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java b/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java index 67e298bd..4db6b7bd 100644 --- a/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java +++ b/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java @@ -232,14 +232,14 @@ protected void finishPutTransfer(Resource resource, InputStream input, OutputStr int statusCode = putConnection.getResponseCode(); switch (statusCode) { - // Success Codes + // Success Codes case HttpURLConnection.HTTP_OK: // 200 case HttpURLConnection.HTTP_CREATED: // 201 case HttpURLConnection.HTTP_ACCEPTED: // 202 case HttpURLConnection.HTTP_NO_CONTENT: // 204 break; - // TODO Move 401/407 to AuthenticationException after WAGON-587 + // TODO Move 401/407 to AuthenticationException after WAGON-587 case HttpURLConnection.HTTP_FORBIDDEN: case HttpURLConnection.HTTP_UNAUTHORIZED: case HttpURLConnection.HTTP_PROXY_AUTH: @@ -251,7 +251,7 @@ protected void finishPutTransfer(Resource resource, InputStream input, OutputStr throw new ResourceDoesNotExistException(formatResourceDoesNotExistMessage( buildUrl(resource), statusCode, reasonPhrase, getProxyInfo())); - // add more entries here + // add more entries here default: throw new TransferFailedException( formatTransferFailedMessage(buildUrl(resource), statusCode, reasonPhrase, getProxyInfo())); @@ -347,7 +347,7 @@ public boolean resourceExists(String resourceName) throws TransferFailedExceptio case HttpURLConnection.HTTP_GONE: return false; - // TODO Move 401/407 to AuthenticationException after WAGON-587 + // TODO Move 401/407 to AuthenticationException after WAGON-587 case HttpURLConnection.HTTP_FORBIDDEN: case HttpURLConnection.HTTP_UNAUTHORIZED: case HttpURLConnection.HTTP_PROXY_AUTH: diff --git a/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java b/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java index 92dc157b..9f1f2445 100644 --- a/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java +++ b/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/AbstractHttpClientWagon.java @@ -716,14 +716,14 @@ private void put(int wait, Resource resource, File source, HttpEntity httpEntity // Check that we didn't run out of retries. switch (statusCode) { - // Success Codes + // Success Codes case HttpStatus.SC_OK: // 200 case HttpStatus.SC_CREATED: // 201 case HttpStatus.SC_ACCEPTED: // 202 case HttpStatus.SC_NO_CONTENT: // 204 break; - // TODO Move 401/407 to AuthenticationException after WAGON-587 + // TODO Move 401/407 to AuthenticationException after WAGON-587 case HttpStatus.SC_FORBIDDEN: case HttpStatus.SC_UNAUTHORIZED: case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED: @@ -748,7 +748,7 @@ private void put(int wait, Resource resource, File source, HttpEntity httpEntity EntityUtils.consumeQuietly(response.getEntity()); put(backoff(wait, url), resource, source, httpEntity, url); break; - // add more entries here + // add more entries here default: EntityUtils.consumeQuietly(response.getEntity()); TransferFailedException e = new TransferFailedException(formatTransferFailedMessage( @@ -798,7 +798,7 @@ private boolean resourceExists(int wait, String resourceName) result = true; break; - // TODO Move 401/407 to AuthenticationException after WAGON-587 + // TODO Move 401/407 to AuthenticationException after WAGON-587 case HttpStatus.SC_FORBIDDEN: case HttpStatus.SC_UNAUTHORIZED: case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED: @@ -816,7 +816,7 @@ private boolean resourceExists(int wait, String resourceName) case SC_TOO_MANY_REQUESTS: return resourceExists(backoff(wait, resourceName), resourceName); - // add more entries here + // add more entries here default: throw new TransferFailedException(formatTransferFailedMessage( url, @@ -1047,7 +1047,7 @@ private void fillInputData(int wait, InputData inputData) // return, leaving last modified set to original value so getIfNewer should return unmodified return; - // TODO Move 401/407 to AuthenticationException after WAGON-587 + // TODO Move 401/407 to AuthenticationException after WAGON-587 case HttpStatus.SC_FORBIDDEN: case HttpStatus.SC_UNAUTHORIZED: case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED: @@ -1073,7 +1073,7 @@ private void fillInputData(int wait, InputData inputData) fillInputData(backoff(wait, url), inputData); break; - // add more entries here + // add more entries here default: EntityUtils.consumeQuietly(response.getEntity()); cleanupGetTransfer(resource);