Fork me on GitHub
#deps-new
<
2020-12-07
>
dorab22:12:00

I am working on updating a lein template (for cryogen) on my local machine and want to test it with clj-new. The following failed. What did I do wrong?

Dorabs-iMac:prs dorab$ clj -X:new create :template '"/Users/dorab/Projects/prs/cryogen::cryogen"' :name myname/myblog

Failed with: Manifest type not detected when finding deps for cryogen/clj-template in coordinate #:local{:root "/Users/dorab/Projects/prs/cryogen"}
Execution error (ExceptionInfo) at clj-new.helpers/resolve-remote-template (helpers.clj:181).
Could not load artifact for template: cryogen
	Tried coordinates:
		[cryogen/boot-template "RELEASE"]
		[cryogen/lein-template "RELEASE"]

For more detail, enable verbose logging with -v, -vv, or -vvv

Full report at:
/var/folders/lk/mf8f6ghs0zqcw70nmy739khm0000gn/T/clojure-5829912052402600295.edn
Dorabs-iMac:prs dorab$ 
Thanks.

seancorfield23:12:00

@dorab Manifest type not detected when finding deps for cryogen/clj-template in coordinate #:local{:root "/Users/dorab/Projects/prs/cryogen"} means there's no pom.xml or deps.edn in that folder.

seancorfield23:12:23

(that's a standard message from the Clojure CLI if you specify a dependency -- locally or via git -- that doesn't have a readable "manifest", i.e., doesn't have pom.xml or deps.edn: without one of those, the CLI cannot figure out what transitive dependencies are needed)

seancorfield23:12:49

clj-new will deploy Leiningen templates that it finds on Clojars because those include a pom.xml file. I know that Leiningen will generate pom.xml as part of an install or deploy. I'm not sure if there's a simpler command where Leiningen will just generate the pom.xml file without the other stuff (I stopped using Leiningen several years ago).