uberwar无法找到打嗝/核心

时间:2014-10-19 06:33:17

标签: clojure

我正在关注以下网址中的教程: http://www.xuan-wu.com/2013-09-21-Basic-Web-Application-in-Clojure

但是当我执行时我收到一个错误:     lein ring uberwar

错误是:

Caused by: java.io.FileNotFoundException: Could not locate hiccup/core__init.class or hiccup/core.clj on classpath:...

我在另一个stackoverflow线程上读到的内容:

Hiccup not working : FileNotFoundException: Could not locate ../as__init.class or ../as.clj on classpath

与所需的命名空间无关,而不是:as。

    (ns myblog.views
      (:require [hiccup.core :refer (html)]
.......

我还试着简单地使用'它:

    (ns myblog.views
      (:use hiccup.core)
      (:require [hiccup.form :as f]
.......

但我收到同样的错误。

我的代码有什么问题?提前感谢任何提示/网址!

我在project.clj文件下面复制:

(defproject dgblog "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :min-lein-version "2.0.0"
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [compojure "1.1.9"]
                 [org.clojure/java.jdbc "0.3.0-alpha5"]
                 [mysql/mysql-connector-java "5.1.25"]
                 [ring-basic-authentication "1.0.2"]]
  :plugins [[lein-ring "0.8.12"]]
  :ring {:handler dgblog.handler/app}
  :profiles
  {:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
                        [ring-mock "0.1.5"]]}})

和views.clj标题:

(ns dgblog.views
  (:use hiccup.core)
  (:require
  ;; (:require [hiccup.core :refer (html)]
            [hiccup.form :as f]
            [dgblog.posts :as posts]))

0 个答案:

没有答案