oliyh / martian

The HTTP abstraction library for Clojure/script, supporting OpenAPI, Swagger, Schema, re-frame and more
MIT License
530 stars 44 forks source link

lein install fails #85

Closed norton closed 4 years ago

norton commented 4 years ago

I'm curious what version of lein, clojure, and java is supported.

lein install fails

 lein install
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
 Module build order:
   martian
   martian-clj-http-lite
   martian-httpkit
   martian-test
   martian-cljs-http
   martian-clj-http
   martian-re-frame
------------------------------------------------------------------------
 Building martian 0.1.13-SNAPSHOT (base,system,user,provided,dev)
------------------------------------------------------------------------
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Compiling 1 source files to /Users/joe/tmp/martian/core/target/classes
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
Created /Users/joe/tmp/martian/core/target/martian-0.1.13-SNAPSHOT.jar
Wrote /Users/joe/tmp/martian/core/pom.xml
Installed jar and pom into local repo.
------------------------------------------------------------------------
 Building martian-clj-http-lite 0.1.13-SNAPSHOT (base,system,user,provided,dev)
------------------------------------------------------------------------
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Error encountered performing task 'install' with profile(s): 'base,system,user,provided-martian-clj-http-lite,dev-martian-clj-http-lite'
java.lang.IllegalArgumentException: Bad artifact coordinates martian:martian:jar::version, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
    at org.eclipse.aether.artifact.DefaultArtifact.<init>(DefaultArtifact.java:77)
    at org.eclipse.aether.artifact.DefaultArtifact.<init>(DefaultArtifact.java:60)
    at cemerick.pomegranate.aether$artifact.invokeStatic(aether.clj:244)
    at cemerick.pomegranate.aether$artifact.invoke(aether.clj:242)
    at cemerick.pomegranate.aether$dependency.invokeStatic(aether.clj:253)
    at cemerick.pomegranate.aether$dependency.invoke(aether.clj:246)
    at cemerick.pomegranate.aether$coords__GT_Dependencies$fn__364.invoke(aether.clj:704)
    at clojure.core$map$fn__5851.invoke(core.clj:2753)

I am using the following:

lein version
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Leiningen 2.9.3 on Java 14.0.1 OpenJDK 64-Bit Server VM
oliyh commented 4 years ago

Hi,

It builds for me on

Leiningen 2.9.0 on Java 11.0.7 OpenJDK 64-Bit Server VM

Are you able to cd clj-http-lite && lein install? If so then I think it's just an issue with lein-modules. It looks a bit unmaintained but I see there are several forks which are ahead, it's possible one of them might fix it?

norton commented 4 years ago

It still fails at the top-level with the following version

~/bin/lein version Leiningen 2.9.0 on Java 11.0.2 OpenJDK 64-Bit Server VM

cd clj-http-lite && lein install does work.

It seems to be an issue with lein-modules.

norton commented 4 years ago

I will avoid lein-modules for the time being. Thank you for the feedback.