leiningen - Using exiftool java library from clojure -
i'm trying include exiftool java in leiningen based clojure project. library not available @ central, have included :repository tag in project.clj file.
project.clj:
(defproject clojure-mongo "0.1.0-snapshot" :description "fixme: write description" :url "http://example.com/fixme" :license {:name "eclipse public license" :url "http://www.eclipse.org/legal/epl-v10.html"} :repositories {"the buzz media maven repository" "http://maven.thebuzzmedia.com"} :dependencies [[org.clojure/clojure "1.7.0"] [com.novemberain/monger "3.0.1"] [com.thebuzzmedia/exiftool-lib "1.1"]])
exiftool java not provide checksum , site warns of this:
"note: @ time not providing checksums files on our repository, see '[warning] checksum validation failed' messages maven, can safely ignored."
sure enough, lein deps gives me error although not convinced safe ignore:
"retrieving com/thebuzzmedia/exiftool-lib/1.1/exiftool-lib-1.1.pom buzz media maven repository not transfer artifact com.thebuzzmedia:exiftool-lib:pom:1.1 from/to buzz media maven repository (http://maven.thebuzzmedia.com): checksum validation failed, no checksums available repository"
attempting import exiftool class in clojure code still gives me classnotfoundexception.
core.clj:
(ns clojure-mongo.core (:require [monger.core :as mg] [monger.collection :as mc]) (:import [com.mongodb mongooptions serveraddress] org.bson.types.objectid com.thebuzzmedia.exiftool-lib.exiftool))
what can access class within clojure?
for one, class want import is:
com.thebuzzmedia.exiftool.exiftool
also, default leiningen fails if checksum doesn't validate. want :repositories
key this:
:repositories [["the buzz media maven repository" {:url "http://maven.thebuzzmedia.com" :checksum :warn}]]
you set :ignore
if prefer. see sample leiningen project.
Comments
Post a Comment