luposlip / json-schema

Clojure library JSON Schema validation and generation - Draft-07 compatible
Apache License 2.0
72 stars 7 forks source link

Could not find artifact com.github.everit-org.json-schema:org.everit.json.schema:jar:1.11.0 in central (https://repo1.maven.org/maven2/) #1

Closed hden closed 5 years ago

luposlip commented 5 years ago

Please supply sufficient code to reproduce.

I just wiped my .m2 folder and created a sample app using luposlip/json-schema without any issues.

hden commented 5 years ago

deps.edn

{:deps
 {luposlip/json-schema {:mvn/version "0.1.4"}}}
$ clj
Downloading: luposlip/json-schema/0.1.4/json-schema-0.1.4.pom from https://repo.clojars.org/
Error building classpath. Could not find artifact com.github.everit-org.json-schema:org.everit.json.schema:jar:1.11.1 in central (https://repo1.maven.org/maven2/)

It seems that com.github.everit-org.json-schema/org.everit.json.schema is no longer available on maven central. https://search.maven.org/search?q=json-schema

luposlip commented 5 years ago

Ahh, not using deps.edn myself. Can you try with this:

{:deps
 {luposlip/json-schema {:mvn/version "0.1.4"}
  com.github.everit-org.json-schema/org.everit.json.schema {:git/url "https://github.com/everit-org/json-schema.git"
                        :sha "dd5e85b4c05c96c59a6b2a922d99e375b6ca116c"}}}
hden commented 5 years ago
$ clj
Cloning: https://github.com/everit-org/json-schema.git
Checking out: https://github.com/everit-org/json-schema.git at dd5e85b4c05c96c59a6b2a922d99e375b6ca116c
Downloading: luposlip/json-schema/0.1.4/json-schema-0.1.4.jar from https://repo.clojars.org/
Clojure 1.10.0

user=> (require '[json-schema.core :as schema])
Syntax error (ClassNotFoundException) compiling at (core.clj:1:1).
org.json.JSONObject
luposlip commented 5 years ago

As mentioned I don't use deps.edn. Until I get the time to look into it - can you use lein instead?

If not I advise you to find the dependencies yourself in the following file, and add them to your deps.edn: https://github.com/everit-org/json-schema/blob/master/core/pom.xml

Let me know if you still have problems.

hden commented 5 years ago

Got it, thanks.

On Wed, May 1, 2019 at 16:13 Henrik Mohr notifications@github.com wrote:

As mentioned I don't use deps.edn. Until I get the time to look into it - can you use lein instead?

If not I advise you to find the dependencies yourself in the following file, and add them to your deps.edn: https://github.com/everit-org/json-schema/blob/master/core/pom.xml

Let me know if you still have problems.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/luposlip/json-schema/issues/1#issuecomment-488224459, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOSOFL6RZMKXIM75I2XJ3LPTE7HXANCNFSM4HISB5YA .

luposlip commented 5 years ago

Found out via Clojurians, that this is actually a bug in tools.deps: https://dev.clojure.org/jira/browse/TDEPS-46

So for now, either do the manual copying of dependencies from the pom.xml, use lein instead or wait for the above Jira bug to be fixed :)

Closing this issue.

markbastian commented 3 years ago

FYI, you can just add the repo to your deps.edn file like so to resolve that jar:

 :mvn/repos
        {;https://github.com/everit-org/json-schema
         "jitpack.io" {:url "https://jitpack.io"}}