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
Allow building executable semi-fat-jar without dependencies with spring-boot-maven-plugin #13772
Labels
status: duplicate
A duplicate of another issue
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Jul 14, 2018
Thanks for sharing your findings. We already have #12545 tracking this. You may also be interested in the Maven plugin’s suppprt for custom layouts. |
wilkinsona
added
status: duplicate
A duplicate of another issue
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Jul 15, 2018
@wilkinsona great! thanks for the info :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to be able to cache the dependencies as a separate docker layer, so deployments are faster and the resulting image is smaller. But I don't want to give-up the benefits of using
spring-boot-maven-plugin
. An option to not include the dependencies when repackaging would allow this.Details
core
and there is anothercore-http
(depends oncore
)cli
which is a cli app, that handles tasks that don't require UI (depends oncore
)rest-api
andweb-admin
are separate modules (depend oncore-http
)cli.jar
,rest-api.jar
,web-admin.jar
Now this works fine, but there are problems
What I would ideally like is to have an option to exclude
lib/
from resulting fat-jar, which would allow me to domaven-dependency-plugin
to copy everything intodependency
directorymaven-enforcer-plugin
configured to check there is no lib installed with two different versionslib/
directory that is copied into the docker image as a separate layerlib/
as a classpath optionThis would result in a separate layer with dependencies that rarely changes and separate layer with executable semi-fat-jars. The dependencies layer won't have to be uploaded with every deployment, but only when the dependencies change.
I'm currently trying to configure this without
spring-boot-maven-plugin
but it turns out it's a lot of work and the option would make it a lot easier :)The text was updated successfully, but these errors were encountered: