I'm trying to reference one of my leiningen projects from another, and not
succeeding. My error must be simple and obvious...
Essentially the projects 'poker' and 'testgen' are both in
/home/simon/workspace, and both are standard leiningen projects using just
the default project template. I've done 'lein uberjar' in testgen, so there
are the following jars:
simon [ at ] engraver:~/workspace/poker$ ls -l
/home/simon/workspace/testgen/target/
total 3588
drwxr-xr-x 2 simon simon 4096 Apr 2 20:04 classes
-rw-r--r-- 1 simon simon 5 Apr 6 00:06 repl-port
drwxr-xr-x 2 simon simon 4096 Apr 2 20:04 stale
-rw-r--r-- 1 simon simon 11226 Apr 6 00:10 testgen-0.1.0-SNAPSHOT.jar
-rw-r--r-- 1 simon simon 3646079 Apr 6 00:10
testgen-0.1.0-SNAPSHOT-standalone.jar
In poker/project.clj I've done the following (added lines highlighted):
(defproject poker "0.1.0-SNAPSHOT"
:description "Poker scoring kata"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories [["testgen"
"file:///home/simon/workspace/testgen/target"]]
:dependencies [[org.clojure/clojure "1.5.1"]
[testgen "0.1.0-SNAPSHOT"]
])
When I try to run lein repl, I get the following:
simon [ at ] engraver:~/workspace/poker$ lein repl
Could not find artifact testgen:testgen:jar:0.1.0-SNAPSHOT in clojars
(https://clojars.org/repo/)
Could not find artifact testgen:testgen:jar:0.1.0-SNAPSHOT in testgen
(file:///home/simon/workspace/testgen/target)
This could be due to a typo in :dependencies or network issues.
So clearly lein is failing to recognise the jar file(s) as the artefact
it's looking for. What do I need to do differently? Do I need a pom file,
and if so what should be in it?
Cheers
Simon
succeeding. My error must be simple and obvious...
Essentially the projects 'poker' and 'testgen' are both in
/home/simon/workspace, and both are standard leiningen projects using just
the default project template. I've done 'lein uberjar' in testgen, so there
are the following jars:
simon [ at ] engraver:~/workspace/poker$ ls -l
/home/simon/workspace/testgen/target/
total 3588
drwxr-xr-x 2 simon simon 4096 Apr 2 20:04 classes
-rw-r--r-- 1 simon simon 5 Apr 6 00:06 repl-port
drwxr-xr-x 2 simon simon 4096 Apr 2 20:04 stale
-rw-r--r-- 1 simon simon 11226 Apr 6 00:10 testgen-0.1.0-SNAPSHOT.jar
-rw-r--r-- 1 simon simon 3646079 Apr 6 00:10
testgen-0.1.0-SNAPSHOT-standalone.jar
In poker/project.clj I've done the following (added lines highlighted):
(defproject poker "0.1.0-SNAPSHOT"
:description "Poker scoring kata"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories [["testgen"
"file:///home/simon/workspace/testgen/target"]]
:dependencies [[org.clojure/clojure "1.5.1"]
[testgen "0.1.0-SNAPSHOT"]
])
When I try to run lein repl, I get the following:
simon [ at ] engraver:~/workspace/poker$ lein repl
Could not find artifact testgen:testgen:jar:0.1.0-SNAPSHOT in clojars
(https://clojars.org/repo/)
Could not find artifact testgen:testgen:jar:0.1.0-SNAPSHOT in testgen
(file:///home/simon/workspace/testgen/target)
This could be due to a typo in :dependencies or network issues.
So clearly lein is failing to recognise the jar file(s) as the artefact
it's looking for. What do I need to do differently? Do I need a pom file,
and if so what should be in it?
Cheers
Simon