                   (throw-invalid (str "invalid pom file: " (.getMessage e))
                     {:file pom-file}
                     e)))
-          {:keys [group group-path name] :as posted-metadata} (read-string (slurp (io/file dir metadata-edn)))]
+          {:keys [group group-path name] :as posted-metadata} (read-metadata dir)]
 
       ;; since we trigger on maven-metadata.xml, we don't actually
       ;; have the sums for it because they are uploaded *after* the

    (if (string? match)
      (= match name)
      (re-find match name))))

(def metadata-edn "_metadata.edn")

(defn find-artifacts
  ([dir]

    (upload-request
      db
      groupname
      artifact
      session
      (fn [_ upload-dir]
        (spit (io/file upload-dir metadata-edn)
