        version)]))
 
 
-(def x {:tag :dependency
-        :attrs nil
-        :content [{:tag :groupId
-                   :attrs nil
-                   :content ["com.company.dep1"]}
-
-                  {:tag :artifactId
-                   :attrs nil
-                   :content ["dep1-core"]}
-
-                  {:tag :version
-                   :attrs nil
-                   :content ["${dep1.version}"]}
-
-                  {:tag :type
-                   :attrs nil
-                   :content ["tar.gz"]}]})
-
-(make-dependency-version-pair x {:dep1 "1.0.0-SNAPSHOT"})
-
-(defn process-dependency-management
+(defn- process-dependency-management
   [pom]
   (if (pom-has-dependencyManagement? pom)
     (let [properties (get-dependencies-from-properties pom)

  [pom]
  (-> (filter #(tag-equals? % :dependencyManagement) (:content pom))
      first :content first :content))

(get-deps-from-dependency-management pom)


(defn- first-char-is-$? [s] (= "$" (subs s 0 1)))

      (into {} deps-seq))
    nil))


;;; Process entire pom

(defn process-pom
  "Given a pom file, extract it's dependencies and versions and place in a hash-map."
  [path-to-pom]
  (let [pom (load-pom path-to-pom)
        project-name (get-library-name-from-pom pom)
        version (get-library-version-from-pom pom)
        dep-management (process-dependency-management pom)
        deps (process-dependencies-section pom)
        dependencies (merge dep-management deps)]
    {:name project-name :version version :dependencies dependencies}))

;(process-pom "resources/pom.xml")



