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

NoSuchFileException when performing uberjar with spec-alpha2 in deps. #38

Open
mtnygard opened this issue Aug 9, 2020 · 0 comments
Open

Comments

@mtnygard
Copy link

mtnygard commented Aug 9, 2020

Description

Attempting to build uberjar for a project that includes Clojure's unreleased spec-alpha2 as a git reference. It reaches a step that says "Including java" and throws an exception:

Cleaning target
Creating target/classes
Creating target/repro-case-1.0.0.jar
Updating pom.xml
Skipping paths: resources
Skipping coordinate: {:git/url https://github.com/clojure/spec-alpha2.git, :sha 2f84e3a37cab76d44c58785ff4481597429bc1d3}
Warning: The Main-Class specified does not exist within the jar. It may not be executable as expected. A gen-class directive may be missing in the namespace which contains the main method, or the namespace has not been AOT-compiled.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Creating target/repro-case-1.0.0-standalone.jar
  Including repro-case-1.0.0.jar
  Including java
Execution error (NoSuchFileException) at sun.nio.fs.UnixException/translateToIOException (UnixException.java:92).
/root/.gitlibs/libs/org.clojure/spec-alpha2/2f84e3a37cab76d44c58785ff4481597429bc1d3/${project.basedir}/src/main/java

Full report at:
/tmp/clojure-17151214060258308065.edn

A minimal reproduction case is at https://gist.github.com/mtnygard/aaec1ec5ebb50c2405afd40bde40c5b9. That gist includes a deps.edn file that is sufficient to produce the error without any other sources required. The full report produced by cambada is included in that gist.

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

1 participant