Fork me on GitHub
#cursive
<
2020-08-21
>
Joni08:08:00

Is there some issue with idea resolving dependencies installed locally? Trying to use datomic local dev library which is not available for distribution, but is installed locally mvn -q org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=dev-local-0.9.195/dev-local-0.9.195.jar but idea/cursive can't resolve so I can't start a repl with com.datomic/dev-local {:mvn/version "0.9.195"} in deps

cfleming08:08:54

No, there shouldn’t be a problem with that. Can you check that ~/.m2/repository/com/datomic/dev-local/dev-local-0.9.195.jar exists?

Joni08:08:57

it's in ~/.m2/repository/com/datomic/dev-local/0.9.195/dev-local-0.9.195.jar

cfleming08:08:42

Ah, yes, right. What’s the error that you receive?

cfleming08:08:57

You don’t have your local repo customised, right?

Joni08:08:32

Errors during project resolution
			The following errors were found during project resolve:
			/Users/joni.korpelin/projects/****/app/backend/deps.edn:
			Could not find artifact com.datomic:dev-local:jar:0.9.195 in central ()

Joni08:08:45

running the repl works fine with clj cli tool. I don't think I have customised local repo in any meaningful way

cfleming03:08:23

@UMBC73RK9 Is this still a problem for you? I just got around to trying to reproduce this and I can’t - I’ve followed the above steps and it works fine for me.

Joni05:08:07

No it's not, and sorry for not getting back to you before. I assumed dependencies were fetched on Idea restart because it threw the error then, but didn't resolve it after I did the install locally. Did another change to deps and it worked.