Re: Exclude some dependencies with lein uberjar

2013-10-16 Thread dongyong wang
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

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread 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 y

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Phil Hagelberg
On Wed, Jun 13, 2012 at 1:52 PM, Jacek Laskowski wrote: >> If you try to create an uberjar with AOT using a profile that excludes >> the dependencies you don't want in your uberjar then the AOT will fail >> because it tries to references classes that don't exist. > > Why does AOT happen after excl

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
On Wed, Jun 13, 2012 at 10:47 PM, Phil Hagelberg wrote: > If you try to create an uberjar with AOT using a profile that excludes > the dependencies you don't want in your uberjar then the AOT will fail > because it tries to references classes that don't exist. Why does AOT happen after exclusion

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Phil Hagelberg
On Wed, Jun 13, 2012 at 1:42 PM, Jacek Laskowski wrote: > That's the part I didn't understand. Could you elaborate what wouldn't work? If you try to create an uberjar with AOT using a profile that excludes the dependencies you don't want in your uberjar then the AOT will fail because it tries to

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
On Wed, Jun 13, 2012 at 12:55 AM, Phil Hagelberg wrote: > If you don't need AOT then you can include the common lib in > dependencies in the :dev profile. Hi Phil, Thanks for the idea - I blogged about the solution and it worked great! http://blog.japila.pl/2012/06/exclude-dependencies-from-ub

Re: Exclude some dependencies with lein uberjar

2012-06-13 Thread Jacek Laskowski
On Wed, Jun 13, 2012 at 1:38 AM, Warren Lynn wrote: > If you don't need AOT then you can include the common lib in Could :uberjar-exclusions help in any way? It's a vector of regexps to exclude files from the uberjar. It could be a starting point to try out. Jacek -- Jacek Laskowski Functional

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Warren Lynn
If you don't need AOT then you can include the common lib in > dependencies in the :dev profile. > > If you need AOT then you'll have to write a plugin that works like a > more selective variant of uberjar. > > -Phil > I do need AOT, and I am not ready yet to write any plugins. Maybe I can

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Phil Hagelberg
On Tue, Jun 12, 2012 at 3:00 PM, Warren Lynn wrote: > I plan to deploy the jar as a lib in another Java framework. This clojure > .jar file depends on some common lib (API kind of thing) that will be > included in the Java framework itself so I don't want to include another > copy. > > "uberjar" m

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Warren Lynn
> As the name says uberjar is what you should be able to run with no > worries about the classpath - all deps are included in the final jar. > Since you asked to exclude some deps, you likely run the final jar in > a kind of managed environment. Why are there some deps not the others? > What

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Jacek Laskowski
On Tue, Jun 12, 2012 at 6:59 PM, Warren Lynn wrote: > As titled, I need to exclude certain dependencies from my final .jar > file (because those dependencies will already be there in the final > target Java environment). How can I do that? Thank you. I'm trying to figure out where you're heading

Re: Exclude some dependencies with lein uberjar

2012-06-12 Thread Phil Hagelberg
On Tue, Jun 12, 2012 at 9:59 AM, Warren Lynn wrote: > As titled, I need to exclude certain dependencies from my final .jar > file (because those dependencies will already be there in the final > target Java environment). How can I do that? Thank you. The uberjar task is designed to create jars me

Exclude some dependencies with lein uberjar

2012-06-12 Thread Warren Lynn
Hi, As titled, I need to exclude certain dependencies from my final .jar file (because those dependencies will already be there in the final target Java environment). How can I do that? Thank you. PS: I am using Leinengen 2 -- You received this message because you are subscribed to the Google G