From c0a2ed33a53da190194f7a20bef357c1cd1fb77e Mon Sep 17 00:00:00 2001 From: Tine Kondo Date: Sun, 21 Jul 2024 05:49:12 +0000 Subject: [PATCH] fix(common-jvm): improve the check for presence of Maven Wrapper necessary files The check was too strict and would not consider Maven Wrapper to be present if some optional files were missing. Closes #230 --- packages/common-jvm/src/lib/utils/maven-utils.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/common-jvm/src/lib/utils/maven-utils.ts b/packages/common-jvm/src/lib/utils/maven-utils.ts index 3a656457..9ca9b753 100644 --- a/packages/common-jvm/src/lib/utils/maven-utils.ts +++ b/packages/common-jvm/src/lib/utils/maven-utils.ts @@ -556,11 +556,6 @@ function hasMavenWrapperWithPredicate(predicate: (file: string) => boolean) { return ( ['mvnw', '.mvn/wrapper/maven-wrapper.properties'].every((file) => predicate(file) - ) && - ['mvnw.bat', 'mvnw.cmd'].some((file) => predicate(file)) && - [ - '.mvn/wrapper/MavenWrapperDownloader.java', - '.mvn/wrapper/maven-wrapper.jar', - ].some((file) => predicate(file)) + ) && ['mvnw.bat', 'mvnw.cmd'].some((file) => predicate(file)) ); }