Thanks to visit codestin.com
Credit goes to github.com

Skip to content

onejar execution can't find pack on classpath #132

@pwhittin

Description

@pwhittin

From within an application directory, executing the following command:

../bin/onejar -A:prod project.jar

results in the following output:

WARNING: When invoking clojure.main, use -M                     
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).                                                     
Could not locate mach/pack/alpha/one_jar__init.class, mach/pack/alpha/one_jar.clj or mach/pack/alpha/one_jar.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.

It seems the like clojure (Clojure CLI version 1.10.3.814) is not downloading the dependencies correctly.

The problem can be resolved by executing the following command:

clojure -Sdeps '{:deps {pack/pack.alpha {:git/url "https://github.com/juxt/pack.alpha.git" :sha "73552d02e43fa7fac4e3f245257742a9534ea0f2"}}}' -Spath

which causes the dependencies to be downloaded.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions