You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building an image using a pre-built binary (jar file). The file is specified using the --path flag of pack CLI. The heroku jvm buildpack ignores it completely and looks for a manifest file (pom.xml/etc.). This results in no buildpack group passing detection and my image build fails. PFA the command and the logs.
Thanks for letting us know about your use-case, appreciated! You're correct, this isn't supported out of the box currently.
The workaround for the current state of the builder would be adding a system.properties file next to your jar file with the following contents: java.runtime.version=22 and passing the directory with the jar and the system.properties to pack via --path. In addition, you'd need to specify the heroku/jvm buildpack explicitly.
In addition, this buildpack would not create a process for your single jar file automatically. You could use a Procfile (next to your jar and system.properties files) to configure the default process to run:
I understand that this is much more elaborate than pointing pack to a jar file and have it just work. I'll leave this issue open and will update it over time as the situation improves for the use-case.
Let me know if the above works for you or if you encountered other obstacles, happy to help!
Hi there,
I am building an image using a pre-built binary (jar file). The file is specified using the
--path
flag ofpack
CLI. The heroku jvm buildpack ignores it completely and looks for a manifest file (pom.xml/etc.). This results in no buildpack group passing detection and my image build fails. PFA the command and the logs.Could you adjust the buildpack detection logic so that it doesn't look for a manifest file when the
--path
flag is specified to point to a jar/war?The text was updated successfully, but these errors were encountered: