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

Support slim JAR deployment #7078

Closed
ewolff opened this issue Oct 1, 2016 · 1 comment
Closed

Support slim JAR deployment #7078

ewolff opened this issue Oct 1, 2016 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@ewolff
Copy link

ewolff commented Oct 1, 2016

http://product.hubspot.com/blog/the-fault-in-our-jars-why-we-stopped-building-fat-jars explains a problem with Fat JARs. While just very little of the system actually changes, the deployment still requires the full JAR with all dependencies to be copied to the server and stored in the repository. That add a lot of bloat. So maybe Spring Boot could support something like a slim JAR. The loader would load the classes of the application from the JAR and all dependencies from a repository. No dependencies are stored in the JAR itself. The dependencies would then be cached in a local .m2 so for the next deployment the dependencies wouldn't be downloaded again. Maybe it would also make sense to add a feature that just initializes the .m2 with the dependencies. That way a Docker base image could already provide the dependencies in an .m2 and the Docker image for the application would just contain the application classes.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 1, 2016
@wilkinsona
Copy link
Member

Duplicates #1813

@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants