   "Resolves project dependencies like 'lein deps', but also uses TOOL_REPOS_DIR"
   [project & args]
 
-  (loop []
-    (when-not (= :ok (try-once-resolve-git-version project))
-      (recur))))
+  (try
+    (loop []
+      (when-not (= :ok (try-once-resolve-git-version project))
+        (recur)))
+    (catch clojure.lang.ExceptionInfo e
+      (println "Failed to resolve dependency:" (.getMessage e))
+      (pprint {:exception-data (ex-data e)}))))

      (throw (ex-info "TODO" {:ctime ctime :sha sha} old-exception)))
    (throw (ex-info (str "Not parseable as git-version: " version) {:artifact art} old-exception))))

(defn try-once-resolve-git-version [project]
  (try
    (leiningen.core.classpath/resolve-dependencies :dependencies project)
    :ok
    (catch Exception e
      ;; lein resolve-dependencies wraps a

  (:require [cemerick.pomegranate.aether :as aether]
            [clojure.pprint :refer [pprint]]
            [leiningen.git-version :as gv])
  (:import (org.sonatype.aether.transfer ArtifactNotFoundException)
           (java.util.logging Logger Handler Level)))

(set! *warn-on-reflection* true)

