Possibly you are also including the dependencies in the non-profile part of the project.clj? You shouldn't: the :provided profile is normally included, but excluded when running the uberjar task.
More concrete example: (defproject myproj "0.1.0" :dependencies [[org.clojure/clojure "1.6.0"]] ;; notice standford-corenlp is *not* mentioned!! :uberjar {:aot :all} :profiles {:provided {:dependencies [[edu.stanford.nlp/stanford-corenlp "3.4.1"] [edu.stanford.nlp/stanford-corenlp "3.4.1" :classifier "models"]]}}) On Wednesday, June 3, 2015 at 2:35:30 PM UTC-5, Scott Klarenbach wrote: > > I'm unable to post a new topic to the leinigen group so I thought I'd try > my luck here. > > I'd like to exclude certain dependencies from my uberjar, by using the > :provided profile, but the jars are always included. > > I've added the following to my project.clj, but the edu.stanford.nlp jars > end up in the uberjar no matter what. I've also tried with a simple > project just to exclude a few jars and that doesn't seem to work either. > Am I missing something simple? Or is there a better way to exclude large > dependencies from uberjar if the deployment environment will already have > them on the classpath? Thanks. > > :profiles {:uberjar {:aot :all} > :provided {:dependencies > [[edu.stanford.nlp/stanford-corenlp "3.4.1"] > [edu.stanford.nlp/stanford-corenlp "3.4.1" > :classifier "models"]]} > :dev {:resource-paths ["test-data"]}} > > -- 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/d/optout.