From 3c93f5f9a377295c7fe4e937c4be38293ede2e23 Mon Sep 17 00:00:00 2001 From: Juan Picca Date: Fri, 1 Oct 2021 22:28:04 -0300 Subject: [PATCH] Fix issue reading maven-wrapper.properties `MavenWrapperDownloader.java` has issues with the generation of the path for the file `maven-wrapper.properties`. Due that the file is not readed, an alternative url in `wrapperUrl` is ignored. For a proof of concept, please see . --- .mvn/wrapper/MavenWrapperDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mvn/wrapper/MavenWrapperDownloader.java b/.mvn/wrapper/MavenWrapperDownloader.java index b901097..518438a 100644 --- a/.mvn/wrapper/MavenWrapperDownloader.java +++ b/.mvn/wrapper/MavenWrapperDownloader.java @@ -52,7 +52,7 @@ public static void main(String args[]) { // If the maven-wrapper.properties exists, read it and check if it contains a custom // wrapperUrl parameter. - File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); + File mavenWrapperPropertyFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_PROPERTIES_PATH); String url = DEFAULT_DOWNLOAD_URL; if(mavenWrapperPropertyFile.exists()) { FileInputStream mavenWrapperPropertyFileInputStream = null;