technomancy / leiningen

Moved to Codeberg; this is a convenience mirror
https://codeberg.org/leiningen/leiningen
Other
7.29k stars 1.61k forks source link

A way to pass a profile to generated jar #2812

Closed mtsbarbosa closed 5 months ago

mtsbarbosa commented 5 months ago

Hi, I am generating a jar through lein uberjar I am willing to pass a profile when executing that like java -jar target/my-app-0.0.10-standalone.jar is there a way to achieve this?

I am doing that because I wanna keep it running in a docker image without clojure or leiningen, just java to be lightweight

technomancy commented 5 months ago

No, there's no way to do this. Profiles only exist in Leiningen; the java command knows nothing about them. Things that are needed after the build finishes should not be placed in profiles.