-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use quotes for the path to find maven basedir in mvnw #30750
Conversation
Thanks, will check and update the upstream project. 👍🏽 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using pwd works when using the quarkus-cli because the wrapper is called with the full path, but the actual fix should be simpler by adding double quotes:
@@ -164,7 +164,7 @@ concat_lines() { | |||
fi | |||
} | |||
|
|||
BASE_DIR=$(find_maven_basedir "$(dirname $0)") | |||
BASE_DIR=$(find_maven_basedir "$(pwd)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BASE_DIR=$(find_maven_basedir "$(pwd)") | |
BASE_DIR=$(find_maven_basedir "$(dirname "$0")") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I tried that but it didn't work for the s p a c e s case.
Will double check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double check, I tested it and it works for me.
FTR: This is already fixed upstream and is using the same approach (I even tested the script from the master branch of maven-wrapper and it works).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR updated, works fine now. I probably combined that change with other experiments.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Failing Jobs - Building 00f0fb6
Full information is available in the Build summary check run. Failures⚙️ Gradle Tests - JDK 11 #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
⚙️ Gradle Tests - JDK 11 Windows #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
|
Use quotes for the path to find maven basedir in mvnw
Fixes #30642
Sync with the latest wrapper upstream changes https://github.com/apache/maven-wrapper/blob/master/maven-wrapper-distribution/src/resources/mvnw#L173
CC @jorsol
Old info (see comments for the details):
pwd
was used before #30108 changesapache/maven-wrapper@e87947e changed the line in upstream, imho cosmetic and MWRAPPER-56 unrelated change that caused regression in behavior on Quarkus CLI side