Skip to content
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

Cannot locate launcher: /root/.m2/repository/.../spring-boot-thin-launcher-1.0.27.RELEASE-exec.jar #198

Open
cohenran opened this issue Jun 28, 2023 · 1 comment

Comments

@cohenran
Copy link

When I maven build my project, all is good.
When I try to run it, I get:

Exception in thread "main" java.lang.IllegalStateException: Cannot locate launcher: /root/.m2/repository/org/springframework/boot/experimental/spring-boot-thin-
launcher/1.0.27.RELEASE/spring-boot-thin-launcher-1.0.27.RELEASE-exec.jar
        at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:131)
        at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107)

I have this files in my maven directory:
image
This happens on a fresh ubuntu install (The same project worked on an old ubuntu install, and it doesn't work in the new one).

@dsyer
Copy link
Collaborator

dsyer commented Sep 21, 2023

1.0.27 is quite old. Probably you should try 1.0.31. In any case the error indicates that you can't locate the launcher - are you disconnected from the internet? Did you warm up the local cache with --dry-run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants