Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein install fails #85

Open
norton opened this issue May 1, 2020 · 5 comments
Open

lein install fails #85

norton opened this issue May 1, 2020 · 5 comments

Comments

@norton
Copy link

norton commented May 1, 2020

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
@norton norton changed the title lein install falls lein install fails May 1, 2020
@oliyh
Copy link
Owner

oliyh commented May 1, 2020

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
Copy link
Author

norton commented May 1, 2020

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
Copy link
Author

norton commented May 3, 2020

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

@lvh
Copy link
Contributor

lvh commented Nov 12, 2024

FYI, this problem still exists. I looked at forks but didn't find anything that works. "Avoid lein-modules" isn't possible (well, unless that means "avoid developing martian" which I assume isn't the goal :)) -- the modules use :version as a version specifier in project.clj. I'm working around it by specifying the latest SNAPSHOT explicitly in the subprojects.

@oliyh
Copy link
Owner

oliyh commented Nov 14, 2024

Agree, I ran into this too when I moved to a new laptop. What confuses me most is that it runs on CI, circleci/clojure:lein-2.9.1-browsers which has Leiningen 2.9.1 on Java 11.0.6 OpenJDK 64-Bit Server VM

@oliyh oliyh reopened this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants