-
Notifications
You must be signed in to change notification settings - Fork 40.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
spring-boot-maven-plugin repackage uber jar execution fails when jar is put on WSL network drive #38956
Comments
I'm not familiar with WSL, unfortunately, and I don't think anyone on the Spring Boot team has used it. Is |
Affirmative, I've tested a couple of things and it seems the issue is the UNC path, not the dollar sign. Mapping the network share as a drive works around the issue. Here's the output of my tests:
Explanation on the shares used:
|
When the uber jar created with
spring-boot-maven-plugin:3.2.1
(repackage goal) is put on a WSL (Windows subsystem for Linux) network drive, the following error is emitted when running the jar:This is not the case when the uber jar is created with
spring-boot-maven-plugin:3.1.7
As a workaround it is possible to set CLASSIC in spring-boot-maven-plugin, see release notes for details.
Tested on Windows 11 with Java 21. Example project to reproduce: spring-boot-uber-jar-issue.tar.gz.
The text was updated successfully, but these errors were encountered: