-
Notifications
You must be signed in to change notification settings - Fork 455
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
Getting Java heap space Error while running k8s:build #561
Comments
Do you think this can be related to #544? (is your setup based on a Dockerfile living in your project's root path?) |
Yes that is right. It is based on Dockerfile based on the root path. |
Just to clarify, by solution you mean the work around...right? |
You can use the workaround now (please confirm if that works for you). But we will provide a solution that doesn't require a workaround too (hopefully in our next release) |
Thank you Marc. When I run the given example - https://github.com/eclipse/jkube/tree/5703f015643c70a6043a86d4ed6eb27521d5a381/quickstarts/maven/docker-file-provided on my local windows I get the below WARNING. Is this expected? [WARNING] The requested profile "'docker-file'" could not be activated because it does not exist. |
And when I ran on Jenkins I got the same error:
|
The profile is not being detected, what command are you running exactly? |
I tried with both the commands below: mvn clean -X package k8s:build -P'context-dir' mvn clean -X package k8s:build -P'docker-file' |
Try removing the single quote, maybe that has problems in windows. |
Thank you. That worked on windows. Will let you know the results on Jenkins. |
@manusa - It looks when we add repackage goal for spring boot as shown below.
Posting the error again for for reference:
|
Description
Getting below error while running command: mvn clean package k8s:build
Tried setting the maven opts to -Xmx4g but Jkube is not picking. Is there any specific way to add the maven opts?
Info
mvn -v
) : 3.3.3The text was updated successfully, but these errors were encountered: