Can't download spring-boot-thin-launcher from a local mirror
See original GitHub issueI’m trying to force download the launcher from a local mirror using thin.repo
key (from the sources)
mvn package -Dthin.repo=http://nexus.local/repository/maven-public/
but doesn’t work. Always try to download from repo.spring.io.
I also have a custom settings.xml in .m2 but is ignore or overriding by launcher pom.
In the sources, it looks like it could use thin.repo property but is ignored.
Any suggestion.
Issue Analytics
- State:
- Created 5 years ago
- Comments:25
Top Results From Across the Web
Can't get Spring Boot Thin Launcher examples to work
Show activity on this post. I am trying to run the simple app available at https://github.com/dsyer/spring-boot-thin-launcher under samples, ...
Read more >Thin JARs with Spring Boot - Baeldung
The Spring Boot Thin Launcher is a small library that reads an artifact's dependencies from a file bundled in the archive itself, downloads...
Read more >Spring Boot Reference Guide
This section provides a brief overview of Spring Boot reference documentation. Think of it as map for the rest of the document. You...
Read more >How to docker image of spring boot application?-Springboot
Subsequent builds will use this cached version of the mirroring layer, which means that dependencies will be referenced locally without having to pull...
Read more >Sourcode of JAR files in Maven repository
Explore the sourcecode of the JAR files from the Maven repository. Download the JAR files incl their dependencies.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s a better docker strategy TBH than using the thin launcher (but as I said above you can improve it by using the application main class).
I have reproduced the original issue. It’s incredibly fiddly to get the networks set up, but it is possible. I’m not sure I could automate it, but I can probably document it at least.
FWIW I could run
mvn package
on thesimple
sample, and it would build a thin (executable) jar and then fail on thethin-maven-plugin
. Here’s the error:The executable jar is also not executable until the launcher is cached locally. To do that (which would be another workaround for you), you can specify
--thin.repo=http://<your-mirror>
on the command line when you run it. I think to close this issue we need a way to do that in the Maven plugin as well.N.B. even if the launcher is cached locally, the Maven plugin still fails. So that’s what I plan to fix first.
That’s not really a workaround: that’s the best way to build a single fixed docker container for a Spring Boot app. It would start quicker if you used the main class instead of the
JarLauncher
, but that’s irrelevant for the file system layers.