Hello,

I am currently using maven shade plugin to package a project jar that would
contain some java libraries as well as some clojure libraries. After some
investigation into load time  performance issue, I found that maven shade
plugin default behaviour is to re-write or create the files, which means
new timestamps will be present in jar for all the files. This generally
wouldn't have been a problem if it is just Java files. Clojure compilation
current behaviour is that if two files - one clojure, one java file have
the same timestamp then it would give clojure file priority and would
compile it on the fly. For example, if a.clj and a corresponding a.class is
present with equal timestamps then clojure would think that a.clj is newer
and would compile it. This is causing all the clojure files to be compiled
again and thus causing jar load time to increase.

Is there a workaround to overcome this default behaviour from
maven-shade-plugin ?

Thanks,
Kranthi

Reply via email to