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
Uberjar building issue with +handler #95
Comments
@kongeor Please give this a try:
|
@gadfly361 no change. Behavior is exactly the same as before. |
Sorry for the delay. Hopefully I'll have time to look at this for the next release. |
I've looked into this but havn't worked it out.
I don't use uberjars a lot so would appreciate any help from someone who uses this more often. Also note the compiled JS does not appear to be included in the uberjar, and it probably should be with another fix. Maybe |
I looked into this as part of https://stackoverflow.com/questions/59580237/lein-uberjar-not-setting-main-class-properly The uberjar profile calls |
Thanks for investigating this and finding the cause @dpassen ! |
Hello,
when creating a project using
+handler
:lein new re-frame foo +handler
and then building a uberjar:
lein uberjar
a part of the output looks like:
as expected trying to run the jar (
java -jar target/foo.jar
) will fail with:Error: Could not find or load main class foo.server
Also, not sure why
Compiling foo.server
appears twice.After some digging and comparing the
project.clj
with other projects that work as expected, it looks like theprod
alias is the one causing this issue:removing the
["clean"]
task resolves this.Not sure if this is a Leiningen issue or if it is a more complicated combination of different factors.
The text was updated successfully, but these errors were encountered: