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

Skip to content

onejar build doesn't include compiled assets #105

@snichme

Description

@snichme

I'm trying out edge and I want to use it with clojurescript.
The development part is all working without any issues but when I try to build a production jar, the jar doesn't include the js nor css files. Or at least the requests fails.

I produce the jar by running

../bin/onejar -A:prod --args '-m edge.main' project.jar

and when run the jar I get a 500 for the css file and a 404 for the js file.

Stacktraces:
For the js file:

clojure.lang.ExceptionInfo:  {:status 404}
	at yada.methods$eval21592$fn__21593.invoke(methods.clj:146)
	at yada.methods$eval21561$fn__21562$G__21552__21569.invoke(methods.clj:132)
	at yada.methods$eval21605$fn__21612$fn__21621.invoke(methods.clj:188)
	at manifold.deferred$eval3327$chain___3348.invoke(deferred.clj:862)
	at clojure.lang.AFn.applyToHelper(AFn.java:165)
	at clojure.lang.RestFn.applyTo(RestFn.java:132)
	at clojure.core$apply.invokeStatic(core.clj:669)
	at clojure.core$apply.invoke(core.clj:660)
	at manifold.deferred$eval3327$chain___3348$fn__3352.invoke(deferred.clj:888)
	at manifold.deferred.Listener.onSuccess(deferred.clj:219)
	at manifold.deferred.Deferred$fn__3126.invoke(deferred.clj:381)
	at clojure.lang.AFn.run(AFn.java:22)
	at io.aleph.dirigiste.Executor$Worker$1.run(Executor.java:62)
	at manifold.executor$thread_factory$reify__2505$f__2506.invoke(executor.clj:44)
	at clojure.lang.AFn.run(AFn.java:22)
	at java.base/java.lang.Thread.run(Thread.java:835)

For the css file:

java.lang.IllegalArgumentException: No matching clause: onejar
	at yada.resources.resources_resource$new_resources_resource$file_of_resource__28769.invoke(resources_resource.clj:13)
	at yada.resources.resources_resource$new_resources_resource$fn__28772.invoke(resources_resource.clj:23)
	at yada.interceptors$get_properties.invokeStatic(interceptors.clj:112)
	at yada.interceptors$get_properties.invoke(interceptors.clj:109)
	at manifold.deferred$eval3327$chain___3348.invoke(deferred.clj:862)
	at manifold.deferred$eval3327$chain___3348.doInvoke(deferred.clj:883)
	at clojure.lang.RestFn.applyTo(RestFn.java:151)
	at clojure.core$apply.invokeStatic(core.clj:669)
	at clojure.core$apply.invoke(core.clj:660)
	at manifold.deferred$eval3327$chain___3348$fn__3352.invoke(deferred.clj:888)
	at manifold.deferred.Listener.onSuccess(deferred.clj:219)
	at manifold.deferred.Deferred$fn__3126.invoke(deferred.clj:381)
	at clojure.lang.AFn.run(AFn.java:22)
	at io.aleph.dirigiste.Executor$Worker$1.run(Executor.java:62)
	at manifold.executor$thread_factory$reify__2505$f__2506.invoke(executor.clj:44)
	at clojure.lang.AFn.run(AFn.java:22)
	at java.base/java.lang.Thread.run(Thread.java:835)
yada by JUXT

I get the same result by generating a new app with --cljs and build a production artifact directly without any changes, I'm on commit 1d760f4

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    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