[DXML-20] Odd behaviour when using lein uberjar Created: 25/Sep/13 Updated: 10/Nov/13 Resolved: 10/Nov/13
|Reporter:||Neil Laurance||Assignee:||Ryan Senior|
Leiningen 2.3.2 on Java 1.7.0_11 Java HotSpot(TM) 64-Bit Server VM
(For original query posted to leiningen project, see: https://github.com/technomancy/leiningen/issues/1334)
I have a trivial app:
And a lein project definition of:
Attempting to run lein uberjar throws a stacktrace.
Attempting to run a second time without cleaning first succeeds.
Workaround is to change (def xml) to (defn xml ) and then invoke it.
|Comment by Ryan Senior [ 10/Nov/13 10:35 PM ]|
I think this is a broader issue with AOT. I'm thinking it's probably related to this: http://dev.clojure.org/jira/browse/CLJ-979. I've seen this in other code, but it's the first time I've seen it reported for data.xml. Wrapping it in a function is a good idea. I think avoiding AOT would also fix your issue.