I am going through Liberator's Getting Started guide. At the very beginning, when trying to evaluate the above namespace declaration
(ns restserver.core
(:require [liberator.core :refer [resource defresource]]
[ring.middleware.params :refer [wrap-params]]
[compojure.core :refer [defroutes ANY]]))
i get
;!!CompilerException java.lang.IllegalStateException: with-base-url already refers to: #'hiccup.core/with-base-url in namespace: hiccup.page, compiling:(hiccup/page.clj:1:1)
List of declared dependencies in project.clj
looks like this:
:dependencies [[org.clojure/clojure "1.7.0"]
[liberator "0.13"]
[compojure "1.4.0"]
[org.apache.storm/storm-core "0.9.5"]
[org.clojure/data.json "0.2.6"]
[ring "1.4.0"]]
It seems that storm-core
dependency is causing this issue, as when i remove it, the problem is gone. How can i fix this problem? (apart from moving Storm-related code to a separate library)?
UPDATE: there is an issue on Storm project JIRA posted for exactly this problem.