Frage

When I run lein jar, it will package my resource files in src/resources, but i expect to modify some config files after packaged. So the resource files should be exclude when lein jar, but how?

War es hilfreich?

Lösung

One way would be to use :jar-exclusions or :uberjar-exclusions in project.clj to exclude your config files:

;; to exclude all .conf files from jars:
:jar-exclusions [#".*\.conf"]

You could also simply not put those files in the resources directory and tell your application where to look for them using, say, an environment variable.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top