I meet the same problem,try the following setting: :profiles {:provided {:dependencies [ [org.apache.hadoop/hadoop-core "2.0.0-mr1-cdh4.4.0" :scope "runtime"] [org.apache.hadoop/hadoop-common "2.0.0-cdh4.4.0" :scope "runtime"] ]
}} When I run 'lein ubjerjar',the standlone jar does not contain the hadoop jars. You can try it. 在 2012年6月14日星期四UTC+8上午8时15分49秒,Warren Lynn写道: > > > > Why does AOT happen after exclusion? Shouldn't exclusion be the last > >> > step in the process which would hardly break anything and would >> > eventually fix the issue? >> >> Oh, I meant this would be a problem if you used profiles for >> separating dependencies. If you use :uberjar-exclusions you'll be >> fine. >> >> -Phil >> > > Thank you all for the suggestions. I just tried to put my unwanted > dependencies into the :dev profile, at the beginning AOT seems to work fine > and lein uberjar does not include that .jar file. But once I started to use > one of the functions in the .jar file (not just putting "import" in the > ns), AOT failed. > > Although not ideal, :uberjar-exclusions works for me now as all the files > in my issue .jar file has a common package prefix. > > > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.