Skip to content

/workspace file conflicting with a classpath resource #43

Answered by dmikusa
jerzykrlkroche asked this question in Q&A
Discussion options

You must be logged in to vote

I guess that the entire /workspace dir is on the classpath. Is this correct? Is this an expected behaviour?

By default, yes.

When you build from source, the buildpack will run Maven/Gradle/etc. and build your JAR/WAR file. It will take that, store it, delete all your source, and then extract the contents of that file into /workspace. i.e. after build, /workspace is your exploded JAR/WAR.

When you build locally and pack build a JAR/WAR file (this is what happens when you use Spring Boot build tools), the JAR/WAR is extracted and the contents of it are pushed into the container at /workspace. The buildpacks then run, augment your app and produce the run image.

The net result is that in bo…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jerzykrlkroche
Comment options

@dmikusa
Comment options

@jerzykrlkroche
Comment options

Answer selected by jerzykrlkroche
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants