weavejester / compojure

A concise routing library for Ring/Clojure
Eclipse Public License 1.0
4.08k stars 259 forks source link

Cannot run ring server #185

Closed p-adams closed 5 years ago

p-adams commented 5 years ago

Hi,

I am having some issues running my Compojure app all of a sudden. When I run lein ring server or sudo lein ring server I get this error:

Could not find artifact javax.servlet:servlet-api:jar:3.1.0 in central (https://repo1.maven.org/maven2/)
Could not find artifact javax.servlet:servlet-api:jar:3.1.0 in clojars (https://repo.clojars.org/)
This could be due to a typo in :dependencies, file system permissions, or network issues.

I am not behind a proxy and do not have network issues. Here is my project.clj file:

  :min-lein-version "2.0.0"
  :dependencies [[org.clojure/clojure "1.9.0"]
                 [compojure "1.6.1"]
                 [ring/ring-defaults "0.3.2"]]
  :plugins [[lein-ring "0.12.4"]]
  :ring {:handler foo.handler/app}
  :profiles
  {:dev {:dependencies [[javax.servlet/servlet-api "3.1.0"]
                        [ring/ring-mock "0.3.2"]]}})

I am on version 2.8.1 of lein and Java 10.0.1.

weavejester commented 5 years ago

This was reported in weavejester/compojure-template#26 and has now been fixed.

p-adams commented 5 years ago

Thanks!