Comments (10)
Ah, it might be a problem with leinjacker and your managed dependencies. My guess is that leinjacker doesn't support that, and as lein-ring relies on leinjacker to manage the dependencies, lein-ring doesn't support it either.
If you change the managed dependencies into normal dependencies, does lein-ring work?
from lein-ring.
It looks like leinjacker 0.4.3 works with managed dependencies, so it's possible to include leinjacker 0.4.3 before lein-ring in the plugin dependencies.
:plugins [[leinjacker "0.4.3"]
[lein-ring "0.12.5" :exclusions [leinjacker]]
[lein-parent "0.3.5"]]
from lein-ring.
updating leinjacker
does work. I created a PR to make this permanent.
from lein-ring.
What do your dependencies look like?
from lein-ring.
Hi, James. Thank you for replying to me.
My project dependencies are just following:
:exclusions [org.clojure/clojure
org.clojure/clojurescript
ring/ring-core]
:managed-dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.439"]
[ring/ring-core "1.7.1"]]
:dependencies [[org.clojure/clojure]
[org.clojure/clojurescript]
[org.clojure/java.jdbc "0.7.8"]
[ring/ring-core]
[ring/ring-defaults "0.3.2" :exclusions [javax.servlet/javax.servlet-api]]
[hiccup "1.0.5"]
[bidi "2.1.5"]
[sablono "0.8.5"]
[clj-http "3.9.1"]]
:profiles {:dev {:exclusions [ring]
:managed-dependencies [[ring "1.7.1"]]
:dependencies [[ring/ring-mock "0.3.2"]
[com.bhauman/figwheel-main "0.2.0"]
[org.apache.derby/derby "10.14.2.0"]
[ring :exclusions [ring/ring-core]]]
:plugins [[lein-codox "0.10.5"]
[lein-ring "0.12.4"]
[lein-auto "0.1.3"]]}}
from lein-ring.
Yeah, lein ring server-headless
just worked when managed-dependencies
isn't written in project.clj.
Thank you for giving its idea to me!
from lein-ring.
@ejschoen Oh! Thank you for telling good thing to me!
lein ring server-headless
ran with :managed-dependencies
when I tried it which you told!
I had not noticed plugins can also exclude their dependencies. XD (Thank you telling it too!)
from lein-ring.
@weavejester could you please make a release with this fix? Thanks!
from lein-ring.
@weavejester could you please make a release with this fix? Thanks!
Released 0.12.6. Sorry about the delay.
from lein-ring.
No problem and thank you!
from lein-ring.
Related Issues (20)
- tools.nrepl version added is very old HOT 7
- ensure-handler-set! incorrectly calls System/exit HOT 4
- lein ring server-headless custom-port doesn't works HOT 5
- 0.12.2 fails when compiling `:aot :all` HOT 5
- Looks like release 0.12.3 haven't actually been pushed to clojars HOT 2
- :ring :nrepl :start? true injects [org.clojure/tools.nrepl "0.2.3"] which messes up CIDER, cider-nrepl and nREPL HOT 3
- Dependency `unify` broken with Clojure 1.10 HOT 5
- Problem passing jetty adapter options as :adapter map using ring by server-headless HOT 2
- CompilerError occured in Clojure1.10 HOT 1
- uberwar task fails with latest leiningen versions HOT 2
- Update ring-version to latest
- SslContextFactory$Server not found HOT 2
- how to set jvm-opts for ring task HOT 1
- :listener-class HOT 2
- :reload-paths equivalent for :auto-refresh? HOT 5
- Jar collision: duct/core VS ragtime/core HOT 15
- `destroy` VS `contextDestroyed` HOT 9
- Async handlers work only with Jetty HOT 8
- Running lein ring server headless, ignores resources/log4j.properties HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lein-ring.